Caveman 4.1.0 is a maintenance release: bug fixes across compress, OpenCode, Hermes, Pi, the proxy and the hooks, a recovery store that no longer fills up and stops compressing, and a few small switches people asked for. caveman-compress now refuses a file with a key or token in it, and installs from skill hubs again.
Action needed
forward_headers under a providers.<name> block now stops the proxy from starting. Before, it was silently ignored: no headers were forwarded and the only symptom was an upstream 401. Configure that upstream as a compat mount instead: compat.<name> with base_url and forward_headers, plus wire_dialect: anthropic if it speaks the Anthropic protocol (see docs/technical/configuration.md) (#1458).
- caveman-compress refuses a file whose text holds a credential, such as a private key block or a cloud, Git host or model API token. Compression sends the file to your model provider, so move the secret into an env var or secret manager first. The error names the line, never the secret. Placeholders like
sk-... or $OPENAI_API_KEY still compress (#1471).
Changed
- Old recovery handles can now expire. The recovery store used to keep every compressed original forever, so it filled up and compression stopped (#1370). When a write would exceed the store's cap, it now frees room: typed objects of sessions idle 14 days (archived) or 30 days (any) are expired, oldest first, until the store is at 80%. Retrieving an expired handle answers
cave_expired_recovery, and each expiry is logged in proxy.log. Blob recoveries never expire (#1481).
New
-
caveman-proxy recovery-store status|check|repair for a damaged ccr.db. A damaged store now refuses writes instead of staying corrupt across upgrades; reads keep working. Repair copies only rows whose bytes still match their hash, and moves the damaged files aside untouched. caveman status and caveman doctor point at it (#1369, #1481).
-
Turn off the per-prompt reminder with CAVEMAN_REINFORCE=0, or "reinforce": false in ~/.config/caveman/config.json or a repo's .caveman.json. The full ruleset is still sent at session start (#1468).
-
--hook-node node makes installed hooks find Node through PATH at run time instead of pinning the install-time path, for people who switch Node versions (#1452). The default is unchanged, because apps started outside a terminal don't see the shell's PATH.
-
The installer falls back to Bun when Node is absent. Node stays first (#570, #1344 by @cyrus-za).
-
caveman learn scans Pi sessions, and honors PI_CODING_AGENT_DIR / PI_CODING_AGENT_SESSION_DIR (#1317 by @tranducquy0).
-
caveman mem can revert a memory to an earlier value, and supersede --stdin takes replacements too large for a command line (#1386 by @PARTHDESHMUKH2005). The client checks that the installed binary supports --stdin first, so an older binary can no longer store the literal text --stdin as the fact.
Fixed
caveman-compress
- Hermes' skill hub blocked the install with a DANGEROUS verdict that
--force can't override. Every finding was a false match, and the matched text is respelled with identical behavior (#1464).
- Backups are keyed on the file's full path, so two projects'
CLAUDE.md no longer share one backup slot. A run that dies before writing removes its backup and staging file, so the next run doesn't abort.
- Validation now refuses commentary appended after the body (#1433). The prompt keeps the verb that carries an instruction (#1434). Frontmatter stays local on both passes (#1359 by @leninworld). Trailing punctuation on URLs and paths no longer fails validation (#1356 by @Pharex38). Credential dotfiles and bare dotfiles like
.env are refused by name (#1357 by @Pharex38, #1363).
OpenCode
- OpenCode 2: the shrink plugin is generated for the API the installed major actually loads (#1445).
OPENCODE_CONFIG_DIR is honored everywhere (#1441). Deleted sessions are acted on (#1444), and the host's project directory is passed through (#1443).
- The installer's already-installed probe reads JSONC
settings.json correctly, and the plugin honors a repo defaultMode: "off" (#1430, #1431 by @Quinnod345).
Hermes
caveman enable hermes writes YAML that still parses (#1405). It reads ownership by value, so a reformatted config stays owned (#1410). It honors plugins.enabled / plugins.disabled membership (#1442, #1446 by @Ha1baraA11).
Pi (@caveman-ai/pi 0.3.2)
- Per-prompt context is sent as a message, so the provider's prompt cache survives each prompt (#1364, #1376 by @worldofgeese).
- Tool outputs under 4 KB are no longer replaced by a retrieval handle (#1365, #1378 by @danieldutu).
caveman_retrieve with a query now says it returns an excerpt (#1368, #1377 by @danieldutu).
- Pi's virtual
router/auto model no longer warns that it is unroutable (#1449). The compat route is verified for an OpenAI base URL without /v1 (#1325 by @szsunyuan).
Proxy, stats and cost
- Claude Code requests that declare the advisor tool are priced again, instead of every request showing "Unknown" cost (#1465). Streaming Anthropic responses read their outcome qualifiers from the right place (#1453).
- A completed Codex stream closed by the client keeps its token counts (#1397, #1398 by @Ha1baraA11).
caveman start reads the proxy's top-level mode, not a nested middleware.mode (#1457).
- A compat upstream blocked by the SSRF guard now answers
cave_upstream_blocked and logs the host plus the CAVE_SSRF_ALLOWLIST fix, instead of a generic 502 (#1440).
caveman stats no longer times out on large stores: per-request cache digests moved to their own table, migrated in the background (#1371, #1481). On a timeout it names the database size and suggests --days 7.
- Native runtime: CCR writes no longer re-scan the whole store, which in large homes made native requests run out their 250 ms budget and close empty (#1279). Overlong
native.sock paths are reported (#1399, #1402 by @Ha1baraA11).
- Recovery bytes that don't match their handle are refused (#1373 by @zsltg). The recovery store's page cap applies on every connection, and its writes are serialized (#1374, #1375 by @zsltg). Stats windows are indexed (#1372 by @zsltg). Bedrock ARN model ids keep their encoded slash (#1345 by @AlSh007). A middleware response is not marked over the limit at a quarter of it (#1367 by @AlSh007). Kimi K3 effort is mapped (#1306 by @ysntony). The wrap plugin's
caveman_retrieve results are no longer recompressed (#1432).
- Claude OAuth token refresh is relayed through the proxy. Routed Gemini pins API-key auth instead of exiting 41.
- The pricing catalog was re-verified against vendor pages (no price changed). Vertex
gemini-2.5-pro and gemini-2.5-flash were removed: Google retired both on 2026-10-20, and those requests now show as unpriced rather than mispriced (#1473).
Hooks and installer
- Statusline setup keeps literal
$ in CLAUDE_CONFIG_DIR paths (#1400, #1401 by @Ha1baraA11). Managed hook entries are compared ignoring key order, so doctor --fix stops fighting a reordered entry (#1437, #1420 by @jamestrandung). Uninstall no longer deletes a settings.json.bak it didn't create (#1330 by @AlSh007).
- Codex PostCompact hook output is valid (#1467 by @mauhpr). Cursor stops always injecting skill files from
AGENTS.md (#1411 by @minhhung2556). Hook downloads are bounded and pinned to HTTPS (#1269 by @tejgokani).
ENABLE_TOOL_SEARCH defaults to "true" to match Claude Code (#1362 by @AliReza99).
Engine, shrink and learn
- Escaped pipes stay inside Markdown table cells (#1456 by @kevin9327). Integers above 2^53 stay off the numeric range track (#1332 by @AlSh007). Elision notes are placed stably (#1343 by @CHLIN0). CR-separated terminal output is no longer truncated.
caveman-shrink skips null list entries instead of exiting (#1435, #1436 by @shaikn6), and reads Anthropic input_schema tools (#1331 by @AlSh007).
caveman learn stops reporting caveman's own injected context as text you pasted (#1459), and separates cold resumes from cache churn (#1419 by @jamestrandung).
Agent versions
- Tested agent versions move up: Codex 0.166.0, Claude Code 2.1.318, Gemini CLI 0.67.0, OpenCode 1.19.5, Qwen Code 0.26.8, Kilo 7.8.27, OpenClaw 2026.11.1 and Hermes 0.23.0, each passing the repo's conformance run (#1474, with #1416 by @szsunyuan and #1451 by @anirudhqwerty). Pi stays at 1.0.4 for now; Pi 1.5.0 needs compatibility work (#1225).
Maintenance
- Security:
klauspost/compress v1.20.3 (GO-2026-6865), golang.org/x/net v0.62.0 (GO-2026-6860, GO-2026-6866), and a patched Go toolchain. @caveman-ai/middleware's MCP adapter now requires @modelcontextprotocol/sdk 1.32.0 or newer (GHSA-6prh-2h8m-c8cw), and says so when it finds an older one (#1466 by @sudip28122812-creator). filelock is patched, and the broken litellm releases are excluded (#1379 by @szsunyuan).
- Dependency bumps: npm dev group (#1479), golang image, pip group.
- Binaries:
bin-v4.1.0. CLI: @caveman-ai/cli 4.1.0. Pi: @caveman-ai/pi 0.3.2.
Packages
详细ChangeLog
middleware-python-v1.0.1
2026年11月08日
- Security: the
litellm extra excludes litellm 1.107.0, which upstream
reported compromised
(security incident, 2026-10-21),
and 1.106.0 to 1.106.2, which import the optional mcp package on ordinary
tool calls. The extra also requires a patched filelock (4.2.1 or later).
anthropic 2.x is inside the supported range (>=1.0,<3). Before this, the
latest SDK passed content through with an unsupported_version warning.
Verify this release
详细ChangeLog
middleware-ts-v1.1.0
2026年11月08日
- Security: the MCP adapter now requires
@modelcontextprotocol/sdk 1.32.0 or
later. Earlier releases followed redirects to any origin and handed it custom
headers, and on 307/308 the request body including OAuth tokens
(GHSA-6prh-2h8m-c8cw).
With 1.30.x or 1.31.x installed, MCP results pass through uncompressed and a
warning names the advisory and the version to upgrade to.
@anthropic-ai/sdk 0.132.0 through 0.137.0 and the 1.x major (tested 1.0.0
and 1.1.0) are inside the supported range (>=0.124.0 <2). Before this, the
latest SDK passed content through with an unsupported_version warning.
- Mastra: call options forward again across
@mastra/core's vendored
@ai-sdk/provider types, which lagged the real package and failed tsc.
Verify this release
详细ChangeLog
Signed Caveman runtime companions for macOS, Linux, and Windows. The binaries are licensed under the Apache License 2.0 (LICENSE, NOTICE); see LICENSING.md and the attached third-party notices. The ghcr.io caveman-proxy image is still built without cgo, so its code compressor handles Go source only; the caveman-proxy and caveman-engine binaries here also compress TypeScript, JavaScript, Python, Rust, Java and C/C++.
详细ChangeLog
Signed Caveman runtime companions for macOS, Linux, and Windows. The binaries are licensed under the Apache License 2.0 (LICENSE, NOTICE); see LICENSING.md and the attached third-party notices. The ghcr.io caveman-proxy image is still built without cgo, so its code compressor handles Go source only; the caveman-proxy and caveman-engine binaries here also compress TypeScript, JavaScript, Python, Rust, Java and C/C++.
详细ChangeLog
Caveman 4.0.1 fixes what turned up in the first hours of 4.0.0: a Windows uninstall bug, a sync that could never catch up, and problems on OpenCode 2 and Pi.
Windows
caveman off --all left the Caveman Blocks hook in Claude Code's settings, and every caveman setup added another copy. Blocks v0.1.0-rc.5 installs its binary as .exe, recognises the entries rc.4 wrote, and replaces them on the next caveman setup.
- An npm
.cmd shim that forwards to a native .exe launches again.
- Hook child processes no longer flash a console window.
Sync
caveman sync uploads a large backlog of local spans in batches. Before, a store over the 16 MiB import cap failed with "Request body exceeds configured limit" on every retry.
- The
ExperimentalWarning: SQLite line is gone.
- Known issue: the practice-findings part of
caveman sync still reports "Request rejected". That is a Caveman Cloud bug and needs no CLI update once Cloud is fixed.
OpenCode
- On OpenCode 2, a subagent spawn reset the mode for every session, undoing "stop caveman" and
/ultracave. Subagent sessions no longer touch the mode.
- The "provider is not routed" warning reads where a provider actually sends requests.
Pi
caveman wrap pi after caveman enable pi loaded the extension twice and Pi exited 1.
- Routing a model no longer resets the thinking level (
--thinking high stayed only until session start).
- Works with Pi 1.1+ custom-message turns.
@caveman-ai/pi 0.3.1: the npm package now reads Caveman 4's config and port.
Claude Code and Codex
- The prompt hook gives up after 2 seconds when the host sends no complete payload, like the other hooks.
- Blocks honors
CLAUDE_CONFIG_DIR and CODEX_HOME; it used to write the hook into ~/.claude regardless.
caveman status no longer says "account refresh offline" after signing in to a different account.
Smaller fixes
- Proxy: one key sent in both auth headers keeps its bearer; a Termux-built proxy is recognised as Caveman's own.
- Memory: longer retry on SQLite contention.
/caveman-compress asks for a file path instead of improvising on pasted text, and says that the file goes to your model provider.
- Tested agent pins moved to current Claude Code, Codex, OpenCode, Gemini, Kilo and Qwen releases.
Versions
@caveman-ai/cli 4.0.0 → 4.0.1, binaries bin-v4.0.0 → bin-v4.0.1, @caveman-ai/pi 0.3.0 → 0.3.1, Blocks v0.1.0-rc.4 → v0.1.0-rc.5.
Companion releases
详细ChangeLog
Signed Caveman runtime companions for macOS, Linux, and Windows. The binaries are licensed under the Apache License 2.0 (LICENSE, NOTICE); see LICENSING.md and the attached third-party notices. The ghcr.io caveman-proxy image is still built without cgo, so its code compressor handles Go source only; the caveman-proxy and caveman-engine binaries here also compress TypeScript, JavaScript, Python, Rust, Java and C/C++.
详细ChangeLog
Caveman 4.0.0 makes npx @caveman-ai/cli the one install, adds Auto routing through Caveman Cloud on top of the local proxy, and ships Caveman Blocks as a module.
One command to install
npx @caveman-ai/cli opens a one-screen setup. It finds your coding agents and their logins (every Claude Code profile), shows what it will change, applies on Enter, then offers to start the agent. Without a terminal it applies only with --yes.
install.sh and install.ps1 end in the same setup, pinned to the CLI this release ships.
caveman on|off switches modules from a registry. The module index (modules.json) is listed in the signed checksum manifest of the binary release, and the CLI refuses an index that manifest does not list. A module lockfile records what is installed.
- New commands:
caveman stop, a status grid, an offline caveman doctor, caveman providers add|remove|login|local and caveman providers cloud on|off.
- One config home:
~/.caveman/cloud.json. Older config migrates once, without races, and the telemetry opt-out carries over.
- Sign-in uses the shared device flow. It refuses plain-HTTP Clouds other than this machine.
Auto routing (signed in to Caveman Cloud)
caveman-auto shows up in the Claude Code and OpenCode model pickers with a 1M context window. Routing applies only to Auto, and that includes Claude Pro/Max logins and ChatGPT logins (Codex, OpenCode).
- For each routable request the proxy asks Cloud's route stage for a model and effort (contracts
route-ask-v1) and picks from the providers you set up. If the key is refused or a billing limit is hit, the request goes through unrouted and caveman status says why.
- Translators between Messages, Chat Completions and Responses cover all nine directions, so Claude Code can run on Responses hosts such as the ChatGPT plan.
- A signed-in runtime sends
runtime/v1 event batches to Cloud and respects the telemetry opt-out.
Cache
- The proxy keeps the Anthropic prompt cache warm while a session is paused. Warm timing comes from measured return times, at most two warms run at once, and
caveman stats lists every warm.
- A session stays on its model across Cloud pauses and transient failures, so a model switch doesn't rewrite the cached prefix.
Caveman Blocks
- The binary release mirrors
caveman-ai/blocks v0.1.0-rc.4 (pinned by the digest of its checksum list). Each Blocks binary is republished under the same signed manifest as the other binaries. Blocks usage counts fall under the same telemetry notice and opt-out as Caveman's.
Catalog
- Adds Sonnet 5.5, Haiku 5.5, GPT-6.1 Sol and GPT-6 Luna.
Versions
@caveman-ai/cli goes from 2.1.0 to 4.0.0 to match the product version. Binaries move from bin-v2.1.0 to bin-v4.0.0.
- The
npx github:JuliusBrussee/caveman installer depends on CLI ^4.0.0, so -- --uninstall runs a CLI that understands what 4.0 wrote.
Companion releases
Full changes: v3.2.0...v4.0.0
Release smoke: https://github.com/JuliusBrussee/caveman/actions/runs/38431102855
详细ChangeLog
Signed Caveman runtime companions for macOS, Linux, and Windows. The binaries are licensed under the Apache License 2.0 (LICENSE, NOTICE); see LICENSING.md and the attached third-party notices. The ghcr.io caveman-proxy image is still built without cgo, so its code compressor handles Go source only; the caveman-proxy and caveman-engine binaries here also compress TypeScript, JavaScript, Python, Rust, Java and C/C++.
详细ChangeLog
middleware-ts-v1.0.1
2026年10月08日
- Version gate:
@anthropic-ai/sdk 0.129.0, 0.130.0 and 0.131.0 were tested
and are now inside the supported range (>=0.124.0 <0.132). Before this,
those releases passed content through with an unsupported_version warning.
Verify this release
详细ChangeLog