Source: https://seerepo.com/compare/bojieli/ai-agent-book/vs/khoj-ai/khoj
Markdown source: https://seerepo.com/compare/bojieli/ai-agent-book/vs/khoj-ai/khoj.md
Description: ai-agent-book and khoj share 7 technologies: React, Next.js, FastAPI, Postgres, OpenAI, Anthropic, and PostHog. Both are written in Python.

# ai-agent-book vs khoj

ai-agent-book and khoj share 7 technologies: React, Next.js, FastAPI, Postgres, OpenAI, Anthropic, and PostHog. Both are written in Python.

- [bojieli/ai-agent-book](https://seerepo.com/r/bojieli/ai-agent-book): 《深入理解 AI Agent：设计原理与工程实践》（李博杰 著）开源主仓库：全书正文、编译版 PDF 与按章配套代码
- [khoj-ai/khoj](https://seerepo.com/r/khoj-ai/khoj): Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (gpt, claude, gemini, llama, qwen, mistral). Get started - free.

## What they share and what sets them apart

- In common: React, Next.js, FastAPI, Postgres, OpenAI, Anthropic, PostHog
- Only in ai-agent-book: Vite, Astro, Express, Google
- Only in khoj: Android, Django, Resend

## Side by side

| | ai-agent-book | khoj |
|---|---|---|
| Size | 422,452 lines written, 1,079 code files | 71,518 lines written, 229 code files |
| Who writes it | 20.8% of its commits signed by AI. With Claude Code | 0% of its commits signed by AI |
| Activity | Last push October 8, 2026, 1,610 commits, 56,633 stars | Last push August 2, 2026, 4,763 commits, 37,920 stars |
| Tests | 624 test files. 33.9% of its code files have a test that imports them | 30 test files. 12.7% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, ai-agent-book or khoj?

ai-agent-book, with 422,452 lines written in 1,079 code files; khoj has 71,518 in 229.

The proof: [bojieli/ai-agent-book's code at commit dbc046e](https://github.com/bojieli/ai-agent-book/tree/dbc046eb896ac4e39aa19c7774c8bf49583b89a6)

### Which has more GitHub stars, ai-agent-book or khoj?

ai-agent-book, with 56,633 stars; khoj has 37,920.

The proof: [bojieli/ai-agent-book on GitHub](https://github.com/bojieli/ai-agent-book)

### Which has more tests, ai-agent-book or khoj?

ai-agent-book, with 624 test files; khoj has 30.

The proof: [bojieli/ai-agent-book's code at commit dbc046e](https://github.com/bojieli/ai-agent-book/tree/dbc046eb896ac4e39aa19c7774c8bf49583b89a6)

### Which was updated more recently, ai-agent-book or khoj?

ai-agent-book: its last push was on October 8, 2026, and khoj's on August 2, 2026.

The proof: [bojieli/ai-agent-book's commits on GitHub](https://github.com/bojieli/ai-agent-book/commits)

### Which has more commits signed by AI, ai-agent-book or khoj?

ai-agent-book: an AI signed 20.8% of its commits, with Claude Code.

The proof: [the commits each tool signed in bojieli/ai-agent-book](https://seerepo.com/r/bojieli/ai-agent-book/ai)

## Sources

- bojieli/ai-agent-book: Read on October 30, 2026, at commit dbc046e (https://github.com/bojieli/ai-agent-book/tree/dbc046eb896ac4e39aa19c7774c8bf49583b89a6)
- khoj-ai/khoj: Read on November 1, 2026, at commit ae229ca (https://github.com/khoj-ai/khoj/tree/ae229ca894c0b80ad84664afcfdde523b5e87057)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
