with one click
sessions
Manage, preview, and delete Claude Code sessions
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Manage, preview, and delete Claude Code sessions
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | sessions |
| description | Manage, preview, and delete Claude Code sessions |
| allowed-tools | ["Bash","Read"] |
Browse, preview, and delete Claude Code sessions stored on this machine.
Run the session picker script:
node "${CLAUDE_PLUGIN_ROOT}/skills/sessions/scripts/session-picker.cjs"
If the output is {"mode":"cli","reason":"no-tty"}, the interactive TUI could not launch. Tell the user:
For the full interactive TUI, run this in your terminal:
node "${CLAUDE_PLUGIN_ROOT}/skills/sessions/scripts/session-picker.cjs"Or I can manage sessions for you here. What would you like to do?
Then proceed with CLI mediation (Step 3).
If the output is JSON with "action":"exit", the user used the interactive TUI directly. Parse the result:
deleted array is empty: "Session browser closed. No changes made."deleted has entries: "Deleted {n} session(s). {remaining} sessions remaining."When mediating for the user, use these subcommands:
List sessions:
node "${CLAUDE_PLUGIN_ROOT}/skills/sessions/scripts/session-picker.cjs" --list
Present the sessions as a numbered list with date, size, message count, project, and first message.
Preview a session:
node "${CLAUDE_PLUGIN_ROOT}/skills/sessions/scripts/session-picker.cjs" --preview <session-id>
Show the conversation messages to the user.
Delete a session:
node "${CLAUDE_PLUGIN_ROOT}/skills/sessions/scripts/session-picker.cjs" --delete <session-id>
Always confirm with the user before running this.
Clean up auto-generated sessions:
node "${CLAUDE_PLUGIN_ROOT}/skills/sessions/scripts/session-picker.cjs" --clean-auto
Deletes all local-command sessions (/exit, /clear artifacts) in one shot. Run this when the user asks to clean up junk sessions or auto-generated sessions.
After operations complete, report:
message field from the JSON output directly.~/.claude/projects/ — every project the user has ever run Claude from