Skip to main content

ChunkHound

Local-first codebase intelligence

Tests License: MIT 100% AI Generated Discord

Your AI assistant searches code but doesn't understand it. ChunkHound researches your codebase—extracting architecture, patterns, and institutional knowledge at any scale. Integrates via MCP.

Features

  • cAST Algorithm - Research-backed semantic code chunking
  • Multi-Hop Semantic Search - Discovers interconnected code relationships beyond direct matches
  • Semantic search - Natural language queries like "find authentication code"
  • Regex search - Pattern matching without API keys
  • Local-first - Your code stays on your machine
  • 32 languages with structured parsing
    • Programming (via Tree-sitter): Python, JavaScript, TypeScript, JSX, TSX, Java, Kotlin, Groovy, C, C++, C#, Go, Rust, Haskell, Swift, Bash, MATLAB, Makefile, Objective-C, PHP, Dart, Lua, Vue, Svelte, Zig
    • Configuration: JSON, YAML, TOML, HCL, Markdown
    • Text-based (custom parsers): Text files, PDF
  • MCP integration - Works with Claude, VS Code, Cursor, Windsurf, Zed, etc
  • Real-time indexing - Automatic file watching, smart diffs, seamless branch switching, and explicit backend selection (watchdog, watchman, polling)

Documentation

Visit chunkhound.ai for documentation:

Requirements

Installation

# Install uv if needed
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install ChunkHound
uv tool install chunkhound

Quick Start

  1. Create .chunkhound.json in project root
{
  "embedding": {
    "provider": "voyageai",
    "api_key": "your-voyageai-key"
  },
  "llm": {
    "provider": "claude-code-cli"
  }
}

Note: Use "codex-cli" instead if you prefer Codex. Both work equally well and require no API key.

  1. Index your codebase
chunkhound index
  1. Search changed code in recent commits
# Last N commits
chunkhound search "authentication changes" --last-n 20

# Changes introduced by that commit (diff against its parent; root commits use empty tree)
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).

For configuration, IDE setup, and advanced usage, see the documentation.

Why ChunkHound?

Approach Capability Scale Maintenance
Keyword Search Exact matching Fast None
Traditional RAG Semantic search Scales Re-index files
Knowledge Graphs Relationship queries Expensive Continuous sync
ChunkHound Semantic + Regex + Code Research Automatic Incremental + realtime

Ideal for:

  • Large monorepos with cross-team dependencies
  • Security-sensitive codebases (local-only, no cloud)
  • Multi-language projects needing consistent search
  • Offline/air-gapped development environments

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

chunkhound_native-5.2.0-cp310-abi3-win_amd64.whl (744.9 kB view details)

Uploaded CPython 3.10+Windows x86-64

chunkhound_native-5.2.0-cp310-abi3-manylinux_2_34_x86_64.whl (924.3 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.34+ x86-64

chunkhound_native-5.2.0-cp310-abi3-macosx_11_0_arm64.whl (801.4 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file chunkhound_native-5.2.0-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for chunkhound_native-5.2.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ce2d9db93f488e34d01d1e55c4dee17445e245941cda5aeec1d6163fa5b2bba9
MD5 c02bc0a5b87bba278d73f5898637d8e2
BLAKE2b-256 f1bbb174668e6b1e91af2b80fb8cb7ca19fb793849ab149113dc2d7e3a69d3bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for chunkhound_native-5.2.0-cp310-abi3-win_amd64.whl:

Publisher: release.yml on chunkhound/chunkhound

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chunkhound_native-5.2.0-cp310-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for chunkhound_native-5.2.0-cp310-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f9488f6bbbe9f29ff797acb034df86bdadd09ab9c9c85c4e5fad8f8f907faec9
MD5 06b56fd379794da49024d477679b9671
BLAKE2b-256 d6fd9d88dc60e46c2ca2579762540bd7e2a1730226441d1ee08c9fdbad43b2b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for chunkhound_native-5.2.0-cp310-abi3-manylinux_2_34_x86_64.whl:

Publisher: release.yml on chunkhound/chunkhound

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chunkhound_native-5.2.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chunkhound_native-5.2.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e08ce480134bfb68916b577b699e0bcf965c3fd2fbb57ff8e99252378b3c46d4
MD5 ca7c80a37ef07829911c969cbab8b3fc
BLAKE2b-256 b824c1653de2e3ef5cc2d7e3d167adaeea3314011c3e5b7c286ff3f81c7b15b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for chunkhound_native-5.2.0-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on chunkhound/chunkhound

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

5.2.1

3 files

This release

5.2.0 This release

3 files

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page