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.
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.
- Oreilly AI ML Blog , Agent Harness Engineering
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
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache.
Speed improvements in speculative decoding mean agents can execute tool calls faster, reducing latency for real-time applications.
OpenGame: turn your local coding agent into a full-stack game studio
Developers with a local coding agent can now scaffold full playable 3D games, art, music, testing, publishing, instead of only refactoring code, opening a path from hobby coding to shippable mini-games.
Let Claude Code or any agent tap, type, and read your real phone
Agents can now close the mobile testing gap by driving and reading a real phone themselves, with nothing installed on the device.