LLM Code Wiki
A Claude Code plugin for a knowledge base over living code repositories, maintained by an
LLM agent. You curate sources and ask questions; the agent reads your code, writes interlinked
markdown pages, keeps them cross-referenced, and flags pages that go stale when the code changes.
Works on macOS, Linux, and Windows with no dependencies (uses your shell's built-in hashing),
and it's dead simple to set up — install the plugin, run one command, and you're up and running
in a few minutes.
Setup (2 minutes)
- Add the marketplace and install the plugin — from any repo, inside Claude Code:
claude plugin marketplace add https://github.com/dylannalex/llm-code-wiki
claude plugin install llm-code-wiki@llm-code-wiki
This installs three skills globally: wiki (the everyday entry point), deep-research
(a multi-agent research pass — see below), and setup-wiki (the one-time wizard).
- Run
/setup-wiki — it asks where your wiki should live, scaffolds it there, records the
location in ~/.llm-code-wiki, verifies hashing on your OS, then asks a few things (what the
wiki is about, your optional scope: tags, and which repos to track) and fills everything in.
That's it — the wiki skill now works from any repo.
The big picture
flowchart LR
you(["You"])
prompt["Your prompt (plain English)<br/>• 'scan the auth repo'<br/>• 'how does X work?'<br/>• 'save this'<br/>• 'check the wiki'"]
code[("Your code<br/>repositories")]
llm{{"LLM agent"}}
wiki[["wiki/<br/>interlinked<br/>markdown pages"]]
you -- "types" --> prompt
prompt --> llm
code -- "reads (never copies)" --> llm
llm -- "writes & cross-links" --> wiki
wiki -- "answers your questions" --> you
code -. "code changes →<br/>pages flagged stale" .-> wiki
In one sentence: you point the agent at code and ask questions; it reads the code, writes a
cross-linked wiki of what it learned, and flags pages as stale when the underlying code changes.
Who is this for?
Anyone who accumulates knowledge across one or more codebases and is tired of re-deriving it every
time. For example:
- Engineers onboarding to a large or unfamiliar codebase — build a map that compounds instead
of re-reading the same files.
- Teams building a new system while learning from an existing one — capture "how do they do X,
how should we" as first-class
comparisons/ pages.
- People studying reference / competitor / upstream repos — keep a durable, cross-referenced
understanding rather than scattered notes.
- Anyone who wants design decisions, mental models, and vocabulary to persist beyond chat
history.
It's a good fit if your knowledge is rooted in code that changes over time (staleness is
handled). It's overkill if you just need a few static notes — and it's not a RAG index; it's a
synthesized, hand-curated (by the LLM) wiki.
Daily use — just talk to your agent
There are no special commands or exact wording to memorize — ask in plain English and the
agent recognizes what you want. The phrasings below are just examples; say it however feels
natural.
| When you want to… | Say something like… | The agent… |
|---|
| Map out a repo | "scan / read / summarize <repo>" | reads it and writes wiki/repositories/<repo>/overview.md |
| Answer a question | "how does X work?" | answers from the wiki, offers to save the synthesis |
| Add another source | "add / import this article (or ticket)" | summarizes it and files it, cross-linked |
| Save what you figured out | "save this" / "file this" | writes it to wiki/decisions/ or wiki/concepts/ |
| Check the wiki is up to date | "check / audit the wiki" | flags out-of-date pages (via hashing), orphans, and gaps |
| See how much you've used it | "show wiki stats" | runs a local script: pages, sources, activity, orphans, size |
| Ignore a repo | "don't track <repo>" | adds it to the ignored list in repos.md; it's never scanned, and pages citing it are rejected |
| Research a theme across repos | "deep research / map every X across these repos and write it up" | runs the deep-research skill: grills you on scope, fans out parallel reader agents, then files cross-linked pages |
How it works
Two zones: machinery (the plugin's skills, plus constitution.md / repos.md / scripts/ at
your wiki root) and knowledge (wiki/, alongside them). /setup-wiki picks the wiki root and
records it in ~/.llm-code-wiki so the skills can find it from any repo.
flowchart TB
skill["wiki skill<br/>(reachable from any repo)"]
subgraph root["repo root — machinery"]
const["constitution.md<br/>the schema · single source of truth"]
repos["repos.md<br/>repo name → on-disk path"]
scripts["scripts/<br/>hashing · validate · metrics"]
end