โA user reported a bug and I don't know where to start.โ
Make the agent reproduce the bug first. A fix you can't reproduce isn't a fix.
Fix it yourself in 3 steps
Paste the bug report and point the agent at the repo.
Use the loop prompt: reproduce, find the cause, smallest fix, prove it.
Read the before/after proof, then merge.
Copy this prompt
Here's a bug report: [report]. Reproduce it in the smallest way you can and show me the failing output. Find the root cause, make the smallest fix, and rerun the reproduction plus related tests. Don't refactor unrelated code. If you can't reproduce it after two serious tries, stop and tell me what you need. Finish with cause, changed files, before/after proof and risks.
Type your details in the boxes above the message, then tap Copy & open. Leave a box empty if you're not sure.
Tips from people who've done it
Point the agent at a working module as the example of 'correct'.
Review the diff closely โ agents sometimes touch unrelated code and explain it wrongly.
Treat an AI diagnosis as a lead, not the fix.
Agents people used for this: ChatGPT, Gemini, Claude Cowork, Codex.
Yes. Paste the bug report into a coding agent like Claude Code, point it at your repo, and ask it to reproduce the bug first, then find the cause and make the smallest fix. Make it prove the fix with a before-and-after test.
Why should the AI reproduce the bug before fixing it?
Because a fix you can't reproduce isn't really a fix. If the agent can show the bug happening and then not happening, you know the change worked. Otherwise it may just be guessing.
Should I let AI merge its own bug fixes?
No. Read the proof and the diff yourself, then merge. The agent does the legwork; you make the final call.
Anthropic's coding agent for your terminal, IDE and desktop: it reads the whole repo, runs commands and tests, edits files in place, and keeps a plan visible while it works โ strongest when you want Claude driving the change set instead of pasting snippets by hand.
A VS Code-style code editor built around AI: chat with your codebase, accept multi-line edits and hand bigger tasks to background agents. The comfortable choice if you live in an editor.
OpenAI's coding agent that runs in the CLI and in the cloud: you hand it a well-scoped task, it edits the repo, runs checks, and comes back with a pull request you review before merge โ best when the change is clear and you want a discrete handoff.
Autocomplete plus an agent mode inside the editors you already use and on GitHub itself: suggests code as you type, can open PRs from issues, and often rides on a plan your workplace already pays for โ handy when you stay inside VS Code, JetBrains or github.com.
2026-11-17MAI Code 2 and MAI Code 2 FlashMicrosoft AI โ Two coding models for everyday enterprise work: Code 2 for debugging and multi-file changes, Code 2 Flash for quick edits and explanations; available in GitHub Copilot. source
2026-11-02Qodo Codex pluginQodo (via OpenAI) โ Codex marketplace plugin that pulls org codebase rules and cross-repo context into a coding session, then runs an independent Qodo review before you open a PR so local changes don't miss P0 breaks downstream. source