LLMs Technical Reviews
Home / Open-source DeepWiki / Comparison

Open-source DeepWiki: deepwiki-open vs OpenDeepWiki vs deepwiki-rs vs RepoAgent vs readmeX vs RepoWiki vs openDeepWiki

Self-hosted generators that turn a code repository into a browsable, AI-written wiki. This page puts every verdict for the category on one page. Each question links to the full per-project answers and their code citations.

At a glance

● answered from code · — not applicable (the project does not do this) · ? insufficient evidence

How is a repository ingested and chunked?

For indexing every file up front, deepwiki-open is the only real choice. For large repos where you want a bounded, predictable read, OpenDeepWiki and RepoWiki cap what they look at most carefully.

Embed everything. deepwiki-open does a --depth=1 clone from GitHub, GitLab or Bitbucket, or reads a local path in place. It keeps files on an extension allow-list and splits each one into 350-word chunks with 100 words of overlap, tagged with line ranges. It skips files above about 82K tokens. There is no file-count cap, so cost grows with the repo.

Scan with fixed limits. RepoWiki takes a local path or a shallow clone of a GitHub, GitLab or Bitbucket URL. It drops files over 200 KB and keeps at most 1,000 files, configs and entry points first. A cached clone is reused forever, so URL scans miss new commits. deepwiki-rs reads a local path only, by default only git ls-files output. Its directory batches allow 256 KB of raw files, but the prompt gets only the first 500 characters of each file plus regex-extracted signatures. readmeX also reads a local path only. It sends each whole file to the LLM, one call per file, with no truncation. *.md is on its default ignore list, so existing Markdown docs are never read.

Let an agent choose. OpenDeepWiki imports Git, ZIP uploads or allow-listed local folders and does not chunk. The catalog agent sees a tree capped at 500 files (350 above 20,000 files) and can open any file later. openDeepWiki (Go) shallow-clones any Git URL with no filters or caps. Its TOC task is queued while the clone is still running, so a slow clone can give a partial plan.

Parse code objects. RepoAgent works only on a local Python git repo. It extracts every function and class with ast and swaps unstaged edits aside, so docs follow the staged code.

Pick: deepwiki-open to index every file for search. Pick: OpenDeepWiki or RepoWiki for big monorepos with a bounded read. Pick: RepoAgent for Python API docs that track commits.

How is retrieval (RAG) implemented?

Only deepwiki-open uses embedding RAG for every page and every chat turn. For pages that explain one subsystem in depth, the agent-based tools, OpenDeepWiki first, usually read more relevant code.

Embedding RAG. deepwiki-open uses a FAISS retriever with top_k: 20 over OpenAI text-embedding-3-small (256 dims) by default. Retrieved chunks are grouped by file with line ranges. If the query is over 7,500 tokens, retrieval is skipped, so outlines of large repos see no code. readmeX uses RAG only in website mode and only for Python. It embeds AST code blocks with a local 1.5B model (OASIS-code-embedding-1.5B) into FAISS and adds 8 blocks to each page prompt. The query is a fixed Chinese keyword string per page type, and the .rag_cache is never invalidated. RepoAgent has RAG only in its optional chat demo: Chroma over the generated docs, text-embedding-3-large, three query variants and a gpt-4o-mini rerank. Its doc generation does not retrieve. It puts the code and docs of each object's callers and callees, found with Jedi, into the prompt.

Lexical search. RepoWiki uses TF-IDF over chunks of up to 30 lines and returns the top 5. The ModuleIndex boost for paraphrased questions is dead code at this commit (it reads a missing wiki.modules field), so only shared words match.

Agentic reading. OpenDeepWiki has no embeddings. Agents call ListFiles, Grep and ReadFile, with 6 calls per page and 240 lines per read. openDeepWiki (Go) gives agents list_dir, read_file, search_files and an unrestricted sh -c tool, with up to 100 iterations for the page writer.

No retrieval. deepwiki-rs has no RAG at all (not applicable). Earlier stage results are packed into each prompt from an in-process store and compressed when too large. Only three stage types get file_explorer and file_reader (200 lines per read).

Pick: deepwiki-open for similarity search over every file. Pick: OpenDeepWiki for in-depth pages from files the model chose to read. Pick: RepoWiki for chat with no embedding service.

How is the wiki structure (table of contents) determined?

OpenDeepWiki is the best fit if the table of contents should grow with the codebase. Choose RepoWiki or deepwiki-rs if you want the same layout on every run.

An LLM plans the TOC. deepwiki-open makes one plain completion call with the filtered file list and README. It asks for <wiki_structure> XML with 4 to 6 pages, or 8 to 12 in comprehensive mode. The model cannot open any file. An argument-order bug turns request exclusions into inclusions for this step. OpenDeepWiki runs a catalog agent on a capped tree, the README (up to 4,000 characters), key files and entry points. It can make 4 confirming tool calls and then writes nested JSON with WriteCatalog. Page count is not fixed: one large repository got 61 pages, against 12 from deepwiki-open on the same code. openDeepWiki (Go) chains toc_editor and toc_checker, which explore the checkout and return strict YAML chapters with outlines and hints. It starts automatically when a repository is added. Titles are in Chinese, and API and database chapters are separate manual actions.

The layout is fixed in code. deepwiki-rs always writes overview, architecture, workflow and boundary pages, plus a database page when database code is detected. The only dynamic part is one deep_exploration page per domain that a research agent finds. RepoWiki always builds Overview, Architecture, Knowledge Cards, one page per module, Reading Guide, Dependencies and Symbol Index. A module is just the top-level directory, or the second level under src/, lib/, pkg/, internal/ or app/. readmeX writes a fixed eight-entry MkDocs navigation with Chinese labels. Only its API section grows, with one page per filtered Python symbol.

The source tree is the TOC. RepoAgent plans nothing. It writes one Markdown file per .py file, with headings nested by AST containment.

Pick: OpenDeepWiki for catalogs that scale with repo size. Pick: RepoWiki or deepwiki-rs for a predictable page set and cost. Pick: RepoAgent when you want API reference, not concept pages.

How are individual pages generated?

For pages that stay in step with the code, OpenDeepWiki and RepoAgent regenerate only what changed. For line-level source citations, deepwiki-open has the best repair step.

One call per page from prepared context. deepwiki-open writes each page from the top-20 retrieved chunks. It requires Mermaid diagrams and citations like [path:10-25](), which post_process_wiki_content() turns into host links with line anchors. Page concurrency defaults to 1. A cached wiki is never updated, only deleted and rebuilt. readmeX has one prompt method per page type. The architecture page gets a draw.io XML diagram (no Mermaid), and the changelog is built from git log --stat. There is no per-page cache.

Agents per page. OpenDeepWiki gives each page 6 source-tool calls and writes with WriteDoc plus up to 4 AppendDoc calls. It stores the files it read as SourceFiles. After one warm-up page, 5 pages run in parallel, and new commits trigger IncrementalUpdateAsync(). openDeepWiki (Go) chains document_generator, markdown_checker and document_checker. Pages run strictly one at a time, because the orchestrator starts with one worker. Rewrites create new versions. For updates, it runs git pull and an agent picks the chapters to rewrite from the diff.

Fixed slots filled by editors. deepwiki-rs runs one editor agent per page. The workflow and key-module editors can read files. Key-module pages run 3 in parallel. It needs the external mermaid-fixer binary and wipes the output folder on every run. A prompt-hash cache makes unchanged re-runs cheap. RepoWiki runs four JSON passes, with module passes 5 at a time. Its cache is per module, so editing one file re-runs that whole module. Bad JSON becomes a placeholder page with no retry.

One entry per symbol. RepoAgent documents callees before callers and puts their code and docs into each prompt. Its {project_structure} slot is never filled. A checkpoint diff regenerates only objects whose code or callers changed. There are no diagrams.

Pick: OpenDeepWiki for long, cited pages that update with commits. Pick: deepwiki-open for a quick wiki with line-anchored citations. Pick: RepoAgent for per-function docs in a pre-commit hook.

How are model providers configured?

OpenDeepWiki and openDeepWiki (Go) are best if different stages need different models or a team manages models centrally. RepoWiki reaches the most providers with the least setup.

Models in the database, chosen per stage. OpenDeepWiki seeds 29 provider presets and reduces them to five request types (OpenAI, OpenAI Responses, Azure OpenAI, Anthropic, DeepSeek). Catalog, content and translation each have their own model. The built-in openrouter preset starts disabled, and setting it through environment variables does not enable it. openDeepWiki (Go) stores API keys as rows with a priority. anthropic gets a Claude client, and everything else goes through an OpenAI-compatible client. Each agent's YAML can pin a model, and ProxyChatModel fails over across up to three models. Its Claude client sends headers that pose as the Claude Code CLI.

Config file, one model for every stage. deepwiki-open has nine provider classes in generator.json, with Google gemini-2.5-flash as the default and Ollama for local runs. The embedder is set separately. Its OpenRouter client does not stream and times out after 60 s. RepoWiki uses litellm provider/model strings with short aliases, and deepseek/deepseek-chat is the default. readmeX uses one OpenAI or Azure client, detected from the URL, with separate settings for chat, image and embedding models. It ignores its configured token limit and temperature. RepoAgent uses llama-index OpenAILike with gpt-4o-mini as the default. Local models work only behind an OpenAI-compatible server, despite the README. Its chat demo hard-codes gpt-4o-mini and gpt-4o.

Routed by prompt size. deepwiki-rs maps eight providers through rig. Prompts up to 32 KB go to model_efficient with model_powerful as fallback, and larger ones go to model_powerful. The default endpoint is ModelScope with Qwen models, and Ollama defaults to localhost:11434.

Pick: OpenDeepWiki for a cheap catalog model and a stronger content model. Pick: RepoWiki or deepwiki-open for quick file-based setup, including local models. Pick: openDeepWiki (Go) for automatic failover across several keys.

How is interactive Q&A / chat implemented?

OpenDeepWiki has the most complete chat: an agent that reads both the wiki and the source, stored sessions, and an MCP server for IDE agents. deepwiki-rs and readmeX have no chat at all (not applicable). They are batch generators.

Agent chat over docs and source. OpenDeepWiki streams typed SSE events (content, thinking, tool_call, tool_result, done). The agent reads generated pages with ReadDoc and source with ReadFile, Grep and ListFiles, and sessions are saved in the database. It runs a global MCP endpoint and one per repository. The per-repo SearchDoc is a literal SQL LIKE, so full-sentence questions often find nothing. openDeepWiki (Go) streams over WebSocket and sends the last 20 messages as history. The agent can read_doc a page or read raw source with the file tools. The git_log and git_show tools in its config do not exist and are silently dropped. Its MCP server has five read-only tools, and search is a substring scan capped at 20 hits.

Retrieval chat. deepwiki-open runs chat over /ws/chat on the same top-20 FAISS path as page generation. The client sends the history, because the server stores none. Deep Research is a five-step prompt sequence driven by the frontend, and Codemap builds a step-by-step code guide. There is no MCP server. RepoWiki offers a terminal REPL and an SSE endpoint, both with TF-IDF top-5 chunks, line-range sources and six turns of history. The paraphrase boost is not wired up. RepoAgent has an optional single-turn Gradio demo with multi-query retrieval, an LLM rerank and a final gpt-4o answer. It has no history and no streaming.

No chat. deepwiki-rs uses chat history only inside its own tool loops. readmeX uses its retrieval only to build page prompts.

Pick: OpenDeepWiki for chat from an IDE agent or across many repos. Pick: deepwiki-open for guided Deep Research on a single-user setup. Pick: RepoWiki for a lightweight terminal chat with no embedding service.

The projects