Tasks
For work that spans many steps, many turns, or many agents, the agent creates structured tasks: persistent, dependency-aware units of work that outlive a single turn and are visible to every sub-agent working alongside it.
The agent manages tasks itself, using a small set of tools — task_create, task_update, task_list, task_get, task_output, and task_stop. You don't call these directly; you steer them through conversation and watch them play out in the feed, which shows task activity as rows as the agent works.
A task:
- Survives across turns. It isn't cleared when the current exchange ends.
- Is visible to sub-agents. A sub-agent the agent delegates to can see and update the same tasks.
- Can carry dependencies. One task can wait on another before starting.
- Can be shared across sessions or processes with the
COMMAND_CODE_TASK_LIST_IDenvironment variable — point two separate agent runs at the same ID and they work off one shared task list, like a small team of agents dividing a single backlog.
These look similar and are not the same thing.
| Tasks | /todos | |
|---|---|---|
| Scope | Persistent, cross-turn, cross-session | Lightweight, single-session checklist |
| Visibility | Feed rows; shared with sub-agents | Pinned above the input, in-session only |
| Structure | Dependencies between tasks | Flat list |
| Sharing | Shared across processes via COMMAND_CODE_TASK_LIST_ID | Not shared |
| Who drives it | The agent (task tools) | The agent (todo_write), you manage the list in the UI |
- Long multi-step work — a task list keeps the plan intact even as the conversation grows.
- Parallel sub-agents dividing work — each sub-agent picks up tasks from the same shared list instead of duplicating effort.
- Follow-ups discovered mid-run — the agent can add a task for something it noticed without derailing the current step.
- Custom Agents — sub-agents that share a task list with the main agent.
- Slash Commands — see
/todosfor the lightweight session checklist. - Interactive Mode — where the feed and task rows appear during a run.