NewSplitkick v1.6 is out.Answers in the same turn, a new vertical navigation, and Web Access with Tailscale and a QR code.What’s new →
Guide

The orchestrator pattern: one session that runs the others

How one Splitkick session splits a task, briefs worker sessions in their own worktrees and reports back: the tool calls, a prompt to start from, the limits.

Most agent work is one chat with one agent. But a lot of tasks have parts that do not depend on each other: an API change, the UI for it and the docs. In Splitkick, one session can hand those parts to other sessions, watch them and collect the results. We call that session the orchestrator. This guide shows how it works, what it calls under the hood, and how to keep it under control.

The shape

The orchestrator is a normal session with a special job. It does not write the code itself. It splits the task, starts one worker session per part and sends each worker a brief. Each worker gets its own git worktree, so the workers never touch each other’s files, and each can run a different agent.

One orchestrator session at the top sends briefs with send_chat_message to three worker sessions below it. Each worker sits in its own worktree (issue-42-api, issue-42-ui, issue-42-docs) and runs another agent: Claude Code, Codex and Cursor. A dashed arrow labelled read_session_messages brings the results back to the orchestrator. A laptop and a phone below stand for you, watching every status.

One orchestrator, three workers, three worktrees. You follow every session on the Mac or the phone.

Step by step

Everything the orchestrator does goes through Splitkick’s built-in MCP server. It is on for every agent, so there is nothing to install. A run has six steps, and each step is one or two tool calls.

A sequence diagram with four lanes: Orchestrator, Worker A, B and C. Step 1 create_worktree three times, step 2 create_session three times with Claude Code, Codex and Cursor, step 3 send_chat_message to all three, step 4 get_session_status in a loop while the workers run, step 5 read_session_messages from each finished worker, step 6 a summary with a splitkick:// link to each worker.

The six steps of a run, with the tool behind each one.

  1. Split and prepare. create_worktree makes one worktree per part, also straight from a GitHub issue or PR.
  2. Start the workers. create_session starts a session in each worktree, with the agent you choose for that part.
  3. Brief them. send_chat_message sends each worker its task. It does not wait for the answer, so all workers start at once. A mode given with the message (for example Yolo) becomes that session’s mode.
  4. Watch. get_session_status tells the orchestrator whether a worker is still running, idle again, cancelled or stopped with an error.
  5. Collect. read_session_messages reads a worker’s last answer. It can read only the latest messages, which keeps the orchestrator’s own context small.
  6. Report. The orchestrator answers you with a summary and a splitkick:// link to each worker. In the chat, each link shows the session’s name and opens it on click.

A prompt to start from

You do not need a framework or a config file. A plain prompt in any session is enough, because the agent finds the tools by itself. This is the one from the docs:

Split issue #42 into three parts that can run in parallel.
For each part, create a worktree and a session,
and send it a clear brief. Check their status
every few minutes. When all three are done,
read their last answers and give me a summary
with links to the sessions.

Make it your own: name the agent for each part (“use Codex for the UI part”), say which mode the workers run in, or ask the orchestrator to open a pull request per worker with create_pull_request when the work is done.

What you see while it runs

The workers are not hidden background jobs. They are normal sessions: they show in the sidebar, on your phone and in notifications, and unless they run in Yolo mode they ask you when they need you. Splitkick records who started whom, so you can always follow the chain.

A chat in which the agent created a session through the Splitkick MCP shows the row “Started session ‘Fix login flow’ View →” and the row “Sent to session ‘Planner’ View →” under the collapsed turn.

The orchestrator’s chat shows each session it started and each message it sent.

The chat of the started session “Fix login flow” shows the row “Started by ‘Orchestrator’ View →” at the top, above its first message.

The worker shows “Started by” at the top; View → takes you back to the orchestrator.

You can open any worker, answer its question, change its brief or take over. The orchestrator sees the change on its next status check.

Keep it under control

Agents that start agents need brakes, and Splitkick has two. They apply to the tools that create, change or start something; tools that only read are never limited. Both are in Settings → MCP Servers.

On the left a tree of sessions: the orchestrator at level 0, workers at levels 1 to 4. A red line under level 3 is labelled “Max recursion depth · 3”; the worker at level 4 exists, but its attempt to create another session is crossed out. On the right a card “Spawn rate limit, 20 per minute” with twenty orange bars and a crossed-out twenty-first, for tools such as create_session and send_chat_message, and a card with an infinity sign for reading tools such as list_all_sessions, read_session_messages and get_session_status.

Two limits: how deep sessions may nest, and how often a caller may create or start something per minute.

  • Max recursion depth (default 3, up to 10). A session you start is level 0; a session an agent starts is one level deeper than its parent. A session deeper than the limit cannot create or start anything.
  • Spawn rate limit (default 20 per minute). How often one caller may use each of the tools that create, change or start something.

A few habits help as well:

  • One worktree per worker. Sessions in the same worktree share its files. Parallel workers need their own.
  • Say when the work is done. A worker can mark its own session as done with set_session_status, so it leaves your list of sessions that need you.
  • Keep reads short. Ask the orchestrator to read only the last messages of a worker; long sessions cost tokens.
  • Archive and delete only after you agree. The MCP server tells agents to ask you first.

Three patterns, one toolbox

The orchestrator is the biggest of three patterns that use the same tools. The other two are smaller and often more useful day to day.

Three panels. Panel 1: an orchestrator fans out to sessions A, B and C, whose results come back as splitkick:// links. Panel 2: a chain of three sessions, Plan with Claude Code, Build with Claude Code and Review with Codex. Panel 3: a session calls search_sessions and finds earlier sessions, two of them linked with splitkick://.

1 Orchestrator, 2 hand-off, 3 find earlier work.

  1. Orchestrator. One session splits the task and collects the results, as above.
  2. Hand-off. One session finishes its part and sends the next step to another session, for example from a planning session to a build session, or to a review with a different agent.
  3. Find earlier work. Before it starts, an agent calls search_sessions, reads what was done on the same topic, and links to those sessions in its answer, so you do not have to paste it in.

There is a fourth, quieter one: an agent that notices work outside its task puts it on your follow-up list with add_follow_up. Nothing runs until you decide.

Try it

The pattern works with every agent CLI that Splitkick runs; the session links and the “Started by” rows need Splitkick v1.1 or newer. All 49 tools are on the MCP page, and the docs explain each pattern in detail: Cross-session workflows. If you do not have Splitkick yet, the download page has the DMG for Macs with Apple Silicon.

← All posts