Test-first subagent
Writes a failing test that reproduces the bug before the main agent is allowed to fix it.
How to build it
- 1Define a subagent that may only touch test files.
- 2Have it reproduce the bug as a failing test and hand back the test name.
- 3Use a Stop hook to confirm the test passes before the task closes.
The Reddit threads