All codebase-snapshot documentation
Every page on this site, grouped by the job you are doing. If you are new, start with the overview, then installation, then the CLI reference.
Start here
- Overview and quick start — what the tool does, install, first run and the shape of the output.
- Installation — npm, yarn, pnpm, bun, npx, version pinning and a shadowed npx.
- CLI reference — every command, option, default and exit code.
- Configuration — every setting, the 25 project presets, budgets and hooks.
- Snapshot output — parts, manifest, reports and the schema.
- AI agents — the machine-readable contract and the installable skill.
Core workflows
- Impact reports — what a change reaches and which tests to run.
- Change Guard — the untouched consumers, tests and routes after an edit, with a hook mode for Claude Code, Copilot and Codex.
- Briefs — one redacted, bounded review pack.
- MCP server — transports, sessions, resources and protocol details.
- MCP server for a codebase — setup for Claude, Cursor and generic clients, the seven tools, security and limits.
- MCP tools — every tool schema and an example call.
- snapshot_context — cited, line-numbered context in one call.
- Health — hashes, secrets, host paths, accounting and freshness.
- Serve — the browser page and the MCP endpoint on one local port.
- Remote sources — shallow, SSRF-safe cloning.
- Delta snapshots — send only what changed since a base.
- Slices — a snapshot for one question.
- Token budgets — fit a repository into a window by selecting whole files.
- Benchmarks — measured tokens and time on ten public repositories.
- Workspaces — one snapshot per member, plus an index.
- Signing — Ed25519 signatures and verification.
Guides and concepts
- LLM codebase context — what it is, why raw dumps fail, and the four practical approaches.
- How to feed a repository to Claude or ChatGPT — the end-to-end recipe.
- Budgeting LLM context — choose maxPartBytes from the destination.
- How many tokens is a codebase? — the arithmetic and a budget table.
- Stale context is your bug — detect drift and gate it in CI.
- Glossary — codebase snapshot, token budget, manifest, drift, MCP, AX and more.
- FAQ — direct answers about MCP, tokens, secrets, CI and comparisons.
Comparisons
- vs repomix — two ways to pack a repository, and when repomix is the better fit.
- vs gitingest — a CLI artefact versus a URL-to-text trick.
- vs code2prompt — a prompt versus an indexed artefact.
Operations and trust
- Migration to 0.21 — the seven-tool MCP surface, live impact and every breaking change.
- Deploy — a container, compose file and systemd timer.
- Security review — the threat model, controls and residual risks.
- Troubleshooting — every message and its one-line fix.
- About this project — who maintains it, how claims are tested and the editorial policy.
Machine-readable
- llms.txt — a compact index for agents.
- llms-full.txt — every page in one file.
- Sitemap — every canonical URL.