Skip to content

Session Management

Sessions are the core unit of work in SCC. Each session is a Claude Code environment running in a Docker container, tied to a specific workspace.

Session Lifecycle
Session Lifecycle
Terminal window
cd ~/project
scc

This auto-detects your workspace and shows Quick Resume if sessions exist.

Terminal window
scc start ~/project
OptionDescription
--resumeResume most recent session
--selectInteractive session picker
--freshForce new container
--team TEAMUse specific team profile (session-only)
--session NAMEName this session
--dry-runPreview config without launching
Terminal window
scc sessions

By default, this shows sessions for your active team. Use --all to see sessions across teams, or --team <name> to filter explicitly.

Session Workspace Last Used Team
feature-auth /Users/dev/project-a 2h ago ai-teamet
bugfix-login /Users/dev/project-a 1d ago ai-teamet
main /Users/dev/project-b 5h ago ai-teamet
Terminal window
# Show sessions for all teams
scc sessions --all
# Show sessions for a specific team
scc sessions --team draken
Terminal window
scc start --resume
Terminal window
scc start --select
Terminal window
scc start --session feature-auth
Terminal window
scc stop <container-name>

Find the container name using scc list or docker ps.

Terminal window
scc stop

This stops all running SCC containers at once.

Name your sessions for easier identification:

Terminal window
scc start --session "feature-payments" ~/project

When you have multiple features in progress, named sessions help:

Recent sessions:
1. feature-payments (2h ago)
2. bugfix-auth (1d ago)
3. spike-new-api (3d ago)

Quick Resume appears when you run scc and always includes New session as the default selection:

Quick Resume — Team: ai-teamet
➕ New session (ai-teamet)
👥 Switch team
⚫ ai-teamet · project-a · main 2h ago
[Enter] Select [n] New session [a] All teams [t] Teams [q] Quit

SCC tracks context for each session, including:

  • Last working directory
  • Active files
  • Session duration

Clear stale context:

Terminal window
scc context clear

Sessions can be configured to timeout after inactivity:

Team profile or .scc.yaml
session:
timeout_hours: 8
auto_resume: true
SettingDefaultDescription
timeout_hours24Hours before session expires
auto_resumetrueAutomatically resume on scc start
Terminal window
scc list
# or
scc container
Terminal window
scc prune
Terminal window
scc prune --dry-run

Shows what would be removed without actually removing.

Cause: Container was pruned or crashed.

Solution: Start fresh:

Terminal window
scc start --fresh

Cause: Running from a different path than the original session, or viewing a different team.

Solution: Navigate to the exact workspace root and (if needed) show all teams:

Terminal window
cd ~/project # Not ~/project/src
scc
# In Quick Resume, press 'a' to show all teams
# Or list sessions across teams
scc sessions --all

Cause: Container in bad state.

Solution: Stop container and restart:

Terminal window
# Find the container name
scc list
# or
scc container
# Stop the specific container
scc stop <container-name>
# Start fresh
scc start --fresh