Background tasks
Let an agent run long shell commands and monitors while it keeps working, then watch and stop them from the composer.
An agent can start work that keeps running after its turn ends: a dev server, a test watch, a long build, or a monitor that waits for a log line. The agent stays free to take your next message while the task runs.
Ask for it
Tell the agent to run the work in the background, for example:
- "Start the dev server in the background, then fix the failing route."
- "Run the full test suite in the background and keep working on the docs. Tell me when it finishes."
- "Watch the build log and tell me when it prints
ready."
Watch and stop tasks
While tasks run, a 1 background task (or N background tasks) pill appears above the composer. Open it to see each task, labeled Shell, Monitor, or Other work.
- Select Stop to end a task.
- A task that already finished shows No longer running. Select Dismiss to remove it.
Requirements
Background tasks work with Claude Code, Codex, and OpenCode v2. Both the host and the app need a version that supports them.
A task lives inside the agent's process. If the agent's process exits, for example after a crash or when the host restarts, its tasks can stop with it.