Session

Persistent conversation and workspace context for ongoing work.

A Session holds the conversation and workspace context for work within a project. Its saved state includes execution preferences, lifecycle progress, and its relationship to the working branch and workspace.

Connections🔗

flowchart LR
  P[Project] -->|groups| S[Session]
  S -->|history| M[Message]
  S -->|workflow actions| O[Operation]
  S -->|desired outcomes| T[Task]
  S -->|graphs| G[Execution Graph]
  S -->|shared notes| D[Session Document]
  S -->|workspace identity| E[Env]
  S -->|standalone node workspaces| TW[Task Worktree]
  S -->|orchestrated chat| SO[Session Orchestration]
  S -->|node pull requests| NP[Node Pull Request]
  S -->|one serial queue| W[Run Worker]

Ownership🔗

A session owns its messages, operations, tasks, execution graphs, session document, session orchestration, and node pull request records; deleting the session deletes them. It also owns the Env its turns execute in and its task worktrees, including provisioning, branch operations, and cleanup.

Continuity🔗

Messages preserve the session's history, while operations track workflow execution. A session can span many turns and operations; it is not a single execution attempt.

Saved context remains available after restart. Interrupted execution is reconciled by the worker, rather than automatically repeated.