Code prompts
Code prompt

Course-correct an AI without rewinding

The agent went the wrong direction. You don't want to start over — you want to name what it missed.

Works best in: Claude

That's not right. Here's what you missed: {{constraint: e.g. the function signature has to stay backward-compatible because three other services call it}}.

Before you try again:
1. Restate the constraint in your own words so I can confirm you understood it
2. Tell me which part of your previous attempt violated it
3. Describe the new approach in 2–3 sentences
4. Wait for me to say "go"

Only then make the change. If the constraint makes the original task impossible, say so — don't try to satisfy both by half-doing each.
·Open in·Share
ai-agentssteeringiteration

More code prompts

All code prompts

Go deeper