Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
AI, ML & LLMMiddleSpecialistTheory

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.

#agent-harness#coding-agents#ai-assisted-testing#ai-qa

Sources

AI Agent & Agentic AI Interview Questions with Answerslabuladong · Frequently asked agent-engineering interview questions, including harness engineering, coding agents, loop termination and agent evaluationAI Engineering Interview Questions Company WiseGitHub community repository · Questions compiled from publicly reported AI-engineering interviews, including model versus harness for coding agents and evaluating agents rather than single responsesWhat is asked in a Harness Engineer interview?Outcome School · Round-by-round harness-engineer interview: the agent loop, stopping criteria, loop detection, self-correction through tests, evaluating harness changes and designing a team harnessHarness engineering for coding agent usersBirgitta Böckeler, martinfowler.com · Builder and user harness, guides and sensors, computational and inferential controls, and keeping quality checks earlyImproving Deep Agents with harness engineeringLangChain · Harness-only changes with a fixed model on Terminal Bench 2.0: verification before finishing, loop detection, time budgets and the risk of overfitting harness changes