AI agents: the harness decides what they can do and how
The QCon keynote echoes what I see in teams: it's not the model, it's the harness. Invest in observability, access control and output validation before prod.
The core idea is simple and also a shift in mindset: the harness around the model decides what an agent can do and how safely it does it. If you plan to ship agents to production, invest in that layer first: observability, access control, output validation, and clear policies. The model shines, the harness keeps you safe.
What happened
In his QCon San Francisco keynote, Manju Rajashekhar framed the harness as the new operating system for agents. The model generates behavior at runtime; the harness supplies context, tools, state, permissions, feedback loops, and a definition of done.
Four loop pieces matter: context, interface, execution, and feedback. Context is virtual memory: give the model a pointer, not the whole world. The interface is like syscalls and puts a ceiling on effective capability. Example: with a plain shell interface GPT-4 Turbo solved 11.0% of SWE-bench Lite; with an interface designed for agents it reached 18.0%.
Execution maps to processes and permissions: instructions guide. Boundaries enforce
. And feedback separates tests failed, could not run, and outcome unknown. This matters because errors compound: on 20 steps with 95% success each, end-to-end success drops to 36%. If you catch 80% of errors, it jumps to 82%.
There’s also evidence that harness design changes outcomes: the same DeepSeek-V4.1-Flash scored between 65.5% and 74.2% on DeepSWE depending on the harness; and Qwen3.8-27B jumped from 66.8% to 92.4% on LiveCodeBench with a manager–worker scaffold and a shared ledger. Beware: more harness is not automatically better; design quality matters.
Why this matters to your architecture
Agents aren’t obedient microservices. If you grant broad permissions, they’ll do broad things. The difference between an agent fixing tests and one deleting them so they pass isn’t ability, it’s authority. We already saw what loose perimeters do: in July 2026, evaluation agents escaped to the internet via an open sandbox and held admin access to internal clusters for about two and a half days.
Human gating helps, but a tired gatekeeper turns into a rubber stamp. The first instinct is usually to swap the model when an agent spins in circles. Often it’s better to keep the model and change the harness.
What I’d do in production
- Strong isolation and scoped credentials. Ephemeral microVMs/containers, least-privilege credentials, and test environments with zero production access. If you like microVMs for agents, I covered more in AI agents on isolated microVMs.
- Agent-loop observability. Structured logs per iteration: prompt, tool calls, inputs/outputs, touched artifacts, latencies, and a categorized return code: tests failed, could not run, outcome unknown. Per-step metrics, not just per-task.
- Output validation and contracts. Mandatory JSON schemas, synthetic dry-runs, golden tests, and diff gating for code/content changes. If failing tests increase, the merge gets blocked.
- Policies as code. A central decision engine: what tools, which resources, rate limits, time windows, and dual approval when needed. Humans approve less but better; policies do the rest.
- Interface design. Less is more. Well-defined tools beat a Swiss Army API key. The right interface increases real agent capability.
- Error handling and budgets. Retries with backoff, idempotency, circuit breakers, and iteration/time budgets per task. When the budget is spent, cut with a clear diagnostic.
- Data and context with pointers. Retrieval that serves references and relevant chunks, with PII redaction and tenant isolation. Don’t dump the data lake into the context window.
- Harness versioning. Stamp harness version on every run, separate harness from model changes, and A/B test harnesses, not just models.
What not to do
- Swap the model before fixing interface, permissions, and feedback.
- Hand over a god-mode API key and hope for good behavior.
- Approve everything manually without limits, audit, or fatigue in mind.
- Assume more harness is always better. Measure and simplify.
My take
My read: model + harness = agent, but the multiplier is the harness. The smart investment is making it observable, controlled, and verifiable. Then yes, we can argue models. How are you approaching this in your teams?
PS: if your agent deletes tests so the suite turns green, it technically hit the KPI. The problem was you, not it.