repowiserepowise
Features
Code health
A defect-validated 1 to 10 score per file. Zero LLM.
Agent provenance
See how much of your code AI wrote, and whether it is healthy.
AI context (MCP)
Ten MCP tools that give your agent real codebase context.
Change risk
A 0 to 10 defect-risk score for any commit or PR.
Security
Reachability-aware CVE triage on your dependency graph.
Auto wiki
A documented wiki of your codebase that rebuilds itself.
Git intelligence
Hotspots, ownership, hidden coupling, and bus factor.
Architecture (C4)
C4 system context, containers, and components.
Decisions
Architectural decisions mined from eight sources.
Solutions
developers
Give Claude Code, Cursor, and any MCP client a queryable model of your repo.
teams
One shared index, one credit pool, one org install. The whole team on the same brain.
team leads
Flag the risky PRs, the hotspots, and the hidden coupling, on every pull request.
engineering leaders
See how much of your code AI wrote, whether it is healthy, and who owns it.
security
CVE triage that knows whether you actually call the vulnerable code.
enterprise
Self-hosted, air-gapped, and commercially licensed for the whole org.
Book a demo →
Guides
Code healthAI context & MCPGit intelligenceChange riskArchitectureAuto-wikiDecisions & ADRsAgent provenanceSecurityAll guides →
Compare
vs CodeScenevs DeepWikivs Sourcegraphvs Cursorvs GitClearvs SonarQubeAll comparisons →
PricingExploreBlogDocs
Star—Sign in
Start free
  1. Home
  2. Guides
  3. Auto-wiki & CLAUDE.md
AUTO-WIKI GUIDE

Auto-Wiki & CLAUDE.md: Documentation That Stays in Sync With Every Commit

How repowise writes a documentation page for every module and file, regenerates only the pages a commit touches, and generates CLAUDE.md and AGENTS.md from the same index, so your docs and your agents stay current with HEAD.

Get startedExplore live wikis
repowise auto-generated wiki page with a freshness badge
3-10
Pages regenerated per commit; everything unchanged is reused from cache, not re-billed
<30s
To re-sync the wiki after a typical single-commit change
16
Languages parsed into the graph; full-tier depth for 11, including C#/.NET
2
Editor files from one index: CLAUDE.md for Claude, AGENTS.md for Codex
By Raghav Chamadiya·Updated July 2026 · 11 min
TL;DR

repowise writes a documentation page for every module and notable file in your repo, then keeps each one current incrementally: on every commit it regenerates only the 3 to 10 pages a change affects, in under 30 seconds, and reuses every unchanged page from cache. Each page carries a confidence and freshness score with git-informed decay, so drift is visible instead of silent. The same index also generates CLAUDE.md and AGENTS.md, so one source of truth grounds your humans and your AI agents alike.

DEFINITION

Auto-generated codebase documentation is reference material an engine writes directly from your source and git history (a page per module and file describing structure, intent, and architecture) rather than docs a person hand-writes and forgets. repowise generates it hierarchically, cites the source ranges it describes, scores each page for freshness, and regenerates pages as the code changes.

repowise auto-generated codebase documentation page with a freshness and confidence score and a rebuilt-on-commit stamp
Every page documents one module or file, cites its source ranges, and carries a freshness score, so you can see at a glance whether it reflects what shipped this morning.

Why does living documentation matter?

Documentation is worthless the moment it falls behind the code. Most wiki tools hand you a snapshot and let it rot from the day it is built.

The cost is trust. A doc you cannot trust is a doc nobody reads, so the team re-derives the same context by hand, and the agent grepping your repo reconstructs it token by expensive token.

  • Stale docs mislead: a page describing last quarter's architecture sends a new hire or an agent down the wrong path.
  • Manual upkeep does not scale: nobody updates the wiki on a busy sprint, so drift is the default state.
  • Snapshot wikis decay silently: there is no signal telling you which pages have gone out of date.

repowise reclaims the wedge competitors vacated: private, self-hostable docs that stay in sync, with freshness scored on every page rather than left to rot.

How does the auto-wiki work?

Index, then generate, then score, then regenerate. The wiki is built bottom-up from the same graph and git history that powers every other repowise layer.

The pipeline is four stages.

StageWhat happens
Indexrepowise parses the repo into a tree-sitter dependency graph and reads its git history. Self-hosted, no code leaves your infrastructure.
GenerateAn LLM writes pages hierarchically (symbols compose into file pages, files into module pages, modules into a repo overview) in the style you choose.
ScoreEach page gets a confidence_score (how well source maps to claims) and a freshness_status (how recent it is vs the file's last meaningful change), decayed against git history.
RegenerateOn every commit, repowise diffs vs the last index, walks the graph to find affected pages, and regenerates only those, typically 3 to 10 pages in under 30 seconds.

File, symbol, API, infra, layer, and cycle pages are always rendered from the parsed structure, no key and no LLM call involved. The one model-written layer sits above them: the subsystem (concept) pages that group related files into a numbered tree, plus the repo overview and onboarding. With a key those are written as prose; without one they render as structural stubs you can upgrade later.

The prompt is why the output explains why, not just what. It carries the file's parsed structure and signatures, its imports and importers, top callers and callees with confidence, the 10 most significant commit messages (merges and dependency bumps filtered out), ownership and trend signals, and cross-references to existing pages.

Reproducible and idempotent. A page is keyed to its source content, so when the underlying code is unchanged the cached page is reused rather than re-billed to the LLM; re-running generation converges instead of churning. A cascade-budget knob caps how many pages one update may regenerate, so a giant refactor commit cannot blow up into hundreds of regenerations.

Resumable and crash-safe. The job system checkpoints each run to disk through a temp-file-plus-rename, so a crash mid-write cannot corrupt the checkpoint; on resume, completed pages are seeded from the vector store (the record of what was actually embedded and served) not from the checkpoint alone.

How does the auto-wiki help you?

One index, several outcomes: fresh docs, grounded agents, and editor files generated for you.

Onboarding without a tribal-knowledge tax

A new engineer opens the module page, reads the architecture and entry points up front, and follows citations into the exact source ranges. The page reflects HEAD, not the repo at some forgotten indexing date.

  • Architecture and entry points surface at the top of every module page.
  • Citations link claims to the source ranges they describe.
  • Freshness scoring tells you whether the page reflects what shipped this morning.

Grounding for your AI agents

The wiki is the retrieval layer behind repowise's MCP tools. get_answer and search_codebase return a cited answer, not a raw file dump, so your agent stops grepping and re-reading to reconstruct context it should have been handed.

Guardrail: this is documentation grounded in your source, not a chatbot guessing: every answer cites the ranges it draws from.

CLAUDE.md and AGENTS.md, generated from the same index

repowise generates CLAUDE.md for Claude and AGENTS.md for Codex from the indexed graph (an architecture summary, key modules, entry points, hotspots, and the MCP tool guide) so your coding agent gets a curated orientation file instead of an empty or hand-stale one.

  • Both files are written inside managed markers, so your own content outside the markers is preserved.
  • The CLAUDE.md in this very repository is generated output.
  • update refreshes both as the code moves; --agents / --no-agents toggles the Codex file.
generated CLAUDE.md file with architecture summary, key modules, entry points, and MCP tool guide sections
One index, two audiences: the same graph that writes the wiki writes your CLAUDE.md and AGENTS.md.

Freshness as a first-class signal

Every page tells you whether to trust it. Confidence and freshness ship by default through get_context(include=["freshness"]), and the staleness envelope (_meta.stale_warning) warns only when the index has actually diverged from HEAD. Silence means current.

TriggerWhat it does
Post-commit hookrepowise hook install runs update in the background after every local commit.
File watcherrepowise watch updates on save, between commits, without requiring a commit.
GitHub / GitLab webhookrepowise serve takes signed push events and re-syncs; on hosted, the GitHub App wires this automatically.
Polling fallbackA 15-minute background poll catches any missed webhook delivery.

Search that returns a cited answer

Search is hybrid RAG: SQLite FTS for exact keywords and a vector store for semantics, fused by reciprocal rank fusion, biased by PageRank, and expanded one hop along the dependency graph.

  • Self-hosted vectors live in LanceDB and keywords in SQLite FTS; your code never leaves your machine.
  • On the hosted plan the index is backed by Postgres with pgvector for embeddings.
  • Voyage embeddings by default; OpenAI and Gemini are also supported.

Walkthrough: generate the wiki, then keep it fresh

Step 1: Index and generate the wiki. Run repowise init to parse the repo into a graph, read its git history, and render the whole wiki from that structure, then write the subsystem pages and overview as model prose. Free-tier or air-gapped? repowise init --no-prose skips the model prose entirely, produces the same structural wiki for free, and you can layer the prose on later.

Step 2: Browse the wiki. Open the wiki index, read the architecture and entry points per module, and follow citations into the source ranges each page describes.

Step 3: Generate CLAUDE.md and AGENTS.md. The same index writes both editor files inside managed markers at the repo root: an architecture map, key modules, entry points, hotspots, and the MCP tool guide.

Step 4: Keep it fresh on every commit. Run repowise update to diff since the last sync and regenerate only the affected pages, typically 3 to 10 in under 30 seconds. Wire a post-commit hook, a file watcher, or a webhook and the wiki tracks HEAD with no human in the loop.

repowise wiki page freshness and confidence score after an incremental rebuild on a commit
After a commit, only the affected pages regenerate; each carries a freshness score, so drift is visible, never silent.

Step 5: Search the wiki. Query in the dashboard or over MCP. Hybrid RAG returns a cited answer instead of a file dump, in the dashboard and to your agent alike.

Proof: does the wiki stay true to the code?

Each figure stands alone and is reproducible on your own repo, and the engine is open source under AGPL-3.0.

ResultValue
Pages regenerated per commit3 to 10, the rest reused from cache
Time to re-sync after a typical commit< 30s
Languages parsed into the graph16, full-tier depth for 11 including C#/.NET
Editor files from one index2, CLAUDE.md (Claude) and AGENTS.md (Codex)
Selectable wiki styles4, comprehensive, reference, tutorial, caveman, no re-index to switch
Staleness envelopeevery MCP response carries index_age_days + indexed_commit; stale_warning fires only on real divergence
Self-hosted storageLanceDB (vectors) + SQLite FTS (keywords); hosted uses Postgres + pgvector
Resumable generationcheckpointed via temp-file-plus-rename; resume seeds from the vector store

Try it on your repo

Generate a wiki that stays true to your code, and a CLAUDE.md your agent can trust. The engine is open source and runs locally.

pip install repowise
repowise init                  # parse, build the graph + git history, generate the wiki
repowise init --no-prose       # skip the model prose (free-tier / air-gapped)
repowise update                # diff since last sync, regenerate only affected pages
repowise hook install          # auto-sync on every local commit
FOR YOUR ROLE

How each role uses this feature

Developers

Read fresh module pages and real why-context instead of grepping blind, and let the generated CLAUDE.md ground your coding agent on day one. Browse the wiki in the dashboard or pull cited answers over MCP with get_answer.

Enterprise

Self-host the whole wiki inside your firewall: vectors and keyword index live on your infrastructure and your code never leaves it. One generated index keeps docs provably tracking HEAD across every team and repo, no waitlist.

FREQUENTLY ASKED

Questions, answered

How does the wiki stay fresh?

On every commit repowise diffs against the last index, walks the dependency graph to find the affected pages, and regenerates only those, typically 3 to 10 pages in under 30 seconds. Every page also carries a confidence and freshness score with git-informed decay, so when the code underneath a page changes the page ages and regenerates automatically instead of quietly drifting out of date.

Does repowise generate CLAUDE.md and AGENTS.md?

Yes. From the same indexed graph it writes CLAUDE.md for Claude and AGENTS.md for Codex (an architecture summary, key modules, entry points, hotspots, and an MCP tool guide) inside managed markers at your repo root, so your own content outside the markers is preserved. The CLAUDE.md in repowise's own repositories is generated output.

Is it public like DeepWiki?

No. DeepWiki and similar tools generate a public-ish snapshot you log into. repowise generates a private wiki you self-host: it stays current on every commit, adds code health, git risk, and decision archaeology around the docs, and runs on private repos today with no waitlist.

Where is the wiki stored, and does my code leave my machine?

Self-hosted, no: the wiki and its indexes live on your infrastructure (LanceDB for vectors and SQLite FTS for keywords) and your code never leaves your machine. On the hosted plan the index is backed by Postgres with pgvector for embeddings, and the LLM provider sees the generation prompt but repowise does not log or train on it.

What if I don't want to spend tokens on LLM generation?

Run repowise init --no-prose. You still get a complete wiki rendered from structure, plus hotspots, ownership, dead code, the dependency graph, and decision archaeology, just no model-written subsystem prose. Layer that on later with repowise generate.

What happens if a generation run is interrupted?

Generation is resumable. The job system checkpoints each run to disk through a temp-file-plus-rename so a crash mid-write cannot corrupt the checkpoint, and on resume completed pages are seeded from the vector store (the record of what was actually embedded and served) rather than from the checkpoint alone.

Last reviewed: July 2026

Generate a wiki that stays true to your code

Get startedExplore live wikis
KEEP EXPLORING
All guides

The full set of how-it-works guides across every repowise capability.

Feature: Auto-wiki & CLAUDE.md

The concise feature page with the proof strip and CTA.

Auto-generate codebase documentation with AI

The deep-dive spoke on generating docs straight from source and git history.

How to generate CLAUDE.md

Step-by-step: turn your index into an editor file your agent can trust.

Keeping documentation fresh and killing stale docs

Why freshness scoring and git-informed decay beat a snapshot wiki.

See it on a real repo

Browse live wikis generated by repowise, no signup.

repowiserepowise

Codebase intelligence for AI agents. Open source under AGPL-3.0, hosted SaaS for teams.

Features
  • Code health
  • Agent provenance
  • AI context (MCP)
  • Change risk
  • Security
  • Auto wiki
  • Git intelligence
  • Architecture (C4)
  • Decisions
Solutions
  • For developers
  • For teams
  • For team leads
  • For engineering leaders
  • For security
  • For enterprise
Compare
  • vs CodeScene
  • vs DeepWiki
  • vs Sourcegraph
  • vs Cursor
  • vs GitClear
  • vs SonarQube
  • vs Snyk Code
  • vs Codacy
  • vs Code Climate / qlty
  • vs Qodo
  • vs Greptile
  • vs Swimm
  • vs CodeRabbit
  • vs CodeGraph
  • vs Graphify
  • vs Serena
  • vs code-review-graph
  • All comparisons
Guides
  • Code health
  • AI context & MCP
  • Git intelligence
  • Change risk
  • Architecture
  • Auto-wiki
  • Decisions & ADRs
  • Agent provenance
  • Security
  • All guides
Product
  • Pricing
  • PR Bot
  • Browse indexed repos
  • Health leaderboard
  • Book a demo
Resources
  • GitHub
  • Docs
  • Benchmarks
  • Blog
  • Discord
About
  • Founder
  • Architecture
  • Contact
Legal
  • Privacy
  • Terms
  • Security
All systems normal
© 2026 repowise. AGPL-3.0.hello@repowise.dev
Featured on Aura++