Lessons

Eight principles for building agents that work on their own, each drawn from logged runs. They apply to any agent: in a codebase, a ticket queue or a business tool.

1 · Tools

A tool’s report has to be true

A tool is the agent’s only account of what happened. It plans on that account, so a report that is wrong sends every decision after it the wrong way, however good the model.

Evidence

A hunting tool that never got out of the agents’ home reported “the sheep got away”: 208 times in 223 over two nights. The agents planned around animals that were never the problem. Fixed, with three smaller tool fixes, the team went from 2 in 6 to 7 and 8 in 10.

Write-up 07 →

In practiceTest what each tool reports against what really happened, not just whether it ran.

Case study: Three cheap agents, one shared goal

2 · Tools

Fix the tools first; when fixes stop moving the rate, change the model

Most early failures were in the structure around the model: tools that refused possible actions, misreported, or were missing. Fixing those moved results further than any model change, until they stopped: past that point, what was left was the model’s own judgement.

Evidence

The same small local model went from 3 of 9 runs to 8 of 9 on tool fixes alone; four paid models from 4 of 12 to 12 of 12. Then six more fixes left three of the cheapest model at 15 of 30, and a stronger model on the same tools met the goal 20 of 20.

Write-ups 01, 04 and 08 →

In practiceWhen an agent fails, look at what its tools did and what it was told first; when fixes stop moving the rate, run a short trial of a stronger model before tuning further.

Case studies: When fixing the tools stops working, Fixing the tools, not the models, A free local model

3 · Context

Agents believe the summary over the evidence

A computed status (“safe”, “done”, “0”) wins over the raw signal beside it, even when the two contradict each other in the same view.

Evidence

An agent waited beside a zombie because its home was reported “closed”; another reasoned for 26 decisions from a health of “0” that was really 0.4.

Write-up 06 →

In practiceCheck every status you compute against the signals it summarises, and never round away the edge case.

Case study: Three cheap agents, one shared goal

4 · Context

A true, neutral fact can still steer agents off the goal

What an agent is shown, it acts on. A fact about a side issue becomes a side quest, however neutrally it is worded.

Evidence

Told where they had dropped things on dying, agents went back for them ten times as often at night (1.3 to 15 trips a run); most trips failed, deaths rose, and the team’s success fell from 21 of 30 to 4 of 12.

Write-up 08 →

In practiceWhen you add something to what an agent sees, measure how its behaviour changes, not only whether it succeeds.

Case study: When fixing the tools stops working

5 · Teams of agents

Between agents, needs must become requests

Agents organise themselves quickly and help when asked, but almost never act on a need they can see. Orders from a peer are treated as suggestions.

Evidence

31 of 35 hand-overs between teammates followed a request. Questions between agents were answered 220 times in 308; instructions were acted on at once 36 times in 201.

Write-ups 06 and 07 →

In practiceRoute work between agents, or between agents and people, as explicit requests with an owner, as tickets do.

Case study: Three cheap agents, one shared goal

6 · Control loop

Keep the model out of the fast loop, and audit what stands in for it

The world moves on while the model thinks. Code carries out each decision and covers the seconds a decision takes, but code acting without the model also acts without its judgement.

Evidence

9 of 17 deaths in one run came while the model was still deciding; a reflex that steps back while it decides kept health at 20. Another reflex quietly dug out the home’s door about 4,500 times in two weeks before anyone noticed.

Write-ups 06 and 07 →

In practiceLet the model choose goals and deterministic code execute them; count how often every automatic action fires against what it guards.

Case studies: Three cheap agents, one shared goal, Fixing the tools, not the models

7 · Measurement

Measure the rate on frozen code

Fixing after every run finds the next failure, not how often the system succeeds. Only a set of runs on unchanged code gives a rate, and even ten runs is a wide estimate.

Evidence

Nine runs with a fix after each met the whole goal once, in the last. Five on one unchanged version met it 4 times; sets of ten on later versions scored 7, 8, 6, 7, 4 and 4.

Write-ups 07 and 08 →

In practiceFreeze the code, run a set, and report the success rate with its sample size before calling anything done.

Case studies: Three cheap agents, one shared goal, A free local model, When fixing the tools stops working

8 · Measurement

Count cost per success, not per call

A cheap model that fails often can cost more per result than an expensive one, and a better harness raises a cheap model’s ceiling, up to a point. Compare cost per success and the success rate together, after fixing the tools.

Evidence

Three of the cheapest model met the team goal at about 28¢ a success, half the time; three of a stronger one at about $1 a success, every time. The mixed team’s early wins cost $1.36 to $1.43 each.

Write-up 08 →

In practiceTrack cost per successful outcome at the provider’s billed rates, and check the estimate against the bill.

Case studies: When fixing the tools stops working, Three cheap agents, one shared goal, Fixing the tools, not the models