Park Session
Save the current session info so you can resume it after a reboot.
Usage
/park fix du bug auth JWT # description inline
/park # will ask for descriptionStep 1: Get Description
If $ARGUMENTS is non-empty → use it as the session description. Otherwise → ask:
"Comment décrire cette session ? (ex: fix bug auth JWT, refacto pricing page, migration DB)"
Step 2: Choose Destination File
Ask the user where to save:
"Fichier destination ?"
Options:
~/Desktop/parked-sessions.md(default, recommended)~/.claude/parked-sessions.md(hidden, always available)- Other (free text input)
If the user just presses Enter → use option 1.
Step 3: Detect Session ID
Run these commands to find the current session:
bash
# Get current directory encoded path (/ → -, prefixed with -)
PWD_ENCODED=$(pwd | sed 's|/|-|g' | sed 's|^|projects-|' | sed 's|^projects-||')
SESSIONS_FILE="$HOME/.claude/projects/-$(echo "$PWD" | sed 's|/|-|g' | sed 's|^-||')/sessions-index.json"More precisely, the Claude sessions index path is: