@d3ara1n/pi-command-palette
Global command palette for pi — press Ctrl+Shift+P to search and run commands from anywhere
Package details
Install @d3ara1n/pi-command-palette from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@d3ara1n/pi-command-palette- Package
@d3ara1n/pi-command-palette- Version
0.1.1- Published
- Jun 8, 2026
- Downloads
- 254/mo · 254/wk
- Author
- d3ara1n
- License
- MIT
- Types
- extension
- Size
- 12 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-command-palette
Global command palette for Pi Coding Agent — press Ctrl+Shift+P to search and run commands from anywhere.
Why?
Pi's slash commands (/model, /compact, extension commands, etc.) only work when the editor is empty. If you've typed something and want to switch models or run a command, you're stuck. This extension opens a floating command palette via keyboard shortcut, regardless of editor state.
Install
pi install npm:@d3ara1n/pi-command-palette
Or add to ~/.pi/agent/settings.json:
{
"extensions": ["/path/to/pi-command-palette"]
}
Usage
| Shortcut | Action |
|---|---|
Ctrl+Shift+P |
Open command palette |
The palette lists:
- Built-in actions — Model selector, New session, Compact, Reload, Fork, Tree, Resume
- Extension commands — All registered
/commandentries - Skills & Templates — Skill commands and prompt templates
Editor text preservation
When a command replaces your current editor text, the original content is saved and a Restore: Previous Editor Text entry appears at the top of the palette. Select it to get your text back.
Model selector
The "Model: Switch Model" action opens a secondary overlay listing all models with configured API keys. Select one to switch instantly — no need to go through /model or Ctrl+P.
Configuration
No configuration needed. Works out of the box.