Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ChunkHound

ChunkHound

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

CI PyPI License: MIT 100% AI Generated Discord

Getting Started · Configuration · CLI Reference


Requirements

  • Python 3.10+
  • uv — install via curl -LsSf https://astral.sh/uv/install.sh | sh
  • API keys (optional — regex search works without any):

AI writes code blind

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.

Deep understanding for four context-heavy jobs

ChunkHound applies codebase understanding to the workflows where missing context hurts most.

Research before editing

Give coding agents grounded architecture context, relevant files, recent changes, and external constraints before they write code.

Understand large PRs and releases

Turn branch diffs, commit ranges, tags, and specific commits into cited engineering briefs for review, release notes, and changelog drafts.

Trace bugs and incidents

Turn symptoms, stack traces, and customer reports into likely code paths, recent changes, and external constraints.

Reconcile code with external docs

Pinpoint the technical docs, APIs, issues, and articles your implementation depends on, then connect that external evidence to local code research.

What you can ask

Ground an agent before edits

chunkhound research "How does authentication work?"
chunkhound search "JWT refresh token validation"
chunkhound research "What changed in auth recently?" --last-n 20

Understand a large PR or release

chunkhound research "Summarize the behavior changes on this branch for reviewers" --commit-range main..HEAD
chunkhound research "Draft changelog bullets for billing since v2.4" --commit-range v2.4..HEAD
chunkhound search "database migration" --commit-hash abc1234

Get context before resolving conflicts

chunkhound research "Why did auth session handling change on each side?" --commit-range main..feature/auth
chunkhound search "session refresh conflict" --last-n 50

Trace a bug with external constraints

chunkhound research "why would webhook retries fail?"
chunkhound research "what changed in webhook handling this week?" --last-n 30
chunkhound websearch "Stripe webhook retry schedule"

Explain product behavior

chunkhound research "What happens when a user cancels a subscription?"
chunkhound research "What changed in billing since v2.4?" --commit-range v2.4..HEAD

What powers deep understanding

  • Semantic code search — find relevant code by meaning, not only exact text
  • Cited code research — explain behavior across files with source citations
  • Git history research — ask by last N commits, commit hash, tag, branch, or range to understand large PRs and releases
  • Pinpoint web research — bring cited external docs, APIs, issues, and articles into the same workflow as local code research
  • Autodoc — generate shareable docs from code-backed research
  • Local-first indexing — keep code search and indexing under your control
  • Python, JavaScript, TypeScript, Java, Go, Rust, C/C++, and more via Tree-sitter

Install

uv tool install chunkhound

Try it

chunkhound index .
chunkhound research "How does authentication work?"

Index once, ask a real architecture question, and get a grounded answer with citations. Regex search works without providers. Semantic search requires an embedding provider. Deep research requires an LLM provider and an embedding provider with reranking support; web research uses the same provider stack. Choose local providers for zero-code-egress setups.

For a full configurable setup, create .chunkhound.json in your project root:

{
  "embedding": { "provider": "voyageai", "api_key": "your-key" },
  "llm": { "provider": "claude-code-cli" }
}

For editor integration, all provider options, and advanced configuration:

→ chunkhound.ai/docs/getting-started


Search git history

In addition to searching your indexed codebase, ChunkHound can search code changes across git history — useful for understanding what changed in a PR, a release, or since a specific commit.

# Last N commits
chunkhound search "authentication changes" --last-n 20

# Changes introduced by a specific commit
chunkhound search "database migration" --commit-hash abc1234

# Custom git range
chunkhound search "API changes" --commit-range v2.0..HEAD

# Deep research over recent changes
chunkhound research "what changed in the auth module?" --last-n 50

--vector-source controls scope: diff (default, changed code only), both (merges diff + DB), db (ignore diff).

Good fit

ChunkHound is especially useful for:

  • large repos and monorepos
  • multi-language codebases
  • legacy systems
  • local-only or security-sensitive environments
  • engineering teams that want agents, support, and product questions grounded in the same code index

Community

ChunkHound is MIT licensed, open source, and community built.

License

MIT

Metadata

Release files for chunkhound-native 6.0.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for chunkhound-native 6.0.0a1
File
chunkhound_native-6.0.0a1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
chunkhound_native-6.0.0a1-cp310-abi3-manylinux_2_34_x86_64.whl CPython 3.10 abi3 Linux glibc 2.34+ x86-64 Details
chunkhound_native-6.0.0a1-cp310-abi3-manylinux_2_34_aarch64.whl CPython 3.10 abi3 Linux glibc 2.34+ ARM64 Details
chunkhound_native-6.0.0a1-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 107.6 MB

Release files / chunkhound_native-6.0.0a1-cp310-abi3-win_amd64.whl

Download URL chunkhound_native-6.0.0a1-cp310-abi3-win_amd64.whl
Size 16.4 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d5de171a80995235e8c84a30e9e3a9d45fdf38fe5849fee384653b1bff460cd2
BLAKE2b-256 checksum
How to use checksums
a1b17f46e56001e406228f13f8407bd616be1436c90825b0333f35638c5c347e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release files / chunkhound_native-6.0.0a1-cp310-abi3-manylinux_2_34_x86_64.whl

Download URL chunkhound_native-6.0.0a1-cp310-abi3-manylinux_2_34_x86_64.whl
Size 27.5 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
5995e8f70df34b77e9d3b61593e9080de24667f2afd4fa3e865f424bdb25a99f
BLAKE2b-256 checksum
How to use checksums
53142ecb5dc2972e6cb2ca2b72ba7d8e74a9535f021c4db6998930040f502bd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release files / chunkhound_native-6.0.0a1-cp310-abi3-manylinux_2_34_aarch64.whl

Download URL chunkhound_native-6.0.0a1-cp310-abi3-manylinux_2_34_aarch64.whl
Size 25.3 MB
Tags CPython 3.10 Linux glibc 2.34+ ARM64 abi3
SHA-256 checksum
How to use checksums
1cf5bb1da6d5a38b55704d4747ec97e2a15e72414e99e6faf3c880b2c8d0321b
BLAKE2b-256 checksum
How to use checksums
e56ec22f0ee03266e1c394218fe9dc74c4d183283896b4801eaf90ccc69c0750
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release files / chunkhound_native-6.0.0a1-cp310-abi3-macosx_11_0_arm64.whl

Download URL chunkhound_native-6.0.0a1-cp310-abi3-macosx_11_0_arm64.whl
Size 38.5 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4bd7ccd8c5ae4176a43720a23b7ff89672cde9305eab6e75c0c51d6dc6ba09d8
BLAKE2b-256 checksum
How to use checksums
1f69452c8df86c2b8074e7bad1b783bf506a8a8ca54dc7ee75cd7b3657c34c69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release history Release notifications | RSS feed

6.0.0

4 release files

This release

6.0.0a1 This release

4 release files

5.2.1

3 release files

5.2.0

3 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page