Test-Driven Bug Hunting With Reproduction Agents Prompt
Join Our WhatsApp Channel for Latest UpdatesThis is a ready-to-use Test-Driven Bug Hunting With Reproduction Agents Prompt for ChatGPT. Copy the prompt below, paste it into your AI tool and adjust it to your needs.
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.How to use this prompt
- Replace anything written like
${Name:default}with your own value. - Paste the full prompt into a new chat and send it.
- Follow up with extra details to refine the answer.