prompt
FreeBuild AI agents that gracefully handle user interruptions and plan changes
About prompt
The Interruptible Agent Planner is a prompt designed for AI agents that need to handle multi-step tasks while remaining responsive to user interruptions, priority changes, and partial cancellations. It enforces a structured approach to maintain a live task state (completed, in-progress, pending, blocked, irreversible actions), treat interruptions as first-class events, protect against stale intent, and prefer reversible progress. The output format includes sections for current objective, latest user change, state snapshot, work to stop, work to preserve, revised plan, confirmation needed, and irreversible risks. This prompt is ideal for long-running agent applications where the user may revise scope at any time, ensuring the agent does not continue executing an old plan after a change of direction. It is published as open source on GitHub under the ai-boost/awesome-prompts repository.
Key Features
Pros & Cons
- Designed specifically for handling user interruptions, making it suitable for dynamic environments
- Forces explicit state tracking, reducing risk of executing stale plans
- Allows agents to distinguish between reversible and irreversible progress
- Open source and free to use, modify, and integrate
- Based on research and best practices from arXiv, Anthropic, and OpenAI
- Requires manual integration into an AI system; it is a prompt template, not a ready-to-use tool
- Assumes the agent can follow a strict output format, which may not suit all frameworks
- No built-in memory or task scheduling; external infrastructure needed for state persistence
- Limited community support beyond the GitHub repository