@zigai/pi-mode
v0.2.0
Published
Pi package that adds prompt modes for model and thinking-level switching.
Maintainers
Readme
Pi Mode
This Pi extension adds prompt modes for model and thinking-level switching.
Install
pi install npm:@zigai/pi-modeFeatures
- 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
