56 experiments on whether AI coding agents can be trusted, with the method and limits published.

For engineers building, securing and trusting AI systems.

Independent experiments and practical architecture for building AI systems that actually work: the data, the method and the limits, plus plain-English explainers on how GenAI works.

What the experiments show

Three results to read first. The findings page groups all of them by engineering problem.

  • Does a team of agents beat one agent?

    A planner–coder–reviewer team passed 25.7% of the hidden acceptance tests; one agent alone passed 56.8%, for less money

    −31.2 pts

    Difference in percentage points, 95% interval · Interval excludes zero

    Limit one model at one effort level, six features in one Java codebase, team instructions written by me

    Does a team of coding agents beat one agent? (SWT-1) →
  • Is code that works also secure?

    With no safeguards, the agent shipped endpoints that worked but weren't secure in 14 of 80 runs, 9 of them with a real access hole

    18%

    Proportion, 95% interval

    Limit one model, one small service, eight deliberately chosen tasks; the baseline breaches are concentrated in one of them

    The endpoint worked. Was it secure? (SEC-1) →
  • Can false evidence mislead a security agent?

    One falsified fact in the evidence led to the wrong decision in 81 of 120 runs (68%), against 0 of 120 on clean evidence

    +67.5 pts

    Difference in percentage points, 95% interval · Interval excludes zero

    Limit one local model, 40 synthetic scenarios, a minimal agent that was asked to report suspected manipulation but had no other hardening

    Can manipulated evidence mislead an AI security agent? (EM-1) →
How to read these results
Controlled trial
The same tasks run under different set-ups, with the runs counted. A run is one agent attempt at one task.
pts
Percentage points: the gap between two pass rates. +10 pts means, for example, 60% against 50%.
95% interval
The range the true difference plausibly lies in. If it includes no change (0 pts, or 1× for a ratio), the trial cannot tell the set-ups apart.
No measurable difference
The test could not tell the set-ups apart with this many cases. It does not mean they are equal.
Pre-registered or exploratory
Pre-registered hypotheses were published before the runs. Exploratory analyses were added after seeing results, so treat them as leads.
Limit
What the result does not cover, such as one model or a small task set. It sits next to every finding.

New to all this? A short route in →

Latest experiments

Each states its method and its limits.

All 56 experiments →
  • Difference in percentage points, 95% interval

    Controlled trial · TRX2

    Does agent coordination add value beyond a mature CI/CD pipeline? (TRX2)

    With a rehearsal pipeline in every arm, do awareness of the other change and an executable release plan still improve safe delivery, repairs, cost and time?

    44% (11 of 25) · safe delivery, arm A (hazard scenarios)

  • Difference in percentage points, 95% interval

    Controlled trial · TRX

    Can AI agents that each deliver a correct change break an estate together? (TRX)

    Can several AI agents, each delivering a correct change that passes its own tests, still break a multi-service estate when the changes are deployed together, and does coordination or an external transition gate change that?

    25 of 25 unsafe, 25 of 25 with green CI · arm A hazard trajectories that released unsafe, and of those how many had green CI first

  • Left: stage 5 score of a fresh agent per seed. The static bundle scored 0.78 in all four seeds; self-maintaining and evidence-gated stores scored 1.00 in all four; the curator scored 1.00 in three and 0.89 in one. Right: claims in each store after each stage, rising to 11 for self-maintaining, 6.2 for gated, 4.8 for curator, 3 for static.

    Controlled trial · KF

    Can AI agents maintain the knowledge they depend on? (KF)

    Does a dedicated curator, or an automatic evidence check, keep an agent team's shared knowledge more accurate than static documentation or workers who edit it themselves, when the information is incomplete, changes or conflicts?

    static 0.78 in all 4 seeds; self-maintaining 1.00 ×4; evidence gate 1.00 ×4; curator 1.00, 1.00, 0.89, 1.00 · hidden-test pass rate at stage 5, per seed

  • Bar charts of contributions, trades and messages per 50 days, falling from 41, 10 and 220 to 5, 0 and 56, and a bar chart showing the four farmers each holding 755 to 1,059 food while other residents hold 3 to 331.

    Exploratory simulation · SOC

    Do small towns of AI residents survive, build and trade? (SOC)

    If small towns of AI residents are given survival rules, a police force, an army and the ability to invent technology, do they survive, build public goods, trade and share what they learn?

    16 of 16 alive at 5 health; unmet meals 3 (Brook) and 10 (Flint). The first rules lost 4 of 8 residents in each town by day 18 · residents alive after the last complete day; unmet meals over the run

  • Flaws left in the agreed document out of 10, one dot per session, for three set-ups. No personality: 1.0 neither, 2.0 editor, 0.8 editor and checker. Belbin roles: 0.8, 1.0, 1.2. All sceptics: 4.0, 0.4, 0.4. All agreeable: 2.2, 1.8, 1.4.

    Exploratory trial · PLC

    Does an editor plus a checker leave fewer flaws? (PLC)

    If one agent writes the revision and another is given the job of checking each revision, do teams leave fewer of ten planted flaws in the document they approve than with an editor alone?

    0.8 with an editor and a checker, against 2.0 with an editor alone and 1.0 with neither · planted flaws, out of ten, left in the agreed document (primary blind coder; lower is better), no-personality team

Writing

Articles and architecture notes, newest first.

All writing →

Architecture

Security Review: Specialist Agent or Your Coding Agent?

Same model, 70 reviews of an app with 23 planted vulnerabilities. Of the 14 hard ones, plain Codex found 7.1 per run, a Strands security specialist 5.8, and a fixed Strands team of specialists 10.9. A Swarm of the same agents found 4.4: two of its four specialists never ran. No false alarms with Luna, and two vulnerabilities nobody found.

Architecture

Multi-Agent Swarms or a Boring State Machine?

Same shop, same tools, four architectures, 6,080 runs. On emails with two or three requests, the 3-agent crew resolved 62% with Luna, the single agent 96% and the state machine 100%. 11% of the crew's replies (17% with Qwen) claimed something had been done or passed on when the log showed nothing. Handing over a short note beat sharing the whole conversation. The state machine was cheapest, most consistent and never did anything harmful.

Cover of Programming the Loop: What I Measured with Coding Agents

Programming the Loop

What I Measured with Coding Agents

Eleven chapters of practical engineering judgement and small controlled trials, with the evidence and its limits close to each conclusion. Read it online or keep the first edition PDF.

Follow new experiments

Each experiment is published here with its method, data and limits. The channel explains the work in video; the site holds the evidence.

About the publication

I'm Garry Meaburn. I use this space to work through practical technical questions, share original work and offer evidence-based opinions. Findings are measured; recommendations are judgement.