Terminal Use is easiest to understand when you start from the resource model instead of the API surface.Documentation Index
Fetch the complete documentation index at: https://docs.terminaluse.com/llms.txt
Use this file to discover all available pages before exploring further.
The Primitives
| Primitive | What it is | Why it matters |
|---|---|---|
Namespace | Your isolation boundary for compute and storage | Most teams start with one namespace |
Project | A collaboration and permission boundary for filesystems | Useful for customer- or workflow-level access control |
Filesystem | Persistent files mounted into tasks at /workspace | Shared storage across tasks |
Agent | Your deployed Python runtime | Each deploy creates a new version |
Environment | A named deployment policy, such as production or preview | Branch rules resolve branches into environments |
Branch | A deployment slot for a git branch | A branch points at the current active version |
Version | One deployed build of an agent | Tasks are created against a specific version |
Task | One running conversation or unit of work | Holds state, messages, events, and an optional filesystem mount |
Event | Input sent to a task | Usually user text or structured data |
Message | Output emitted by the agent | Usually assistant text, UI parts, or streamed tool output |
State | Per-task persisted JSON | Used for continuity across turns |
The Two Loops
Deploy Loop
- Write or change agent code.
- Run
tu deploy. - Terminal Use creates a new version.
- That version becomes active on the branch’s environment.
Run Loop
- Create or choose a filesystem.
- Create a task against an agent.
- Send events to the task.
- Read streamed messages and persisted state.
- Pull the filesystem back out if you need the results locally.
What Gets Mounted Into Runtime
When a task runs with a filesystem attached, the runtime sees:| Path | Purpose |
|---|---|
/workspace | The mounted filesystem |
/root/.claude | Task-scoped Claude state when used |
/root/.codex | Task-scoped Codex state when used |