Sub-sessions
With no fleet running, Marvin runs each work unit in a session of its own: a fresh worktree and a fresh context. You keep talking to one orchestrator.
What it is
On a narrow screen, scroll the diagram sideways.
- Up to three units run at once, each with a context of its own.
- The orchestrator keeps the smallest context: it reads each turn's doorbell and the tracker, never a unit's full detail.
- Sub-sessions and fleet mode are exclusive. A sub-session never starts its own.
- It needs a host that starts local sessions in a given folder. Elsewhere: a resume prompt you open.
How a unit runs
- A unit is an epic, a small milestone, or a bundle of three or more tasks (or any
size:lor larger). A single small task stays with Marvin's own sub-agents. - One approval covers starting, merging, cleaning up and archiving the units you approved.
- Each unit is keyed by a tracker issue. Only one sub-session runs per key.
- The run sheet,
.docs/plans/subsessions-<milestone>.mdondevelop, keeps the units, each session's lineage and the orchestrator's handoff.
How many at once
- At most
subsession_max(1–3, default 3). - Two units whose
area:sets overlap never run at once: the later one waits. - A Local tracker runs one unit at a time.
- Before each start the resource gate checks memory for one more worktree. No room: the unit waits, and the board says why.
Doorbells
Every sub-session turn ends with a line the orchestrator reads as a signal, never an instruction.
| Event | The orchestrator |
|---|---|
progress | Reads nothing. |
question | Puts it on the board. You answer in either sidebar; it never answers for you. |
cross | Extends the unit's areas, sequences it behind another unit, or asks you. |
blocked | Brings you the reason. |
successor | Starts a fresh session in the same worktree. |
done | Merges, cleans up, and starts the next unit. |
What you see
- The board: one row per unit with its state, gate, questions, blocker, RAM and spend.
- The progress panel: a
Sub-sessions · <milestone>pane,units x/yon the band, each unit's live agents. - The questions sidebar: every unit's questions, answerable in the orchestrator's pane.
Details: sub-sessions.md for the orchestrator, sub-session.md for a unit's session, resource-gate.md.