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.

Sessions
› feature-auth draken · project-a · main · 2h ago
bugfix-login draken · project-a · fix/login · 1d ago
main draken · project-b · main · 5h ago
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)

The dashboard appears when you run scc and shows a tabbed interface with Status, Containers, Sessions, and Worktrees:

Status Containers Sessions Worktrees
› New session
Resume last draken · main · 2h ago
Team: draken
Containers: 2/3 running
Settings
↑↓ navigate · Enter open · Tab switch tab · n new · 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_resumetrueAdvisory only in v1 (not enforced)
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.

Over time, session history can accumulate. Use scc sessions prune to clean up:

Terminal window
# Preview what would be removed
scc sessions prune --dry-run
# Prune sessions older than 30 days (keeps 20 most recent per team)
scc sessions prune
# Keep only last 10 sessions per team
scc sessions prune --keep 10
# Prune sessions older than 7 days
scc sessions prune --older-than 7d

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