team plan

Prints the queue a claim would consider, in the order team next would consider it, and claims nothing: no lease, no renewal, no state write, no tracker write. A seat cannot pull until team up has recorded its pane; the owner is refused, and so is a name that is not a seat. A record another seat holds can still appear, and a deadline the clock has passed reads overdue in the STATE column and is never acted on.

Synopsis

team plan [--json]

Flags

FlagValueEffect
--json—print a JSON document (format: 1, project, session, tasks), each task carrying its step, state and whole record
--help, -h—the usage, and exit 0

Who may run it

CallerMay
a declared seat of this team, on the pane the state records for that seatplan; any declared seat, not only the orchestrator
the owner, or a name that is not a seatnothing: team plan: only a seat of this team pulls a task; this call is <caller>

The refusals are team next's, with this command's prefix.

Columns

ColumnMeaning
STEPthe record's place in the queue, from 1
STATEoverdue when the clock has passed the record's deadline, open otherwise
OWNERthe record's assignee, or - when the file names none
TITLEthe record's title

The other record fields are carried whole in --json; the plain plan is the four columns above. The STATE mark decides nothing: an overdue record is still takeable and is never dropped, blocked, reordered or released by lateness.

Output and exit codes

OutcomeWhat is printedExit
the queue was shownteam <project>, session "<session>", the STEP STATE OWNER TITLE table, and <n> task or <n> tasks, in team next's order0
nothing was takeablethe context line and 0 tasks0
refused: not a seat on its recorded pane, the team file can't be read, the task file is missing or not a list, nothing was shown and a record is not a task, or the broker path refusedteam plan: <reason> (with --json, a team.error document)1
the invocation can't be read, or this folder is not a git checkoutteam plan: <problem>, with the usage for the invocation (with --json, a team.error document)2

Example

.agents/team.yaml
format: 1
project: beacon
coordinator: claude-keeper
operator: claude-keeper

trust:
  - ~/.config/team/lobby
  - ~/Code/beacon

workspace:
  mode: shared

tasks:
  source: file
  path: .agents/tasks.yaml

seats:
  - role: coordinator
    name: claude-keeper
    label: coordinator
    cli: claude-code
    vendor: anthropic
    model: Claude Opus
    version: "5.5"
    launch: claude --model claude-opus-5-5
.agents/tasks.yaml
- id: m1
  title: the task title
  deadline: 2026-01-01T00:00:00Z
Terminal
 team plan ; echo "exit $?"
team beacon, session "beacon"
  STEP  STATE    OWNER  TITLE
  1     overdue  -      the task title
1 task
exit 0