Braino

비공개 베타 86e0ac2 · 방금
로그인

Context Management Statistics for AI Agents (2026)

An AI agent partway through a bug fix keeps rereading its own test log on every turn, paying for the same wall of output again and again. Context management is how you stop that. Observation masking hides old tool output from the model while keeping the record that the step ran. Model-written summaries replace stretches of history with a short recap the model writes as it goes.

Masking cut Qwen's average cost by 52% versus full history

In December 2025, JetBrains tested both methods on SWE-bench Verified, a benchmark that uses automated tests to check fixes for real software issues. Both methods cut costs by over 50% versus full history. With Qwen3-Coder 480B, masking was 52% cheaper on average than full history.

More turns on Gemini

The methods differ in how much work they add. For Gemini 2.5 Flash, summarization ran 52 turns on average, 15% more turns than masking. Writing each summary is itself a step the agent has to take.

The hybrid reduced cost further

Combining the methods lowered cost again. On Qwen3-Coder 480B, the hybrid was 7% cheaper than masking alone and 11% cheaper than summarization alone.

Handoffs are a context decision too

What one agent passes to the next is also a context choice. Anthropic reports a typical specialist handoff of 1,000-2,000 tokens, a distilled result rather than the full working trace. Brookings argues people should choose the background material they supply to AI. Zylos separates the working context a model holds from the logs it can retrieve later.

Braino works on that principle. It keeps shared context for AI and teams, so agents carry what they need for the task at hand.

Run the test yourself

Take one model and a fixed set of issues. Compare full history, masking, summarization, and the hybrid on the same issues. Measure cost per issue solved and solve rate together. If a cheaper method solves fewer issues, the right pick depends on how you weigh spend against the issues that actually get fixed.

Sources

SourceSample or guidanceFigures used
JetBrains researchBenchmark, SWE-bench Verified, December 2025, Qwen3-Coder 480B and Gemini 2.5 Flashover 50% lower cost; 52% cheaper on average; 52 turns; 15% more turns; 7% vs masking; 11% vs summarization
Anthropic researchGuidance on specialist handoffs1,000-2,000 tokens
BrookingsUsers choosing the background material they supply to AINo figures cited
Zylos researchWorking context versus retrievable logsNo figures cited