Skip to main content

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 TypeDefinitionExample
taskSingle task only--scope task:T005
taskGroupParent + direct children--scope taskGroup:T005
subtreeParent + all descendants--scope subtree:T001
epicPhaseEpic filtered by phase--scope epicPhase --root T001 --phase testing
epicFull 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 be active at a time:
  • Starting a session with --auto-focus sets focus to the first available task
  • cleo focus set T005 changes the active task
  • cleo complete T005 automatically suggests the next task
# Check current focus
cleo focus show

# Change focus
cleo focus set T006

# Add progress note
cleo focus note "Implementing validation logic"

Multi-Session Coordination

When multiple agents work simultaneously:
Sessions cannot claim the same task simultaneously. Scope overlap is configurable via multiSession.allowScopeOverlap.

Session vs Focus

AspectSessionFocus
ScopeGroup of tasksSingle task
PersistenceSurvives restartsWithin session
PurposeWork boundaryCurrent attention
Commandssession start/endfocus set/show