Writer's AI Harness Reduces Token Spend Nearly 40%
Writer has developed an AI harness that significantly cuts token consumption by up to 38% without altering the underlying foundation model, leading to substantial cost reductions.

Enterprise AI deployment faces significant cost challenges, but Writer has introduced a solution focused on optimizing the AI harness, the orchestration layer surrounding foundation models. Their research demonstrates that by refining this harness, token usage per task can be reduced by as much as 38%, leading to a 61% decrease in cost per successful task, all while maintaining accuracy.
Traditionally, companies have battled high AI costs through increased computing power or a practice known as 'tokenmaxxing,' relying on massive context windows instead of efficient system design. Writer's study highlights that optimizing the harness itself is crucial for cost-effectiveness. This approach avoids modifying the core foundation models, making it accessible for engineering teams.
"Teams tokenmaxx because it's the cheapest fix in the moment, and because it's literally how most engineers work today," stated Waseem AlShikh, CTO and co-founder of Writer. He cautioned that falling per-token prices can mask underlying inefficiencies, as token-per-task consumption can escalate rapidly in complex agentic workloads.
Key optimization levers include caching system prompts, compacting interaction history, managing tools, refining retrieval strategies, and error management. These aspects are readily available for engineering teams to improve AI performance and reduce expenses. Writer's research emphasizes that the harness should be treated as a primary software artifact, not merely as glue code connecting APIs to user interfaces.
Writers researchers tested their optimized harness against six foundation models. The experiments revealed a 41% reduction in the average cost per task (from $0.21 to $0.12) and a 38% drop in token consumption (from 14.2k to 8.8k tokens) when compared to conventional agent loops, without compromising the quality of the outputs.