Map a repository back to its source
RepoOps generates a small markdown wiki from a targeted view of the repository, with every claim citing a source file. The Wiki page renders it and checks each citation against the current tree, so you can tell a page that still matches the code from one that drifted.
Watch it
Read the narration
- 0:00 New teammates ask how the repository works, but the source keeps changing.
- 0:06 Generate a small wiki from the code, and make each claim point back to evidence.
- 0:13 Beside the generated text, RepoOps shows citation status and claim receipts.
- 0:18 Lessons and decisions that touch the same files sit alongside.
- 0:23 Read the map, then follow its citations before trusting the summary.
Synthetic example. Read the guide
How to
A git checkout registered as a tracked repository. ANTHROPIC_API_KEY, or all four OpenAI-compatible gateway settings (REPOOPS_WIKI_PROVIDER, REPOOPS_WIKI_BASE_URL, REPOOPS_WIKI_API_KEY, REPOOPS_WIKI_MODEL).
- Generate the first map.
Run npm run brain-wiki -- --init in the repository. It reads a bounded set of package, readme, entrypoint, route, schema and representative source files and writes .claude/brain/wiki/quickstart.md and up to seven focused pages. Pages are built in memory first, so a model failure leaves nothing half-written.
- Open the wiki.
The Wiki tab, a Memory tab, renders .claude/brain/wiki/quickstart.md for the repository; start there and follow its section links. Section pages under wiki/architecture/ also appear in Memory's Brain library under Architecture.
- Read the citation verdict before the prose.
verified fresh: every cited file resolves and none changed since the page was verified. stale: a cited file changed since. unverified: a cited file no longer exists. no source refs: the page cites nothing. Each claim has a receipt naming its source and line.
- Re-verify or update a stale page.
If the page still holds, run npm run wiki-reverify -- --page <page.md> and commit .claude/brain/wiki/.claims.json. If not, run npm run brain-wiki -- --update, which makes one model call over the source diff, and review the rewritten pages before landing them. An unchanged diff makes no call.
- Scan the rest of the brain for broken citations.
Open Memory in the sidebar, then the Wiki tab, and read Citation rot across the brain. It lists every citation in the markdown under .claude/brain and docs that no longer resolves, errors first, for the repository picked on the card. Scan again runs the check; the nightly pass runs it too. On repoops.ai the card shows the scan each bound desktop published with its brain; the scan itself runs on the desktop app.
Use cases
Cold-starting an unfamiliar repository
- Situation
- The repository has source and configuration but no wiki pages, so the Wiki page reads Nothing here yet.
- You do
- Set a model key, run npm run brain-wiki -- --init, then open quickstart.md.
- You see
- A bounded reading map under .claude/brain/wiki with a verdict and a receipt for each cited file, so you know where to check each claim.
Which route should I read first?
- Situation
- You inherited a large checkout and do not know which entry point or route matters.
- You do
- Open the command palette, choose > Explain this file…, read the overview, then select one route.
- You see
- The overview groups Key files, HTTP routes, Entry points, Library modules and Scripts, and the route shows its methods and where the parser found it, with a Structural or AI-generated badge saying how the answer was made.
Expected outcome
Next step: Add ANTHROPIC_API_KEY, or fill all four gateway settings, then run it again.
Next step: --init is a one-time cold start. Run npm run brain-wiki -- --update instead.
Next step: Read each stale claim against the current file, then re-verify the page or run an update.
What else to consider
What verified means
Verified means the cited files resolve and are unchanged; it does not prove the prose read the file correctly, so follow the receipt before relying on a claim. Evidence is per file, so any change to a cited file marks every claim citing it stale. npm run wiki-claim-replay counts how recorded claims hold up across recent commits; whether a claim's prose is wrong still needs a person.
Refresh, staleness and agents
A page is flagged for refresh when it is more than REPOOPS_WIKI_STALENESS_COMMITS (500) commits or REPOOPS_WIKI_STALENESS_DAYS (14) days behind. The nightly refresh lands as a held proposal unless REPOOPS_WIKI_REFRESH_LANDING says pr or working-copy. An agent reading the wiki over the RepoOps MCP server gets the same freshness verdict and the stale cited files with each page.
Explain my codebase
Explain my codebase, a card on Memory's Ask tab, maps the tracked text files and explains one file or HTTP route at a time. The overview never calls a model. Without a key every answer is Structural, no model call, built from path rules and regular expressions; with ANTHROPIC_API_KEY a selected target can get a summary Written by the model, Claude Haiku, sending that target's facts and up to 12,000 characters of the file. A Partial scan warning means the file or byte budget stopped the walk and the counts are a floor. Scan again rebuilds the map and drops saved explanations. It is a reading aid, not a call graph.
Egress, cost and the hosted side
Generation and updates send a discovery bundle of at most 100,000 characters to your model provider; environment, key and credential files are excluded. Your provider bills the calls. The wiki stays in your working tree until you commit it, and nothing deletes it. On repoops.ai, the Team wiki on /team/brain groups the team's shared knowledge; /team/wiki and /team/explain-codebase open the Memory page, because source is not sent to the team database.