pi-mono-clear
v1.7.3
Published
Pi extension that starts a fresh session with /clear
Readme
clear extension
Adds a /clear command that starts a fresh pi session, similar to the built-in /new command.
Usage
/clearKeyboard shortcut
Ctrl+Shift+LThe shortcut sends /clear as a command. If the agent is busy, it is delivered as a follow-up so the current turn can finish first.
Behavior
When /clear runs, the extension:
- waits for the agent to become idle if needed
- starts a new session
- shows a warning if the new-session request is cancelled
- shows an error notification if clearing fails
This makes it a convenient "start fresh" action without manually typing /new.
Notes
/clearis intentionally lightweight and just wraps pi's session reset behavior- if no UI is available, the keyboard shortcut does nothing
- the command itself works without needing the shortcut
Files
index.ts— extension entry pointpackage.json— package metadataCHANGELOG.md— release history
