Query GitHub repository wikis via Google Code Wiki — without opening a browser.
Built for LLM coding agents and humans. Outputs Markdown to stdout, with GitHub source references resolved to clickable URLs and architecture diagrams preserved as fenced ```dot blocks.
brew install aeroxy/tap/codewiki-clicargo install codewiki-cliThe crate is codewiki-cli; the binary it installs is codewiki.
codewiki structure facebook/react # list section titles
codewiki read facebook/react # full wiki as Markdown
codewiki ask facebook/react "How does useEffect work?"Pipe the output into your agent of choice:
codewiki read ast-grep/ast-grep | claude -p "Summarise the rule engine"Code Wiki has no public API. codewiki speaks Google's batchexecute RPC the same way the web frontend does:
VSX6ubreturns the entire wiki for a repo as structured JSON (the page is server-rendered from this same call).EgIxfeanswers a chat question with Gemini.
A 6-hour disk cache for the build label / session id (~/Library/Caches/codewiki/bootstrap.json on macOS, equivalent on Linux/Windows) means back-to-back invocations skip the bootstrap GET. Override the cache location with $CODEWIKI_CACHE_DIR.
No authentication required. Public GitHub repos only (Code Wiki itself doesn't yet support private repos).
TLS certificate verification is disabled by default. codewiki is built to run inside monitored agent sandboxes whose TLS-intercepting proxies present certificates that don't chain to a trusted root — strict verification would otherwise make every request fail with an opaque error. Set CODEWIKI_TLS_VERIFY=1 (or true/yes) to restore strict certificate checking.
Every command prints a header line followed by the result:
## CodeWiki: <owner>/<repo> (<command>)
<content>
read rewrites [text](%2Fowner%2Frepo%2Fpath) references to absolute https://github.com/owner/repo/path URLs and emits any embedded Graphviz diagrams after their section as fenced dot code blocks.
A ready-to-install Claude Code skill ships in skill/codewiki/ so Claude knows when to reach for codewiki automatically. Install:
cp -r skill/codewiki ~/.claude/skills/(or symlink skill/codewiki to ~/.claude/skills/codewiki if you want to track upstream changes.)
cargo testIntegration tests are gated behind CODEWIKI_MOCK_TEXT, so the suite runs offline.
MIT