I make AI agents finish, verify, and stop. Writing "Loop Engineering in Practice": gate freeze, miss ledgers, auditing the auditor. Receipts on GitHub.
Loop engineering is the term of the summer: design the loop, add a verify step, define a stop condition.
Good advice. But weeks of my failure ledger say the hard part is a question nobody asks:
who gets to define "verify"?
🧵
BODYCAM: Find the exit alive
Play: https://t.co/8M3pIsktcK
Source: https://t.co/AgNOcj08ln
- Find the exit with a flashlight in a dark corridor.
- Each run picks a random monster combination. Different monsters react to light, sound, or where you step.
- Play with sound on. Audio gives you clues.
- You can play on desktop or mobile.
I tested training-free layer looping on a small open model (Qwen2.5-0.5B). With first-letter scoring it looked 10 to 14 points worse. Rotating the answer options closed most of that gap.
In a single pass it is still 8 to 10 points worse.
Code and data: https://t.co/XWpRSfZ24K
Layer looping on Qwen2.5-0.5B looked 10 to 14 points worse with first-letter scoring. Rotating the answer options closed most of that gap.
No improvement I could measure, and in a single pass it is still 8 to 10 points worse.
Code and data: https://t.co/XWpRSfZ24K
What gave it away: one looped model answered "A" about half the time. It got 82% right when the correct answer sat under A and 5% when it sat under E. Averaging over five rotations cancels that in the score. It does not remove it from the model.
The other one: a card claiming a 70-fold effect is withdrawn, because the site's own shipped data file puts the same comparison at 1.25.
Code MIT, content CC BY 4.0: https://t.co/jarOlEGY1c
I put a real fruit fly connectome in the browser. 140,024 neurons at their measured 3D positions, and a spiking simulation of the escape reflex playing on top.
It runs on a phone. https://t.co/iUmS2Bsuc5
Two things this week's audit changed. The headline spike count was counting the neurons I injected, which made the random control look better than a real low dose. Fixed, and that is how I found the runaway runs.
It also cannot learn. The engine never changes a connection strength, so the wiring that stores smells in a real fly just sits there. And it never stops: in 20 runs to 600 ms, zero stopped on their own.
Colour is the honesty rule. Glow is real data. Magenta is injected by us, because the model cannot compute looming. Grey line art is a body we drew, since a connectome has no body. Amber is the nerve to muscle step, which is not in the data either.
The control is stranger. Stimulate 311 random neurons instead of the detectors and the giant fiber never fires, 0 out of 20. But 3 of those 20 runs break out of the pack: 9,872, 86,872 and 90,851 downstream spikes against a median of 47, the last two lighting up most of the brain. Random input can start a riot. It cannot start an escape.
The result I did not expect. Cut the detectors from 311 to 39 and the giant fiber still fires every time. The jump muscle nerve fires in zero runs out of 20. Firing the giant fiber is not the same as getting the command out.
There is now a lab. Pick which neurons get stimulated and see what the model did. Nine conditions, each one actually run 20 times, shown as a median and a range.
https://t.co/FTWBg4vatS
What the replay shows: 309 of the 311 looming detectors wire straight into one giant fiber on their own side. In the run the site plays, the giant fiber fires at 3.3 ms, the jump muscle nerve at 14.4 ms, the wing depressor at 15.7 ms.
The dataset is MaleCNS v1.0 (Berg et al. 2026), the male fly central nervous system. 166,691 neurons in the connectome, 140,024 of them with soma coordinates. Those are the ones you see.
Numbers, honestly: protocol v1→v2 moved cold-reviewer recall from ~2.5/6 to 5/6 against an expert answer key (n=1 — proof of mechanism, not a benchmark). A one-line "not interesting because X" would genuinely help me.
@simonw I built a protocol that forces AI work through adversarial self-refutation: a cold reviewer must reproduce every finding, misses become permanent challenges, and the evaluator itself is scored by recall. Worth pursuing, or do evals do this better? https://t.co/Bt3p9VvNrg
AI Discussion Room
Ask 3 AIs one question, merge the answers yourself — a chore.
So we built a pixel parliament — Claude/ChatGPT/Gemini debate; an anonymized chair files consensus + minority reports.
Zero API spend, MIT.
https://t.co/P0N4CG1TPF