pi-clear
Adds /clear and /c commands (plus bare message interception) to wipe the conversation context and start a fresh session with a runtime reload.
Package details
Install pi-clear from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-clear- Package
pi-clear- Version
0.1.1- Published
- Mar 13, 2026
- Downloads
- 50/mo · 19/wk
- Author
- pierre-mike
- License
- MIT
- Types
- extension
- Size
- 2.4 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"."
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
🧹 Clear
Adds /clear and /c commands (plus bare-message interception) to wipe the conversation context and start a fresh session with a full runtime reload.
Install
pi install npm:pi-clear
What it does
Registers two slash commands and an input interceptor. All three paths call the same logic: wait for the agent to be idle, start a new session, reload the runtime, and notify you that the slate is clean.
Commands
| Command | Description |
|---|---|
/clear |
Clear context and start a fresh session |
/c |
Alias for /clear |
Bare message interception
Typing clear or c as a plain message (without the / prefix) also triggers the clear, so you never accidentally send those words to the LLM.