Agents that queue work
Agents running in T3 or OpenCode can plan follow-up work in Stage: add tasks, build trees, and record what they learned in journals. They use the stage CLI by default, or MCP. Stage never lets an agent complete its own task, and tells it to complete others only when you ask.
Set up each machine
Every Stage install puts stage on your PATH. On each machine where your agents run (the server's, or a worker's):
Run setup
stage setupIt finds Claude Code, Codex and OpenCode and installs, for each one:
- The Stage skill, which teaches the CLI and the workflow. It loads only when a session works with Stage.
- An instruction pointer, a two-line block in
~/.claude/CLAUDE.mdand~/.codex/AGENTS.mdnaming the skill andstage guide.
Every task Stage launches tells the agent how to reach Stage and use its journal. On shared Stage, local agents get the private agent socket and remote agents get their worker's private socket. Use a separate agent credential when an integration connects over the network.
From inside an agent session
These are the commands an agent runs. You ask in plain words ("queue a follow-up to write the docs after this"); the skill teaches the agent which command fits.
See where it is
stage contextShows the calling session, its working directory and the Stage project it resolves to. The CLI detects the session from the harness on its own.
Add a task
stage projects ls --json
stage task add --title "Fix flaky test" --prompt "..." --connection 2 --workspace-id "$WORKSPACE_ID"Set WORKSPACE_ID to the selector for the intended workspace on connection 2.
The task lands in the backlog. Add --start to launch it right away.
Run it after this session
stage task add --title "Deploy" --prompt-file deploy.md --connection 2 --workspace-id "$WORKSPACE_ID" --after-me--after-me tracks the calling session as a task and makes it the new task's first need, so the new task waits until you complete this session's task.
Build a tree
stage tree new --title "Auth" 41 43:41 42:43 # 43 needs 41, 42 needs 43
stage task add --title "Docs" --prompt "..." --connection 2 --workspace-id "$WORKSPACE_ID" --needs 42 --start-mode manualID:NEED,NEED lists what each task needs. --needs adds a new task to the tree of the tasks it needs.
Next steps
- CLI reference: every command and flag.
- MCP reference: the tools, stdio and HTTP MCP.
- Journals: how notes and events work.