Catalog PyPI
PACKAGE EXPLORERView in registry

agent-wiki-cli

PyPI

CLI tool to maintain hybrid LLM Wikis for multi-language projects.

agentsaicode-contextdocumentationllmwiki
Versions collected1
Direct dependencies10From release 3.1.0
Last observed21 Oct, 08:57 UTC

README

Version 3.1.0 documentation

LLM Wiki CLI

CI License: MIT Python 3.10+

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.10 or later.

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 --prepare-extractors

--prepare-extractors automatically prepares missing or stale helpers for the selected TypeScript/JavaScript, Go, Rust, or Haskell source files and reuses current helpers. Install the relevant toolchain first: Node.js with npm, Go, Cargo, or GHC. Python needs no helper. Helper setup may download dependencies or compile a bundled helper. Omit the flag to scaffold without preparation; read-only commands never prepare helpers. You can rerun the setup command after a package upgrade or use llm-wiki prepare-extractors --src-dir . separately.

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

AreaImplementationRuntime requirement
Pythonstdlib astPython 3.10+
TypeScript / JavaScript / TSX / JSXts-morphprepared Node.js dependencies
Gogo/astprepared helper binary
Rustsynprepared helper binary
HaskellGHC parser, syntax-only inventoryprepared helper binary
Docker / ComposeDockerfile parser / bounded YAML parserincluded with the package
Infrastructure / runtime YAMLstructured format summariesincluded with the package
OpenAPI 3.0/3.1 JSON / YAMLjson / PyYAML safe loaderincluded 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

TaskExample
Search the wikillm-wiki search "authentication" --limit 5
Build agent contextllm-wiki context --budget 8000 --format markdown
Review changed codellm-wiki review --base main --head HEAD
Compare OpenAPI exportsllm-wiki api-diff --baseline api/before.json --candidate api/after.json
Find documentation workllm-wiki queue --limit 30
Diagnose helper setup and wiki healthllm-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.

GuideUse it for
Wiki guidePage structure, ownership, source selection, and agent setup
Standalone documentationAn isolated documentation workspace, agent handoffs, and export
Native knowledgeEvidence, freshness, durable identity, and read APIs
Native coding workflowExplicit task evidence, bounded context, sessions, and resumable handoffs
Knowledge storageCurrent compressed snapshots, recoverable upgrades, bounded reads, and Git size checks
Qualified context packetsValidated context handoffs and packet contracts
AutomationCI integrity, diagnostics, and explicit triggers
ChangelogRelease 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.

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
3.1.019 Oct 202610

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
denissvgn/python-wiki-llm

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 08:57 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1d3a36fba1436596c5fff97909fa873714be149334f4527b18a81ff5029643d7