How-to guide
Let a chat delegate work to other sessions
A chat session can hand part of its work to other sessions. pocketd runs an orchestrator that gives each chat a set of tools over MCP. The agent uses them to start delegated sessions, wait for them, and read their results.
You don't turn the orchestrator on. Every chat session of a supported agent gets its tools when it starts.
Check that the agent can delegate
- The session must be a chat. Sessions in a terminal don't get the tools.
- Claude Code and Codex chats can delegate.
- Cursor, Grok Build, OpenCode, fx, Hermes Agent, and Antigravity chats can delegate when the agent supports MCP servers over HTTP.
- Pi and omp can't delegate.
Claude Code chats are allowed to call the tools without asking. Codex chats approve them by default.
Ask for delegated work
Ask the agent in plain words. For example:
Split this into three parts and delegate each one to its own session. Use Codex for the tests.
The agent calls the anywhere MCP server's tools. It starts with orchestrator_capabilities, then uses delegate_task to start each delegated session and task_status to read results. tool_search loads the server's other tools.
Each delegated session:
- Is an ordinary session of the agent it names, which can differ from the parent's agent.
- Runs in a new worktree, made from the parent's latest commit, unless the agent asks to share the parent's checkout. Uncommitted changes in the parent's checkout aren't in the new worktree. Without a git repository, the session shares the parent's folder.
- Runs with the parent's access. If the target agent doesn't offer that access, it gets the closest narrower one.
- Starts in plan mode if the parent is in plan mode.
Follow delegated sessions
The parent chat shows a Delegated panel with a row for each delegated session and its status. Open a row to read that session's chat, which says Delegated by and the parent agent. The sidebar, Activity, and the command palette don't list a delegated session while its parent is listed.
When a delegated session settles, pocketd queues a message for the parent. The message names the task and tells the agent to read the result with task_status. If the parent is in a turn, the message waits until the turn ends. Sessions that settle before the message is sent share one message.
A delegated session's Done doesn't alert you or join Up next, because the parent reads the result. Its Needs you and Failed alert you like any session's. If a delegated session asks a question, the parent is told. Permission requests always come to you.
Change the limits
pocketd limits how deep delegation goes and how many delegated sessions run at once. Tasks over a limit wait in a queue and start when a running one settles.
| Key | Default | Range | Limits |
|---|---|---|---|
orchestrator.depth | 3 | 1 to 5 | Levels of delegation below a session you opened. |
orchestrator.perSession | 6 | 1 to 20 | Delegated sessions of one session running at once. |
orchestrator.perMac | 12 | 1 to 50 | Sessions that agents started, running at once on the machine. |
The desktop app has no control for these. Set one with pocketd config set, for example:
pocketd config set orchestrator.perSession 4
On macOS, the pocketd binary is inside the app at Zoes.app/Contents/Library/Helpers/AnywhereDaemon.app/Contents/MacOS/pocketd.