FSoft-AI4Code/CodeWiki

[ACL 2026] Open-source framework for holistic, structured repository-level documentation across multilingual codebases

What it solves

Large codebases are hard to document by hand. CodeWiki automates this by having AI agents read the code and write structured, hierarchical documentation directly from the dependency graph. It works on codebases from a few thousand to over a million lines and supports 11+ programming languages.

How it works

CodeWiki first reads the entire repository and builds a dependency graph (which files depend on what). It then splits that graph into a hierarchy of modules, recursively, so even a 1.4M-line repo gets the same treatment as a small one. For each leaf module, an agent reads the code through tools and writes a documentation page. Parent pages are written from child pages. Diagrams are validated before they are saved. In version 2.0, build files, CI workflows, Dockerfiles, package manifests, configurations, and schemas also become graph nodes, so deployment and build topics get documented too. You can run it with an LLM API key, a Claude or Codex subscription (no key needed), or through an MCP server that lets your IDE's own model do the writing. Incremental updates (--update) diff the saved graph against the current code, repair the module tree, and only pay agents to patch pages that actually changed.

Who it's for

Developers, engineering teams, and maintainers who need up-to-date, structured documentation for large or medium-sized codebases without writing it by hand. It also fits teams that use Backstage TechDocs (via export) or want a GitHub Pages HTML viewer.

Highlights

  • Deep language support: Python, Java, JS/TS, C, C++, C#, Kotlin, PHP, Ruby, Scala, Rust, Dart, Go, Zig, Lean 4, Vue (single-file components), and more.
  • Artifact-aware generation: Build files, CI, Dockerfiles, configs, and schemas become documented graph nodes.
  • Incremental updates: Only changed modules are re-documented, cutting costs dramatically (e.g., $0.34 per update vs $21.48 full build on svelte).
  • Subscription mode: Run on Claude Pro/Max or Codex subscriptions with no API key.
  • MCP server for IDE agents: Use Cursor, Claude Desktop, Claude Code, or CodeBuddy to ask the IDE's own model to document the repo, with no LLM configuration in CodeWiki.
  • Benchmark: On CodeWikiBench, CodeWiki 2.0 scores higher than DeepWiki and 1.0 across all seven repositories, with the biggest gains in C, C++, Java, and C#.
  • Customization: Include/exclude files, focus areas, custom instructions, and generate docs in multiple languages (page text, headings, and diagram labels).

Related

  • Project
  • Project
  • Project
  • Project
  • Project