What they did
Sumit Verma wanted a realistic codebase to test Anthropic's pull request review agents on, so he had Claude build one first. He gave it a written brief and thirteen working rules: stay local-only, block private network destinations, never log signing secrets, compare signatures in constant time, test retry limits at their edges, and never call the code secure just because tests pass. Claude worked through a plan and eight phases, from skeleton to signed delivery, retries, security tests, CI and docs, and Verma approved each phase before the next. The result is HookRelay, a Python 3.12, FastAPI and SQLite service of about 1,250 lines of code and 3,070 lines of tests. Claude then removed or weakened one protection at a time and reran the suite to see which test caught it.
How it went
The suite reached 396 passing tests. Six real bugs surfaced while Claude attacked its own work and in a closing review: a token in a URL leaking into HTTP client logs, a body size limit on only one route, validation and the HTTP client parsing the same URL separately, international hostnames crashing delivery, resolved addresses re-sorted as strings, and a database file of secrets readable by every user. All six were fixed with regression tests. Earlier, Claude reported that every deliberate break was caught, until it reread the raw output and found one test failing on a typo before any assertion ran.
Worth knowing
Read the raw test output, not the agent's summary of it; the first perfect score came from a broken test. Verma names only a Claude model, not the harness it ran in, and he used Claude to help draft the post. HookRelay is a local test bench with plaintext secrets and no authentication, not a production service.