Changelog
All notable changes to ChunkHound will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
Added
- Added Enterprise Setup, pi-schematic, and Workflows documentation pages.
- Vercel AI Gateway LLM provider — Vercel AI Gateway is now supported as an OpenAI-compatible LLM provider (
provider: vercelorCHUNKHOUND_LLM_PROVIDER=vercel). Like every registry provider it requires an explicitmodel; the configurator’s Vercel preset defaults todeepseek/deepseek-v4.1-flash. The gateway documentsmax_tokensas optional, so provider-managed synthesis omits the cap as it does for OpenRouter, and structured calls probe the same reasoning-disable payload. - FAQ page — The
/docs/faq/guide answers common privacy, deployment, language-support, and license questions, compares ChunkHound with competing code-search and research tools, and emits JSON-LDFAQPageschema derived from the same copy. It sits in the docs sidebar and the top nav like the other featured guides; the retired/faq/route redirects there. - Build-time language catalog — The site build derives its supported-language figures from the backend
Languageenum viascripts/generate_site_language_catalog.py, so the FAQ cannot drift from what the parsers support.
Changed
rerank()raisesRerankEndpointErrorinstead of raw httpx errors. The OpenAI and VoyageAI providers no longer surfacehttpx.HTTPStatusError,httpx.ConnectErrororhttpx.TimeoutExceptionfrom reranking; catchRerankEndpointErrorimported fromchunkhound.core.exceptions(also re-exported fromchunkhound.providers.embeddings) and read.status_code(also.error_type) instead of.response.status_code. The class subclassesEmbeddingProviderErrorandRuntimeError, so existingRuntimeErrorhandlers still catch it. The httpx cause is intentionally not chained, because its message embeds the configured endpoint URL; the redacted message keeps only the status and exception type.- Site configurator provider search counts query matches only. The checked provider row still stays visible, but the status line no longer counts it as a hit, so a query that matches nothing announces “No providers found” instead of “1 result”.
- Site configurator emits explicit VoyageAI models. Configurator-generated configs pin
voyage-4-lite+rerank-3-liteexplicitly, so new setups adopt the current recommended models. Existing configs are unchanged: the runtime fallback whenembedding.modelis unset staysvoyage-3.5(andrerank-2.5for reranking), and the bundledvoyage-3.5→voyage-4-litesuggestion stays a print-only hint. - Package description updated to “Local-first research engine for AI agents via MCP, with a CLI companion”, matching the refreshed site positioning.
- Site configurator: the Ollama-embed preset no longer bundles a reranker. Generated configs for Ollama embedding now contain only embedding settings; add a reranker explicitly if you want one.
- Site configurator default selections changed. New visitors now start with Pi as the default agent and Vercel AI Gateway (DeepSeek V4.1 Flash) as the default research provider (previously Cursor and Anthropic).
- Site configurator’s gateway presets ship
deepseek/deepseek-v4.1-flash. The Vercel and OpenRouter presets pin the same model, which the catalogs list without an expiration date; Mercury 3 carries a 2026-11-08 expiration on OpenRouter. Model IDs were re-verified against live catalogs in 2026-11. - Site configurator’s Requesty preset now ships
deepseek/deepseek-v4.1-flash. The preset replacesanthropic/claude-sonnet-5with a fast, cost-efficient DeepSeek model for a lower-cost default route. - Site configurator adds a validated reranker editor. The rebuilt configurator lets you set the reranker URL, format, and model, and validates them client-side against the backend rule (
rerank_modelorrerank_formatrequiresbase_urlor an explicitrerank_url), flagging the URL field so the emitted config passes backend validation. - Backend validates
embedding.rerank_urlat config load when reranking is active. A validhttp:///https://URL is accepted with any scheme casing and normalized to lowercase (endpoint path, query, and fragment stay unchanged); malformed forms (http:/…,//host,http://, embedded whitespace) are rejected instead of being silently joined into a broken endpoint. An unusedrerank_urlno longer blocks config load. The site configurator applies the same rules — including the backend’s Unicode whitespace class — and lowercases the scheme in the emitted config. rerank_format: voyagerequiresprovider: voyageai. A config that paired the Voyage format with another embedding provider was accepted at 6.1.0 and fell back to auto-mode payloads at rerank time; it now fails at config load for every command. Setembedding.provider: voyageai, or usererank_format: auto,cohere, ortei.- Chrome launch handling is simplified to a single bounded attempt. The previous retry/backoff/deadline machinery and the exit-time cleanup net are removed.
_managed_browsercreates and owns thezd.Browserbeforestart(), boundsbrowser.start()at 20 s, bounds the failed-start CDP close at 2 s, and reaps the owned process and temporary profile on failure, cancellation, or a failed stop. This reverses the accidental scope increase while keeping cold-start tolerance (0.5 s × 30 connection tries ≈ 15 s) and cleanup ownership. - Documentation site upgraded to Astro 7 with a refreshed homepage, architecture page, and a rebuilt configurator/nav/hero experience.
- Homepage contributor count is generated at build time. The homepage receipt now shows the count resolved from the GitHub contributors API, its as-of date, and a verify link.
npm run build,dev, andcheckfetch it first — CI passesGITHUB_TOKENbecause an unauthenticated address is limited to 60 requests/hour. An unreachable API, empty result, or exhausted quota fails the build instead of publishing a stale number; setCHUNKHOUND_CONTRIBUTORS_JSONto an API-shaped snapshot for an offline or hermetic run. Accounts are deduplicated by immutable id, and bot/agent logins are excluded. CHUNKHOUND_WEBSEARCH_TIMEOUT_SECONDSis now the websearch response deadline — It previously bounded only the research subprocess; it now covers query expansion, DDG, fetch, and research. Discovery is capped atmin(60, total/4). Cancellation cleanup can outlive the deadline, so a one-shot CLI process may wait briefly during event-loop shutdown. If you tuned this value, add headroom (up to 60s) for discovery. Non-positive or non-finite values fall back to the 600s default.- Websearch pages chunk by line window — Fetched pages are split into ≤1,200-character line windows (
page:Nsymbols) instead of markdown-heading chunks, to stay under embedding provider limits. - Transient search streams in-process — Git-history and web-page search stream chunks through a bounded vector cache and top-K heap instead of loading everything into memory;
MAX_DIFF_CHUNKStruncation and the_quickresearchsubprocess are gone. SetCHUNKHOUND_VECTOR_CACHE_MAX_ENTRIES=0to disable the cache,CHUNKHOUND_VECTOR_CACHE_TTL_SECONDSto change expiry, andCHUNKHOUND_VECTOR_SEARCH_OVERFETCH_FACTORto tune the candidate pool (default 5). With--vector-source both, each page merges overfetch-sized heaps from diff and DB (totalis a lower bound on that merged top-K);offset+page_sizecannot exceed the candidate windowmin(max(page_size × overfetch factor, 50), 2000), and requests outside it fail explicitly.CHUNKHOUND_WEBSEARCH_TIMEOUT_SECONDSis the response deadline: discovery (query expansion + DDG) is capped at 60s or a quarter of the total; fetch and research share the remainder. Cancellation cleanup can outlive the deadline, including during one-shot CLI shutdown. - Diff/web
path_filtermatches indexed search —vector_source=diff|bothnow applies the same path rules as DB search: file filters (src/foo.py) match by path suffix instead of returning nothing, and directory filters match a nested folder anywhere in the path (servicesmatcheschunkhound/services/...). - Web research survives unstable pages — A fetched page evicted from the in-process source cache is refetched on demand; if the refetch fails or the content changed since first read, that page is dropped from the rest of the research with a
Dropped from research: …fetch warning instead of failing the run. Research still fails if every usable source is dropped. - Removed
DiffAwareSearchService— The unused preloaded-vector git-diff search facade is gone; useTransientSearchService, which git-history search already uses.
Fixed
- Windows on Python 3.12: parse workers no longer die at start-up under load — On Python 3.12 (and 3.13 before 3.13.4), a WMI query that the standard library’s
platformmodule made while a parse worker started could close one of the worker’s handles under CPU load (CPython gh-130727). The worker then failed with[WinError 6] The handle is invalidor stalled the pool, and the initial scan failed or never finished. On those Python versions ChunkHound now keepsplatformon its non-WMI fallback, which reports the same values. - Indexing recovers from a dead parse worker — When a parse worker process died, the broken worker pool stayed in use and every later parse in that process failed, so an MCP server whose initial scan failed this way stayed not ready until something else rescanned. The next batch now gets new workers, and an initial scan lost to a dead worker is retried twice (after 15 s and 60 s). A retry also generates any embeddings the failed scan left missing.
- Stopping realtime indexing during start-up cancels the start —
stop()could not cancel a start that was still running the indexed-root identity check, because the start registered itself only after that check. The start then went on to set up the watcher afterstop()had returned. It now registers before the check, sostop()cancels it at any point. - Semantic search totals match the results you can page through — With a stored embedding that has NULL elements (what a NaN vector is stored as) in scope, DuckDB semantic search skipped that row but still counted it, so
totalandhas_moreoverstated the results and could offer a page that came back empty. The total is now computed from the same scored rows as the page. Searches with athresholdalso no longer score every embedding twice. - UTF-8-BOM config files now work consistently for standard configuration loading, Code Mapper workspace overrides, remote-config persistence, and the CLI prompt that adds timeout exclusions. Files written by Windows tools are accepted. Configs saved in the platform’s legacy ANSI code page keep loading through a locale fallback, so existing Windows setups do not regress; input that neither UTF-8 nor the locale can decode still fails — now with the friendly “Invalid JSON in config file” error instead of a raw decode traceback. The timeout-exclusion rewrite normalizes BOM files to plain UTF-8.
- An empty or whitespace-only
embedding.rerank_modelis treated as unset, so the provider’s default reranker applies instead of query-time failure under an empty model name. - VoyageAI drops an unusable
rerank_urlwith a redacted warning. When an inactivererank_urlsurvives config load, or code builds the provider directly, an unusable endpoint is dropped. The VoyageAI SDK reranker then takes over only when the remaining configuration allows it: a custombase_urlwith no usablererank_urlleaves reranking unavailable. The warning names the sanitized endpoint and the reason, omits credentials, query, and fragment, and escapes control characters. Active reranking validates the URL at config load instead: a malformed endpoint is rejected before a provider exists, so startup stops instead of warning. - Provider logs redact URL credentials. OpenAI embedding and rerank debug/error logs, plus Azure endpoint logs, replace URL userinfo with the sanitized endpoint; rerank retry logs name only the exception type because httpx messages embed the request URL.
- The workflow demo no longer restarts after a visitor stops or replays it. A manual click on the demo control marks the run as user-owned, so a late autoplay trigger from the visibility observer is ignored.
- The hero terminal settles its control when the section leaves the viewport mid-run, so it no longer advertises “Stop animation” over a cleared card until the section is re-entered.
- Search pagination only advertises reachable pages —
totalnow counts just what the paging window can serve, rounded down to a wholepage_size, andnext_offsetis always a page the same search accepts. Previously a diff/web search could reporttotal=2000atpage_size=30and hand out anext_offsetwhose request raised, and the MCP footer derived an unreachable page count from it. The unbounded match count moved to a newcorpus_totalfield, which the CLI header shows when it exceedstotal; transient hybrid search omits it because it ranks only a bounded snapshot.--vector-source bothkeeps its existing snapshot-boundedtotal. fetchurlvalidates redirect destinations — A redirect from a public URL to a private, loopback or link-local address was followed, because only the initial URL was checked. Every urllib redirect hop is now validated before it is requested, and the Chrome branch validates the final URL before returning its content, as websearch already did. A blocked hop raisesSsrfBlockedErrorand is not retried (#478).- VoyageAI semantic search ranks better — Search queries are now embedded with Voyage
input_type="query"instead of"document". Voyage models embed queries and documents differently, and a query embedded as a document was matched as one document against another, which pushed relevant code far down the results. Indexed chunks were always embedded as documents and still are, so no re-index is needed. Other providers are unchanged.
Removed
chunkhound.__description__removed. Its value duplicated the module docstring /pyproject.tomlproject.description(the single source), and the attribute had no runtime consumer. Read the module docstring orimportlib.metadataif you need the description.
6.2.0 - 2026-11-23
Added
- More OpenAI-compatible LLM providers — Opper, API Route, Obscurify.ai, Atlas Cloud, Runcrate, cheapaimodel, UberLLM and AIGROW can be selected as the LLM provider.
Removed
_quickresearchsubcommand,run_git_diff, andIndexingConfig.reset_user_include_exclude()— superseded by in-process streaming (stream_git_diff_fragments,run_websearch).
Changed
CHUNKHOUND_WEBSEARCH_TIMEOUT_SECONDSis now the websearch response deadline — It previously bounded only the research subprocess; it now covers query expansion, DDG, fetch, and research. Discovery is capped atmin(60, total/4). Cancellation cleanup can outlive the deadline, so a one-shot CLI process may wait briefly during event-loop shutdown. If you tuned this value, add headroom (up to 60s) for discovery. Non-positive or non-finite values fall back to the 600s default.- Websearch pages chunk by line window — Fetched pages are split into ≤1,200-character line windows (
page:Nsymbols) instead of markdown-heading chunks, to stay under embedding provider limits. - Transient search streams in-process — Git-history and web-page search stream chunks through a bounded vector cache and top-K heap instead of loading everything into memory;
MAX_DIFF_CHUNKStruncation and the_quickresearchsubprocess are gone. SetCHUNKHOUND_VECTOR_CACHE_MAX_ENTRIES=0to disable the cache,CHUNKHOUND_VECTOR_CACHE_TTL_SECONDSto change expiry, andCHUNKHOUND_VECTOR_SEARCH_OVERFETCH_FACTORto tune the candidate pool (default 5). With--vector-source both, each page merges overfetch-sized heaps from diff and DB (totalis a lower bound on that merged top-K);offset+page_sizecannot exceed the candidate windowmin(max(page_size × overfetch factor, 50), 2000), and requests outside it fail explicitly.CHUNKHOUND_WEBSEARCH_TIMEOUT_SECONDSis the response deadline: discovery (query expansion + DDG) is capped at 60s or a quarter of the total; fetch and research share the remainder. Cancellation cleanup can outlive the deadline, including during one-shot CLI shutdown. - Diff/web
path_filtermatches indexed search —vector_source=diff|bothnow applies the same path rules as DB search: file filters (src/foo.py) match by path suffix instead of returning nothing, and directory filters match a nested folder anywhere in the path (servicesmatcheschunkhound/services/...). - Web research survives unstable pages — A fetched page evicted from the in-process source cache is refetched on demand; if the refetch fails or the content changed since first read, that page is dropped from the rest of the research with a
Dropped from research: …fetch warning instead of failing the run. Research still fails if every usable source is dropped. - Removed
DiffAwareSearchService— The unused preloaded-vector git-diff search facade is gone; useTransientSearchService, which git-history search already uses. - MCP SDK 2.x — ChunkHound now runs on the MCP Python SDK 2.x, with a single dispatch point for MCP requests.
- Faster semantic search on DuckDB — Embeddings are scored before they are joined to chunk data, which cuts the cost of large searches.
- Single-threaded OpenBLAS by default — NumPy’s OpenBLAS runs single-threaded unless you set its thread count yourself, so it no longer competes with ChunkHound’s own workers.
- Quieter realtime status — Status updates for filtered file events are published at most twice a second.
last_n_commitsmeans N commits — Git-history search now takes the last N commits instead of N first-parent commits.- Native dependency floor raised — ChunkHound now requires
chunkhound-native6.1.0 or later, the first release with the analytics recorder.
Fixed
- One malformed embedding no longer breaks similarity lookups — A stored embedding with NULL elements (what a NaN vector is stored as) made DuckDB’s cosine fail the whole query: regex results lost their similarity scores, multi-hop search found no neighbours, and
search_by_embeddingreturned nothing. Those lookups now skip that one chunk and return the rest. - Windows on Python 3.12: parse workers no longer die at start-up under load — On Python 3.12 (and 3.13 before 3.13.4), a WMI query that the standard library’s
platformmodule made while a parse worker started could close one of the worker’s handles under CPU load (CPython gh-130727). The worker then failed with[WinError 6] The handle is invalidor stalled the pool, and the initial scan failed or never finished. On those Python versions ChunkHound now keepsplatformon its non-WMI fallback, which reports the same values. - Stopping realtime indexing during start-up cancels the start —
stop()could not cancel a start that was still running the indexed-root identity check, because the start registered itself only after that check. The start then went on to set up the watcher afterstop()had returned. It now registers before the check, sostop()cancels it at any point. - Semantic search totals match the results you can page through — With a stored embedding that has NULL elements (what a NaN vector is stored as) in scope, DuckDB semantic search skipped that row but still counted it, so
totalandhas_moreoverstated the results and could offer a page that came back empty. The total is now computed from the same scored rows as the page. Searches with athresholdalso no longer score every embedding twice. - Search pagination only advertises reachable pages —
totalnow counts just what the paging window can serve, rounded down to a wholepage_size, andnext_offsetis always a page the same search accepts. Previously a diff/web search could reporttotal=2000atpage_size=30and hand out anext_offsetwhose request raised, and the MCP footer derived an unreachable page count from it. The unbounded match count moved to a newcorpus_totalfield, which the CLI header shows when it exceedstotal; transient hybrid search omits it because it ranks only a bounded snapshot.--vector-source bothkeeps its existing snapshot-boundedtotal. fetchurlvalidates redirect destinations — A redirect from a public URL to a private, loopback or link-local address was followed, because only the initial URL was checked. Every urllib redirect hop is now validated before it is requested, and the Chrome branch validates the final URL before returning its content, as websearch already did. A blocked hop raisesSsrfBlockedErrorand is not retried (#478).- VoyageAI semantic search ranks better — Search queries are now embedded with Voyage
input_type="query"instead of"document". Voyage models embed queries and documents differently, and a query embedded as a document was matched as one document against another, which pushed relevant code far down the results. Indexed chunks were always embedded as documents and still are, so no re-index is needed. Other providers are unchanged. - On Python 3.11 and later, the daemon no longer puts the project directory on its import path —
python -mputs the working directory first onsys.path, and the daemon runs in the project directory. So when the indexed project was itself a ChunkHound checkout, its daemon imported that checkout’schunkhoundpackage and native module instead of the installed build. On Python 3.11 and later the daemon and the Watchman Python bridge now start with-P, which stopspython -mfrom adding the working directory tosys.path. Python 3.10 has no-P, so on 3.10 a daemon serving a ChunkHound checkout still imports that checkout’s code.-Pdoes not filterPYTHONPATH, so a relative entry such as.still resolves against the project directory. - Realtime indexing is more reliable — A write is now one executor submission and a failed resync is retried. Duplicate events are never dropped while the path’s change is being processed. A failed attempt no longer leaves a dedup record that suppresses the next write. Read-only watcher events take no event-queue slot. A kernel inotify queue overflow now requests a resync. Windows in-place writes reported as attribute changes are indexed.
process_filekeeps a file’s content hash, and a file confirmed unchanged by hash keeps its mtime. daemon_statusis current — It reports the realtime state as of the read.- Unchanged incremental runs leave the database available — An incremental run with nothing to write no longer takes the database from readers.
- DuckDB recovery is safer — A database held by another process is never treated as WAL-corrupt, and a checkpoint right after WAL replay keeps replayed rows in the indexes.
- Parse workers exit with their parent — Pool and timeout workers no longer linger after the parent process dies.
- Faster parse-worker start-up — PyMuPDF is imported lazily, so parse workers no longer load its ONNX layout model.
- JavaScript and TypeScript chunking — Top-level imports and call statements are now chunked in JS, TS, JSX and TSX.
- Git-history diffs ignore user git config — Diffs are isolated from your git configuration, so results no longer vary with it.
- Claude Code CLI provider runs without your hooks — User-configured hooks no longer interfere with research calls.
- VoyageAI configuration — Look-alike hosts are rejected when checking for the official endpoint, and
VOYAGE_API_KEYis applied after config layers are merged. - llama.cpp long inputs — A text the server rejects as too long is split and retried.
- LanceDB
path_filter—find_similar_chunksnow honorspath_filter. - Websearch rejects private-network URLs — Search results pointing at private addresses, and redirects to them, are no longer fetched.
- Deep research input handling — Object-shaped exploration queries are accepted, and relative imports are anchored to the project root.
6.1.0 - 2026-10-20
Added
- Opt-in usage analytics — ChunkHound can record per-user usage events (CLI commands, MCP tool calls, LLM and embedding/rerank calls with token counts) and upload batches to an S3/MinIO-compatible bucket. Off by default; enable with
analytics.enabledorCHUNKHOUND_ANALYTICS__*.analytics.anonymize(full,hashed,anonymous) controls how the user is identified. Free-text content such as queries and URLs is recorded as null unlessanalytics.save_sensitive_datais set. S3 write credentials come from.chunkhound.jsonorCHUNKHOUND_AWS_ACCESS_KEY_ID/CHUNKHOUND_AWS_SECRET_ACCESS_KEY, never ambientAWS_*variables. - Native embedding providers — The Rust pipeline now calls OpenAI-compatible (including Azure) and VoyageAI embedding endpoints itself, with retry, token-aware batching, and the same dimension, TLS-verify and context-length handling as the Python providers. Other providers keep using the Python path.
- Requesty LLM provider — Requesty is supported as an OpenAI-compatible LLM provider (
provider: requestyorCHUNKHOUND_LLM_PROVIDER=requesty).
Fixed
- Windows
.cmdand.batCLIs launch throughcmd.exe— An npm-only Claude Code, Codex, or OpenCode install can run research. A spaced shim path that cannot be shortened is rejected. Newlines, percent signs, quotes, and a command operator in an argument with no spaces are rejected. Addresses #118. The databaseWinError 183in that issue is unchanged. - OpenRouter structured calls with reasoning models — ChunkHound now detects whether a model accepts the payload that disables reasoning for structured output, retries once without it when rejected, and caches the result per model, so structured calls no longer fail on models that reject it.
- Linux native wheels run on older distributions —
chunkhound-nativeLinux wheels (x86_64 and aarch64) are now built in a pinned Ubuntu 20.04 container and taggedmanylinux_2_31, instead ofmanylinux_2_34. They install on glibc 2.31+ hosts such as Ubuntu 20.04, not only glibc 2.34+. - Orphaned rows after forced reindex — Rows of deleted files are now cleaned up on a forced full reindex under the Rust pipeline.
- Unchanged re-index no longer rebuilds the HNSW index — A run with nothing to write, delete or compact leaves the vector indexes in place instead of dropping and rebuilding them.
- Responsive server during index maintenance — HNSW maintenance runs off the event loop, so MCP responses and file monitoring are not blocked during rebuilds.
- Faster missing-embedding backfill —
generate_missing_embeddingsuses targeted queries instead of full-table scans. - Rerank retries — The single-batch rerank path now retries transient failures like the multi-batch path.
- Known file types no longer fail the NUL-byte check — Files of known types are not skipped as binary because of embedded NUL bytes.
- Path lookup safety — Logical path lookup rejects
..escapes out of the project root. - MCP regex search with commit inputs —
searchwithtype="regex"now warns thatcommit_range,commit_hashandlast_n_commitsare ignored, instead of silently returning whole-index results. - Invalid-argument errors — Research service, CLI search and
deep_researchvalidation failures raiseValueErrorrather than generic errors. - Embedding provider registration failures are logged — A provider that fails to register is now reported instead of disappearing silently.
- C# and MATLAB parsing — Fixed an import error that broke the C# and MATLAB concept mappings.
- MCP SDK compatibility — The MCP SDK dependency is constrained to the supported 1.x API.
- DuckDB — Sequence names in
nextval()calls are parameterized.
Changed
- Claude Code CLI prompt delivery is configurable — One mode cannot fit every machine, so
llm.claude_append_system_promptchoosesfile(default, every OS) orinline.fileuses--append-system-prompt-file: instructions stay in the system prompt, off the Windows command line, and beside a wrapper’s--append-system-prompt.inlineis for a wrapper that uses the file flag, or Claude Code older than 2.0.34. Those files use the system temp directory.llm.claude_temp_diroverrides it for a special case such as Docker or a limited user. See Claude Code CLI.
6.0.0 - 2026-09-14
Breaking Changes
chunkhound-nativeis now a required dependency — The Rust extension is no longer an optional extra; it installs by default and its parse→embed→write pipeline runs by default (CHUNKHOUND_USE_RUST=0to opt out). Installs where no native wheel is available fall back to the Python pipeline automatically.
Added
- Rust-native indexing pipeline (default) — Indexing now runs parsing, embedding, and database writes concurrently through the
chunkhound_nativeextension by default, for meaningfully faster indexing with crash-safe recovery and more accurate progress reporting (including live DB-size-reduction stats during compaction). Falls back to the Python pipeline automatically for non-DuckDB providers (e.g. LanceDB). - OrcaRouter LLM provider — OrcaRouter is now supported as an OpenAI-compatible LLM provider (
provider: orcarouterorCHUNKHOUND_LLM_PROVIDER=orcarouter). - OpenRouter LLM provider — OpenRouter is now supported as a first-class OpenAI-compatible LLM provider (
provider: openrouterorCHUNKHOUND_LLM_PROVIDER=openrouter). - Voyage-native rerank format — Custom VoyageAI-compatible rerank endpoints (e.g. MongoDB Atlas) are now supported via
rerank_format="voyage", fixing reranking that previously silently fell back to raw vector scores against these endpoints. - Provider-managed synthesis output limits — Research synthesis output truncation is now managed per LLM provider, with explicit support for DeepSeek’s and Grok’s own output-limit semantics.
- Follow-up query chaining for research —
websearchandcode_researchnow accept a--previous-query/previous_queryparameter so a follow-up query is expanded and synthesized in the context of the prior topic instead of re-exploring the same ground. - MCP HTTP transport — The MCP server now supports Streamable HTTP transport (
--transport http) alongside stdio, so remote and browser-based MCP clients can connect without spawning a local subprocess. Configurable via--host/--port/--auth-token/--cors; refuses to start on a non-loopback host without an auth token. - Configurable DB execute timeout — The database serial-executor timeout can now be set via
.chunkhound.json,CHUNKHOUND_DATABASE__EXECUTE_TIMEOUT_SECONDS, or--db-execute-timeout, instead of only an internal env var. - VoyageAI
voyage-4series (voyage-code-4,voyage-4,voyage-4-large,voyage-4-lite). All four support Matryoshkaoutput_dimsof 256, 512, 1024 (default), and 2048, and a 32K context window.voyage-code-4is code-specialized and built for coding-agent retrieval, which is ChunkHound’s exact use case. The default staysvoyage-3.5; setembedding.modelto opt in. - The index now owns its embedding model and dimensions. Changing
embedding.modelorembedding.output_dimsno longer silently re-embeds, or strands, an existing database. For a different model,chunkhound indexwarns, reports how many chunks a switch would rewrite, and asks; declining keeps the indexed model and dimensions, leaves search working, and asks again next run. A dimensions-only change on the same model cannot be re-embedded in place, so the indexed dimensions are kept without asking. Non-interactive runs and MCP startup keep the index’s settings without prompting, so an upgraded default can never rewrite a database behind the operator’s back. A configured provider change is still applied, since credentials and dimensions leave nothing to fall back to. Which model an index uses is recorded in a file beside the database, so a finished or interrupted switch is remembered rather than guessed from vector counts. DuckDB and LanceDB indexes are both covered. - Upgrade suggestions. For models in the bundled upgrade map, an interactive
chunkhound indexprints a single informational line naming an alternative and stating what a switch would cost. This is a print-only hint, not a claim that the suggested model is better for every workload. It never changes the model or re-embeds on its own and does not appear in non-interactive runs. Silence it withCHUNKHOUND_NO_MODEL_SUGGESTIONS=1. - VoyageAI model reference table in
configuration.md, listing context window and per-batch token limit for every model ChunkHound knows. - Fetchurl CLI command and MCP tool — New
chunkhound fetchurl <url> [-q "…"]CLI subcommand and matchingfetchurlMCP tool fetch a single URL (HTML or PDF), extract its content, and return a focused Markdown answer.- Short pages are token-truncated and summarized in one LLM call; long pages with a query go through a chunk + rerank + elbow-filter pipeline that passes only the most relevant sections to the LLM.
- Requires LLM + reranker providers — the MCP tool is hidden from
tools/listwhen either is missing. - Configurable via
fetchurl.rerank_threshold_tokens(default 15000),fetchurl.truncate_tokens(default 15000), andfetchurl.max_retries(default 3), or theirCHUNKHOUND_FETCHURL_*env-var equivalents. - Uses the same zendriver + system Chrome transport as
websearch, withurllibfallback.
- Remote configuration fetch — ChunkHound can now fetch a configuration envelope from an operator-controlled HTTPS endpoint (or
http://to a loopback host for local development) at the start of every invocation and apply an ordered list of rules to the on-disk global config, letting fleets manage embedding / LLM / research settings centrally instead of touching each machine. See/docs/configuration/#remote-configuration.- Activated via
--remote-config-url/--remote-config-auth-header(orCHUNKHOUND_REMOTE_CONFIG__URL/CHUNKHOUND_REMOTE_CONFIG__AUTH_HEADER). Accepted from CLI, env, or the global config file — aremote_configkey inside a project-local.chunkhound.jsonor a file passed via--configis scrubbed at load time (with a WARNING) so a checked-in project file cannot redirect the operator’s URL. - Envelope shape:
version: 1, optional PEP 440min_chunkhound_version(so a payload targeted at a newer client never lands on an older binary), and an orderedrulesarray. Rule ops:merge(default),set,remove. Rule paths accept dotted (a.b.c) or slash (a/b/c) forms; unknown top-level and depth-2 paths surface asschema_errorand skip the rule. - Operator-owned paths refused after apply:
database.path,target_dir,embeddings_disabled,local_config_file,global_config_file,config_file. - Self-registration (gap-fill): on the first successful fetch, if the global config file (
~/.chunkhound.jsonorCHUNKHOUND_GLOBAL_CONFIG_FILE) has noremote_config.url/auth_header, the effective discovery-layer value (CLI/global/env) is seeded via an atomic backup+write so subsequent runs continue to fetch without needing the CLI flag or env var that triggered the initial run. An on-disk value is durable — whether seeded by a prior run, hand-edited, or written by anop: setrule — and is NOT overwritten by a differing CLI/env value on later runs, so a one-off--remote-config-urlcannot silently replace the operator’s persisted URL. Server-driven rotation is via envelope rules onremote_config.url/remote_config.auth_header; those rules also win over discovery-layer seeding on a first-time run. Literalauth_headervalues persist in plaintext; use${VAR}interpolation (e.g.Bearer ${MY_TOKEN}) to persist only the placeholder — the variable is resolved fromos.environat fetch time, and any unset reference drops the entireAuthorizationheader rather than leaking the literal placeholder to the wire. - Delta-only validation gate: post-rules config is snapshot-validated against the current command and every persistence-hazard command (
index,mcp,research) on two substrates — the persisted global JSON (env/local/CLI skipped) and the fully merged invocation. If either comparison introduces a newConfigErrorCodethat wasn’t already present pre-rules, the fetch is discarded and nothing is written. - Hard 10-second wall-clock fetch budget on every invocation. Single attempt, no client-side cache — recoverable failures (timeout, network, non-2xx, JSON parse, envelope validation) log a WARNING and the invocation proceeds against what’s on disk. Disk-write failures during backup or persist escalate to
sys.exit(1)with the target path and errno on stderr. - Fetch ignores
HTTPS_PROXY,HTTP_PROXY,NO_PROXY,SSL_CERT_FILE,SSL_CERT_DIR, and netrc (httpxis built withtrust_env=False) so a hostile env var cannot silently reroute the credentialed request or supply a MITM-friendly CA bundle. Operators needing a private CA must extend the system trust store.
- Activated via
- Structured config validation error codes — Startup validation now emits stable
ConfigErrorCodeidentifiers (missing_required_config,llm_not_configured,llm_missing_role_config,embedding_not_configured,mcp_non_loopback_no_auth,mcp_cors_no_auth,db_readonly_wrong_command,db_readonly_non_duckdb) alongside human-readable messages, enabling machine-parseable diagnostics and powering the remote-config delta-only validation gate.
Fixed
- OpenAI token-limit error detection — A third real-world phrasing of OpenAI’s context-length error (“the input length exceeds the context length”) is now recognized, triggering the existing split-and-retry path instead of failing the batch outright.
- Windows project detection — Directory discovery no longer fails when the current working directory is the user’s home directory or sits under a locked-down parent on Windows.
- A changed embedding model or
output_dimssilently emptied search results. Search reads the vector table matching the query’s dimensions and filters it by provider and model, so either change returned zero results. Re-indexing never repaired a dimensions change, because chunks already embedded under the model were skipped at any dimension, and a re-embed interrupted partway left two model-tagged vectors per chunk. The index’s model and dimensions are now kept unless a switch is explicitly accepted. - Wrong batch token limits for the
voyage-4series. The whole series was previously unknown to the provider and fell through to the 320K-token fallback.voyage-4-largeactually caps at 120K, so large batches failed withTOO_MANY_TOKENS_IN_BATCH, whilevoyage-4-litewas capped at a third of its real 1M limit. Unsupportedoutput_dimson these models were also accepted locally and only rejected later by the API; they now fail at configuration time. - PyMuPDF
fitzimport deprecation warning on stdout — PDF parsing now importspymupdfinstead of the legacyfitzalias, which since PyMuPDF 1.28.2 prints a deprecation warning to stdout and corrupts MCP stdio clients (e.g. CURe preflight). Adds a regression test asserting parser imports write nothing to stdout.
5.2.0 - 2026-07-12
Breaking Changes
- DeepSeek, Grok, and Gemini require explicit model — The baked-in default
models (
deepseek-v4-flash,grok-4-1-fast-reasoning, and Gemini’s prior fallback/default path) have been removed. Users must now setllm.model(or per-role model override) explicitly for these providers.
Added
- Rust-native file scanner — Directory scanning can now use a Rust extension (
chunkhound_native) built on theignorecrate’s parallelWalkBuilder, replacing the Pythonos.walk-based scanner. Enabled by default when the native extension is installed (CHUNKHOUND_USE_RUST=0to opt out); falls back to the Python scanner automatically when the extension is absent or for patterns the fast path can’t handle. - Database compaction — DuckDB databases now auto-compact via an atomic swap when fragmentation crosses
database.fragmentation_threshold_pct, reclaiming disk space with no indexing downtime and no disruption to concurrent MCP/daemon access. - PowerShell language support —
.ps1/.psm1files are now parsed with function/class/method/property/enum-aware chunks instead of the generic text fallback. - Metal language support —
.metalshader files (MLX-style kernels) now parse via the C++ grammar for struct/function-aware chunks. - HAML indexing —
.hamlfiles, previously skipped entirely, are now indexed and searchable as text. - Global configuration file — Cross-project defaults (embedding provider/key, LLM configuration, research options, etc.) can now be set once via a global config file, loaded from
CHUNKHOUND_GLOBAL_CONFIG_FILEor auto-discovered from standard user locations. - Python 3.14 support — ChunkHound now runs on Python 3.14;
tree-sitter-language-packupgraded 0.9.0 → 0.13.0 and DuckDB pinned to 1.4.4. - Gemini configurable thinking — The Gemini provider now supports configurable
thinking_level/thinking_budgetparameters. start-proxy.sh— Helper script for running ChunkHound’s stdio MCP server behind a streamable-HTTP proxy, for MCP clients that require HTTP transport.- Git diff search — Semantic search over git history:
--last-n <N>,--commit-range <A..B>,--commit-hash <hash>. Available in CLI (chunkhound search,chunkhound research) and MCP tools (search,code_research).--vector-sourcecontrols scope:diff(default),both(merge with DB index),db(DB only). Staged-changes search (git diff --cached) is not included in this release. - Claude Opus 4.8 support: the Anthropic provider now gives Opus 4.8 full Opus 4.7 capability parity: adaptive-only extended thinking (an explicit
manualrequest auto-resolves to adaptive), effort levelslow/medium/high/xhigh/max, and the task-budgets beta. The pinnedclaude-opusoffline fallback was bumped toclaude-opus-4-8. Fixes a400 "thinking.type.enabled is not supported for this model"error when targetingclaude-opus-4-8with thinking enabled. - Websearch CLI command and MCP tool — New
chunkhound websearch "<query>"CLI subcommand and matchingwebsearchMCP tool let coding agents pull external context into the loop without leaving it. Searches DuckDuckGo, fetches the top results, converts them to Markdown, runscode_researchover a transient in-memory index of the fetched pages, and returns a single cited answer with local tmpdir paths rewritten back to source URLs. Per-request timeout configurable viaCHUNKHOUND_WEBSEARCH_TIMEOUT_SECONDS(default 600s).markdownifyandzendriver==0.15.3are new core dependencies.- System Chrome via zendriver over CDP — Rich page fetches drive the system-installed Google Chrome directly through zendriver’s raw CDP bindings. No Node runtime, no bundled Chromium download, no
playwright installstep, and nochunkhound[browser]extra to opt into — it works out of the box when Chrome ≥124 is present. Chrome resolution probes known install paths and version-checks the binary (zendriver’s CDP binding requiresResponse.charset, which only Chrome ≥124 emits); any verification failure (missing binary, too old, unparseable--version) collapses to a warning and the urllib fallback rather than raising. - Robust PDF handling — PDF detection inspects real response headers before Chrome’s PDF viewer engages, verifies the
%PDF-magic bytes (so endpoints returning HTML under anapplication/pdfContent-Type fall through to HTML→markdown instead of corrupting the result set), and refetches PDFs via urllib with Chrome’s cookies forwarded so cookie-gated PDFs (signed URLs, session-protected docs) still work — redirects on the cookie-bearing request are blocked to prevent cross-origin credential leakage. Fetches whose rendered markdown is whitespace-only fail explicitly instead of writing zero-byte files into the result set. - LLM query expansion — Each websearch query is now expanded via the utility LLM into 3 DuckDuckGo-optimized variants, run and merged with URL-based deduplication, improving result coverage for a single search. Falls back to the original single query when no LLM is configured or the expansion call fails.
- System Chrome via zendriver over CDP — Rich page fetches drive the system-installed Google Chrome directly through zendriver’s raw CDP bindings. No Node runtime, no bundled Chromium download, no
chunkhound mcp --read-only(DuckDB) — Point an MCP client at a pre-indexed database — shared, mounted read-only, or otherwise untouchable — without risking writes from the indexer or daemon. Regex search still works; writes through the provider raise. Also exposed asdatabase.read_only; rejected for non-mcpsubcommands.
Changed
-
DeepSeek/Grok refactored to data-driven registry — Per-provider subclasses replaced with a unified
OpenAICompatibleSpecregistry. Adding a new OpenAI-compatible provider is now a data entry + a few type annotations instead of a full subclass. Net: -527 lines. -
Vue template metadata schema for v-model directives — The shape of metadata produced for
v-model(andv-model:arg) directives has changed:- Old:
model_modifier(string) - New:
modifiers(list of strings) +model_argument(optional string forv-model:foostyle bindings)
The previous
model_modifierfield was already semantically incorrect on many real cases (it was derived from the tree-sitterdirective_argumentnode and could not properly distinguish arguments from modifiers or represent multiple modifiers). The new fields are more correct and consistent with howparse_vue_directiveworks. This is a breaking change for any code or LLM prompts that directly inspectedchunk.metadata["model_modifier"]on Vue chunks. Most other Vue directive metadata keys (event_name,property_name,slot_name, etc.) are unchanged in meaning. - Old:
Enhanced
- Depth exploration research performance — Deep code research’s Phase 1.5 depth-exploration step no longer fires one concurrent HTTP rerank call per exploration query (which could overload the reranking server); it now scores chunks via in-database cosine similarity, tracks found chunks globally across iterations to avoid re-scanning covered ground, and parallelizes gap-cluster unification — reducing wall-clock time on large research runs while improving output coverage. Per-step timings are now visible in the terminal progress tree, and the exploration query token budget is configurable.
Performance
- Skipped-file re-scan avoidance — Files skipped during parsing (binary, unknown type, oversized config, timeout) are now recorded in the database with a skip reason, so unchanged skipped files are bypassed on subsequent indexing runs instead of being re-queued and re-skipped every time — saves up to ~10 minutes per run on large codebases.
Fixed
- Multi-source URL provenance in fact extraction — URL-backed facts in
multi-source clusters are now correctly skipped instead of being stored
with the URL as a file-path, which broke file-scoped retrieval. New-style
facts missing a
locationfield are also skipped instead of defaulting to line 1-1. - MCP websearch traceback pollution — Error output from research subprocesses strips internal Python traceback frames, keeping only the last meaningful error line.
- MCP string return passthrough — Tools returning raw strings (e.g. websearch results) now pass through as markdown instead of being wrapped in JSON objects.
- OpenAI-compatible embedding config forwarding —
timeout,batch_size, andmax_retriesconfig values are now correctly forwarded to the OpenAI embedding provider factory path; previously they were silently dropped and every OpenAI-compatible provider ran with hardcoded defaults regardless of configuration. - Indexing batch_size forwarding (issue #244) —
embedding_batch_size,db_batch_size, andmax_concurrent_batchesconfig are now honored byprocess_directory, fixing silently-ignoredbatch_size: 1workarounds for limited providers. - tiktoken special-token crash (issue #315) — Source files containing tokenizer special-token literals (e.g.
<|endoftext|>) no longer abort the entire embedding batch with a “disallowed special token” error. - tiktoken stall on blocked networks — Token estimation no longer stalls on the connect timeout when the tiktoken BPE-file download host is network-blocked; falls back to a character-count heuristic and negative-caches the failure so the warning fires at most once per model per process.
- Embedding rate-limit backoff (issue #298) — 429 responses now honor the
retry-after/x-ratelimit-reset-requestsheader (or a parsed “try again in X seconds” message) with exponential backoff capped at 120s and jitter, instead of a flat 1–2s linear retry that hammered the provider. - Orphaned subprocess cleanup — OpenCode CLI, the internal
_quickresearchhelper, and the MCP proxy no longer leave orphaned child processes behind when their parent exits, is cancelled, or dies unexpectedly. - Claude Code CLI subprocess auto-updates — The Claude Code CLI auto-updater is now disabled for ChunkHound’s subprocess invocations, preventing unexpected version changes mid-run.
- Path-filter hidden file/directory misclassification — Hidden directories (e.g.
.github) and hidden files with extensions (e.g..eslintrc.js) are no longer misclassified against each other inpath_filtermatching for regex/semantic search. - Multi-hop search result cap — Multi-hop search now correctly bounds its initial fetch by
result_limit(previously bypassed it), and a crash whenresult_limitisNonein exhaustive mode is fixed. - LanceDB migration on PyArrow 23 — Metadata is now serialized correctly during schema migration, preventing an
ArrowTypeErrorwhen restoring existing chunks after an embedding schema change. - Gitignore respected at repository roots — Directory scans now honor
.gitignorerules, including nested-gitignore-driven pruning, when scanning from a repository root; previously some ignored trees were still walked.
Security
- Path-filter SQL substring leak — Fixed a path-filter normalization bug in
DuckDBProviderwhere substring matches could leak results across directory boundaries (e.g. a filter forsrccould matchsrc_utils/).
5.1.0 - 2026-05-20
Breaking Changes
- MCP
searchresponse format changed to markdown — Thesearchtool now returns lean markdown strings instead of JSON objects, with syntax-highlighted code fences, similarity percentages (semantic search), and a pagination footer. MCP clients that parse raw search output as JSON must migrate to the new format.
Added
--index-unknown-filesflag — Files with unrecognized extensions are now indexable as plain text (binary files are still skipped). Enabled via--index-unknown-filesCLI flag,indexing.index_unknown_filesconfig key, orCHUNKHOUND_INDEXING__INDEX_UNKNOWN_FILESenv var.- Proto, GraphQL, XML, config, and Dockerfile support —
.proto,.graphql,.gql,.xml,.ini,.properties,.conf,.cfg, and extensionlessDockerfile/Jenkinsfilefiles are now indexed by default..envfiles are explicitly excluded to prevent secret leakage. chunkhound.aionboarding — Interactive CLI setup is replaced with guided onboarding at chunkhound.ai; local backend is now configured explicitly rather than through prompts.
Fixed
- MCP startup HNSW crash — MCP server no longer fails with a
CreateDeltaIndexassertion on startup against databases missing the unique(chunk_id, provider, model)index from v5.0.0. HNSW recreation now runs outside the transaction (issue #280). - WAL validation HNSW crash — WAL pre-flight validation now uses in-memory+ATTACH, preventing a C++ abort when the WAL contained HNSW operations from a prior session (issue #273).
--dbnested directory bug — Passing an explicit file path (e.g.--db /path/to/chunks.db) no longer creates achunks.db/chunks.dbnested directory; known DB extensions (.db,.duckdb) are now correctly identified as file paths (issue #215).- Parser install hints — C# error messages now show the correct PyPI package
tree-sitter-c-sharp(wastree-sitter-csharp); Makefile showstree-sitter-make; SCSS points totree-sitter-language-pack(issue #267).
5.0.0 - 2026-05-05
Breaking Changes
- Config precedence reordered — Local
.chunkhound.jsonnow takes precedence over environment variables. If you relied on env vars overriding project-level settings, use CLI arguments instead. --confignow overrides local.chunkhound.json— Previously, a project-local.chunkhound.jsontook precedence over an explicit--configpath. Now--configwins. If you relied on local.chunkhound.jsonshadowing a shared config file, move that override into CLI arguments.- Missing
--config/CHUNKHOUND_CONFIG_FILEpath now raises — A non-existent config file path used to be silently ignored; it now raisesValueErrorwith an actionable message. DEFAULT_LLM_TIMEOUTdoubled — Default LLM request timeout increased from 60 s to 120 s for all providers (was already 120 s for Gemini; now uniform).- HTTP MCP server removed — ChunkHound now supports stdio transport only for MCP connections
chunkhound mcp httpcommand removed--http,--port,--hostCLI flags removed- FastMCP dependency removed
- Migration: Use
chunkhound mcp(stdio) instead. All major MCP clients (Claude Code, Claude Desktop, VS Code) support stdio transport. - Rationale: Simplified codebase, reduced dependencies, focused on primary use case (stdio is the standard for MCP)
- Unsupported file types no longer indexed as plain text — Files with unrecognized extensions are now skipped instead of being force-parsed as plain text. Files with known text extensions (.txt, .log, .cfg, .conf, .ini) are unaffected.
- Claude Code CLI default model changed from
claude-sonnet-4-5-20250929toclaude-haiku-4-5-20251001. Users who relied on the default model will see different cost/quality characteristics. Setllm.model,llm.utility_model, orllm.synthesis_modelexplicitly to retain previous behavior. - Anthropic provider upgraded to Claude Opus 4.7/4.6 and Sonnet 4.6
anthropicdependency minimum bumped to>=0.96.0,<1.0.0- Default Anthropic utility and synthesis models changed to ChunkHound’s
claude-haikusentinel. This is intentional: current Claude Haiku is capable enough for synthesis, is Anthropic’s cheapest available Claude model, and Anthropic does not currently offer a true low-cost utility tier. Users who prefer maximum synthesis quality can overridesynthesis_model. - Default Claude Code CLI model changed to the same
claude-haikusentinel. ChunkHound still honors its Claude env overrides first; otherwise it preserves the sentinel so Claude Code can resolve the latest matching alias itself. - Removed module symbols
BETA_EFFORTandEFFORT_SUPPORTED_MODELS. Callers should use thesupports_effort(model)/supports_effort_level(model, level)predicates instead. thinking_enabled=Truewiththinking_mode="auto"resolves to adaptive only for adaptive-capable models such as Opus 4.6/4.7, Sonnet 4.6, and Mythos. The pinned Haiku fallback remains manual-mode thinking.anthropic_prompt_cachingdefaults tofalsebecause ChunkHound requests rarely reuse prompt prefixes enough to offset Anthropic cache-write costs. To opt in, setCHUNKHOUND_LLM_ANTHROPIC_PROMPT_CACHING=trueor pass--llm-anthropic-prompt-caching.- Invalid
thinking_modevalues and sub-20000task_budget_tokensnow raiseValueErrorinstead of warning-and-coercing.
Added
- Elixir language support — Full Elixir parsing (32nd language) via tree-sitter-elixir: modules, functions, macros, protocols, structs, specs, and import/alias/require statements.
- TwinCAT/Structured Text parser — IEC 61131-3 Structured Text (
.TcPOU) files for PLC development are now fully searchable. - HTML, CSS, SCSS, and Jinja parsers — Full tree-sitter parsing for web languages: HTML (
.html,.htm,.xhtml), CSS (.css), SCSS/Sass (.scss,.sass), and Jinja templates (.jinja,.j2,.njk,.erb,.ejs). SCSS preprocessing handles#{...}interpolations for correct AST byte offsets. Import resolution is supported for all four languages. - Grok (xAI) LLM provider — xAI Grok models are now supported for deep code research via the
code_researchtool. - Matryoshka embeddings — OpenAI and VoyageAI providers now support Matryoshka truncation for flexible vector dimensions; default OpenAI model upgraded to
text-embedding-3-large. openai_compatibleembedding provider — Connect any OpenAI-compatible embedding endpoint with configurable SSL verification, auth, and dimension support.- Azure OpenAI embeddings — Native Azure OpenAI embedding support with
azure_endpoint,api_version, andazure_deploymentconfiguration options. - VoyageAI ranking support — VoyageAI provider now supports reranking for improved search result quality.
- Claude Opus 4.7 / Opus 4.6 / Sonnet 4.6 support — Adaptive thinking mode (auto / off / manual / adaptive selector), expanded effort levels (
low,medium,high,xhigh(Opus 4.7 only),max(4.6+)), opt-in prompt caching with configurable TTL (5m/1h), and the task-budgets beta (Opus 4.7 only, advisory cap for agentic loops, min 20000 tokens). - New
LLMConfigfields —anthropic_thinking_mode,anthropic_thinking_display,anthropic_prompt_caching,anthropic_cache_ttl,anthropic_task_budget_tokens(and matchingCHUNKHOUND_LLM_ANTHROPIC_*env vars and--llm-anthropic-*CLI flags). The pre-existinganthropic_thinking_enabled,anthropic_thinking_budget_tokens,anthropic_interleaved_thinking,anthropic_effort,anthropic_context_management_enabled, andanthropic_clear_*fields are now also readable from env and CLI. - Embedded SQL detection — SQL embedded in string literals is detected and indexed by default across Python, Java, JavaScript, TypeScript, C#, Go, Rust, and PHP. Disable with
--no-detect-embedded-sqlorCHUNKHOUND_INDEXING__DETECT_EMBEDDED_SQL=false. - OpenAI Responses API — Deep code research now supports reasoning models (gpt-5.1, gpt-5.1-codex, o-series, gpt-5-pro) via the Responses API, with automatic routing based on model compatibility across 30+ models.
- Reasoning effort control — Configurable LLM reasoning effort (
none/minimal/low/medium/high) for deep research viaCHUNKHOUND_LLM_CODEX_REASONING_EFFORTwith per-role overrides. - Structured JSON output — Responses API maintains schema validation consistency across both Chat Completions and Responses endpoints.
- Multi-client MCP daemon — Multiple MCP clients can share a single DuckDB connection via a background daemon, eliminating lock conflicts in multi-session workflows.
--perf-diagnosticsmode —chunkhound index --perf-diagnosticscollects per-batch timing metrics and detects performance regressions via linear regression and z-score analysis, outputting a JSON diagnostics file.--path-filterfor research —chunkhound research --path-filter <dir>scopes deep code research to a subdirectory.- PHP config-literal parsing — PHP files with top-level
return [...]arrays are now searchable. - Universal config-literal parsing — Exported configuration objects and arrays in Python, JavaScript, TypeScript, and JSX/TSX are now discoverable through semantic search.
- Watchman live-indexing operator docs — Documents the private
.chunkhound/watchman/sidecar, fail-fast startup/no-implicit-fallback behavior,daemon_statushealth interpretation, and the rollout/default-switch gate for making Watchman the primary backend. - Dart language support —
.dartfiles are now fully searchable via tree-sitter parsing: classes, functions, methods, constructors, and import/export statements (33rd language). - Lua language support —
.luafiles are now parsed and indexed via tree-sitter, covering functions, tables, and module patterns. - T-SQL (SQL Server) parser — SQL Server T-SQL (
.sql) files are now fully parsed and searchable via tree-sitter. chunkhound autodoccommand — Generates a static Astro documentation site from codebase research, with provenance citations linked to source references and byte-stable output across platforms.chunkhound codemapcommand — Maps areas of interest (POIs) in a codebase through deep code research; the-jflag enables parallel POI processing with automatic backoff to serial on failure.- Configurable disk storage limit —
database.max_disk_usage_mbconfig option (--max-disk-usage-gbCLI flag,CHUNKHOUND_DATABASE__MAX_DISK_USAGE_GBenv var) caps database growth and raises a clear error instead of filling the disk. - Anthropic native structured outputs — Anthropic provider now uses the
structured-outputs-2025-11-13beta API for guaranteed schema-compliant JSON via constrained decoding, with type-safe Pydantic model responses and extended thinking compatibility. - Global gitignore support — ChunkHound now reads the user’s global gitignore file (via
git config --global core.excludesFile) when building the exclusion list during indexing.
Changed
- Watchman default backend — Watchman is now the default realtime backend on supported native-runtime platforms;
watchdogandpollingremain explicit fallback backends.
Enhanced
- MCP tool routing —
code_researchandsearchtool descriptions rewritten for improved LLM routing; cross-references between tools are shown or hidden dynamically based on whether an LLM provider is configured. - Daemon overlap guard — A user-scoped daemon registry is now validated against each project’s
daemon.lockbefore startup, preventing live parent/child root overlaps (e.g., running daemons for/workspaceand/workspace/projectsimultaneously). Exact-root reuse across restarts is preserved; sibling roots are allowed. ChunkType.IMPORT— Import statements across all languages now use a dedicated chunk type instead of falling through toUNKNOWN, improving search precision.- Chunk size enforcement — All parsers now enforce a central size guard before DB persistence; oversized chunks are split automatically, preventing embedding API failures.
- Windows compatibility — Cross-platform temp directory handling for Claude Code CLI provider;
shutil.whichreplaces Unix-onlywhichfor git binary detection. - Version management — Supports PEP 440 pre-release formats (alpha, beta, RC) with safety checks to prevent accidental releases from uncommitted work.
- Multi-client MCP daemon — index lock conflict handling —
chunkhound indexnow detects a running daemon’s lock file on DuckDB conflict: a healthy daemon prints an informational message and exits cleanly; an unresponsive daemon prompts the user to kill it and retry. - Python import resolution — Import statements are now resolved more accurately in Python code research, improving cross-file symbol discovery.
Performance
- LanceDB dimension detection — Table creation now detects embedding dimensions upfront from the configured provider, eliminating the O(n) table recreation penalty during first embedding insertion for large codebases (e.g. 16,000+ chunks no longer require full table migration).
Fixed
- Cross-repo data loss — Re-indexing a subdirectory in a shared workspace no longer deletes other repositories’ data from the database (fixes #87).
- Global gitignore false exclusions —
~/.gitignorewas incorrectly used as a global excludes fallback, causing all files to be excluded when a dotfiles repo contained broad patterns like*(fixes #216). - MCP startup error visibility — DuckDB lock conflicts and config validation errors now surface as JSON-RPC error responses instead of silently exiting, with a specific hint to kill stale processes on lock conflicts.
- Gemini LLM timeout — All
code_researchcalls no longer fail immediately; the 120s timeout was being passed as 120ms to the google-genai SDK. - Gemini LLM initialization — Gemini provider no longer fails to register when
base_urlis present in config, restoringcode_researchavailability. - VoyageAI
api_base→base_url— voyageai ≥0.3.7 renamed the parameter; ChunkHound now detects the correct key at runtime, preventing Azure ML endpoint rejections. tree-sitter-language-pack1.0.0 incompatibility — Pinned to<1.0.0to prevent fresh installs from pulling the breaking release that made YAML, MATLAB, Swift, and other language-pack parsers fail at startup.- Global chunk deduplication — YAML and Universal parsers now participate in chunk deduplication, preventing duplicate chunk IDs that caused indexing failures on repeated config values.
hdbscanstartup crash under numpy 2.x — Replacedhdbscanpackage (which uses the numpy 1.x ABI) withsklearn.cluster.HDBSCAN(already a dependency), eliminating MCP daemon startup failures on systems running numpy 2.x.- Windows MCP unicode safety — MCP server stdout on Windows is now reconfigured with
errors='backslashreplace'to prevent crashes when source files contain non-UTF-8 bytes; applied to bothmain()andmain_sync()entry points (fixes #225). - HDBSCAN outlier cluster assignment — Outliers in Phase 2 cluster merging were mapped to incorrect final cluster indices, causing code research results to be grouped with unrelated code. Fixed by threading the cluster-id-to-final-index mapping through the outlier merge step.
- Symlink path preservation — Worktree and repository symlink paths are now stored as their symlink paths during indexing instead of being silently resolved to their targets (fixes #102).
Removed
CHUNKHOUND_EMBEDDING_OPTIMIZATION_BATCH_FREQUENCY— Database optimization now runs once at indexing end; the per-batch frequency config option is removed.
4.0.1 - 2025-11-12
Fixed
- Package build configuration now excludes test fixtures from distribution, reducing package size and removing unnecessary test data from published releases
4.0.0 - 2025-11-12
Added
- Map-reduce synthesis for dramatically improved research accuracy - clusters related files and synthesizes them separately before combining insights
- Compact numbered citation system
[1][2][3]replacing verbosefile.py:123references for better readability - Automatic query expansion with intelligent deduplication to find more relevant results
- Structured JSON output support for LLM providers enabling programmatic research workflows
- Tree progress display with event system for visual research feedback
chunkhound research <query>command for direct code research without starting MCP serverchunkhound index --simulate [--json]- Dry-run mode showing which files would be indexed without making changeschunkhound diagnose [--json]- Troubleshooting command comparing ChunkHound’s decisions vs git’s ignore ruleschunkhound calibrate- Automatic batch size performance tuning for Qwen3 reranker--show-sizesflag for file size reporting during indexing- Swift language support with tree-sitter parsing for classes, protocols, functions, and properties (
.swift,.swiftinterface) - Objective-C support with content detection to disambiguate from MATLAB (
.mfiles) - Zig language support with comprehensive tree-sitter parsing
- Haskell language support for functions, types, classes, and modules (
.hs,.lhs,.hs-boot,.hsig,.hsc) - HCL (HashiCorp Configuration Language) support for Terraform with nested object parsing (
.hcl,.tf,.tfvars) - Vue.js Single File Component (SFC) support with specialized parsing for template, script, and style sections
- Svelte Single File Component support with specialized parsing for template, script, and style sections (
.svelte) - Vue cross-reference tracking between template elements and script definitions for enhanced semantic understanding
- PHP language support with comprehensive parsing for classes, interfaces, traits, functions, methods, namespaces, and PHPDoc comments
- RapidYAML parser using native bindings (10-100x faster than tree-sitter for large YAML files)
- Helm template sanitizer for Go template syntax in Kubernetes manifests
- Automatic fallback to tree-sitter parser when RapidYAML encounters issues
- Benchmark harness comparing PyYAML, universal, and RapidYAML performance (
scripts/bench_yaml.py) - Repo-aware ignore engine respecting repository boundaries and preventing rule leakage between sibling repos
- Workspace overlay mode collecting .gitignore rules from root and nested files with correct anchoring
- Combined exclusion modes:
indexing.exclude_modesupports"combined","config_only", or"gitignore_only" - Wildcard directory segment matching for patterns like
**/.venv*/and**/*.phar/ - Git pathspec capping with fallback to prevent pathspec explosion (default: 128, env:
CHUNKHOUND_INDEXING__GIT_PATHSPEC_CAP) - Real-time telemetry for git pathspec usage and exclusion sources
- TEI (Text Embeddings Inference) reranking format support alongside Cohere format
- Automatic reranker format detection from response field names (Cohere vs TEI)
- Thread-safe format caching for consistent reranker behavior across requests
- Authorization header support for TEI endpoints with
--api-keyflag - Qwen3 reranker with automatic batch size calibration for optimal performance
- Async regex search methods for concurrent search operations
- Claude Code CLI provider with direct integration (
claude-code-cli) - Codex CLI provider for synthesis workflows
- AWS Anthropic Bedrock provider using official Anthropic SDK
- Provider-specific synthesis concurrency limits: OpenAI (3), Bedrock (5), Claude CLI (1)
- Smart change detection using checksums for verification when mtime/size differ
- Content hash support in both DuckDB and LanceDB providers
- DuckDB schema migration with
files.content_hashcolumn (idempotent viaALTER TABLE IF NOT EXISTS) - LanceDB execute_query adapter for lightweight batch SELECT operations
- In-memory database mode for simulate on fresh workspaces (no .chunkhound/ directory created)
- Checkpointing and recovery for more robust indexing coordinator
- Per-file timeout controls:
indexing.per_file_timeout_seconds,indexing.per_file_timeout_min_size_kb - Configurable host parameter for HTTP MCP server (
--hostfor binding to specific interfaces) - Size-based filtering threshold for structured config files (JSON/YAML/TOML)
- Environment variable override for DB executor timeout:
CHUNKHOUND_DB_EXECUTE_TIMEOUT - Comprehensive test suites for Swift, Objective-C, Zig, Java, C#, Python, PHP, Vue, HCL
- Test fixtures for refactored research modules with fake providers and better mocks
Enhanced
- Native git bindings for gitignore exclusions replacing Python-based pattern matching (10-100x faster indexing)
- Parallel directory discovery with auto-scaling for enterprise monorepos
- Concurrent file parsing using ProcessPoolExecutor across CPU cores
- Lazy parser instantiation reducing startup time
- Single-file fast path using in-process handling (no ProcessPool overhead)
- Single-read checksum verification eliminating redundant file I/O
- Provider-aware embedding concurrency: OpenAI (8 concurrent batches), VoyageAI (40 concurrent batches)
- Automatic retry logic for VoyageAI embedding provider
- Real-time embedding pass: dedicated “embed” phase after quick parse/store for new chunks
- Removed redundant reranking passes from deep research pipeline
- xxHash3-64 replacing SHA-256 for faster file change detection
- Git pathspec capping preventing pathspec explosion (configurable via env)
- In-memory DuckDB for simulate mode on fresh workspaces
- Automatic parser worker auto-scaling to CPU count when timeouts enabled (capped at 32)
- Split progress reporting: “Parsing files” vs “Handling files” with live cumulative info
- Better error messages and truncation detection for LLM responses
- Non-TTY progress fallback properly working in CI environments
- Improved diagnostics for parse/store errors with clearer failure messages
- Post-run prompt to add timed-out files to
indexing.excludewhen interactive - Skipped file counts broken out into “Unchanged” and “Filtered” buckets
- Raw markdown output from code_research tool for better formatting in Claude
- Lazy imports for MCP-safe stdio operation
- Proper JSON-RPC handshake reliability
- Test-mode patches for Codex CLI integration (env-gated, no production impact)
- Increased startup wait time for Mac CI stability (3s → 5s)
- TEI reranking format comprehensive guide in CLAUDE.md
- Test coverage documentation with refactoring progress
- README improvements with startup profile CAP notes and exclusions section updates
- Benchmark instructions for YAML parser performance testing
- MCP setup improvements with multi-client support and
--show-setupflag
Changed
- BREAKING: Removed
depthparameter fromcode_researchMCP tool - system now auto-scales synthesis budgets based on repository size - BREAKING: Checksum algorithm switched from SHA-256 to xxHash3-64 for faster file change detection - all files will be reindexed on first run after upgrade
- BREAKING: Default exclusion behavior changed - providing
indexing.excludelist no longer disables .gitignore (useexclude_mode: "config_only"for legacy behavior) - BREAKING: RapidYAML is now the default YAML parser (set
CHUNKHOUND_YAML_ENGINE=treeto revert to tree-sitter) - BREAKING: LanceDB provider now requires
content_hashcolumn in files schema - Default per-file timeout enabled:
indexing.per_file_timeout_seconds=3.0(previously0, disabled) - Parser workers auto-scale to CPU count when timeouts enabled (capped at 32)
- Combined exclusion mode is now default: overlays gitignore + config excludes instead of replacing
- Model defaults updated to Haiku 4.5 for claude-code-cli and bedrock providers
- Deep research service refactored into specialized modules: question_generator, synthesis_engine, budget_calculator, citation_manager, quality_validator
- Search service refactored into strategies: context_retriever, single_hop_strategy, multi_hop_strategy, result_enhancer
- Extracted research pipeline modules: unified_search, query_expander, file_reader, context_manager
Fixed
- Fixed double “**/” prefix preventing root file matches in default excludes
- Fixed real-time indexing for newly added languages
- Fixed file diversity collapse in deep research using proper reranking
- Fixed TOML parser to extract only matched node content instead of entire file
- Fixed tree-sitter language names for C# and Makefile parsers
- Fixed .gitignore pattern handling and error logging
- Fixed symbol validation inconsistency in Chunk.from_dict()
- Fixed Config.init to respect target_dir kwarg in tests
- Fixed DuckDB
get_file_by_path(as_model=True)to return correct mtime and size_bytes for accurate skip checks - Fixed registry provider instance handling (was storing lambda instead of provider)
- Fixed orphaned embeddings cleanup with proper per-call db_path configuration
- Fixed LanceDB optimize() API usage for 0.21.0+ (cleanup_older_than parameter)
- Fixed single-file indexing to use in-process path and call on_batch for immediate storage
- Fixed missing sources in synthesis by using correct chunk.content field (was chunk.code)
- Fixed flaky multi-hop semantic chain test
- Fixed reranker single-batch top_k filtering for consistency across backends
- Fixed concurrent rerank calls using aiohttp (replaced custom socket-based HTTP)
- Fixed MCP stdio flow for code_research end-to-end reliability
- Fixed non-TTY progress manager regression (added minimal Progress shim for CI)
- Fixed exception classes to allow traceback assignment (removed frozen dataclass)
- Fixed Windows path separator issues in gitignore pattern generation and matching
- Fixed ProcessPoolExecutor segfault on Linux by forcing spawn multiprocessing
- Fixed flaky QA test with file processing completion polling
- Fixed real-time indexing flakiness with proper timeout handling and task cleanup
Removed
- Removed AWS Bedrock provider (consolidated to Anthropic SDK-based Bedrock provider)
- Removed research tools setup section from CONTRIBUTING.md (obsolete)
- Removed obsolete tests incompatible with refactored modular architecture
Security
- Removed embedded API key from
.chunkhound.json- use environment variables instead (e.g.,CHUNKHOUND_EMBEDDING__API_KEY)
3.3.1 - 2025-09-25
Enhanced
- Dependency updates to latest stable versions for improved stability and performance
- Test infrastructure reliability with better provider detection and error handling
Fixed
- Tree-sitter 0.25.x API compatibility ensuring parsing works with latest language parsers
- Code formatting and import organization for cleaner, more maintainable codebase
3.3.0 - 2025-09-21
Added
- Official Windows support with full CI testing across Windows, macOS, and Ubuntu
- Command-line search functionality (
chunkhound search) for semantic and regex queries without starting MCP - CONTRIBUTING.md guidelines
- Setup wizard when
.chunkhound.jsonisn’t found in the directory
Fixed
- File exclude patterns (/tmp/) on Linux systems
- Regex search path resolution across platforms
3.2.0 - 2025-08-24
Enhanced
- Semantic search upgraded from two-hop to dynamic multi-hop expansion with intelligent stopping criteria, delivering more comprehensive and contextually relevant results while avoiding search explosion
3.1.0 - 2025-08-21
Added
- PDF document parsing and indexing with full text extraction using PyMuPDF integration
Enhanced
- Language support expanded to 29 languages with comprehensive documentation breakdown
Fixed
- JSON file parsing now extracts specific node content instead of entire file content, improving search precision and reducing noise
3.0.1 - 2025-08-21
Enhanced
- Documentation site improved with cross-linking between pages and hero image for better navigation
- OpenAI-compatible endpoint flexibility increased by making API keys optional for local deployments
- Test infrastructure reliability improved with comprehensive CI fixes and timeout handling
Fixed
- JSON file parsing now handles empty chunks correctly, eliminating indexing failures on common JSON patterns
- Test suite stability enhanced with proper background task cleanup and configuration isolation
- GitHub Actions workflow simplified and made more reliable by removing redundant processes
3.0.0 - 2025-08-20
Added
- VoyageAI embedding provider with advanced two-hop semantic search and reranking capabilities
- GitHub Pages documentation site with interactive examples and improved navigation
- Intelligent file exclusion system with .gitignore support and JSON size filtering
- Advanced makefile parsing with dependency analysis for better code comprehension
- Comprehensive test suite for database consistency and integration testing
- Real-time filesystem indexing with MCP integration for live code monitoring
Enhanced
- Parsing system completely rebuilt with cAST (Code AST) algorithm for universal language support
- Configuration system dramatically simplified with fewer user-facing options for easier setup
- OpenAI provider unified to handle both standard and custom OpenAI-compatible endpoints
- MCP server reliability improved with proper initialization sequencing and watchdog coordination
- Test infrastructure enhanced with Ollama compatibility and extended timeouts
- Directory indexing consolidated between CLI and MCP with shared service architecture
Fixed
- MCP server initialization blocking resolved - no more startup deadlocks during directory scanning
- Custom OpenAI endpoint configuration now properly recognized and applied
- Real-time indexing now generates missing embeddings for unchanged code chunks
- SSL verification disabled for custom OpenAI-compatible endpoints to support local deployments
- Watchdog filesystem monitoring no longer blocks MCP server startup process
- MCP server properly respects target directory path arguments across all operations
Removed
- TEI (Text Embeddings Inference) provider support - simplified provider ecosystem
- BGE provider support - consolidated to core providers for better maintenance
- Legacy parsing system replaced with modern cAST algorithm
- Obsolete configuration documentation and setup files cleaned up
2.8.1 - 2025-07-20
Enhanced
- Architecture documentation significantly improved for better LLM comprehension and AI-assisted development workflows
Fixed
- Type annotation syntax errors that could cause import failures in Python 3.10+ environments
- Enhanced smoke tests now detect forward reference type annotation issues early
2.8.0 - 2025-07-20
Added
- MCP HTTP transport support alongside stdio transport for flexible deployment options
Enhanced
- Configuration system unified across CLI and MCP components for consistent behavior
- File change processing reliability improved in MCP servers with better debouncing and coordination
- Database portability enhanced with relative path storage
Fixed
- MCP server initialization deadlocks and startup crashes resolved with proper async coordination
- File deletion handling improved using IndexingCoordinator for better reliability
- MCP server tool discovery enhanced with fallback logic for better error recovery
- File path resolution improved in DuckDB provider for cross-platform consistency
2.7.0 - 2025-07-12
Fixed
- MCP server now uses configured embedding model instead of hardcoded text-embedding-3-small default, ensuring semantic search works with any configured model
- MCP test environment improvements with comprehensive test data and configuration files
2.6.3 - 2025-07-10
Fixed
- Configuration merge precedence now correctly preserves environment variables over JSON config values
- MCP server semantic search now works properly when running from different directories
Removed
- Removed obsolete Ubuntu 20 Dockerfile as issue was resolved in configuration system
2.6.2 - 2025-07-10
Fixed
- MCP server now properly loads embedding provider configuration from target directory
2.6.1 - 2025-07-10
Fixed
- MCP server now properly respects CLI-provided project root directory for configuration loading
- Configuration files (.chunkhound.json) are now correctly loaded when running MCP server from different directories
2.6.0 - 2025-07-10
Fixed
- MCP server crashes on Ubuntu and Linux systems when running from different directories by fixing database path resolution and process coordination
- Enhanced TaskGroup error reporting to show underlying causes instead of generic wrapper errors
- Configuration file loading in MCP server now properly respects .chunkhound.json files in target directories
- Database lock conflicts between multiple MCP instances resolved with proper process detection
Enhanced
- Docker test infrastructure for MCP server validation to prevent future regressions
- Improved error messages for debugging MCP server issues with detailed analysis
2.5.4 - 2025-07-10
Fixed
- MCP server reliability on Ubuntu and other Linux distributions when running from different directories
- Database path resolution consistency across all MCP server components
2.5.3 - 2025-07-10
Fixed
- MCP server communication reliability improved by removing debug logging that interfered with JSON-RPC protocol
2.5.2 - 2025-07-10
Added
- Automatic database optimization during embedding generation to maintain performance with large datasets (every 1000 batches, configurable via
CHUNKHOUND_EMBEDDING_OPTIMIZATION_BATCH_FREQUENCY)
Fixed
- MCP server compatibility on Ubuntu and other strict platforms by preserving virtual environment context in subprocesses
- OpenAI embedding provider crash on Ubuntu due to async resource creation outside event loop context
2.5.1 - 2025-01-09
Fixed
- Project detection now properly respects CHUNKHOUND_PROJECT_ROOT environment variable, ensuring MCP command works correctly when launched from any directory
- Removed duplicate MCP parser function that could cause confusion
2.5.0 - 2025-01-09
Enhanced
- MCP positional path argument now controls complete project scope - database location, config file search, and watch paths are all set to the specified directory instead of just watch paths
Fixed
- MCP launcher import path resolution when running from different directories, eliminating TaskGroup errors on Ubuntu and other strict platforms
2.4.4 - 2025-01-09
Fixed
- Ubuntu TaskGroup crash fixed by removing problematic directory change in MCP launcher
2.4.3 - 2025-01-09
Fixed
- MCP server now works correctly when launched from any directory, not just the project root
- Fixed path resolution inconsistencies that caused TaskGroup errors on Ubuntu deployments
2.4.2 - 2025-01-09
Added
- MCP command now accepts optional path argument to specify directory for indexing and watching (defaults to current directory)
Fixed
- Parser architecture inconsistencies resolved across C, Bash, and Makefile parsers for consistent search functionality
- MCP server database duplication eliminated through proper async task isolation
- LanceDB storage growth controlled with automatic optimization during quiet periods
- MCP server reliability improved with corrected import structure and dependency resolution
- Python parser behavior now consistent between CLI and MCP modes
- Search operation freezes after file deletion resolved with proper thread safety
2.4.1 - 2025-01-09
Fixed
- Package structure consolidated under chunkhound/ directory for improved import reliability and Python packaging best practices
2.4.0 - 2025-01-09
Fixed
- LanceDB storage growth issue resolved with automatic database optimization during quiet periods
- Configuration system project root detection for .chunkhound.json files improved
Changed
- Enhanced database provider architecture with capability detection and activity tracking
- Modernized configuration system by removing legacy registry config building
2.3.1 - 2025-07-09
Fixed
- MCP server communication reliability improved by preventing stderr output from corrupting JSON-RPC messages
- Enhanced configuration documentation with automatic .chunkhound.json detection examples
2.3.0 - 2025-07-08
Changed
- BREAKING: Configuration system completely refactored with centralized management and clear precedence hierarchy
- BREAKING: Automatic configuration file loading removed - config files now only load with explicit
--configflag - BREAKING: Environment variables standardized to
CHUNKHOUND_*prefix with__delimiters (e.g.,CHUNKHOUND_EMBEDDING__API_KEY) - BREAKING: Legacy
OPENAI_API_KEYandOPENAI_BASE_URLenvironment variables no longer supported
Added
- Complete CLI argument coverage for all configuration options
- Centralized configuration precedence: CLI args → Config file → Environment variables → Defaults
- Comprehensive migration guide for updating existing configurations
- Database file gitignore pattern for Lance database files
Fixed
- MCP server database duplication caused by shared transaction state across async tasks
- Parser architecture inconsistencies for C, Bash, and Makefile language parsers
- Configuration auto-detection issues that caused deployment complexity
2.2.0 - 2025-01-07
Fixed
- Database freezing during concurrent file operations through proper async/sync boundary handling
- Thread safety issues in DuckDB provider with synchronized WAL cleanup and operation timeouts
- LanceDB duplicate file entries through atomic merge operations and path normalization
- File deletion operations now properly handle async contexts without blocking the event loop
Changed
- Aligned LanceDB provider with serial executor pattern for consistency with DuckDB
- Improved path normalization to handle symlinks and different path representations
- Enhanced database operation reliability with proper thread isolation
Added
- Support for complete configuration storage including API keys in .chunkhound.json files
- Consolidated embedding provider creation system for consistent behavior across CLI and config files
2.1.4 - 2025-07-03
Fixed
- CLI argument defaults no longer override config file values
- Updated dependencies via uv.lock
2.1.3 - 2025-07-03
Changed
- Consolidated embedding provider creation to use single factory pattern for consistency
- Reduced embedding provider log verbosity for cleaner output
2.1.2 - 2025-07-03
Fixed
- API key configuration loading from .chunkhound.json files
- Configuration precedence documentation to match actual behavior
Added
- Complete configuration examples with API key and security guidance
2.1.1 - 2025-07-03
Added
- Centralized version management system for consistent versioning across all components
Changed
- Simplified version updates through automated scripts
- Enhanced installation and development documentation
- Code formatting improvements and linting cleanup
Fixed
- Version consistency across CLI, MCP server, and package initialization
- Import statement in package
__init__.pyfor better module exposure
2.1.0 - 2025-07-02
Fixed
- Database duplication in MCP server by implementing single-threaded executor pattern
- WAL corruption handling during DuckDB catalog replay
- Parser architecture inconsistencies for C, Bash, and Makefile parsers
- DuckDB foreign key constraint transaction limitations
- Python parser CLI/MCP divergence through unified factory pattern
- Connection management architectural violations
Changed
- Consolidated database operations through DuckDBProvider executor pattern
- Simplified ConnectionManager to handle only connection lifecycle
- Updated file discovery patterns to include all 16 supported languages
- Removed deprecated connection methods and schema fields
- Enhanced transaction handling with contextvars for task isolation
Added
- Automatic database migration system for schema updates
- Enhanced parser functionality for C pointer functions and Bash function bodies
- Task-local transaction state management
- Comprehensive executor methods for database operations
2.0.0 - 2025-06-26
Added
- 10 new language parsers: Rust, Go, C++, C, Kotlin, Groovy, Bash, TOML, Makefile, Matlab
- Search pagination with response size limits
- Registry-based parser architecture
- MCP search task coordinator
- Test coverage for file modification tracking
- Comment and docstring indexing for all language parsers
- Background periodic indexing for better performance
- Path filtering support for targeted searches
- HNSW index WAL recovery with enhanced checkpoints
- Embedding cache optimization with CRC32-based content tracking
Changed
- BREAKING: ‘run’ command renamed to ‘index’ with current directory default
- BREAKING: Parser system refactored to registry pattern
- Centralized language support in Language enum
- Optimized embedding performance with token-aware batching
- Enhanced PyInstaller compatibility
- Improved cross-platform build support (Windows, Ubuntu Docker)
- Enhanced MCP server JSON-RPC communication with logging suppression
Fixed
- Parser error handling and registry integration
- OpenAI token limit handling
- PyInstaller module path resolution
- Database WAL corruption issues on server exit
- File watcher cancellation responsiveness
- Signal handler safety by removing unsafe database operations
- Windows PyInstaller and MATLAB dependency issues
- Build workflow reliability across platforms
1.2.3 - 2025-06-23
Changed
- Default database location changed to current directory for better persistence
Fixed
- OpenAI token limit exceeded error with dynamic batching for large embedding requests
- Empty chunk filtering to reduce noise in search results
- Python parser validation for empty symbol names
- Windows build support with comprehensive GitHub Actions workflow
- macOS Intel build issues with UV package manager installation
- Cross-platform build workflow reliability
Added
- Windows build support with automated testing
- Enhanced debugging for build processes across platforms
1.2.2 - 2024-12-15
Added
- File watching CLI for real-time code monitoring
Changed
- Unified JavaScript and TypeScript parsers
- Default database location to current directory
Fixed
- Empty symbol validation in Python parser
1.2.1 - 2024-11-28
Added
- Ubuntu 20.04 build support
- Token limit management for MCP search
Fixed
- Duplicate chunks after file edits
- File modification detection race conditions
1.2.0 - 2024-11-15
Added
- C# language support
- JSON, YAML, and plain text file support
- File watching with real-time indexing
Fixed
- File deletion handling
- Database connection issues
1.1.0 - 2025-06-12
Added
- Multi-language support: TypeScript, JavaScript, C#, Java, and Markdown
- Comprehensive CLI interface
- Binary distribution with faster startup
Changed
- Improved CLI startup performance (90% faster)
- Binary startup performance (16x faster)
Fixed
- Version display consistency
- Cross-platform build issues
1.0.1 - 2025-06-11
Added
- Python 3.10+ compatibility
- PyPI publishing
- Standalone executable support
- MCP server integration
Fixed
- Dependency conflicts
- OpenAI model parameter handling
- Binary compilation issues
1.0.0 - 2025-06-10
Added
- Initial release of ChunkHound
- Python parsing with tree-sitter
- DuckDB backend for storage and search
- OpenAI embeddings for semantic search
- CLI interface for indexing and searching
- MCP server for AI assistant integration
- File watching for real-time indexing
- Regex search capabilities
For more information, visit: https://github.com/chunkhound/chunkhound