Install
Install with PiG
pig install npm:pi-mono-clearInstall with Pi
pi install npm:pi-mono-clearReview before installing
Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./index.ts"
]
}README
Written by the package's publisher, shown as published in version 1.7.3 (README.md). PiG does not review it.
clear extension
Adds a /clear command that starts a fresh pi session, similar to the built-in /new command.
Usage
/clear
Keyboard shortcut
Ctrl+Shift+L
The 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