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

# ai-agent-book vs cognee

ai-agent-book and cognee share 4 technologies: React, Next.js, FastAPI, and OpenAI. Both are written in Python.

- [bojieli/ai-agent-book](https://seerepo.com/r/bojieli/ai-agent-book): 《深入理解 AI Agent：设计原理与工程实践》（李博杰 著）开源主仓库：全书正文、编译版 PDF 与按章配套代码
- [topoteretes/cognee](https://seerepo.com/r/topoteretes/cognee): Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory with small models for free

## What they share and what sets them apart

- In common: React, Next.js, FastAPI, OpenAI
- Only in ai-agent-book: Vite, Astro, Express, Postgres, Anthropic, Google, PostHog
- Only in cognee: None

## Side by side

| | ai-agent-book | cognee |
|---|---|---|
| Size | 422,452 lines written, 1,079 code files | 653,245 lines written, 2,198 code files |
| Who writes it | 20.8% of its commits signed by AI. With Claude Code | 17.2% of its commits signed by AI. With Claude Code, CodeRabbit, Cursor, GitHub Copilot, and OpenHands |
| Activity | Last push October 8, 2026, 1,610 commits, 56,633 stars | Last push November 1, 2026, 8,651 commits, 32,980 stars |
| Tests | 624 test files. 33.9% of its code files have a test that imports them | 1,483 test files. 11.1% 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 cognee?

cognee, with 653,245 lines written in 2,198 code files; ai-agent-book has 422,452 in 1,079.

The proof: [topoteretes/cognee's code at commit 525b1d1](https://github.com/topoteretes/cognee/tree/525b1d1179c550cd5b5661bcbf8f00f57a676928)

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

ai-agent-book, with 56,633 stars; cognee has 32,980.

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

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

cognee, with 1,483 test files; ai-agent-book has 624.

The proof: [topoteretes/cognee's code at commit 525b1d1](https://github.com/topoteretes/cognee/tree/525b1d1179c550cd5b5661bcbf8f00f57a676928)

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

cognee: its last push was on November 1, 2026, and ai-agent-book's on October 8, 2026.

The proof: [topoteretes/cognee's commits on GitHub](https://github.com/topoteretes/cognee/commits)

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

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

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)
- topoteretes/cognee: Read on November 1, 2026, at commit 525b1d1 (https://github.com/topoteretes/cognee/tree/525b1d1179c550cd5b5661bcbf8f00f57a676928)

## 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.
