Research before editing
Give agents cited architecture context, relevant files, recent changes, and external constraints before they generate code.
Try: Ask: "How does auth work?" then "What changed in the last 20 commits?"
Your entire engineering context, deeply understood
Open-source codebase intelligence that gives agents and teams cited context across current code, git history, and technical web research.
Local-first · Dozens of languages & file types · Cited answers · Git history research · Pinpoint web research
uv tool install chunkhound “We’ve repeatedly demonstrated compressing what used to take 2–3 months down to 2–3 days. Claude Code orchestrates tens to hundreds of deep research calls over our monorepo, zooming into each subsection systematically.” — Ofir Rozenfeld, AI Transformation Product Manager at Applied Materials
Agents can generate code, but they still miss the context that makes software safe to change: how behavior flows across files, what changed across a branch or release, and which external constraints matter. Reviewers, support, and product teams hit the same wall when large PRs, merge conflicts, bugs, and release notes need implementation-backed explanation instead of guesses. ChunkHound turns current code, git history, and technical web research into cited context before anyone edits, reviews, debugs, or explains software.
USE CASES
The same cited context supports the jobs where missing context hurts most: editing code, understanding changes, debugging incidents, and reconciling implementation with external docs.
Give agents cited architecture context, relevant files, recent changes, and external constraints before they generate code.
Try: Ask: "How does auth work?" then "What changed in the last 20 commits?"
Turn branch diffs, commit ranges, tags, and specific commits into cited reviewer briefs, release summaries, and changelog drafts.
Try: Ask: "What changed on main..HEAD for reviewers?"
Turn stack traces, webhook failures, and customer reports into cited explanations grounded in code, history, and external constraints.
Try: Ask: "Why would webhook retries fail?"
Pinpoint cited docs, APIs, issues, and articles, then connect external evidence to local implementation context.
Try: Ask: "Do our OAuth refresh tokens match current guidance?"
THE APPROACH
ChunkHound parses your code with cAST — AST-aware chunking backed by
Carnegie Mellon research (arXiv:2506.15655). It then grounds answers in the places software understanding actually lives: current code, architecture, git history, external docs, and generated knowledge.
TOKEN EFFICIENCY
When an agent doesn't understand your architecture, it guesses. Wrong guesses turn into retries, polluted context, and wasted tokens. ChunkHound shifts that work earlier: one research call can surface the auth chain, the existing utility, and the data model change before code gets written.
Blind agent loop
Research-first workflow
“I would pay for ChunkHound. The code research is that good.” — @FlatTreNeb, Reddit
CAPABILITIES
Follows semantic bridges across files and subsystems. Three hops surface architectural relationships that plain text matching misses.
3-hop traversalFinds missing parts of the answer by clustering evidence, spotting uncovered concepts, and filtering noise before synthesis.
Elbow detectionCode-aware chunking from Carnegie Mellon research that improves retrieval quality before search and research even begin.
arXiv:2506.15655Explores promising files from multiple angles, so one subsystem can be understood by behavior, responsibilities, and patterns.
Aspect-based queriesOne call produces a cited markdown explanation of how the system works, grounded in the files and components behind the answer.
Cited reportsCombines conceptual discovery with exact symbol and regex tracing, then reranks everything against the original question.
Hybrid searchAsks by last N commits, commit hash, tag, branch, or range to explain large PRs, release ranges, and why behavior changed.
--last-n · --commit-range · --commit-hashFinds the cited external docs, APIs, issues, and articles your implementation depends on, then brings them into agent context.
Cited URL researchTurns research-backed understanding into a searchable documentation site generated directly from the codebase.
5 levels“Chunkhound has been an absolute beast in reading multiple large repos in such extents that would take a human days or the plain claude code setup multiple attempts to get it (at least somewhat) right.” — @flrk, co-founder of Kimara AI
PROVEN AT SCALE
ChunkHound indexes your entire codebase on your own machine — no Kubernetes, no GPU servers, no vendor lock-in — and can run fully local with local providers. Open source, MIT licensed, and proven on 50M+ line codebases in production today.
| Typical setup | ChunkHound | |
|---|---|---|
| Kubernetes cluster | often required | not needed |
| H100 / GPU server | often required | not needed |
| Vendor subscription | often required | MIT licensed |
| Zero code egress | rare | with local providers |
| Closed, proprietary | yes | open source |
50M+ lines · 1 developer laptop · local-provider option · MIT licensed · production today
echo .chunkhound.json >> .gitignore
cat > .chunkhound.json <<'CHUNKHOUND_EOF'
{
"embedding": {
"provider": "voyageai",
"model": "voyage-3.5",
"api_key": "<YOUR_VOYAGE_API_KEY>"
},
"llm": {
"provider": "anthropic",
"api_key": "<YOUR_ANTHROPIC_API_KEY>"
}
}
CHUNKHOUND_EOF
mkdir -p .cursor
cat > .cursor/mcp.json <<'CHUNKHOUND_EOF'
{
"mcpServers": {
"ChunkHound": {
"command": "chunkhound",
"args": [
"mcp"
]
}
}
}
CHUNKHOUND_EOF
chunkhound index . Local setup
Set up the models before running ChunkHound:
.chunkhound.json holds your API keys
The first command adds it to .gitignore so you
don't commit secrets. Replace the <YOUR_*_API_KEY> placeholders with real keys before running. Local
OpenAI-compatible backends still need an explicit
model. Need Azure OpenAI, a self-hosted endpoint, or a proxy?