Vibeleaderboard
← All Intel
Intel / article

Harness Design Cut Agent Cost 33-61% Across Six Models

Source
writer.com
Publisher
Writer
Author
WRITER
Date

Context

WRITER's research post argues that an agent's cost can be cut sharply without changing the model, by redesigning its harness, the software that assembles prompts, tools and history around the model. An agent working through many steps keeps re-processing a growing pile of tool definitions, reasoning traces and earlier turns, so the harness decides how much of that the model pays for each time. WRITER compared a harness designed for token efficiency with a naive one designed only to finish the task, across 22 tasks and six models: Anthropic's Claude Sonnet 4.6, Google's Gemini 3.1 and Gemini Flash 3.5, Qwen 3.6, Z.ai's GLM 5.1 and its own Palmyra X6. It reports that cost and duration fell by more than 40% with quality at parity, and that every model got cheaper, by between 33% and 61%.

The largest lever the post describes is caching. Models can reuse stored intermediate results for parts of a prompt they have already processed, and providers discount those cached tokens. WRITER's harness is built to keep as much of each prompt as possible in that reusable form by giving every prompt two zones: a byte-stable prefix holding the tool catalogue, the stable and an append-only transcript, followed by a tail rebuilt each turn with things like the clock, listings and plan state. In one observed turn, 7,876 of 7,886 prompt tokens were served from cache, which WRITER says means paying roughly a tenth of list price for the dominant cost. The other mechanisms keep tokens out of the loop or stop them being bought twice: older history is folded into a structured checkpoint by a cheaper helper model once 80% of the input budget is used, sub-agents do broad reading in their own and return summaries capped at 8 KB, paused runs wait without spending tokens, crashed runs resume from a durable log instead of repeating every turn, and failed calls are classified and retries limited to bound how far loops can multiply the bill.

The quality side is much weaker, and the authors say so. They report that the quality improvement each model gained tracked its baseline strength almost perfectly, a pattern they call harness leverage, but that correlation rests on six models and is described as awaiting a wider panel. They also state that 22 prompts are enough to show the large, uniform efficiency gains but insufficient for quality inference, so the headline is parity, not improvement. The full paper was not available for this explanation, so the methods are as WRITER summarises them. WRITER presents the work as the thinking behind its Palmyra X6 release and the harness upgrades shipped with it.

Terms in this piece · Glossary
  • system prompt — The standing instructions a model receives before any user input — defining its role, rules, tools, and tone for the whole conversation.
  • File — A named unit of stored data that keeps its contents while no program is using it.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • Compaction — Replacing older content in the model's context with a summary of it, usually keeping recent messages, so that a session can go on.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

More from WRITER
Recommended reads