Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

docs: qualify CCR auto-resolution support for Gemini (#2044)

Rod Boeve6df6ea47064
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fa0d41f1b..11631d115 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -87,6 +87,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* **telemetry:** anonymous usage telemetry is now **opt-in** (off by default) instead of opt-out. Nothing is collected or sent unless you set `HEADROOM_TELEMETRY=on` or pass `--telemetry` to `headroom proxy` / `headroom install apply`. `is_telemetry_enabled()` is fail-closed — only explicit on-values (`on`/`true`/`1`/`yes`/`enable`/`enabled`) enable it; unset, empty, or unrecognized values stay disabled. The existing `--no-telemetry` flag and `HEADROOM_TELEMETRY=off` remain accepted for back-compat, and install manifests now write the `HEADROOM_TELEMETRY` value explicitly so generated deployments are unambiguous.
* **ccr:** `headroom_stats` now labels its formatted proxy output as a rolling/window-scoped session and adds a lifetime savings section from `/stats persistent_savings.lifetime` when present, while keeping existing summary structure and fallback JSON output behavior.
+* **docs/ccr:** qualify the current CCR auto-resolution claim by provider. The docs now state that transparent `headroom_retrieve` handling is wired on the Anthropic and OpenAI proxy paths, while native Gemini still lacks that server-side response-handler path and Gemini's OpenAI-compatible endpoint can fail round-2 continuations with `MALFORMED_FUNCTION_CALL` ([#2041](https://github.com/headroomlabs-ai/headroom/issues/2041)).
* **docs/claude:** document that `ENABLE_TOOL_SEARCH=true` is correct for the standalone Claude CLI through Headroom but currently breaks tool-result rendering in Anthropic's VSCode extension webview, and point persistent-install users at the manifest override to set `tool_envs.claude.ENABLE_TOOL_SEARCH` to `"false"` for that target ([#2028](https://github.com/headroomlabs-ai/headroom/issues/2028)).
### Features
diff --git a/docs/content/docs/ccr.mdx b/docs/content/docs/ccr.mdx
index b24e09920..18c4ff2c4 100644
--- a/docs/content/docs/ccr.mdx
+++ b/docs/content/docs/ccr.mdx
@@ -71,7 +71,16 @@ When the LLM calls `headroom_retrieve`:
3. The result is added to the conversation
4. The API call continues automatically
-The client never sees CCR tool calls -- they are handled transparently by Headroom.
+The client never sees CCR tool calls on the Anthropic and OpenAI proxy paths; Headroom resolves them transparently there.
+
+<Callout type="warning" title="Current Gemini limitation">
+ Native Gemini requests do not yet run the server-side CCR response handler, so
+ `headroom_retrieve` is not resolved transparently on that path today. Google's
+ OpenAI-compatible Gemini endpoint can also return
+ `finish_reason=MALFORMED_FUNCTION_CALL` on large function-response continuations
+ after CCR retrieval. If you need fully transparent CCR resolution today, use the
+ Anthropic or OpenAI proxy paths. See [issue #2041](https://github.com/headroomlabs-ai/headroom/issues/2041).
+</Callout>
## Phase 4: Context Tracker
@@ -94,7 +103,7 @@ Turn 5: User asks "What about the auth middleware?"
## Retrieving originals
-CCR works automatically through the proxy, but you can also retrieve cached data programmatically:
+CCR works automatically on the Anthropic and OpenAI proxy paths, but you can also retrieve cached data programmatically:
<Tabs groupId="lang" items={['TypeScript', 'Python']}>
<Tab value="TypeScript">