Anatomy of an Agent Harness: Decisions, Invariants and Corner Cases
New in LLM agents and tool use; no direction yet. LLM agents and tool use
Abstract (arXiv)
An agent harness is the program around a language model that turns its replies into actions: it builds each request, runs the tools the model asks for, decides what the model may do without asking, stores the conversation, recovers from failures, and shows a person what happened. Most of these decisions are made in code and rarely written down, so each harness meets the same corner cases again. This paper writes them down as invariants to test. It gives a system model with trust boundaries; 30 decision cards in six groups, each with options and costs, an invariant, the corner cases that break it, a test and an evidence tag; six cause classes for failures; a test method built on scripted providers, recorded behaviour and planted changes; and a checklist. The cards come from building one desktop harness, Crewroom, the author's own, and from manually testing ten other harnesses and studying open-source harnesses as reference; some patterns in the cards were adopted from those, so the catalogue is not independent of them. Of the 83 invariant clauses, 56 are tagged Tested, 12 Believed and 15 Open. The checklist is applied to the author's harness as one worked example, by its builder with no second rater: of its 30 items, 11 hold, 14 do not and 5 were not tested. It is not a ranking. The paper makes no claims about answer quality or cost or other platforms, and does not evaluate or rank other harnesses.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 28 of its 142 references that are in the map. Submitted 15 Nov 2026.
Builds on
28 of 142 references.
References · 28
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,347
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 2,189
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,638
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,155
- 2025Why Do Multi-Agent LLM Systems Fail?cited by 703
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandboxcited by 637
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agentscited by 634
16 more
- 2023Cognitive Architectures for Language Agentscited by 475
- 2025Defeating Prompt Injections by Designcited by 384
- 2024Magentic-One: A Generalist Multi-Agent System for Solving Complex Taskscited by 266
- 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systemscited by 217
- 2025Design Patterns for Securing LLM Agents against Prompt Injectionscited by 91
- 2024Agent Design Pattern Catalogue: A Collection of Architectural Patterns for Foundation Model based Agentscited by 38
- 2025Lessons From Red Teaming 100 Generative AI Productscited by 26
- 2026Building Effective AI Coding Agents for the Terminal: Scaffolding, Harness, Context Engineering, and Lessons Learnedcited by 22
- 2026Inside the Scaffold: A Source-Code Taxonomy of Coding Agent Architecturescited by 22
- 2026The Scaffold Effect in Coding Agents: Harness Choice as a Hidden Variable in Coding-Agent Evaluationcited by 19
- 2026SoK: The Attack Surface of Agentic AI - Tools and Autonomycited by 18
- 2026An Empirical Study of Harness Design for Coding Agentscited by 12
- 2026Don't Blame the Large Language Model: How Agent Harness Evolution Shapes Coding Agent Qualitycited by 7
- 2026Bridging Protocol and Production: Design Patterns for Deploying AI Agents with Model Context Protocolcited by 3
- 2026Benchmarks Are Surprisingly Compaction-Friendlycited by 2
- 2024Themes of Building LLM-based Applications for Production: A Practitioner's Viewcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026What makes a harness a harness: necessary and sufficient conditions for an agent harness
- 2026What Does a Harness Buy? Tokens, Mostly
- 2026Finding the Right Fit: Model-Harness Interactions across Agent Tasks
- 2026Towards Portable Specification of the Agent Harness
- 2026Harness Handbook: Making Evolving Agent Harnesses Readable,Navigable, and Editable
- 2026Harness or Model? Isolating the Harness Effect in Agentic Coding with a Contamination-Controlled Private Suite
- 2026Same Model, Different Harness: Different Coding-Agent Results
- 2026Your Policy Is Secretly a Harness: The Decision Geometry of Agent Interfaces