Harness as a Language: A Minimalist Agent Framework With Maximal Expressivity
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
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 `invoke`; (2) everything visible to the LLM - all inputs to `invoke` as well as its interaction history with the code environment - are variables in the code environment. 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) by 8% at half its cost on the recall-heavy portion of StuLife. On continual self-improvement, JAZ `invoke` outperforms ACE by 4% at a lower cost on AppWorld.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 23 of its 43 references that are in the map. First posted on arXiv 22 Sep 2026.
Builds on
23 of 43 references.
Closest ancestors · 5
Same direction, newest first
- 2026Practical Online KV Cache Compaction for LLM Agents: An Empirical Study2 Aug
- 2025A Self-Improving Coding Agent21 Apr
- 2024AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents26 Jul
- 2024Executable Code Actions Elicit Better LLM Agents1 Feb
- 2023ChatDev: Communicative Agents for Software Development16 Jul
Other references · 18
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 449
- 2024Automated Design of Agentic Systemscited by 360
- 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 349
- 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agentscited by 294
- 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 248
- 2025Dynamic Cheatsheet: Test-Time Learning with Adaptive Memorycited by 146
- 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 128
6 more
- 2025Recursive Language Modelscited by 94
- 2022Parsel: Algorithmic Reasoning with Language Models by Composing Decompositionscited by 62
- 2023Recursively Summarizing Enables Long-Term Dialogue Memory in Large Language Modelscited by 62
- 2024Divide-and-Conquer Meets Consensus: Unleashing the Power of Functions in Code Generationcited by 19
- 2024Strategist: Self-improvement of LLM Decision Making via Bi-Level Tree Searchcited by 16
- 2025DISC: Dynamic Decomposition Improves LLM Inference Scalingcited by 9
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026LLM-as-Code: Agentic Programming for Agent Harness
- 2026Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents -- A Source-Code Study of Eleven Systems
- 2026Credo: Reusable Declarative Primitives for Agentic Workflows
- 2026Harness Engineering in LLM Tool Use via Agent-Native Reusable Tool Primitives
- 2026The Empire, Long Divided, Must Unite: Architectural Convergence in Three LLM Agent Harnesses
- 2026Composing Task-specific Agent Harnesses at Test Time with Reusable Primitives
- 2026Code as Agent Harness
- 2026CaveAgent: Transforming LLMs into Stateful Runtime Operators