langchain-ai/openwiki
OpenWiki is a CLI that writes and maintains agent documentation for your codebase.
What it solves
Coding agents often lack persistent memory of a codebase, and humans struggle to keep documentation current. OpenWiki addresses this by automatically converting a repository's source code and tests into a linked Markdown wiki that lives inside the repo. The wiki is grounded in source evidence, so it stays accurate and can be updated only where things changed. It gives agents a durable, searchable context and gives humans readable, interactive documentation.
How it works
OpenWiki runs inside a coding agent (like Codex, Claude Code, Cursor, and others) or as a standalone CLI. It uses a Deep Agents documentation agent to research the repository, plan a wiki, and write pages as Markdown. Each generation tracks "Claims" — facts that are tied to specific source code lines or test cases — so later updates can verify what changed and only regenerate affected parts.
Users interact with the wiki through a set of read-only tools: search returns ranked snippets, and read retrieves full sections. Repositories can be grouped into named workspaces, allowing agents to search across multiple services. A visualizer renders the wiki as an interactive node graph with a live Markdown reader, and it can also export a static version for hosting on GitHub Pages or similar.
OpenWiki stores all wiki pages and metadata in an openwiki/ directory, and it also maintains an AGENTS.md file at the repo root so agents pick up the context automatically. The CLI supports both code mode (for repositories) and personal mode (for connected personal knowledge sources). Scheduled runs can be added via CI workflows for GitHub Actions, GitLab CI, or Bitbucket Pipelines.
Who it's for
This is for developers and teams who use coding agents and want reliable, up-to-date documentation without manual maintenance. It's also useful for people managing multi-repository services, where a single workspace can span several related codebases. Personal mode extends the same wiki concept to individual knowledge sources, so it fits anyone who wants a self-hosted, plain-Markdown personal brain.
Highlights
- Integrates with 10+ coding agents including Codex, Claude Code, OpenCode, Cursor, IBM Bob, Kiro, Oh My Pi, Antigravity, and GitHub Copilot CLI.
- Tracks every fact with source evidence, so updates focus only on what changed and stale Claims are flagged.
- Create linked wiki workspaces to search across multiple repositories as one unit.
- Interactive graph visualizer with a live Markdown reader; can export a static version for public hosting.
- Parallel page workers speed up native generation runs (1–8 concurrency) with resumable progress.
- Scheduled CI updates that open docs PRs, including an auto-merge option that respects branch checks.
- Supports 15 model providers and local OpenAI-compatible endpoints; state and credentials are stored under
~/.openwiki. - Portable Open Knowledge Format (OKF v0.2) output for interoperability.
Related
- Project
- Project
- Project
- Project
- Project