MIT 论文《Harness as a Language》提出 JAZ 框架,把提示词和交互历史作为代码变量暴露给模型,由模型写 Python 并以 invoke 调用自身作为子智能体,按引用传递上下文避免丢失。
New MIT paper says give your agent its own history and prompt as code variables it can search and pass to subagents, and a plain agent loop beats purpose-built memory and self-improvement systems at lower cost.
Agents lose instructions when they copy context into subagents by hand, and passing the prompt and history by reference let JAZ beat dedicated memory and self-tuning systems.
Long-term memory and self-improvement usually need extra systems like Letta or ACE, which add cost and break when tasks don't fit their design.
JAZ keeps only the loop. The model writes Python, calls itself as a subagent, and sees its prompt and full history as variables it can pass along without loss.
On StuLife tasks that needed facts from over 50 tasks earlier, JAZ passed 69.9% against 61.8% for Letta, at less than half the cost. Improving itself across 417 AppWorld tasks, it completed 74.2% against 69.9% for ACE, again for less.
– arxiv. org/abs/2609.26891
Title: "Harness as a Language: A Minimalist Agent Framework With Maximal Expressivity"
来源:Rohan Paul · x.com