Talk

Bug Fix Protocol with Multi-Agent Parallel Fix

From Wikiprompt, the free prompt encyclopedia

Ilker Ulusoy
Contributed byIlker UlusoySource

May 18, 2026

Bug Fix Protocol with Multi-Agent Parallel Fix A structured multi-phase protocol for debugging, using parallel agents to test and fix hypotheses.

Prompt ContentSave

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

Sign in to see the full prompt

Continue with:

By logging in, you agree to our Terms of Use and Privacy Policy

Usage

This prompt is designed for use with coding. Copy the prompt content above and paste it into your preferred AI tool.

For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.

References

Categories:coding| prompts.chat| bug-fix| debugging

Talk