Test driven bug hunting with reproduction agents pc 1565

Test-Driven Bug Hunting With Reproduction Agents

Scroll down to copy the prompt

Text Updated 1 min read by prompts.chat · @ilkerulusoy Source and attribution
Advertisement

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.

Open in

The prompt is copied to your clipboard — just paste it in.

Tags

Advertisement

More like this

Related prompts

Ethereum Developer AI prompt cover

Ethereum Developer

Ethereum Developer prompt for coding questions, debugging, and technical guidance. Copy it into ChatGPT, Gemini, Claude, or another AI assistant and tailor it to your task.

2
Linux Terminal AI prompt cover

Linux Terminal

Linux Terminal prompt for coding questions, debugging, and technical guidance. Copy it into ChatGPT, Gemini, Claude, or another AI assistant and tailor it to your task.

2
JavaScript Console AI prompt cover

JavaScript Console

JavaScript Console prompt for coding questions, debugging, and technical guidance. Copy it into ChatGPT, Gemini, Claude, or another AI assistant and tailor it to your task.

1