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.
Ways a session passes work on
Section titled “Ways a session passes work on”| What the agent does | What it means | What you see |
|---|---|---|
| Hand off | The whole task moves to a new session. The first session is finished | The new session beside the first, as its sibling, marked with where it came from |
| Delegate | It starts one or more sessions for parts of the task. They report back and it stays in charge | The new sessions, drawn under it |
| Start an unrelated session | Something it noticed that is not part of this task | A separate session, not linked |
| Ask another session | It sends work to a session that already exists, to be done in that session’s worktree | A message in that session |
| Add a project | The work is in a folder Kestrel does not know yet | A 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.
Limits
Section titled “Limits”Delegation is capped so that one request cannot fan out without end. Change the numbers in Settings → Workflow → Delegation limits.
| Limit | Default | Range |
|---|---|---|
| Sessions one delegate call may start | 5 | 1 to 10 |
| Levels a session tree may go down | 2 | 1 to 4 |
| Sessions at work at once in one tree | 10 | 1 to 30 |
An agent that hits a limit is told the number in force. Agents cannot change the limits.
What agents can do in Kestrel
Section titled “What agents can do in Kestrel”Every session is given the same set of Kestrel tools, whichever agent it is:
| Tools for | What they do |
|---|---|
| Projects | List your projects; ask to add a folder as one |
| Other sessions | Hand off, delegate, start an unrelated session, ask an existing session, check on the sessions it started |
| Workstreams | Mark the workstream complete; record that it is waiting on another session |
| Code reviews | Hand you a finished review as a card to check and post; offer to turn a session into a review session |
| Tickets | Read the session’s ticket; propose a status change or a comment, which you answer |
| Showing you things | Draw 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 pane | Open a page, read it, click, type, take a screenshot, read the console |
| The simulator pane | Start 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.