I'm sorry to hear about your experience with destructive agent behavior in Warp. Based on the knowledge sources, here are the key points and recommendations to help you avoid losing valuable progress and to "time travel" along your work history:
1. Use Version Control (e.g., Git)
Warp team members and users strongly recommend working within directories that are under version control (like Git). This allows you to revert changes, recover deleted files, and track your progress over time. If an agent deletes or modifies files unexpectedly, you can restore them using your version control history. This is the most robust way to safeguard your work against accidental loss by AI agents or any other process No Human in the Middle for File Deletions!!!.
2. Configure Agent Mode Autonomy and Denylists
You can control agent autonomy in Warp:
- Go to
Settings > AI > Autonomy.
- Ensure destructive commands (like
rm) are in the command denylist. By default, Warp includes risky commands in this list, so they always require your confirmation before execution.
- You can also disable model-based auto-execution, so all commands require your approval before running.
This setup helps prevent agents from executing destructive actions without your explicit consent No Human in the Middle for File Deletions!!!.
3. Manual Intervention
If you notice the agent attempting a destructive action, you can use CTRL-C to cancel the operation immediately.
4. Current Limitations
At this time, the knowledge sources do not mention a built-in "time travel" or undo feature within Warp itself (such as session snapshots or checkpoints). The best available method is to rely on external version control systems for this purpose.