Field Guide

/

Improve

Fix the harness first

When an agent struggles, check its harness: the context, docs, tools, skills and checks it works with. These are often responsible for problems attributed to the model or engineer.

A harness problem recurs in every session that encounters it. Fixing a doc or tool can therefore help every agent and engineer who uses it.

Where agents get stuckFriction found in one team's traces over a week
HandbacksAgent gave up46
Failed tool calls38
Idle timeWaiting on a person27
Slow toolsBuilds, tests19
02550

Counts of sessions affected. Each kind of friction points to a different fix in the environment.

The workspace sets how far an agent gets

A harness is the deterministic software that sits on top of a probabilistic model.[1] It controls what the agent knows, what it can do and how its work gets checked. Because of it, two teams on the same model can see different results.

Across 103 teams in our research, a one-point improvement in environment readiness went with 88% more merged lines per human turn, with no change in model.[2]

Autonomy is less a property of the model than a property of the workspace you give it.

Span research · Beyond the Model

Fixing it

Read friction from the traces

Handbacks, failed tool calls, idle waits and slow builds all show up in traces. Group them by repository and cause, and the worst offenders are usually obvious.

Fix it once, for everyone

Improve the environment with clearer docs, a faster test target or an automatic hook. These changes help everyone who uses it, without relying on advice reaching each person.

Check that the fix holds

Treat a fix as done only when friction drops in the sessions that follow. Measure it the same way you measured the problem.

In Span

Span’s Harness health view ranks harness fixes by how often people had to step in for the agent, and explains why each one matters and how to resolve it.

Harness HealthActiveResolvedArchivedSearch recommendations…High3Install the formatter in the agent workspace23Document the known-failing tests baseline18Allow the push command in agent permissions14Medium2Cache dependencies between agent runs9Speed up the slowest test target7Low2Pin runtime versions in CI4Clean up stale lockfiles in the workspace3Install the formatter in the agent workspaceDetailsTracesPeopleacme/payments

In 23 sessions a person stepped in because the agent couldn’t run the formatter

Stepped in23 sessions
Reach5 of 9 people
Frequency1 in 6 sessions
Timeup to 48m waiting

How to resolve

Add the formatter to the agent setup script, and note in the repo’s agent guidance that make fmt must pass before a pull request is opened.

Evidence 3

make: fmt: command not found. Please run it locally.

11d1b6e8-334d-58b1 turn-2

The formatter isn’t installed, so I skipped formatting.

23284cc7-aa57-5b73 turn-4

CI formatting check failed: wrong formatter version.

23284cc7-aa57-5b73 turn-5
Send to agent
payments — zsh~/payments$ claude "fix flaky test"mcp · span.get_harness_health_recs0.4s- setTimeout(retry, 250)+ setTimeout(retry, 250 + jitter())Fix applied · PR #5104 opened~/payments$

TRUSTED BY

PUT MORE BEHIND WHAT WORKS

TRUSTED BY

PUT MORE BEHIND WHAT WORKS

TRUSTED BY

PUT MORE BEHIND WHAT WORKS