Skip to content

Delegation and roles

Projects, sessions and workstreams are the ideas; this page is the mechanics. Every agent in Kestrel is given tools to start other sessions, so that each part of a task is done in the right project, by a session that knows it.

What the agent doesWhat it meansWhat you see
Hand offThe whole task moves to a new session. The first session is finishedThe new session beside the first, as its sibling, marked with where it came from
DelegateIt starts one or more sessions for parts of the task. They report back and it stays in chargeThe new sessions, drawn under it
Start an unrelated sessionSomething it noticed that is not part of this taskA separate session, not linked
Ask another sessionIt sends work to a session that already exists, to be done in that session’s worktreeA message in that session
Add a projectThe work is in a folder Kestrel does not know yetA card asking you to add it

A session can also ask to move itself: one that started with no project asks to move into the project the work belongs in.

In Manual, each of these shows a card first, such as Start 2 sessions, with Start or Decline. In Auto and Bypass the sessions start without asking. Adding a project and moving a session into a project always ask.

A handoff and a delegation look different on purpose. A session that hands off is finished, so the session that takes over is its successor, not its child: the two sit side by side. A session that delegates is still in charge, so the sessions it started are drawn under it.

In the conversation, a line marks each one: Handed off to, Delegated to, Started, with the session’s project and state and an Open button. The new session says where it came from at the top.

When an agent delegates a part, it says what kind of work it is: design, build or review. Kestrel then sends that part to the agent and model you chose for that kind of work, and moves to your next choice if the first cannot run. This is covered in The right model for each job.

Delegation is capped so that one request cannot fan out without end. Change the numbers in Settings → Workflow → Delegation limits.

LimitDefaultRange
Sessions one delegate call may start51 to 10
Levels a session tree may go down21 to 4
Sessions at work at once in one tree101 to 30

An agent that hits a limit is told the number in force. Agents cannot change the limits.

Every session is given the same set of Kestrel tools, whichever agent it is:

Tools forWhat they do
ProjectsList your projects; ask to add a folder as one
Other sessionsHand off, delegate, start an unrelated session, ask an existing session, check on the sessions it started
WorkstreamsMark the workstream complete; record that it is waiting on another session
Code reviewsHand you a finished review as a card to check and post; offer to turn a session into a review session
TicketsRead the session’s ticket; propose a status change or a comment, which you answer
Showing you thingsDraw a chart or diagram in the conversation; put a file in front of you; end a turn with replies to click; suggest a tag
The browser paneOpen a page, read it, click, type, take a screenshot, read the console
The simulator paneStart a simulator, launch an app, tap, swipe, pinch, type, press buttons, open a link, switch light and dark

The browser and simulator panes are the agent’s, and you watch: you see everything it does there, and you can take over. The browser pane needs the desktop app and keeps its own cookies, separate from your browser. The simulator pane needs Xcode.

If a session starts without these tools, its header says Kestrel tools missing.