A case study in testing with 100+ Claude agents in parallel
TL;DR Highlight
Turning a tutorial script into pytest tests run by 100+ parallel agents, then merging everything into one PR.
Who Should Read
A backend developer who wants to automate testing and fixing by running many coding agents in parallel.
Core Mechanics
- Start from a tutorial script
- Each block of consecutive non-empty lines in tutorial.sh becomes one unit.
- Each block yields one or more pytest functions, and each function gets an agent to run, debug, fix and improve it.
- All results are integrated at the end.
- Let agents write the examples too
- Write comments like '# Managing snapshots' and have a coding agent fill in the blanks, then keep the good ones.
- Bad examples signal a confusing interface or missing docs, so they improved mngr itself.
- One block becomes many tests (1:N)
- Variations in command or environment produce different outcomes, so they get separate tests.
- Agents cite the source block via a fixture API, and a script checks every block has at least one citing test.
- First-draft E2E tests can be rough
- The article says Arrange, Act and Assert each carry tensions that make E2E tests hard for humans and agents alike.
- Later, agents fix failing tests and make passing ones more realistic.
- Integration splits changes by type
- Agents separate commits into implementation fixes and non-implementation fixes such as tests and docs.
- The integrator merges non-implementation fixes directly and ranks implementation fixes by importance into a linear branch of distinct commits.
- A human reviews implementation commits one by one and reverts unwanted ones.
- Scaling to remote is a one-word change
- Changing mngr create foo to mngr create foo@.modal runs agents on Modal.
- mngr list, pull and stop behave the same locally and remotely.
- Remote uses Git mirror mode, so use mirror mode locally to match.
Community Reactions
- Experience of agents succeeding via different paths
- A comment says behavioral drift between parallel agents is nearly invisible without aggregation.
- Two agents completed the same task via different paths, and one quietly broke prod edge cases.
- Treating conversation traces as a dataset caught it.
- Opinion that cost and concurrency matter more
- A commenter estimates 20-50k tokens of context per agent run.
- They argue 100 agents running hourly across repos reaches millions of tokens a day.
- They advise capping concurrency at what the API and budget support.
- Counterpoint about needing a human in the loop
- A commenter says Claude Code features still need hours of babysitting and iteration, unlike the large-scale blog claims.
- Criticism that it's a product pitch
- One comment calls it a pitch for an agent orchestration product and services.
How to Apply
- Turn one tutorial block into a test
- Today, pick a block of commands from your README or demo script and ask a coding agent to convert it into pytest functions.
- Require at least one happy and one unhappy path, and a comment citing the source block.
- Add a block-to-test coverage check
- Write a small script that checks each doc block is cited by at least one test, and add it to CI.
- Fail the build when a block has no citing test.
- Collect agent results as JSON with a blocked status
- Have each parallel agent write a result JSON and report blocked when it cannot progress.
- Count blocked runs separately in your report.
- Make the integrator split implementation from non-implementation fixes
- Prompt it to merge non-implementation fixes together and keep implementation fixes as separate commits ranked by importance.
- This lets reviewers revert at commit level.
Try It
# Paste into Claude Code (simplified version of the article's method: one agent converting doc blocks to tests)
Read {{path to tutorial.sh}} and create pytest tests following these rules.
1. Treat each group of consecutive non-empty lines as a block.
2. For each block, write at least one test, separating happy and unhappy paths.
3. Quote the original block text verbatim in each test function's docstring.
4. Run commands via subprocess and assert on stdout, stderr and exit code. Avoid brittle assertions like literal file contents.
5. After writing, run pytest and fix either the test or the code if it fails.
6. Keep implementation fixes and test/doc fixes in separate commits.
7. If blocked, write {"status":"blocked","reason":"..."} to result.json.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques