Agent Harness Engineering

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

Why it matters

Agent performance gaps may come from scaffolding, not model choice, so teams blaming models for failures should instead build rules and hooks.

Read this as

This article argues that an AI coding agent is really two things: the AI model itself, plus a 'harness', the surrounding rules, tools and safety checks people build around it. The author says a good harness around an average model beats a poor harness around the best model, and that every mistake an agent makes should be turned into a permanent rule to prevent repeats. Anyone building or using AI coding assistants, from hobbyists to large teams, is affected because most failures are fixable with configuration rather than waiting for a smarter model.

The article claims the gap between what AI models can do and what teams see is largely self-inflicted: on Terminal Bench 2.0, Claude Opus 4.6 scored lower inside Claude Code than in a custom harness, and one team jumped from Top 30 to Top 5 by changing only the harness. Competitive advantage therefore sits in engineering discipline, rules, hooks and feedback loops, not in buying the newest model. Firms that treat agent failures as configuration problems can extract more value from existing model spend.

Osmani defines Agent = Model + Harness, covering prompts, tools, MCP servers, sandboxes, hooks and observability. Key mechanisms: context compaction and tool-output offloading to counter context rot, progressive disclosure of skills, Ralph loops that reinject prompts across sessions, and planner/generator/evaluator splits to fix self-evaluation bias. Hooks enforce 'success is silent, failures are verbose' backpressure via typechecks. Evidence: Claude Opus 4.6 underperforms in Claude Code versus custom harnesses on Terminal Bench 2.0; a harness-only change moved a team from Top 30 to Top 5. No public code or framework ships with the piece.

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 Opus 4.6 Claude Code Terminal Bench 2.0 AGENTS.md Ralph loop Context7

Was this summary useful?

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

Related reading