LLM Wiki CLI
Build and maintain an architectural wiki for your codebase. LLM Wiki scans source into Markdown pages, keeps generated structure in sync, and supplies coding agents with searchable, bounded context. Agents add the explanations and guides that static analysis cannot provide.
The PyPI package is agent-wiki-cli, the command is llm-wiki, and the Python
import package is llm_wiki_cli.
Quick start · Examples · Command reference · Standalone documentation
Installation
Requires Python 3.11 or later.
The optional agent-wiki-cli[tokens] backend counts tokens exactly with a
caller-supplied local tokenizer JSON. The core CLI, MCP, and optional backends
all use the Python 3.11+ package baseline.
pip install agent-wiki-cli
For MCP support, install pip install "agent-wiki-cli[mcp]".
Installation options cover source checkouts
and optional dependencies. To remove the package, run
pip uninstall agent-wiki-cli.
Quick Start
Run these commands from your project root. Choose generic for an AGENTS.md
instruction file, or select one of the supported agents.
llm-wiki init --agent generic
Ordinary source analysis prepares missing or stale bundled helpers automatically when the selected files need them. Valid helpers are reused across projects in a managed user cache; project dependencies and source files are unchanged. Install the relevant toolchain first: Node.js with npm, Go, Cargo, or supported GHC. Python needs no helper. The library does not install system toolchains.
Helper setup may download locked
dependencies or compile a bundled helper on first use. Explicit --read-only,
preview modes, and --helper-preparation never reuse existing helpers without
setup. init --prepare-extractors and llm-wiki prepare-extractors remain
available for explicit prewarming and troubleshooting.
llm-wiki bootstrap --src-dir . --wiki-dir docs/llm_wiki
Bootstrap selects current compressed native storage and indexed maintenance
ownership automatically. Task and compact-view requests can omit version fields;
the library selects current contracts. Existing projects receive these defaults
by updating the package and running llm-wiki upgrade from their project root.
Upgrade retains recovery copies and reports their locations.
Open docs/llm_wiki/index.md to browse the wiki. Use your coding agent to enrich
semantic descriptions, guides, and behavior notes; generated diagrams, tables,
and machine-readable artifacts are maintained by the CLI.
After source changes, update and validate the wiki:
llm-wiki sync --src-dir . --wiki-dir docs/llm_wiki --jobs 1
llm-wiki lint --strict --src-dir . --wiki-dir docs/llm_wiki --jobs 1
For an isolated documentation workspace from source or an existing enriched wiki, follow the standalone documentation guide.
For a small project you can copy and change, try the Python, FastAPI, Go, and plugin tutorials. They show the generated pages, a source edit, and the next sync without requiring a model service.
What It Creates
The default docs/llm_wiki/ contains an index, module and entity pages,
workflows, user flows, guides, and a change log. Depending on the source and
options, it also includes infrastructure, API contracts, dependency, and
load-order pages. Generated structure and agent-authored prose share one
canonical wiki.
See the wiki guide for the page taxonomy, content ownership, generated artifacts, and Python API. Export the same wiki for Obsidian or a static site.
Supported Inputs
| Area | Implementation | Runtime requirement |
|---|---|---|
| Python | stdlib ast |
Python 3.11+ |
| TypeScript / JavaScript / TSX / JSX | ts-morph |
prepared Node.js dependencies |
| Go | go/ast |
prepared helper binary |
| Rust | syn |
prepared helper binary |
| Haskell | GHC parser, syntax-only inventory | prepared helper binary |
| Docker / Compose | Dockerfile parser / bounded YAML parser | included with the package |
| Infrastructure / runtime YAML | structured format summaries | included with the package |
| OpenAPI 3.0/3.1 JSON / YAML | json / PyYAML safe loader |
included with the package |
Discovery honors .gitignore. Use a
source-selection profile to restrict the
source boundary. See input details for
helper requirements and language-specific behavior.
Agent Support
Choose claude, aider, opencode, copilot, cursor, or generic during
initialization. Every agent can use explicit sync, lint, and reviewed prompts;
LLM Wiki does not install Git hooks.
Agent setup explains instruction files and
skill export. Workflow installation and upgrades
cover setup in another project, all agent targets, and the --no-skills inline fallback.
The MCP server provides read-only wiki
access, and bundled skills guide documentation
and analysis workflows.
Common Workflows
| Task | Example |
|---|---|
| Search the wiki | llm-wiki search "authentication" --limit 5 |
| Build agent context | llm-wiki context --budget 8000 --format markdown |
| Review changed code | llm-wiki review --base main --head HEAD |
| Compare OpenAPI exports | llm-wiki api-diff --baseline api/before.json --candidate api/after.json |
| Find documentation work | llm-wiki queue --limit 30 |
| Diagnose helper setup and wiki health | llm-wiki doctor --capabilities |
Automation
Install a read-only GitHub Actions integrity gate after creating your wiki. The automation guide covers the immutable release reference, permissions, helper preparation, and advisory PR impact reports. It also covers optional health dashboards and manual agent triggers.
Command Reference
The command reference contains complete workflows,
output formats, exit codes, migration guidance, and resource controls.
Use llm-wiki <command> --help for available options.
| Guide | Use it for |
|---|---|
| Wiki guide | Page structure, ownership, source selection, and agent setup |
| Standalone documentation | An isolated documentation workspace, agent handoffs, and export |
| Native knowledge | Evidence, freshness, durable identity, and read APIs |
| Native coding workflow | Explicit task evidence, bounded context, sessions, and resumable handoffs |
| Knowledge storage | Current compressed snapshots, recoverable upgrades, bounded reads, and Git size checks |
| Qualified context packets | Validated context handoffs and packet contracts |
| Automation | CI integrity, diagnostics, and explicit triggers |
| Changelog | Release history and compatibility changes |
Security Model
Built-in extraction reads source without importing the target application. Project plugins are trusted Python code, and manual agent triggers use the agent's own permissions. Review generated prompts before sharing sensitive source. See the security model and vulnerability reporting policy.
Support
If LLM Wiki helps you maintain your codebase, consider sponsoring its development. Your support helps maintain language extractors, improve agent workflows, and keep the documentation useful.
Contribution Policy
This project does not maintain a formal contribution process. You are welcome to freely fork it, adapt it to your workflow, and publish your own changes under the MIT license. Community interactions follow the code of conduct.
Metadata
Release files for agent-wiki-cli 4.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agent_wiki_cli-4.1.0.tar.gz | 4.7 MB | With provenance | Details for agent_wiki_cli-4.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agent_wiki_cli-4.1.0-py3-none-any.whl | Python 3 | none | any | Details for agent_wiki_cli-4.1.0-py3-none-any.whl |
Total release size: 6.9 MB
Release files / agent_wiki_cli-4.1.0.tar.gz
| Download URL | agent_wiki_cli-4.1.0.tar.gz |
|---|---|
| Size | 4.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51ac5f3f2529420338da03a82dff422f24a53bb839ba0547dab59c497f800782
|
|
BLAKE2b-256 checksum How to use checksums |
68cdfb7ee0fc6d45e4496e061f3ce428a682b2e84c712bfd79e2edb3c26e8606
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / agent_wiki_cli-4.1.0-py3-none-any.whl
| Download URL | agent_wiki_cli-4.1.0-py3-none-any.whl |
|---|---|
| Size | 2.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1211c2146f346ada3afadc7ae53285a507d5cef0b76c85507a875c65270fef0f
|
|
BLAKE2b-256 checksum How to use checksums |
886797bb4c1652d419efa76521feff4c29d2ce40aa29b93a3ac9c1c7ede59af6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for agent-wiki-cli 4.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for agent_wiki_cli-4.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.