Agent Debugging Prompts: Fixing Stuck or Wrong Agents (2026)

How to prompt AI coding agents when they're stuck, looping, or wrong — inspection, rollback, re-scoping, and root-cause patterns.