# GPT-5.6 token-saving modes: Terra cut recorded cost, but local compression did not reliably cut workload

Stet publishes a public search API over its indexed pages; the guide is at https://www.stet.sh/agents/agent-access.

Source: https://www.stet.sh/blog/gpt-56-token-saving-modes
Source observed: 2026-11-15T21:02:51.234Z
Last checked: 2026-11-19T11:08:43.082+00:00
Indexed: 2026-11-15T21:07:32.872+00:00

---

# GPT-5.6 token-saving modes: Terra cut recorded cost, but local compression did not reliably cut workload

**Published July 20, 2026 · Updated November 11, 2026 · 19 min read**

[Ben · Founder, Stet](https://www.stet.sh/about)

## Summary

We compared six approaches intended to save tokens with a baseline across ten real merged changes from Stet’s production repository. The baseline was GPT-5.6 Sol at medium effort; all runs used the Codex CLI. The seven arms ran twice: 14 arm runs × 10 tasks = **140 agent runs**.

The approaches were:

- **Caveman:** terse interaction prompts that compress dialogue.
- **Ponytail:** output-minimization instructions, a YAGNI ladder, and capped validation.
- **RTK:** a wrapper that filters and compresses shell output.
- **Context Mode:** batches commands, indexes large results, and returns selected sections.
- **Mandarin mode:** prompts translated into Mandarin based on a denser-tokenization premise.
- **Terra xhigh:** a cheaper 5.6 model at xhigh reasoning effort.

On the recorded ten-task workload, none of the six treatments reduced total tokens in both repetitions. Terra was the only treatment that reduced recorded cost twice: approximately **−49%** in both runs, despite using slightly more recorded tokens. Context Mode and Mandarin substantially increased resource use. The trajectories also changed search, delegation, validation, and patch scope; local savings sometimes coincided with non-equivalent patches, code-review losses, or lower robustness.

For same-model reasoning settings, see [low vs high vs xhigh/max reasoning for coding agents](https://www.stet.sh/leaderboard/compare/reasoning-effort).

## What “saving tokens” means

We report two estimands for both tokens and dollars:

- **Recorded workload:** the sum of everything consumed by the ten tasks. This is closest to the bill for this exact batch, but large tasks can dominate it.
- **Typical task:** treatment-versus-baseline percentage changes paired task by task and averaged geometrically. This gives each task equal influence but does not sum to the batch total.

Cost can diverge from token counts because pricing depends on cached input, fresh input, output, model, and reasoning effort. Baseline cost averaged **$6.93 per task in run 1** and **$9.00 in run 2**, a 30% swing with the same tasks and configuration.

Caveman’s recorded workload changed **+7% and −11%**, while its typical-task estimates were **−5% and −9%**. Terra’s recorded workload changed **+6% and +5%**, while its typical-task estimates were **−23% and −12%**. These are descriptive point estimates; all four paired bootstrap intervals included zero. Caveman’s −9% estimate had a 95% interval of **−24% to +6%**; Terra’s −23% estimate had an interval of **−62% to +38%**.

## Methodology

Each task was a real merged change from Stet’s production repository. Stet replayed the task and graded each attempt beyond test pass/fail. Quality measures included tests, semantic equivalence, code review, deterministic footprint risk, and eight LLM graders on a 0–4 scale: clarity, simplicity, coherence, intentionality, robustness, instruction adherence, scope discipline, and diff minimality.

The repeated tasks measure consistency rather than providing 20 independent tasks.

## Resource results

Negative values mean that the treatment used fewer resources than the baseline.

### Recorded ten-task workload

| Mode | Workload tokens, R1 | Workload tokens, R2 | Workload cost, R1 | Workload cost, R2 |
|---|---:|---:|---:|---:|
| Caveman | +7% | −11% | +9% | −12% |
| Ponytail | +16% | −1% | +20% | −2% |
| RTK | +18% | −8% | +13% | −9% |
| Context Mode | +94% | +46% | +72% | +33% |
| Mandarin | +86% | +15% | +69% | +9% |
| Terra xhigh | +6% | +5% | −49% | −49% |

No treatment reduced total tokens twice. Terra alone reduced recorded cost twice, through a different model and price schedule.

### Typical-task paired geometric estimate

| Mode | Typical task tokens, R1 | Typical task tokens, R2 | Typical task cost, R1 | Typical task cost, R2 |
|---|---:|---:|---:|---:|
| Caveman | −5% | −9% | +2% | −10% |
| Ponytail | +8% | −3% | +18% | −3% |
| RTK | +18% | −5% | +12% | −7% |
| Context Mode | +102% | +51% | +78% | +36% |
| Mandarin | +70% | +12% | +60% | +5% |
| Terra xhigh | −23% | −12% | −62% | −56% |

This estimator makes Caveman and Terra look lower on typical tasks in both runs, even though Terra’s recorded workload totals rose. Context Mode and Mandarin remain higher under either estimator.

### Quality outcomes across 20 paired task runs

The table counts wins, losses, and ties. For tests, equivalence, and code review, a win means the treatment patch did better. For footprint, a win means lower risk.

| Mode | Tests | Equivalence | Code review | Footprint |
|---|---:|---:|---:|---:|
| Caveman | 0-0-20 | 0-4-16 | 2-6-12 | 9-10-1 |
| Ponytail | 1-4-15 | 0-2-18 | 0-4-16 | 15-4-1 |
| RTK | 1-1-18 | 1-2-17 | 2-3-15 | 7-13-0 |
| Context Mode | 2-5-13 | 1-3-16 | 3-3-14 | 13-5-2 |
| Mandarin | 2-1-17 | 2-2-16 | 2-2-16 | 10-10-0 |
| Terra xhigh | 0-1-19 | 0-4-16 | 2-4-14 | 16-4-0 |

### Eight grader deltas versus baseline

Each value is treatment mean minus baseline mean on a 0–4 scale; negative means graders preferred the baseline patch.

| Mode | Clarity | Simplicity | Coherence | Intentionality | Robustness | Adherence | Scope | Diff min. |
|---|---:|---:|---:|---:|---:|---:|---:|---:|
| Caveman | −0.03 | −0.18 | −0.23 | −0.20 | −0.42 | +0.09 | −0.24 | +0.01 |
| Ponytail | −0.09 | −0.14 | −0.28 | −0.19 | −0.48 | −0.18 | −0.45 | +0.07 |
| RTK | −0.02 | +0.18 | −0.16 | +0.08 | −0.02 | +0.07 | −0.04 | +0.40 |
| Context Mode | 0.00 | −0.09 | −0.30 | −0.23 | −0.38 | −0.21 | −0.23 | +0.01 |
| Mandarin | −0.10 | +0.13 | −0.07 | +0.08 | +0.06 | −0.13 | +0.03 | +0.49 |
| Terra xhigh | −0.03 | −0.11 | −0.37 | −0.12 | −0.33 | −0.03 | −0.06 | −0.33 |

## Shared mechanism: local compression changed the trajectory

The interventions optimize different surfaces: Ponytail emits less code and explanation; Caveman compresses interaction; RTK compresses shell results; Context Mode compresses retrieved context; Mandarin changes prompt representation; Terra changes model, reasoning level, and pricing.

The bill covers the whole agent trajectory. A smaller command result can lead to more commands. A shorter patch can follow more tokens spent deciding what to omit. Cheaper retrieval can lead to more retrieval. The observed trajectories changed search, delegation, validation, and patch boundaries.

**Output compression is not workload compression.**

Related studies:

- A [replay of 500 real Claude Code sessions](https://codepointer.substack.com/p/cutting-llm-token-costs-with-rtk) reported that advertised 60–90% local savings fell below 4% of total spend after resent context was counted.
- [JetBrains’ Caveman prompting study](https://blog.jetbrains.com/ai/2026/07/speak-to-ai-agents-like-cavemen-tosave-tokens/) and [RTK study](https://blog.jetbrains.com/ai/2026/07/rtk-claude-code-token-savings/) reported similar gaps between local counters and full trajectories.

Replay the entire task on your own repository before adopting an optimization: [Evaluate your own repo](https://www.stet.sh/private).

## Caveman: small wins and expensive misses

Caveman won **12/20 token pairs**. Workload totals changed +7% and −11%; typical-task estimates were −5% and −9%. Tests tied on every task; equivalence was 0-4 and code review 2-6.

In our test, Caveman’s 12 wins averaged **−20% tokens**, while its eight losses averaged **+23%**.

- On a replay-fidelity bug fix involving files hidden by `.gitignore`, both arms shipped the same one-line production fix and passed tests, equivalence, and review. Caveman used **21 tool calls versus 41**, and **2.39M tokens versus 5.96M**, but added an 89-line standalone regression test rather than extending the existing fixture. Footprint changed from low to medium, and the run still took longer.
- The largest miss, **+56% tokens**, hardened `--json` output for stdout isolation, error handling, and contract tests. Caveman used **86 tool calls versus 49** and produced a **907-line patch versus 230 lines**.

Caveman compressed interaction or exploration without reliably reducing total work.

## Ponytail: shorter output, incomplete patches

Ponytail was the only mode to reduce output tokens in both repetitions: **−3% and −11%**. Workload tokens changed **+16% and −1%**; typical-task tokens changed **+8% and −3%**. It lost tests 1-4, equivalence 0-2, and review 0-4, while improving footprint 15-4.

Output tokens fell on 11 of 20 pairs, but total tokens fell on only nine.

- On a UI task requiring separate analytics tracking for each CTA placement, Ponytail saved **51% output tokens and 41% total tokens**, but lost tests, equivalence, and review. It added a decorative arrow that broke an exact-match accessibility test and merged two distinct analytics placements.
- On the offline prompt context helper, tests passed, but review found that Ponytail never reconstructed context from persisted artifacts; it only reformatted caller-provided data.
- On ignored-file staging in run 2, Ponytail reduced a test fixture from **124 lines to 4** while preserving implementation and quality verdicts.

Ponytail’s YAGNI ladder and capped validation may reward a short diff before semantic adequacy is established.

## RTK: smaller command output, more queries

RTK filters shell output before it reaches the model. Workload tokens changed **+18% and −8%**; typical-task tokens changed **+18% and −5%**; there were eight token wins and 12 losses.

In run 1, RTK averaged **60 tool calls per task versus 49** for baseline, increased calls on nine of ten tasks, and was slower on all ten.

- On a TrackLink analytics CTA frontend feature, both arms passed tests, equivalence, and review. RTK used **60 versus 30 tool calls**, **6.29M versus 3.06M tokens**, and took **3.7× longer**. Exploratory robustness rose from 2.2 to 2.8; coherence fell from 3.2 to 2.3.
- On the offline prompt context helper, RTK ran **13 `sed` reads versus 3** and **11 `git` invocations versus 10**, spending roughly twice as much while leaving the core artifact-reconstruction requirement incomplete.
- RTK’s clearest run-one token win on `--json` hardening used 20 more tool calls, but delegation produced a **94% cache hit rate**. The saving came from cache economics rather than the output filter.

The wrapper reduced raw output per command; the agent then issued more commands and revisited the same files.

## Context Mode: compressed retrieval, more context

Context Mode increased consumption: workload tokens rose **94% and 46%**; typical-task estimates rose **102% and 51%**. It had **19 losses in 20 paired tasks** and lost tests 2-5.

In run 1 it averaged **74 tool calls and 79 assistant turns per task**, versus baseline’s 49 and 51.

- On the TrackLink CTA task, the worst case was **+200% tokens**. The log showed 22 retrieval calls, at least ten asking near-duplicate questions about props, exports, and analytics semantics. Tests changed from pass to fail in both runs.
- On evaluator-provider resolution and model pinning, Context Mode flipped focused verification and review from fail to pass in both runs and won footprint both times. Run 1 cost 2× the tokens and 2.37× the time; run 2 was 26% under baseline. Both patches still missed Claude authentication propagation and were non-equivalent.

## Mandarin: translated prompts, a different work plan

Mandarin increased workload tokens **86% and 15%**, typical-task estimates **70% and 12%**, and lost **18/20 token pairs**. In run 1 it used exactly four subagents on all ten tasks and about 38% more tool calls than baseline.

- The largest loss was **+21.7M tokens** on CLI provider resolution: 126 tool calls versus 60, with a smaller, narrower patch.
- On forwarding Claude setup tokens in run 2, it used one subagent instead of four and came in **5.8M tokens under baseline**. The same task lost by 10.6M in run 1 with four subagents.

The observed difference was in decomposition and delegation, not just tokenization.

## Terra xhigh: cheaper, not more token-efficient

Terra changed the price curve rather than demonstrating token efficiency.

- **19 of 20 task pairs were cheaper.**
- Recorded workload tokens: **+6% / +5%**.
- Recorded workload cost: **−49% / −49%**.
- Typical-task token estimates: **−23% / −12%**, inside the noise band.
- Terra improved footprint 16-4, but lost equivalence 0-4 and review 2-4.
- Grader deltas included coherence **−0.37**, robustness **−0.33**, and diff minimality **−0.33**.

The token distribution was bimodal: roughly half of tasks used 20–90% fewer tokens, while the other half used 56–185% more.

- On offline prompt context, Terra used fewer tool calls but **56% more tokens**, expanded the solution with tarball extraction, cleanup ownership, error propagation, and more than 100 lines of tests, and changed review from pass to fail. It was still cheaper in run 1, but this task produced Terra’s only cost loss in run 2.
- Three equivalence losses came from satisfying only part of multi-component requirements: flake-rerun serialization, Claude setup-token forwarding, and broader Gradle flag recognition.
- On CLI provider resolution, Terra beat baseline on tokens and cost in both runs: **−29%/−63% in run 1** and **−71%/−83% in run 2**, with about 21% less diff churn across the same four files.

Terra demonstrates why cost reduction and token reduction are different measurements: the model, reasoning level, and price schedule changed together.

## Scope and limitations

This study covers ten tasks, run twice, on one repository and model family. Reusing tasks measures repetition rather than generalization. Baseline trajectories for run 2 were not retained, so tool-call and turn comparisons come from run 1. Token, cost, and verdict data are complete for all runs.

The canonical reports are inconclusive and recommend inspection. Grader discrimination authority and runtime strictness evidence were unavailable, and the test basis was mixed. The quality tables are exploratory diagnostics rather than a leaderboard.

## Bottom line

The only intervention that reliably cut the recorded bill was switching to the cheaper Terra model at higher reasoning effort. It cut recorded cost by about half in both repetitions while using slightly more tokens. Dialogue, output, command-result, retrieved-context, and prompt-language compression all failed to reduce recorded workload tokens twice; Context Mode and Mandarin made consumption substantially worse.

Run the comparison on your own tasks before changing your agent setup: [Evaluate your own repo](https://www.stet.sh/private).

## FAQ

### Did any mode reduce total tokens consistently?

No treatment reduced the arithmetic total for the recorded ten-task workload in both repetitions. Caveman and Terra had lower paired point estimates in both repetitions, but all four estimates remained in the noise band.

### Which option reduced cost?

GPT-5.6 Terra xhigh reduced recorded cost by about 49% in both repetitions. Recorded tokens rose about 5–6%; model, reasoning level, and price schedule changed together.

### How did the modes affect code quality?

Ponytail improved footprint but had worse robustness, scope discipline, equivalence, and review outcomes. RTK improved some simplicity and diff-minimality measures without reducing resources. Context Mode sometimes localized tasks well while consuming much more context. The quality tables are diagnostic patterns, not rankings.

### How do these results compare with JetBrains’ studies?

The cited JetBrains studies similarly found that local Caveman and RTK savings did not reliably reduce full-trajectory cost or work. Our comparison covers six mechanisms on GPT-5.6 with two resource estimators and patch-level evidence.

---

[Read this page’s summary](https://www.stet.sh/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fwww.stet.sh%2Fblog%2Fgpt-56-token-saving-modes&trace=t_5da45423e484)

## Ask a follow-up about this page

Need a more specific answer? Ask the exact question you have. It returns a fresh, cited answer from Stet’s knowledge base. No account or API key required.

Open this URL with your own question, URL-encoded. Include your question in q. All research inputs are optional; no account or setup.

`GET https://www.stet.sh/agents/agent/faq?q={question}&trace=t_5da45423e484`

[Tool guide and examples](https://www.stet.sh/agents/agent-access) · [OpenAPI](https://www.stet.sh/agents/api/public/v1/openapi.json) · [Page TLDR form](https://www.stet.sh/agents/agent-tools/page-tldr?url=https%3A%2F%2Fwww.stet.sh%2Fblog%2Fgpt-56-token-saving-modes). Opening a form does not execute a tool.