@hipdot/pi-clear
v1.0.0
Published
pi extension that adds /clear as an alias for the built-in /new command
Readme
pi-clear
/clear for pi — because muscle memory shouldn't be a punishment.
A shameless copy
This project is an unabashed, shameless fork of
ai-ecoverse/pi-exit— all credit for the idea, the structure, and most of this prose goes to the original author. I've simply swapped/exitfor/clearand/quitfor/new. Go give the original a star.
The Problem
Claude Code uses /clear to start fresh.
pi uses /new.
After years of muscle memory, thousands of developers instinctively type /clear when they want a clean slate. In pi, that does nothing. You sit there, staring at a command that won't fire, forced to remember a different word just to start over.
The Solution
pi-clear adds /clear as a first-class command (alias for the built-in /new).
Install it once and your muscle memory works again.
No more "wait, what was the command again?" moments.
Installation
Recommended
pi install npm:@hipdot/pi-clearThen run /reload inside pi.
Quick local test
pi -e ~/Sites/pi-clearUninstall
pi remove npm:@hipdot/pi-clearUsage
Just type:
/clearIt will start a new session the same way /new does — only now it respects your muscle memory.
Development
The extension source is a single file:
index.ts— registers the/clearcommand usingpi.registerCommand()
Credit
This is a fork of ai-ecoverse/pi-exit. Thank you to its author for doing the hard part.
License
MIT
