
When people think about AI performance, they often focus only on the AI model itself (like GPT or Claude). But in reality, a working AI agent is a combination of two things:
Think of it like a surgeon and a hospital:
Even the best surgeon performs poorly in a broken hospital.
As models get smarter, the harness becomes the bottleneck, not the model.
This is the central problem of the article. It describes the mismatch between:
The model wants to fix one specific function in a codebase. The harness finds the same function name in 5 places and edits all of them.
The model's intent was clear. The execution was wrong.
| Direction | Problem |
|---|---|
| Model → Harness | Harness misunderstands what the model wants |
| Harness → Model | Model doesn't know what the harness actually did |
Closing this two-way gap — without any task-specific tuning — is enough to achieve state-of-the-art performance.
The article focuses on a common agent task: editing code. It identifies three specific failure modes in the file-editing tool.
The model says: "Replace this text with that text." But the same text appears in 5 different places in the codebase.
The harness doesn't know which one the model meant → it either:
The harness should stop and ask the model to provide more context so the target location becomes unique.
A small implementation detail (asking for clarification) sharply improves faithfulness between intent and execution.
The model provides only a short fragment of text to replace (e.g., a partial line).
That fragment might appear:
Even if the fragment is unique, replacing a partial line can produce syntactically valid but semantically broken code.
Require stronger anchors — full lines, surrounding context, or line-number-aware matching.
The harness should not guess when edit requests are underspecified.
After a successful edit, the harness just says: "Edit succeeded."
The model has no way to verify:
After every edit, provide the model with a diff file — a structured summary showing:
This converts editing from a fire-and-forget action into an observable state transition.
A natural question: "If the diff shows mistakes, why fix Failure Modes 1 and 2 separately?"
The answer is about when the correction happens:
| Stage | What it does |
|---|---|
| Fixing ambiguity (Mode 1) | Prevents wrong edits before they happen |
| Fixing weak anchors (Mode 2) | Prevents wrong edits before they happen |
| Diff feedback (Mode 3) | Reveals what happened after the edit |
If you only use the diff:
Prevention is better than correction — but both are necessary.
The bash terminal tool is very powerful but can produce extremely long outputs.
Simply cutting off (truncating) the output at the end is bad because:
Condense the middle of long outputs, keeping:
Smart output management preserves the most diagnostically useful information for the model.
Agents need to think (chain-of-thought reasoning) AND act (call tools). But there's a fundamental tension:
| Too little reasoning | Too much reasoning |
|---|---|
| Shallow exploration | Forms assumptions without verifying them |
| Redundant tool calls | Issues poorly grounded tool calls |
| Poor action sequencing | Skips necessary validation steps |
Encourage the model to reason just enough to decide the next action, then prioritize tool interaction over further internal reasoning.
The idea: validate hypotheses through tool outputs, not more thinking.
Different model families respond differently to nudges:
| Model Family | What Works |
|---|---|
| Claude | Quantitative guidance: "Make 50+ tool calls" |
| Gemini / Grok | Flexible guidance: "Use tools as much as possible" (quantitative targets cause empty/fake tool calls) |
There is no single golden prompt for balancing reasoning and action across all models.
Even when tools work identically, different models prefer to use them differently — as a result of how they were trained.
| Model | Preference |
|---|---|
| GPT models | Prefer apply_patch command with a specific formatting style |
| Grok | Prefers atomic (separate) tools for editing vs. viewing; confused by monolithic tools |
| Grok | Performs worse with line numbers shown (tokenizer/attention issue) |
| Most models | Benefit from seeing line numbers |
Agent performance depends not just on what tools are available, but on how naturally those tools align with the model's learned behaviors.
A good harness meets the model where it is rather than forcing all models into the same interface.
Benchmaxing = reporting inflated benchmark numbers that don't reflect true model/harness capability.
Benchmark scores are influenced by infrastructure parameters that have nothing to do with intelligence:
In Terminal-Bench-2, if multiple projects share one machine:
A higher benchmark score might just mean better infrastructure, not a smarter agent or harness.
Some benchmarks (like Terminal-Bench-2) impose resource limits:
These limits can artificially suppress performance.
When time and memory constraints are removed (unconstrained setting), performance improves by 5–10% on average.
Some specific tasks (like make-doom-for-mips, torch-pipeline-parallelism) consistently time out under constraints but succeed without them.
Constrained benchmarks measure a mix of agent capability AND infrastructure efficiency — these should be understood separately.
Many agent improvements are brittle:
Invariants = design principles that remain effective across:
| Invariant Principle | Why It's Universal |
|---|---|
| Prevent ambiguous edits | All models benefit from correct execution |
| Require strong text anchors | All models benefit from precise edits |
| Provide diff feedback | All models benefit from observability |
| Manage output length smartly | All models benefit from focused context |
| Nudge toward tool use | All models need action-reasoning balance |
Build on invariant foundations, then apply minimal, targeted adaptations per model family.
SSA is a lightweight, open-source, single-agent harness that implements all the principles above.
SSA demonstrates that principled harness design — not model-specific tuning — is the primary driver of state-of-the-art performance.
┌─────────────────────────────────────────────────────┐
│ AI AGENT SYSTEM │
│ │
│ ┌──────────┐ ┌──────────────────────┐ │
│ │ LLM │◄───────►│ HARNESS │ │
│ │ (Brain) │ │ (Operating System) │ │
│ └──────────┘ └──────────────────────┘ │
│ │
│ The GAP between them = Intent-Execution Gap │
└─────────────────────────────────────────────────────┘
To close the gap:
✅ Prevent ambiguous edits (before execution)
✅ Require strong text anchors (before execution)
✅ Provide diff feedback (after execution)
✅ Manage output length intelligently
✅ Balance reasoning with tool use (reasoning nudge)
✅ Adapt tool interfaces to model preferences
✅ Build on invariant principles, not brittle optimizations
The central message of the article is:
Great AI agent performance comes from great systems design, not just great models.