Research Published here Reported by arXiv on

Scroll treats context as a live Python kernel, not a prompt: LOCA_256K jumps 37.4 points

A paper from Yin Lin, Elaine Ang, Erkang Zhu, Bolin Ding, and Jingren Zhou argues that compressing agent history into fixed memory representations is the wrong abstraction. Their system, Scroll, makes each agent session an executable Session Environment backed by an append-only event log and a persistent Python kernel, so agent-generated code manipulates session state through variables instead of everything being serialized back into the prompt. When the context budget is hit, older content is evicted but stays retrievable through an index rather than being summarized away. On a Qwen3.8-Max backbone: 94.8% on LongMemEval_S, 73.1% on BEAM_10M (5.1 points above the previous best), and 86.7% on LOCA_256K — 37.4 points above the previous best long-horizon agent.

Why it matters

A 37-point margin is not a tuning result, it is a different framing winning. The claim underneath it is that context management is a programming problem, so it inherits the models' improving coding ability instead of depending on a hand-designed summarizer — and lossy compaction, the standard fix, is exactly what destroys the detail long-horizon tasks need later. Anyone who has watched an agent confidently contradict something from turn 12 has seen the failure this targets.

What to do

If your long-running agent compacts history into a summary, this is the argument for keeping the raw log addressable and letting the agent write code to query it instead. The cheap version you can build today: persist an append-only event log, expose a retrieval tool over it, and stop summarizing on eviction. Note the eval is on one backbone — the mechanism should port, the margins may not.

Tags: Context Engineering Agents Memory Research

More from August 26, 2026

All AI news