Agent harness
Codex agentic harness working under the hood with the Tauri (software framework) DOM Inspector An agent harness, also known as agent scaffolding, is the software infrastructure surrounding a large language model (LLM) that enables it to operate as an AI agent.[src] It manages tool use, memory, state persistence, execution environments and feedback loops, as opposed to the model's internal reasoning.[src] The UK's AI Security Institute described an AI agent as being formed by the model plus the scaffolding back in 2023.[src] The relationship can be expressed as agent = model + harness.[src] Because a "base model" LLM is a stateless probabilistic function that maps input token sequences to output token sequences, the harness is what makes an agent out of a model, i.e.[src] a thing that interfaces with external tools, inputs and outputs non-token data (such as images), and interacts with a task-environment coherently over many rounds.[src] Rather than repeatedly re-reading an ever-growing transcript inside the context window, a harness can offload record-keeping into a structured software environment that manages the agent's state.[src] A minimal harness is unnecessary for a single prompt-and-response exchange, but becomes important as tasks grow multi-step, tool-oriented, or long-running.…[src]
Codex agentic harness working under the hood with the Tauri (software framework) DOM Inspector An agent harness, also known as agent scaffolding, is the software infrastructure surrounding a large language model (LLM) that enables it to operate as an AI agent.[src] It manages tool use, memory, state persistence, execution environments and feedback loops, as opposed to the model's internal reasoning.[src] The UK's AI Security Institute described an AI agent as being formed by the model plus the scaffolding back in 2023.[src] The relationship can be expressed as agent = model + harness.[src] Because a "base model" LLM is a stateless probabilistic function that maps input token sequences to output token sequences, the harness is what makes an agent out of a model, i.e.[src] a thing that interfaces with external tools, inputs and outputs non-token data (such as images), and interacts with a task-environment coherently over many rounds.[src] Rather than repeatedly re-reading an ever-growing transcript inside the context window, a harness can offload record-keeping into a structured software environment that manages the agent's state.[src] A minimal harness is unnecessary for a single prompt-and-response exchange, but becomes important as tasks grow multi-step, tool-oriented, or long-running.[src] Popular agent harnesses are focused on AI-assisted software development, including Anthropic's Claude Code, OpenAI's Codex, Google DeepMind's Antigravity, and SpaceXAI's Cursor.[src] China's Qwen, DeepSeek, Kimi, and GLM models are also offered with official harnesses.[src] The vocabulary of "harness engineering" emerged in early 2026, and attribution of the specific phrase is contested.[src] Several accounts trace it to a February 2026 blog post by Mitchell Hashimoto, co-founder of HashiCorp, who described a practice of engineering a permanent fix into an agent's environment each time it makes a mistake; other accounts credit Vivek Trivedy of LangChain, whose "Anatomy of an Agent Harness" post derived the harness components from the agent = model + harness formula.[src] A widely cited OpenAI engineering report describing a large codebase built largely by coding agents, together with follow-on writing from Thoughtworks, LangChain and Anthropic, helped spread the term.[src] By mid-2026 the harness had become an object of academic study.[src] Independent reporting described research such as Self-Harness, in which an agent iteratively mines its own failures to propose and validate changes to its harness, and Harness-1, an open-source search agent that improved retrieval accuracy chiefly by redesigning the software environment around the model rather than by enlarging the model.[src]
23 sentences · 23 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Agent harness." encyclopegia.org, 2026, https://encyclopegia.org/wiki/agent-harness. Accessed 01 December 2026.
Chicago
"Agent harness." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/agent-harness.
APA
encyclopegia.org. (2026). Agent harness. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/agent-harness
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| date of formation | 2023 | Wikipedia |