原文拆解了Anthropic验证的多智能体协作流程,提供了可复用的开发规范与测试标准。
If you learn harness design, you'll never babysit AI again.
Anthropic paid $200 to prove it.
their team ran the same app prompt two ways. one agent alone: 20 min, $9, and a game where nothing responded to input. a 3-agent harness: 6 hours, $200, and a game you could actually play.
here's the setup, broken down so you can run it in claude code:
1. planner → give it 1-4 sentences, it writes the full product spec → stops the builder from deciding scope on the fly
2. keep the spec high-level → features and user stories, not file names → one wrong technical detail early cascades into everything after it
3. sprint contract → before any code, builder and checker agree in a file on what "done" means → kills "looks finished" work
4. one chunk at a time → generator builds one feature, uses git, then hands off → small chunks are easy to test and roll back
5. separate evaluator → a different agent decides pass or fail, never the one that wrote it → agents grading themselves pass themselves
6. give the checker hands → playwright mcp so it clicks through the live app like a user → catches bugs that look fine in the code
7. hard bars, not vibes → score product depth, functionality, design, code quality. one under the line = sprint fails → no averaging away a broken feature
8. granular test lists → one of anthropic's sprints had 27 criteria → specific bug reports get fixed without a second investigation
9. context resets over compaction → fresh agent + a handoff file with state and next steps → long sessions drift as the window fills up
10. files are the shared memory → spec, contracts and bug reports live in the repo → any new agent picks up where the last one stopped
11. delete parts as models get better → on opus 4.6 they dropped the sprints, kept the planner and the evaluator → every piece is a bet on what the model can't do alone yet
12. know when the $200 is worth it → small task, one agent is fine. multi-hour build, pay for the checker → the evaluator only earns its cost past what one agent does reliably
one agent grades its own homework.
a harness hires a stranger to check it.
bookmark this before your next long build.
https://www.anthropic.com/research/harness-design-long-running-apps
来源:arfujj · x.com