Skip to content

Session Commands

List recent sessions (team-scoped by default).

Terminal window
scc sessions [OPTIONS]

Aliases: scc session, scc session list

Options:

OptionDescription
-n, --limit NNumber of sessions to show (default: 10)
-t, --team TEAMFilter by team
--allShow sessions for all teams (ignore active team)
-s, --selectInteractive picker to select a session
--jsonOutput as JSON
--prettyPretty-print JSON (implies —json)

Examples:

Terminal window
# List recent sessions for the active team
scc sessions
# Show more sessions
scc sessions --limit 20
# Interactive session picker (team-scoped)
scc sessions --select
# Show all teams
scc sessions --all
# Filter by a specific team
scc sessions --team backend
# Output as JSON
scc sessions --json

Output includes:

  • Session name
  • Workspace path
  • Last used time
  • Team profile

List SCC-managed Docker containers (alias of scc list).

Terminal window
scc container [--interactive]

Examples:

Terminal window
# List containers
scc container
# Interactive container picker
scc container --interactive

Manage work contexts (team + workspace associations).

Work contexts track which team profile you used with which workspace, enabling quick resume without re-selecting.

Clear stored work contexts.

Terminal window
scc context clear [OPTIONS]

Options:

OptionDescription
-y, --yesSkip confirmation prompt

Examples:

Terminal window
# Clear with confirmation
scc context clear
# Clear without confirmation
scc context clear --yes

When to clear contexts:

  • After switching teams
  • When context associations are incorrect
  • Before starting fresh with new setup

Clean up old session history.

Terminal window
scc sessions prune [OPTIONS]

Options:

OptionDescription
--older-than DURATIONPrune sessions older than duration (e.g., 30d, 12h, 1w)
--keep NKeep most recent N sessions per team (default: 20)
--team TEAMPrune within specific team only
--allPrune across all teams
-n, --dry-runPreview what would be removed
-y, --yesSkip confirmation prompt

Examples:

Terminal window
# Preview what would be pruned (default: 30d, keep 20)
scc sessions prune --dry-run
# Prune sessions older than 7 days
scc sessions prune --older-than 7d
# Keep only last 10 sessions per team
scc sessions prune --keep 10
# Prune without confirmation
scc sessions prune --yes

Default behavior:

  • Prunes sessions older than 30 days
  • Keeps the 20 most recent sessions per team
  • Safe operation — you can always recreate sessions