One workspace can hold several sessions
Workspace
Checkout fix
Example: one repository and shared branch
Lead session
Coordinates the fix
Reviewer session
Reads the same files
Sub-workspace · separate placement
Test the checkout fix
QA session · separate working files and branch
The four concepts
- Workspace
- A working directory on a machine, with its files and associated sessions. It can have a repository or contain work without git.
- Session
- One agent conversation and execution context. It can contain several turns, tool calls and approvals. Several sessions can work in one workspace.
- Subagent
- An agent session started by a lead to handle part of the task. It returns its result to the lead.
- Sub-workspace
- A separate workspace created for delegated work. It appears beneath the lead’s work and has its own files and, for git-backed work, branch.
Two places for delegated work
| Placement | What it means |
|---|---|
| Same workspace | A separate session uses the lead’s files and branch. Changes are shared immediately. |
| Its own workspace | A separate workspace holds the delegated work. Its changes may need to be integrated. |
A subagent does not always create a sub-workspace. A sub-workspace is also not a folder nested inside the lead’s files.