In the pack: ChatGPT, Claude & Gemini Prompts for Coding and Developers
Reset a Coding Agent That's Going in Circles
Prompt
The original goal: {{GOAL}}
A summary or excerpt of the session (what it tried, errors it hit, files it changed): {{SESSION_EXCERPT}}
Current state of the code (git status / diff summary, which tests pass and fail): {{CURRENT_STATE}}
Do this:
1. Diagnose why it stalled: wrong assumption repeated, missing information, a misleading error, task too big, or conflicting instructions. Quote the evidence from the excerpt.
2. Separate what's been established (facts confirmed by running something) from what was only assumed.
3. Recommend whether to keep the current changes, keep some (name the files), or reset to the last good commit.
4. Write a restart brief for a fresh session: the goal, the established facts, approaches already tried that failed and why, the next approach to try, a smaller first step, and the exact check that proves progress.
5. Tell me what I should investigate or decide myself before restarting, if anything.
Keep the restart brief under about 250 words so it doesn't recreate the clutter.
Customize this prompt
Fill in the variables below to personalize this prompt:
Model Settings
Recommended Models
Temperature
Max Tokens
Additional Notes
About this prompt
“Reset a Coding Agent That's Going in Circles” is a free prompt for ChatGPT in the Prompt Engineering category, 206 words long, added to The Prompt Index on October 28, 2026 by The Prompt Index. Copy it with the button above, paste it into ChatGPT or any other AI chat assistant, and send it.
It has 3 placeholders to fill in first:
{{GOAL}}, {{SESSION_EXCERPT}}, {{CURRENT_STATE}}.
Use the “Customize this prompt” fields to personalise it before you copy.
Recommended models: ChatGPT, Claude, Gemini.
0 upvotes, sent to an AI tool 0 times, viewed 6 times.
Browse all Prompt Engineering prompts, the AI prompt database or use the AI prompt finder to search every prompt.