pi-mono-clear
Pi extension that starts a fresh session with /clear
Package details
Install pi-mono-clear from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-mono-clear- Package
pi-mono-clear- Version
1.7.2- Published
- Apr 23, 2026
- Downloads
- 1,525/mo · 165/wk
- Author
- emanuelcasco
- License
- unknown
- Types
- extension
- Size
- 14.4 KB
- Dependencies
- 0 dependencies · 4 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
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