Sessions
Sessions in CLEO provide work continuity across terminal sessions and Claude conversations. This page explains the conceptual model.What Is a Session?
A session represents a bounded work context:- Scope - What tasks you’re working on (an epic, task group, or phase)
- Binding - Which terminal is working on this session
- State - Active, suspended, ended, or closed
- Focus - The single active task within the scope
Sessions persist independently of terminal sessions and Claude conversations. When you start a new Claude conversation, your CLEO sessions are still there.
Session States
Active
Currently working. Terminal bound to this session.
Suspended
Paused explicitly. Waiting on external blocker.
Ended
Work complete for now. Resumable later.
Closed
Permanently archived. Not resumable.
Scope Types
Sessions can be scoped to different task groupings:| Scope Type | Definition | Example |
|---|---|---|
task | Single task only | --scope task:T005 |
taskGroup | Parent + direct children | --scope taskGroup:T005 |
subtree | Parent + all descendants | --scope subtree:T001 |
epicPhase | Epic filtered by phase | --scope epicPhase --root T001 --phase testing |
epic | Full epic tree | --scope epic:T001 |
Terminal Binding
When you start or resume a session, CLEO writes to.cleo/.current-session. This binds your terminal to that session.
Multiple terminals can have different active sessions. Each terminal is bound to exactly one session.
Single-Task Focus
Within each session scope, only one task can beactive at a time:
- Starting a session with
--auto-focussets focus to the first available task cleo focus set T005changes the active taskcleo complete T005automatically suggests the next task
Multi-Session Coordination
When multiple agents work simultaneously:Session vs Focus
| Aspect | Session | Focus |
|---|---|---|
| Scope | Group of tasks | Single task |
| Persistence | Survives restarts | Within session |
| Purpose | Work boundary | Current attention |
| Commands | session start/end | focus set/show |
