Enable Durable Background Tasks with /loop Persistence
Run persistent, background coding tasks that survive system restarts.
Deploy 'Durable /loop' for long-running or scheduled tasks to ensure the agent continues working even after a terminal session ends or the system reboots.
The Scenario
You are running a long-term code migration or a repetitive cleanup task that might be interrupted by a system restart or a lost connection.
Before & after
Engineers often stay at their desks to monitor long-running scripts or manual migration tasks in the terminal. A 2-hour task requires 2 hours of presence.
Use the /loop command to schedule the task; the agent will continue working even if you close the terminal or restart. It completes the background task in seconds of active setup time.
The Prompt
/loop [SPECIFY_RECURRING_TASK_OR_LONG_RUNNING_GOAL]
The Durable /loop feature ensures that scheduled agent tasks are persistent. This is perfect for background operations like bulk data migration or continuous monitoring.
Source
Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs"Qwen Code Weekly: Agent Team parallel collaboration, Durable /loop survives restart, /cd switch directory."
