arXiv cs.AI· Zhening Li, Joshua Liu, Mateja Vukelic, Nicole Shen, Supriya Lall, Amitayush Thakur, Alex Zhang, Omar Khattab, Jonathan Light, Armando Solar-Lezama·· 3 小时前AI 评分46
JAZ:以语言原语 `invoke` 构建的极简 LLM 智能体框架
Harness as a Language: A Minimalist Agent Framework With Maximal Expressivity
AI 导读
arXiv 论文提出极简 LLM 智能体框架 JAZ,仅暴露一个由 LLM 实现的语言原语 `invoke`,允许模型编写可递归调用 `invoke` 的任意可执行代码,并将交互历史作为代码环境中的变量访问。
正文 · 原文
Abstract:Modern language-model agents are built around the agent loop: the LLM is placed in an environment exposing a set of tools, and the LLM has full control over the workflow by alternating between tool calls and observing their output. However, certain capabilities such as long-term memory and self-improvement currently require specialized systems beyond the agent loop itself. We built an LLM agent framework, JAZ, to explore the extent to which a minimal harness that is little more than the agent loop itself can accomplish tasks these specialized systems are built for. JAZ exposes a single LLM-based primitive `invoke` and provides a set of built-in hooks that allow the programmer to apply constraints and perform monitoring. Generalizing existing code-mode agent loops, `invoke` is the simplest loop that satisfies two defining properties: (1) the LLM can write arbitrary executable code that can include recursive calls to `invoke`; (2) all inputs to `invoke` and the LLM's interaction history with the code environment are variables in the code environment, i.e., everything visible to the LLM can be accessed programmatically. We motivate our design from first principles, viewing `invoke` as a language primitive representing a function whose implementation is provided at runtime by an LLM every time it is called. To validate the design of our core `invoke` primitive, we evaluate `invoke` - with only prompting, no manually designed tools, harness, or external systems (e.g., memory or the file system) - on workflows traditionally implemented through specialized harnesses. On long-horizon workflows requiring recall far beyond the context window, JAZ `invoke` outperforms Letta/MemGPT at a fraction of its cost on the recall-heavy portion of StuLife. On continual self-improvement, JAZ `invoke` matches ACE at a fraction of its cost on AppWorld.
| Comments: | 43 pages, 3 figures, 5 tables; accepted as an oral presentation at the NeurIPS 2026 Workshop on Responsible Use of Meta-Agents |
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2609.26891 [cs.AI] |
| (or arXiv:2609.26891v3 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2609.26891 arXiv-issued DOI via DataCite |
Submission history
From: Zhening Li [view email]
[v1]
Tue, 22 Sep 2026 18:00:08 UTC (137 KB)
[v2]
Wed, 30 Sep 2026 03:58:50 UTC (149 KB)
[v3]
Thu, 26 Nov 2026 09:18:17 UTC (210 KB)
来源:arXiv cs.AI · arxiv.org