OpenWiki
$ openwiki Official Low RiskOpenWiki (langchain-ai/openwiki) analyzes repositories to author and incrementally update structured agent documentation (--init, --update). Includes one-shot -p/--print headless mode, integrations management for coding agents, link for multi-repo workspaces, and a local visualize server.
npm install -g openwiki Runs repository-wide documentation synthesis and incremental --update passes directly in CI or coding-agent hooks without MCP overhead.
At a Glance
- Command
- $ openwiki
- FCRS-1.0 Score
- 83/100 (Good)
- Evidence Tier
- Medium Confidence
- CLI vs MCP
- CLI Only
- Reviewed Date
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports one-shot -p/--print headless mode, --init, --update, and integrations, though primarily emits markdown artifacts rather than --json.
- Supports
-p/--print,--init,--update, andintegrations
Restricted to local documentation file writes and read-only repo analysis; uses env-based LLM keys.
- Local markdown generation; no destructive code mutations
Distributed on npm (npm install -g openwiki / npx openwiki) across macOS, Linux, and Windows.
- Global npm and zero-install
npx openwiki
Incremental --update keeps codebase architecture docs synced for both humans and coding agents.
- Incremental
--updateavoids regenerating entire wikis from scratch
Official LangChain repository (langchain-ai/openwiki, 18.3k+ stars) under MIT license.
- Official
langchain-ai/openwikirepository
Clear README and LangChain documentation covering --init, --update, visualize, and integrations.
- GitHub README and LangChain docs
Security, Auth & Guardrails
Reads configured LLM provider API keys from environment variables or local OpenWiki configuration.
MIT open-source CLI; incurs LLM API token costs proportional to codebase size.
# openwiki Agent Rules - Always include `-p` (`--print`) for non-interactive runs and `--no-open` if invoking `visualize`. - Prefer `--update` over `--init` on repositories that already have an OpenWiki directory. - Review generated wiki diffs before committing to ensure proprietary internal notes match policy.
Agent-Ready Command Recipes
Safe Read-Only Queries
openwiki integrations list && openwiki --help
Inspects supported coding-agent integrations and documentation generation flags.
Controlled Writes & Previews
openwiki --update -p
Incrementally refreshes codebase wiki pages based on recent commits in one-shot --print mode.
Strengths for Agents
- + Dedicated
--updateworkflow keeps agent-facing codebase docs synced with recent commits. - + Built-in
integrationsandlinkcommands unify multi-repo workspaces. - + One-shot
-p/--printmode integrates cleanly into CI and coding-agent loops.
Caveats & Pitfalls
- ! Outputs markdown wiki files rather than a machine-readable
--jsonreport. - ! Initial
--initon large monorepos can consume substantial LLM tokens.
Official References
Tested Agent Hosts
Follow Ecosystem Links
Related CLIs in Design & Docs
View category hub →CSS Paged Media HTML-to-PDF renderer (`weasyprint`) for crisp invoices, reports, and print layouts without a browser.
Generate TypeScript API clients, Zod schemas, and MSW mocks from OpenAPI specs: `orval --config orval.config.ts`.
Vite/Vue static docs generator: `vitepress dev docs` for live preview, `vitepress build docs` for static bundle.
Static site and .NET API doc generator: `docfx metadata` extracts API YAML, `docfx build --serve` previews HTML.
OpenAPI diff & breaking-change detector: `oasdiff breaking base.yaml rev.yaml` and `oasdiff changelog`.