Prompt

0 copies · 0 said it worked

Ilker Ulusoy@ilkerulusoy·
Coding· Claude Code

Reproduce a bug with failing tests, then race parallel fixes to a merge

A four-phase protocol for debugging a reported bug: write failing mock-based tests first, rank root-cause hypotheses from the codebase, try the top three fixes in parallel worktrees, and recommend one to merge.

People use this for

  • debug reported bug with tests
  • failing test before bug fix
  • root cause hypotheses for bug
  • parallel bug fix comparison
  • reproduce bug with mock tests
test-first reproductionhypothesis rankingparallel sub-agentsgit worktrees
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from Test-Driven Bug Hunting With Reproduction Agents . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Fill in the variables

Prompt

Bug report: {{bug}}. Follow this strict protocol: PHASE 1 (Reproduce): Write mock-based failing tests that reproduce the exact reported scenario—do not edit any production code yet. Show me the failing test output. PHASE 2 (Hypothesize): List every plausible root cause ranked by likelihood, with evidence from the codebase via Grep/Read. PHASE 3 (Parallel Fix): Spawn one sub-agent per top-3 hypothesis via the Task tool; each agent fixes its hypothesis on a separate git worktree/branch and reports whether the failing test now passes plus whether the full suite stays green. PHASE 4 (Synthesize): Recommend which fix to merge and why, then commit. Refuse to skip phases.

No result recorded for this import yet. Tried it? File a report so the next person knows how it went.

Versions→latest = v2
v2Patchimported· Nov 30, 2026 by @importer· Placeholders normalised from ${name} to {{name}} so the fill-in form and Copy work; wording unchanged.Permalink
Bug report: ${{bug}}. Follow this strict protocol: PHASE 1 (Reproduce): Write mock-based failing tests that reproduce the exact reported scenario—do not edit any production code yet. Show me the failing test output. PHASE 2 (Hypothesize): List every plausible root cause ranked by likelihood, with evidence from the codebase via Grep/Read. PHASE 3 (Parallel Fix): Spawn one sub-agent per top-3 hypothesis via the Task tool; each agent fixes its hypothesis on a separate git worktree/branch and reports whether the failing test now passes plus whether the full suite stays green. PHASE 4 (Synthesize): Recommend which fix to merge and why, then commit. Refuse to skip phases.

Tried it

Structured reports from people who ran this prompt. They roll up into the per-model badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v2 · updated Nov 30, 2026 · first published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.