/session:status
Display a formatted table of all registered sessions, showing which are currently active.
Quick Start
/agileflow:session:statusExample Output
┌─────┬──────────────────────────────┬────────────┬─────────┬────────────┐
│ ID │ Path │ Branch │ Status │ Nickname │
├─────┼──────────────────────────────┼────────────┼─────────┼────────────┤
│ 1 │ /home/user/myproject │ main │ active │ (main) │
│ 2 │ /home/user/myproject-auth │ session-2 │ active │ auth │
│ 3 │ /home/user/myproject-3 │ session-3 │ stale │ - │
└─────┴──────────────────────────────┴────────────┴─────────┴────────────┘
Active: 2 Stale: 1
Current session: 1
To switch sessions, run /agileflow:session:resume
To create new session, run /agileflow:session:new
Status Values
| Status | Meaning |
|---|---|
active | Session has a running Claude Code process |
stale | Lock file exists but process is no longer running |
(main) | The original project directory (Session 1) |
Session Detection
Sessions are detected using PID-based locking:
- Each session creates a lock file with its process ID
- Status check verifies if each PID is still running
- Stale locks are automatically cleaned on next startup
Use Cases
Before Starting Work
Check if other sessions are already working on something:
/agileflow:session:status
# See what's active, decide if you need a new sessionAfter Returning to Work
Find out which sessions exist and their state:
/agileflow:session:status
# Review sessions, then:
/agileflow:session:resume # to switch to oneDebugging Conflicts
If you suspect session conflicts:
/agileflow:session:status
# Check for multiple "active" sessions
# Stale sessions may need cleanupRelated Commands
/session:new- Create a new parallel session/session:resume- Switch to another session/session:end- End current session/session:init- Initialize session system