@zigai/pi-mode
Pi package that adds prompt modes for model and thinking-level switching.
Package details
Install @zigai/pi-mode from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@zigai/pi-mode- Package
@zigai/pi-mode- Version
0.2.0- Published
- Jun 14, 2026
- Downloads
- 367/mo · 367/wk
- Author
- zigai
- License
- MIT
- Types
- extension
- Size
- 53.9 KB
- Dependencies
- 1 dependency · 3 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 Mode
This Pi extension adds prompt modes for model and thinking-level switching.
Install
pi install npm:@zigai/pi-mode
Features
- Adds
/modefor selecting and configuring prompt modes. - Adds
Ctrl+Shift+Mto select a mode. - Adds
Ctrl+Spaceto cycle modes. - Can show the current mode in the prompt editor border when enabled.
- Colors the prompt editor border from the active mode or thinking level.
Modes can store a provider, model, thinking level, and optional color. Project-local modes live in .pi/modes.json when present; otherwise global modes live in ~/.pi/agent/modes.json.
By default, Pi Mode does not print the mode name in the editor border. To opt in, toggle Show mode name from /mode → Configure modes…, or set "modeShowName": true in global ~/.pi/agent/settings.json or trusted project .pi/settings.json. The /mode toggle writes to global settings.
License
MIT