managelisted
Install: claude install-skill vslipchenko/ai
# Sessions — Manage
Automatic alternative to `save`. While managing is on, the plugin's hooks run in
every Claude Code session on this machine (in this Claude Code install):
- a session that **starts or is resumed** is added to the saved list (or
updated, if it's already there);
- a session the user **exits on purpose** (`/exit`, Ctrl+D, `/logout`) is
dropped; `/clear` and `/resume` swap it for the new session;
- a session that is **cut off** — window closed, process killed, crash, power
loss, reboot — stays on the list.
The list is the same snapshot `restore` reopens. Managing stays on until
turned off, across reboots.
## Script
Pick the command for the OS you're running on (the environment tells you the
platform); the options and JSON output are identical.
- **Windows** — run with the PowerShell tool (or Bash):
```
powershell -NoProfile -ExecutionPolicy Bypass -File "${CLAUDE_PLUGIN_ROOT}/scripts/sessions.ps1" <command> [options]
```
- **Linux and macOS** — run with Bash:
```
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/sessions.py" <command> [options]
```
If `python3` is not installed, tell the user the plugin needs Python 3 and
stop: on Linux e.g. `sudo apt install python3`; on macOS `xcode-select --install`
(Apple's Command Line Tools, which include `/usr/bin/python3`).
If `${CLAUDE_PLUGIN_ROOT}` above was not replaced with a real path, use the
folder two levels above this skill's base directory instead. Pass
`-DataDir "${CLAUDE_PLUGIN_DATA}"` ex