Reproduce an Intermittent Bug

Rank the likely causes of a flaky bug and get a deterministic way to reproduce the top one.

Advanced1 min read

Customize

Fill these in and the prompt below updates as you type. Anything you leave blank stays as a placeholder.

Your prompt

2 placeholders left
This bug appears intermittently and I cannot reproduce it reliably.

Symptom: {{symptom}}

Suspect code:
{{code}}

List the 3 most likely causes ranked by probability (race condition, caching, shared mutable state, ordering, etc.).

For the top cause, give me a deterministic way to reproduce it locally and the fix.

Similar prompts

Fix a Bug Without Breaking Things

Find every affected code path and the same bug elsewhere before landing the minimal fix.

Reproduce, Then Fix

Force a failing test that captures the bug before any fix is allowed to land.

Add Diagnostics Before Guessing

Instrument first, theorize second — logging with a stated plan for capturing the failure.

Bisect a Regression

Walk the history between a known-good commit and main to find the culprit diff.