Skip to content
stage

Trees

A tree is a group of tasks where a task can need other members. It forms a DAG (no loops) and can span projects. Trees are the only way to express dependencies in Stage, and a task is in at most one tree.

Needs

A task becomes eligible to start when you have completed every task it needs, in Stage. A need that merely finished executing does not count: complete it, or edit the dependencies. A blocked task cannot start early.

  • Tasks with no needs are roots and run in parallel. Chaining is always explicit: nothing adds needs for you.
  • Needs change only while a task is in the backlog.
  • Two tasks that need the same member run in parallel once it is completed.

Start mode

Each tree has a start mode, and its tasks inherit it. A task can override it.

ModeWhen a task's needs are completed
Auto (default for new trees)Stage launches it
ManualIt becomes ready and you get a ready notification with Start

Ready tasks, and backlog roots, list in the Ready groups of the Dashboard and Tasks. Stage never launches a root by itself: start it, or use Start ready on the tree. In an auto tree, a task added after its needs are already completed launches at once.

Handoff

When a task with needs starts, Stage appends one handoff block per completed need to its prompt: the cached final reply (trimmed), branch or worktree, task and journal references, and the session ID and link when available. Work carries its context forward.

Handoff is on by default and set per task. It reads results saved in Stage at completion, so it works with the earlier harness offline. A missing reply stays marked as missing. Task detail shows what was appended.

Stacked work

Stage does not start a task from the branch of a task it needs. Each task starts where its own launch options say (the project root, or a new worktree the harness makes), and the handoff names the branch each need reported, so the agent can build on unmerged changes from there.

Steering

A tree can have one steerer: an ordinary task, never a member, whose session hears about every member change and acts on it in your place. It answers members, accepts their results and adds follow-ups, while your needs-input notifications wait for it for a short hold. You can answer first, replace it or stop it at any time, and Stage completes it when the tree finishes. Steer a tree

Editing a tree

  • Remove a task: it is spliced out and its dependents take over its needs (A → X → B becomes A → B). This can make dependents ready at once.
  • Mark done: you will not work on the rest. Members keep their states and nothing more starts.
  • Archive: close the tree. Reopen or Unarchive undoes either. A closed tree stays closed until you reopen it, and its tasks leave the Dashboard.
  • Dissolve: detach every task and archive the tree. Emptying a tree also archives it.
  • Delete: only for a tree where nothing started and nothing was recorded. It deletes its tasks.

Done and archive need every member stopped first.

Building trees

  • From task detail: the Tree panel, or Add to tree (a new tree or an active one).
  • From an existing harness session: track it as a task so it can be a node (Sessions).

The Trees page lists trees by their next step. The tree view shows members in level order as a list or a top-down graph, with a side panel for activity or the selected task's needs, start mode, base and handoff.

Next steps