Idle-time Tasks
Idle-time tasks handle work that does not need an immediate result, such as code analysis, documentation checks, and improvement suggestions. Submitted tasks enter a queue and run when spare capacity is available. Automatic execution through the idle-time channel is free and does not consume your subscription quota.
Unlike scheduled tasks, idle-time tasks have no scheduled start or recurrence. Each task runs once; its start time depends on the queue and available capacity.
Prerequisites
Sign in to ZCode and select a valid ZAI or BigModel Coding Plan connection. The client supports individual and team Coding Plans. Start Plan and API-key-only configurations are not supported. Availability and creation eligibility depend on your account and the service rollout.
If the creation button is unavailable, check your model connection and required fields. If eligibility cannot be confirmed, refresh and try again; a temporary check failure does not mean your account is ineligible.
Create an idle-time task
- Open Automations in the sidebar.
- Select Idle-time task, then Create idle-time task. On first use, you can also create directly from the empty state or choose a template to prefill the instructions.
- Enter the title, instructions, and run configuration, then select Create Idle-time task.
| Setting | Description |
|---|---|
| Task title | Use a name that identifies the task's purpose. |
| Instructions | Specify the scope, expected output, and constraints to reduce the need for follow-up input. |
| Project | Select a local project. The project cannot be changed after creation. |
| Execution mode | Choose an execution mode appropriate for the task. Idle-time runs are unattended: an action that needs confirmation pauses the task until you respond in the chat. If you submit without Full access, the client suggests switching to reduce task failures. |
| Model / reasoning effort | Select from the currently available options. |

1Specify the scope and expected result2Select the project, mode, model, and reasoning effort3Submit the task
For example, ask ZCode to review specific files without making changes and summarize the page structure, responsive layout, and interactions with file references. Before allowing file changes, commit or back up your current work so that you can compare and revert the results.
Queue and execution
Submitted tasks join a global queue, with their position shown on the task card. Start time depends on available capacity and cannot be specified or guaranteed. While queued or paused, you can edit the title, instructions, mode, model, and reasoning effort. The project remains fixed.
When execution begins, the task becomes Running and is linked to a chat. Open the chat to follow progress and respond to permission requests. Waiting for a permission response does not change the task's running status.
ZCode sends a system notification when a task succeeds or fails.
Each run has a time limit: a task that exceeds it ends as failed and is not requeued automatically. Completed file changes and the run chat are kept; create a new idle-time task to continue. A task also fails if your device is offline when it reaches the front of the queue, and the quota is returned. Saved tasks can continue queuing after an app restart.

1Switch to idle-time tasks2Create a task3Review task status and queue position
Manage tasks
The task card menu changes with the task's status:
| Status | Actions and behavior |
|---|---|
| Waiting for idle compute | Pause or delete. Open the details to edit the run configuration. |
| Paused | Continue or delete. If the task stays paused longer than the queue's waiting limit, its queue ticket expires and continuing puts it at the end of the queue. |
| Running | Choose Cancel task or delete. The task configuration is read-only. |
| Succeeded, Failed, or Cancelled | Review the result and linked chat, or delete the task. Failed tasks do not automatically run again; create a new task to retry. |
Pausing keeps the task configuration and stops dispatch. Cancellation or failure does not automatically revert file changes already made. Deleting cannot be undone, and a queued or running task stops immediately.
Find tasks in the sidebar
After a task starts for the first time, its linked chat appears in the Idle-time tasks sidebar group. Tasks that have not yet started are managed on the Automations page while queued or paused.
Run history
Open the task details and select History to see the trigger time, result, and duration. Each task has at most one aggregated record. Use the row menu to open the linked chat.

1Open run history2Review status and duration3Open record actions
Free execution and usage
Automatically dispatched execution does not consume subscription quota. This includes tool-call loops, automatic context compaction, and foreground subagents. Background subagents are not supported.
| Action | Effect on execution and usage |
|---|---|
| View the run chat | Reading existing content does not initiate a model request. |
| Approve or deny a permission request | Remains part of the current automatic execution and uses the idle-time channel. |
| Send a message manually | Uses the current model as a normal chat and counts toward the applicable plan or model usage. It is not included in free idle-time execution. |
| Stop the current run, such as with Esc | Ends the idle-time task. Subsequent messages are handled as normal chat turns. |
Edit requirements before execution when possible. Follow-up messages sent during a run follow the chat's interaction settings; they are not part of the free idle-time run. Review consumption in Usage Stats.
Requirements and limits
- Keep ZCode running and the computer awake. Tasks execute locally. Enable Keep your computer running to prevent sleep caused by inactivity. This does not prevent manual sleep or lid-close sleep.
- Daily creation limits apply. When you reach the limit, refer to the recovery time shown at the creation entry.
- Use a local project in the desktop app. Remote workspaces are not supported, and mobile remote control does not provide automation management.