Who decides when your agent compacts?

Two lanes. Harness-driven: at 80% of the budget the harness summarizes the old history and keeps the task plus the last 10 events, GPT-6.1 Sol scores 21% at a 32K budget. Model-driven: the model sees a usage meter, picks a range to summarize and can pull archived events back, GPT-6.1 Sol scores 56% in the same setup, while Opus 5.5 used the API in 4% of tasks. Bottom row: my crew's trigger is a topic closing
Fig. 1. Diagram redrawn from Figure 1 of “Letting Models Manage Their Own Context: Where We Stand” (Devoto et al., NVIDIA, Nov 25, 2026). The 21%, 56% and 4% scores are NVIDIA's, not measured by Austin. The bottom row is Austin's crew rule, not a measured result. Found via @muratcan.

Every long agent session hits the same wall. The chat gets long, the window fills, and something has to get thrown away. Most tools handle that for you: when the window is nearly full, the harness writes a summary of the old stuff and keeps going.

NVIDIA put out a technical report on Nov 25 that asks what happens if the model makes that call instead: Letting Models Manage Their Own Context: Where We Stand (Devoto et al.). I found it through @muratcan's post, and his read of it is the reason I'm writing this one up.

The setup

They compared two ways of shrinking the history inside NOOA, NVIDIA's open source agent harness.

In the default way, the harness steps in at 80% of the context budget. It summarizes the earlier history and keeps the original instructions plus the 10 most recent events word for word.

In the other way, the model gets a context API, a live usage meter and an instruction to consider compacting only once usage reaches 85%. It picks which range of events to fold into a summary. The originals aren't deleted. They're archived, and the model can pull any of them back by tag.

They ran both on a 90-question research benchmark (OfficeQA Pro v2) and on MLE-bench Lite, with budgets from 8K up to 512K tokens.

The numbers that stuck with me

GPT-6.1 Sol went from 21% to 56% at a 32K budget on the research benchmark once it was running its own context. That's the headline, and it's real, but it isn't the part I'd build on.

The part I'd build on is how differently the four models behaved with the exact same API and the exact same instructions. DeepSeek V4 Pro, Kimi K3 and GPT compacted in 42-53% of tasks. Claude Opus 5.5 did it in 4%. When the context-pressure warning showed up, Opus mostly just wrapped up and gave an answer.

Then there's the line in the prompt. Tell Kimi K3 to wait for 85%, and its first compaction at a 128K budget lands at about 84% full. Take that one line out and it starts at 29%. The paper calls this context anxiety: a model shrinking its context while there's still plenty of room. At budgets of 128K and up, Kimi and DeepSeek without the line scored about 8 points under the plain harness.

Done well, it also saves real work. At a 32K budget, Kimi running its own context used 41% fewer input tokens over a run (36M vs 62M) and scored 43% vs 41%.

What I already do, and what I don't know

My Grok Bot crew already runs a compaction rule, just a dumber one. When a topic closes, the bot writes one handoff file, one screen max, with the status, decisions and open loops. New work starts in a fresh chat pointed at that file instead of hauling the old thread along. The trigger is a topic ending, not the window filling up and not the model's own call.

I don't have numbers on whether that rule helps or just feels tidy. That's my takeaway from this paper. The same idea helped one model a lot, did little for another, and a single sentence of prompt moved the timing from 84% to 29%. So a compaction rule is a setting you test per model, same as anything else.

@muratcan says it better than I would. He built one of the bigger open-source context engineering skill collections, and his advice after reading this is to give the model more control, measure it on real tasks, and keep only the rules that improve results. He also put out a compaction-control-profiling skill for running exactly that kind of comparison.

One more for the local crowd

There's a serving angle here too. Today's inference engines reuse the KV cache only up to the first change in the prompt, so every time a model edits its own history the engine recomputes everything after that edit, even text that didn't change. NVIDIA's prototype also reused the cache for the unchanged part after the edit and cut prefill compute by 4-15% per request with no measurable change in accuracy. They only tested that with one open model (Qwen3.6-27B) in one engine, and they measured compute, not end-to-end speed. Still, if models start editing their own context, the engines on our Macs will need this to keep up.

The report is upfront about its limits too: small benchmarks, context pressure simulated by shrinking the budget, and four models whose training they can't see.

So who decides when your agent compacts, you or the model? And have you ever measured the difference?

Original report: NVIDIA, arXiv 2611.34147. Via @muratcan.

Tags: Agents Agent workflow Evaluation

All ship logs