Letting Models Manage Their Own Context!
NVIDIA researchers released a paper on giving models direct control over their own context.
Most agent harnesses handle context management automatically.
Once the context window starts filling up, the harness decides when to compact older parts of the conversation and what should be summarized.
The model may write the summary, but the harness still controls when compaction happens and which part of the context gets replaced.
NVIDIA tested a different approach inside NOOA, their open-source agent harness.
They expose the context directly to the model through an API.
The model can inspect its own history, collapse a range of previous events into a summary, and retrieve the original archived events later if it needs them again.
So instead of following a fixed compaction policy, the agent can decide what information is worth keeping based on the task it is currently solving.
They tested this across context budgets from 8K to 512K on document research and ML engineering tasks.
At a 32K context budget on OfficeQA Pro v2, GPT-6.1 Sol went from 21% with harness-driven compaction to 56% when it managed its own context.
Kimi K3 also processed up to 41% fewer cumulative input tokens while maintaining slightly better performance.
Different models used the capability very differently.
GPT, Kimi, and DeepSeek used the context API in 42–53% of tasks, while Claude Opus 5.5 used it in only 4%.
GPT also compacted much more aggressively, shrinking requests by a median 3.7×, and later reopened archived context after 19% of those compactions.
There is also an interesting systems problem here.
Editing something in the middle of the context normally invalidates the KV cache for everything after that edit, even if most of those tokens have not changed.
They paired the context API with suffix KV-cache reuse in SGLang, allowing the inference engine to reuse cached computation from the unchanged part after an edit.
That reduced prefill compute by 4–15% per request with no measurable drop in task accuracy.
Context management may eventually become another capability the model learns to handle itself instead of something the harness controls with fixed thresholds.
And once the work starts moving across Claude Code, Codex, and other coding agents, that context also needs to survive beyond a single agent session.
The article quoted below shows how decisions, instructions, files, and findings can stay attached to the project so another agent can continue the work without rebuilding that context from scratch.
Pretty interesting direction for long-running agents.
I've shared the paper below!