Skip to main content

Local-first codebase intelligence for AI assistants via MCP

Project description

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.github.io for complete guides:

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

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

Project details


Download files

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

Source Distribution

chunkhound-5.1.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distributions

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

chunkhound-5.1.0-py3-none-win_amd64.whl (12.5 MB view details)

Uploaded Python 3Windows x86-64

chunkhound-5.1.0-py3-none-manylinux_2_34_x86_64.whl (6.6 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ x86-64

File details

Details for the file chunkhound-5.1.0.tar.gz.

File metadata

  • Download URL: chunkhound-5.1.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chunkhound-5.1.0.tar.gz
Algorithm Hash digest
SHA256 2dc9756ccc7e8f1647fe23d436d4ac7d78ee8310b49c42be50507a1954f879a2
MD5 b05d5df8863675ae564fc37ffeab0121
BLAKE2b-256 3c4169a9312764e4af8059ad6691f8b5a0f50f2b98af9dd19ae78bcaf5cee51a

See more details on using hashes here.

Provenance

The following attestation bundles were made for chunkhound-5.1.0.tar.gz:

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-5.1.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: chunkhound-5.1.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 12.5 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chunkhound-5.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 922874596082593817b39699370daa848db1ee1fd2d5ae3612a4f8777ad2b7d1
MD5 8534eb33a90ddb2f900b74155693bade
BLAKE2b-256 ee5d154bb63912d59b364b3502b3ff688ca77fdce25fd862dd6c2428862c229e

See more details on using hashes here.

Provenance

The following attestation bundles were made for chunkhound-5.1.0-py3-none-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-5.1.0-py3-none-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for chunkhound-5.1.0-py3-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6ce8437cc0711db356a1fc786206ebee115cfaceb5ba09032bd5716b17008b2f
MD5 7e729c479b66b56afccdb87d296acff8
BLAKE2b-256 39c97521cc84c8ceab9c8648110c989fea6c7815ece281d5588ae4ce204af0ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for chunkhound-5.1.0-py3-none-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.

Supported by

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