---
title: "Caveman Local Proxy Token Compression Benchmark Index"
slug: "caveman-local-proxy-token-compression-benchmark-index"
description: "Benchmark index comparing Caveman skill-based token compression against baseline coding agent output, with Terminal-Bench 4 cost metrics and proxy configuration."
author: "Hamdi Soudani"
category: "ai-coding-agents-mcp"
archetype: "benchmark-index"
published_at: "2026-11-23T10:04:16.876+00:00"
updated_at: "2026-11-23T10:04:17.041951+00:00"
canonical_url: "https://pyvren.com/blog/caveman-local-proxy-token-compression-benchmark-index"
reading_time_minutes: 3
word_count: 640
quality_score: 91
tags: ["caveman","cli-coding-agents","token-compression","mcp","local-proxy"]
keywords: ["caveman local proxy coding agents","skill based token compression llm","terminal bench 4 cost per solved task","claude code vs codex benchmark index","local proxy token reduction ai agents"]
sources: ["https://github.com/juliusbrussee/caveman","https://docs.caveman.so/caveman","https://www.linkedin.com/posts/arjanbrussee_github-juliusbrusseecaveman-why-use-activity-7447231776315301888-6l0G"]
---

# Caveman Local Proxy Token Compression Benchmark Index

> **TL;DR:** Caveman cuts coding agent token spend by 21% on Terminal-Bench 4 versus Codex while matching Claude Code solve rates within noise.

## Key Facts

- **Terminal-Bench 4 Codex cost per solved task:** $1.52 ([source](https://github.com/juliusbrussee/caveman))
- **Terminal-Bench 4 Caveman Code cost per solved task:** $1.21 ([source](https://github.com/juliusbrussee/caveman))
- **Terminal-Bench 4 Claude Code solve count:** 97 of 180 runs solved ([source](https://github.com/juliusbrussee/caveman))
- **Terminal-Bench 4 Caveman Code solve count:** 83 of 177 runs solved ([source](https://github.com/juliusbrussee/caveman))
- **Caveman license:** Apache-2.0, MIT ([source](https://github.com/juliusbrussee/caveman))
- **Documentation site:** docs.caveman.so/caveman ([source](https://github.com/juliusbrussee/caveman))

Caveman is a local proxy for coding agents that applies skill-based output reduction to shrink token spend without swapping models. The core claim is straightforward: shorter answers, smaller tool output, and every original message recoverable. For platform engineers running autonomous coding workflows, the question is whether the compression layer introduces enough latency or context loss to erase the savings.

## Direct Engineering Verdict

Caveman Code costs 21% less than Codex per solved task on Terminal-Bench 4 with the same model on both sides. GPT-6.1 solves $1.21 per task versus $1.52 for Codex, with 90 of 192 runs solved by both. Against Claude Code Opus 5.5, Caveman Code lands within noise: 83 of 177 runs solved versus 97 of 180, at $5.19 versus $6.04 per solved task, with a 95% confidence interval of 0.70x to 1.02x. These figures come from measured benchmark builds, not the shipped app, and the shipped app may differ.

The verdict: adopt Caveman as a cost-control layer for high-volume agent sessions where model capability is already sufficient, but do not expect it to close capability gaps between weaker and stronger foundation models.

## Token, Latency & Accuracy Comparison Table

| System | Model | Solved Runs | Total Runs | Cost Per Solved Task | 95% Interval | Source |
| --- | --- | --- | --- | --- | --- | --- |
| Caveman Code | GPT-6.1 | 90 | 192 | $1.21 | N/A | [Caveman GitHub](https://github.com/juliusbrussee/caveman) |
| Codex | GPT-6.1 | 90 | 192 | $1.52 | N/A | [Caveman GitHub](https://github.com/juliusbrussee/caveman) |
| Caveman Code | Opus 5.5 | 83 | 177 | $5.19 | 0.70x to 1.02x | [Caveman GitHub](https://github.com/juliusbrussee/caveman) |
| Claude Code | Opus 5.5 | 97 | 180 | $6.04 | 0.70x to 1.02x | [Caveman GitHub](https://github.com/juliusbrussee/caveman) |

Latency and exact token-count reduction percentages are not published in the repository readme. The proxy adds a network hop between agent and model, so expect sub-millisecond to low-single-digit-millisecond overhead locally, but measure it under your own concurrency before relying on it in production CI.

## Failure Modes & Context Pollution

Skill-based compression risks stripping signals the model needs later. If Caveman removes reasoning traces or tool-output detail that a subsequent turn depends on, the agent may hallucinate or repeat work. The project claims every original is recoverable, but recovery requires storing and rehydrating full outputs, which adds storage and cache-invalidation complexity.

Context pollution works in reverse too. Compressed summaries fed back into the context window can drift from the original tool output, especially across multi-step debugging sessions. Teams should audit compression loss on long-horizon tasks before rolling out to autonomous agents that write production code.

The proxy itself is a single point of failure. If the local Caveman process crashes or misparses a tool call, the agent session breaks. Operators need health checks, circuit breakers, and a bypass path to the upstream model endpoint.

## Minimal Reproducible Config / Harness Snippet

Caveman exposes plugin directories for Claude Code, Codex, Cursor, and Gemini, plus a proxy package. A minimal local proxy setup looks like this:

```json
{
  "proxy": {
    "listen": "127.0.0.1:8765",
    "upstream": "https://api.anthropic.com",
    "skill": "caveman",
    "compression": {
      "mode": "skill-based",
      "retain_originals": true
    }
  },
  "agent": {
    "base_url": "http://127.0.0.1:8765",
    "timeout_ms": 30000
  }
}
```

```bash
# Install Caveman locally
curl -fsSL https://raw.githubusercontent.com/juliusbrussee/caveman/main/install.sh | sh

# Point Claude Code at the local proxy
export ANTHROPIC_BASE_URL=http://127.0.0.1:8765

# Run a benchmark session and inspect savings
caveman learn --session ./session-logs --report ./learn-report.png
```

The `caveman learn` command produces a summary and savings cards showing where tokens go in a session, plus a chart of context-window fullness over time. Use it to baseline compression impact before changing agent defaults.

## When NOT to Adopt This Pattern

Do not use Caveman if your agents already run at the edge of context-window capacity on uncompressed output. Compression adds a processing step that can fail under malformed tool output or streaming edge cases.

Avoid it for tasks requiring exact tool-output fidelity, such as security audits or diff review, where a dropped line changes the finding.

Skip it if you cannot absorb the operational overhead of running and monitoring a local proxy alongside your agent orchestrator. The benchmark numbers are from measured builds, not the shipped app, so production cost per solved task may differ.

![Caveman Learn report: token savings summary and session context utilization](https://github.com/JuliusBrussee/caveman/raw/main/docs/assets/learn-report.png)

![Caveman repository star history showing adoption curve](https://github.com/JuliusBrussee/caveman/raw/main/docs/assets/star-history.png)

Caveman works best as a cost lever, not a capability lever. Measure your own session token distribution before committing to the proxy layer.

[Caveman GitHub repository](https://github.com/juliusbrussee/caveman)
[Caveman documentation](https://docs.caveman.so/caveman)
[Arjan Brussee LinkedIn post on Caveman](https://www.linkedin.com/posts/arjanbrussee_github-juliusbrusseecaveman-why-use-activity-7447231776315301888-6l0G)

## Frequently Asked Questions

### Does Caveman require changing the underlying model?

No. Caveman is a local proxy and skill layer that compresses agent output and tool results; the same model runs on both sides of the comparison.

### Is original agent output recoverable after compression?

Yes. The project states every original output remains recoverable after skill-based reduction.

### What license covers Caveman?

Caveman is dual-licensed under Apache-2.0 and MIT.

## Primary Sources

- https://github.com/juliusbrussee/caveman
- https://docs.caveman.so/caveman
- https://www.linkedin.com/posts/arjanbrussee_github-juliusbrusseecaveman-why-use-activity-7447231776315301888-6l0G
