原始内容
pi-delete-session
A powerful session deletion tool for the Pi coding agent. Bulk delete unwanted sessions, grouped by project, with a single command.
Features
- 🗑️ Batch Deletion: Delete multiple sessions in one go.
- 📁 Project Grouping: Find sessions organized by their project folder.
- ✅ Checkbox Selection: Multi-select sessions using an interactive list.
- ⚠️ Safety First: Red confirmation dialog showing all selected sessions before permanent deletion.
- 🔄 Auto-Reset: Automatically triggers a new session if you delete the one you're currently in.
Installation
Install as a global Pi package:
pi install npm:pi-delete-session
Or via GitHub:
pi install git:github.com/wpbasket/pi-delete-session
Usage
Type the following command in Pi:
/delete-session
Controls
| Key | Action |
|---|---|
↑ / ↓ |
Navigate list |
Space |
Toggle checkbox [ ] ↔ [✓] |
a |
Toggle Select All |
Enter |
Proceed to confirmation / delete |
Esc |
Cancel / Exit |
Development
To install locally for development:
pi install ./path/to/pi-delete-session
License
MIT