Concepts
Stage is built around eight concepts. Read in order for a top-down picture, or jump to one.
- Projects: a Stage-owned title that groups work and points at a workspace on each connection.
- Connections: one harness service (T3 Code, OpenCode or Codex) on one machine, where tasks run.
- Tasks: a prompt plus where and how to run it, tracked from backlog to your completion.
- Trees: tasks linked by needs, so one starts only after you complete what it depends on.
- Journals: append-only notes and events on every task and tree, shared by you and your agents.
- Schedules: a task template that spawns and starts a new task on a cron.
- Sessions and references: the harness conversation behind a task, and the links that point at tasks, trees and sessions.
- Machines: the computers that run harnesses: this server, or workers joined to it.
The data model
Stage server
├── Project a title, bound to a workspace on each connection
│ └── Task a prompt, run as a harness session
├── Tree tasks linked by needs (a DAG, can span projects)
├── Schedule spawns a new task on each cron fire
├── Journal append-only notes and events on every task and tree
└── Machine this server, or a worker
└── Connection a T3, OpenCode or Codex service on that machineThe server holds all of it in one SQLite database. Workers hold no database: they run harnesses for the server.
| Term | What it is | Identified by |
|---|---|---|
| Project | A title for related workspaces and recorded work | project id |
| Task | One unit of agent work | task number, #12 |
| Tree | A dependency graph of tasks | tree number, #4 |
| Schedule | A recurring task template | schedule id |
| Journal entry | One note or event | immutable entry id |
| Session | The harness conversation behind a task | connection id plus the harness's session id |
| Connection | One harness service on one machine | connection id |
| Machine | This server, or a worker | machine id and its name |
How the pieces fit together
Plan
Create a task in a project, with a prompt and a connection. Save it to the backlog, or add it to a tree so it waits on other tasks.
Start
Start it yourself, let its tree start it, or give it a start time. A schedule spawns and starts new tasks on its own. Stage launches a session on the connection, in the project's workspace there.
Run
The harness runs the session. Stage follows its state. When the agent asks a question or needs approval, the task reads needs input and you answer in the harness.
Next steps
- Projects: start with where work lives.
- Build your first tree: plan and run a small dependency chain.
- Desktop app: run Stage on one machine.