Agent Harness Engineering

Addy Osmani ยท article ยท 2026-04-20 source โ†— Reader ๐Ÿ–ฅ๏ธ

Agent HarnessAgent Tool ManagementAgentic LoopCapability Provisioning (right-sizing to the task)Agent Context Files (CLAUDE.md / AGENTS.md)Context Rot & Context LimitsMulti-Agent Orchestration
The performance gap between what current AI models can do and what users actually experience is primarily a harness-engineering gap โ€” the scaffolding of prompts, tools, hooks, context management, and feedback loops wrapped around the model โ€” and closing it requires treating that scaffolding as a continuously evolving engineering artifact shaped by observed failures.

practical ยท expository โ€” A practitioner synthesis of an emerging engineering discipline. Primarily expository โ€” surveys and organizes contributions from multiple sources (Viv Trivedy, HumanLayer, Anthropic, Simon Willison) into a coherent framework, with prescriptive guidance throughout.

Structure

PartRole
Opening frame: Agent = Model + HarnessEstablishes the core equation and shifts attention from model selection to harness design
The 'skill issue' reframeProvides evidence that harness changes alone can dramatically improve agent performance (Top 30 to Top 5 on Terminal Bench)
The ratchet: every mistake becomes a ruleIntroduces the core methodology โ€” treat failures as permanent signals that become constraints
Working backwards from behaviour (component walkthrough)Catalogues the concrete harness components: filesystem/git, bash/code execution, sandboxes, memory/search, long-horizon execution, hooks, AGENTS.md
Harnesses don't shrink, they moveAddresses the objection that better models will make harnesses obsolete
Harness-as-a-Service and where this is goingProjects the trend toward harness SDKs and dynamic harness assembly

Key terms

Propositions

Arguments

Engineers should invest in harness engineering rather than waiting for better models. strength: high
Explicit premises:
Implicit premises:
Inferences:
Harness engineering is a permanent discipline, not a temporary stopgap until models improve. strength: high
Explicit premises:
Implicit premises:
Inferences:
Agent mistakes should be treated as permanent signals that become harness constraints (the ratchet). strength: medium
Explicit premises:
Implicit premises:
Inferences:

Narratives

Questions addressed

Gaps

Related documents