Agent Harness Engineering

AI-generated summary of reporting by Oreilly AI ML Blog. Read the original for the full story.

Why it matters

Addy Osmani argues the scaffolding around a coding model matters more than the model itself, and shows how a custom harness moved Claude Opus 4.6 from Terminal Bench 2.0 rank ~30 to ~5.

Read this as

Addy Osmani writes that an AI coding agent is really two things: the model, and the 'harness' of rules, tools and checks wrapped around it. He says a decent model in a good harness beats a great model in a bad one, citing work that moved Claude Opus 4.6 from roughly 30th to 5th place on the Terminal Bench 2.0 test purely by changing the harness. His core habit: every time the agent makes a mistake, add a rule so it never happens again. This matters to anyone building or using AI coding assistants like Claude Code, Cursor or Codex.

Osmani's argument challenges the 'just wait for the next model' mindset: a team moved Claude Opus 4.6 from Top 30 to Top 5 on Terminal Bench 2.0 by changing only the harness, not the model. The competitive implication is that engineering discipline around agents, rules, hooks, sandboxes, feedback loops, is a durable advantage you can build now, not something bought from a model vendor. The gap between what models can do and what teams see them do is largely a harness gap.

Osmani frames Agent = Model + Harness (term credited to Viv Trivedy), covering filesystems as the core primitive, bash plus sandboxes as general-purpose tools, context-rot mitigations (compaction, tool-output offloading, progressive disclosure via skills, full context resets per Anthropic), Ralph loops for multi-session continuation, planner/evaluator splits to counter agents' positive-skewed self-review, and deterministic hooks enforcing 'success is silent; failures are verbose'. Key datum: same Claude Opus 4.6 scores far lower in Claude Code than in a custom harness on Terminal Bench 2.0.

Read the original

This summary exists to save you time, not to replace the source.

Also covered by 1 other source

Same story, reported independently. Useful for a second read.

Key terms

Claude Code Cursor Codex Aider Cline Terminal Bench 2.0 AGENTS.md

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading