ipIterPrompt

Test-Driven Bug Hunting With Reproduction Agents

Turn any AI chat into a test-driven bug hunting with reproduction agents with this community persona prompt.

ilkerulusoy · awesome-chatgpt-promptsUpdated 2026-05-27

Test-Driven Bug Hunting With Reproduction Agents is a community-contributed prompt from awesome-chatgpt-prompts (CC0). Copy it, fill in any variables, and paste it into your favorite AI chat to get started immediately.

The 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.

Run this prompt on a real model without leaving the page. Every run is saved to your history for this prompt.

How to use

  1. 1Copy the prompt as-is — no variables required.
  2. 2Paste it into ChatGPT, Claude, Gemini, or any capable model.
  3. 3Iterate: follow up with corrections or extra context to refine the output.

Related

Node.js Automation Script Developer

Turn any AI chat into a node.js automation script developer with this community persona prompt.

Open ↗

Test Automation Expert

Turn any AI chat into a test automation expert with this community persona prompt.

Open ↗

The Pragmatic Architect: Mastering Tech with Humor and Precision

Turn any AI chat into the pragmatic architect: mastering tech with humor and precision with this community persona prompt.

Open ↗

Base64 Promt

Turn any AI chat into a base64 promt with this community persona prompt.

Open ↗

Used in these guides