ai-agent-book vs LEANN

ai-agent-book and LEANN share 14 technologies: FastAPI, OpenAI, seaborn, faiss-cpu, torch, transformers, MCP, datasets, Ollama, sentence-transformers, pypdf2, pdfplumber, pymupdf, and psutil. Both are written in Python.

Read it as markdown

What they share and what sets them apart

In common

StarTrail-org

LEANN

[MLsys2026 Best Paper]: https://arxiv.org/abs/2506.08276. RAG on Everything with LEANN. Enjoy 97% storage savings while running a fast, accurate, and 100% private RAG application on your personal device.

Python13.8kRead on November 9, 2026, at commit 07796bdWhat is LEANN built with?

Only in LEANN

Side by side

SizeLines written by people and agents, without generated ones; code files, without tests.
ai-agent-book422,447 lines written1,067 code files
LEANN55,453 lines written86 code files
Who writes itA commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
ai-agent-book20.8% of its commits signed by AIWith Claude Code
LEANN11.2% of its commits signed by AIWith Claude Code, Cursor, GitHub Copilot, and Jules
ActivityFrom GitHub and its history, on the day SeeRepo read it.
ai-agent-bookLast push October 8, 20261,610 commits57,873 stars
LEANNLast push November 3, 2026617 commits13,785 stars
TestsThe files that test the code, and the share of code files a test imports.
ai-agent-book624 test files34.3% of its code files have a test that imports them
LEANN65 test files36% of its code files have a test that imports them

Frequently asked questions

Which is bigger, ai-agent-book or LEANN?
ai-agent-book, with 422,447 lines written; LEANN has 55,453.

The proof: bojieli/ai-agent-book's code at commit dbc046e

Which has more GitHub stars, ai-agent-book or LEANN?
ai-agent-book, with 57,873 stars; LEANN has 13,785.

The proof: bojieli/ai-agent-book on GitHub

Which has more tests, ai-agent-book or LEANN?
ai-agent-book, with 624 test files; LEANN has 65.

The proof: bojieli/ai-agent-book's code at commit dbc046e

Which was updated more recently, ai-agent-book or LEANN?
LEANN: its last push was on November 3, 2026, and ai-agent-book's on October 8, 2026.

The proof: StarTrail-org/LEANN's commits on GitHub

Which has more commits signed by AI, ai-agent-book or LEANN?
ai-agent-book: an AI signed 20.8% of its commits, with Claude Code; in LEANN, 11.2%.

The proof: the commits each tool signed in bojieli/ai-agent-book

See inside your code, today.

Paste your repo and see it drawn, part by part: a medium one in under a minute.

Free, no account.

Or look inside SeeRepo's own →