What is an agent harness, and which matters more for a coding agent: the model or the harness?
Answer
The harness is everything around the model that turns its predictions into work: the loop, tool definitions, context assembly and compaction, permissions, sandbox, hooks, stop conditions and verification. Both matter, and a benchmark score belongs to the combination: LangChain raised a coding agent from 52.8% to 66.5% on Terminal Bench 2.0 by changing only the harness, yet no harness adds capability the model lacks. When you use a coding agent, your lever is the user harness: instruction files, skills, hooks, tests and CI gates. Harness engineering means turning each recurring agent mistake into a change there.
Strong answer includes
- names concrete harness parts such as the loop, tools, context management, permissions, sandbox and verification
- separates the vendor-built harness from the part the team controls
- compares models with the harness fixed and harnesses with the model fixed
- does not claim that a harness can replace missing model capability
Practical example
A team blames the model because its agent keeps finishing with a red build. The trace shows the agent never ran the full suite, because nothing asked it to. Adding a check that runs `npm run verify` before the agent may finish fixes the behaviour without changing the model.