chunkhound
ChunkHound is a Python-based codebase search and analysis tool that uses semantic chunking and multi-hop search to help developers understand code relationships and patterns. It runs locally, supports 32 programming languages, and integrates with AI assistants via the Model Context Protocol (MCP).
Key facts
Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.
| Field | Value |
|---|---|
| Repository | chunkhound/chunkhound |
| Owner | chunkhound |
| Primary language | Python |
| License | MIT — OSI-approved |
| Stars | 1.4k |
| Forks | 108 |
| Open issues | 100 |
| Latest release | v5.1.0 (2026-05-20) |
| Last updated | 2026-07-07 |
| Source | https://github.com/chunkhound/chunkhound |
What chunkhound is
ChunkHound implements a research-backed cAST algorithm for semantic code chunking, combines vector-based semantic search with regex pattern matching, and provides real-time incremental indexing using Tree-sitter for structured parsing. It operates as a local-first service with optional integrations to VoyageAI, OpenAI, Anthropic, or local Ollama for embeddings and LLM capabilities.
Get the chunkhound source
Clone the repository and explore it locally.
git clone https://github.com/chunkhound/chunkhound.gitcd chunkhound# follow the project's README for install & configurationNeed it deployed, integrated, or customized instead? DEV.co ships production installs.
Best use cases
Implementation considerations
- Requires Python 3.10+ and uv package manager; verify compatibility with existing development environment and CI/CD tooling.
- API keys (VoyageAI, OpenAI, Anthropic, or local Ollama) must be configured upfront; regex-only search works offline but semantic search requires embeddings provider.
- Initial indexing and real-time file watching (via watchdog, watchman, or polling) consume CPU and disk I/O; validate performance on target codebase size and machine specs.
- Tree-sitter bindings for all 32 languages must be available; verify language support matches your project's tech stack before full rollout.
- MCP integration with Claude, VS Code, Cursor, and other tools requires configuration of server endpoints and credential management in client applications.
When to avoid it — and what to weigh
- Real-Time Collaborative Code Review — If your workflow requires instant multi-user synchronized analysis of code changes, ChunkHound's local-first indexing model is not designed for distributed real-time collaboration without external infrastructure.
- Existing Heavy Investment in Knowledge Graphs — If your organization has established knowledge graph infrastructure for code relationships, migrating to ChunkHound would require rebuilding semantic metadata without clear migration path for existing relationship data.
- Small Codebases with Simple Keyword Search — For small projects or teams where grep/IDE built-in search suffices, ChunkHound introduces operational overhead (indexing, API key management) that does not justify the cost.
- Strict No-Dependency Environments — ChunkHound requires Python 3.10+, uv package manager, and Tree-sitter binaries. Air-gapped or minimal dependency deployments may face installation and maintenance friction.
License & commercial use
ChunkHound is licensed under the MIT License, a permissive OSI-approved license that allows commercial use, modification, and distribution with minimal restrictions, provided the license and copyright notice are retained.
MIT License permits commercial use without requiring special permission, attribution, or fees. However, users should verify that all dependencies (Tree-sitter, uv, external API integrations) comply with their own commercial policies. Consult legal review before embedding in proprietary products.
DEV.co evaluation signals
Editorial assessment — not user reviews. Directional, with an explicit confidence level.
| Signal | Assessment |
|---|---|
| Maintenance | Active |
| Documentation | Strong |
| License clarity | Clear |
| Deployment complexity | Moderate |
| DEV.co fit | Good |
| Assessment confidence | High |
Local-first design means source code does not leave the machine unless embeddings provider is cloud-based (VoyageAI, OpenAI) or LLM calls are made to external APIs. Regex-only search and local Ollama enable fully offline operation. Risks include: credential exposure in .chunkhound.json config files, dependency supply chain (Tree-sitter, transitive Python packages), and file-watching privileges. No security audit, penetration test, or CVE history provided in data.
Alternatives to consider
OpenAI Embeddings + Vector DB (Pinecone, Weaviate)
Established RAG pipeline for code search, but requires cloud APIs and ongoing re-indexing. Lacks local-first guarantee and code research features; simpler to integrate with existing LLM workflows.
Sourcegraph/Zoekt
Powerful code search engine with exact matching and regex, mature UI, and multi-repo support. Does not include semantic search or AI-assisted code research; better for teams with heavy code review and audit requirements.
GitHub Copilot + IDE Built-Ins
Integrated AI code assistance with zero configuration, but limited to active editor context and does not support proactive codebase research across language boundaries or offline use.
Build on chunkhound with DEV.co software developers
Evaluate ChunkHound for your team's code research, onboarding, and cross-team dependency discovery workflows. Start with regex search (no API keys), then add semantic search when ready.
Talk to DEV.coRelated open-source tools
Surfaced by semantic similarity across the DEV.co open-source index.
Related on DEV.co
Explore the category and the services that help you build with it.
chunkhound FAQ
Do I need API keys to use ChunkHound?
What happens to my source code?
How does ChunkHound compare to traditional RAG?
Can I integrate ChunkHound with my IDE or AI assistant?
Custom software development services
DEV.co is a software development agency delivering custom software development services to companies building on open source. Our software developers and web developers design, integrate, and ship production systems — spanning web development, APIs, AI, data, and cloud. If chunkhound is part of your rag frameworks roadmap, our team can implement, customize, migrate, and maintain it.
Need Local-First Codebase Intelligence?
Evaluate ChunkHound for your team's code research, onboarding, and cross-team dependency discovery workflows. Start with regex search (no API keys), then add semantic search when ready.