跳到正文
@rohanpaul_ai· @rohanpaul_ai · X·· 2026-08-27AI 评分43
AI 导读

阿里提出 Scroll,把上下文管理从固定规则变成模型自己写程序:会话保存在仅追加的事件日志中,每轮有稳定地址,配合跨模型调用持久化的沙箱 Python 内核,工具输出绑定为内核变量而非塞进提示词。以 Qwen3.8-Max 为底座,在现有上下文窗口装不下的 BEAM 历史任务上得分 73.1,高于最佳已发表记忆系统在其自身设置下的 68.0。

正文

What if context management were a program the model writes rather than a rule your harness applies?

Compressing an agent's history to fit the context window is what breaks long-horizon agents, so keep the raw log intact and let the model write code to pull back exactly what it needs when a question comes up.

The problem is timing. Summarization and memory extraction both decide what to keep at write time, before anyone knows what the agent will be asked later. Whatever the summary drops is unreachable, even though the full log is still sitting on disk.

Scroll, from Alibaba, moves that decision to query time. The session lives outside the prompt in an append-only event log where every turn has a stable address, plus a sandboxed Python kernel that persists across model calls. Tool outputs get bound to variables in the kernel instead of pasted into the prompt.

With Qwen3.8-Max as the backbone, it reports 73.1 on BEAM histories current context windows cannot hold, against 68.0 for the best published memory system on its own setup.

– arxiv. org/abs/2608.21690

Title: "Context as an Environment: Programmatic Context Management for Long-Horizon Agents"

来源:@rohanpaul_ai · x.com