Claude Code
Let Claude Code run a fault-injection test-and-fix loop on Ceph
Alex Ainscow, who writes Ceph erasure-coding code for IBM and Red Hat, describes a loop he ran between 29 September and 12 October 2026. Claude Code injected faults into a test cluster with a tool called vstart_chaos that it had written with him, noticed when something broke, worked out why, wrote a unit test that failed, fixed the bug, rebuilt and went again. When the test tool itself was wrong, it fixed that too. He steered the runs and gave a yes or no on everything that left the machine.
- Agent
- Claude Code
- Outcome
- Reported: the first two long sessions, 87 hours of Claude Code work over one overnight and one weekend, found 50 real defects, 27 of them in code already upstream, the oldest dating back to Octopus (2020); a later batch of ten runs found five more on main. The first two sessions cost about $840 at API prices, and every fix still needed a person to understand and review it. He thinks it cut the human time per bug from about two days to a couple of hours. The first campaign also found 16 bugs in the tool itself.
Reported by the source. This page does not verify the result and does not add dollar figures beyond the note above.
Prompt
Run a test-and-fix loop on [project] with the fault-injection tool at [path]. Inject faults, watch for breaks, diagnose the mechanism from logs and on-disk evidence, write a unit test that fails for that mechanism, then fix the code and rebuild. If the failure came from the tool, fix the tool instead and start the next run with the better version. Do not send patches or reports off this machine until I have reviewed them.