Install
Install with PiG
pig install npm:@hk_net/pi-thinking-commandInstall with Pi
pi install npm:@hk_net/pi-thinking-commandPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./thinking-shortcut.ts"
]
}README
Written by the package's publisher, shown as published in version 0.1.13 (README.md). PiG does not review it.
/think command extension for pi
Adds a /think thinking-level shortcut and status display to Pi 0.84.4 or newer. Development and tests use Pi SDK 1.5.2.
This is especially useful when switching between model classes. Smaller models, including many local models, often benefit from tighter thinking limits than larger hosted models from major providers.
Pi 0.84.3 command rename
This extension originally registered /thinking. Pi 0.84.3 took over that command name for its new native thinking selector, and built-in interactive commands take precedence over extensions. Starting with this package release, our command therefore moves to /think to avoid the naming conflict. Pi's native /thinking remains available alongside it.
Existing users should replace commands such as /thinking high with /think high when they specifically want this extension's shortcut behavior.
Install
Avoid duplicate installation. Install this npm package or the GitHub bundle, not both. Loading both copies can duplicate commands, autocomplete providers, and status updates.
Install just this extension from npm:
pi install npm:@hk_net/pi-thinking-command
Or install the full collection from GitHub:
pi install git:git@github.com:hknet/pi-extensions@main
pi install https://github.com/hknet/pi-extensions
Or install this extension manually:
cp packages/pi-thinking-command/thinking-shortcut.ts ~/.pi/agent/extensions/thinking-shortcut.ts
After installing, restart pi or run:
/reload
Usage
/think [level]
Autocomplete offers only the thinking levels supported by the active model.
Examples:
/think off
/think low
/think medium
/think high
/think xhigh
/think max
If no argument is provided, /think sets the level to medium when supported, otherwise to the model's first supported level (normally off for a non-reasoning model). Use Pi 0.84.3's native /thinking without an argument when you want the interactive selector.
Levels
off— disable extended thinkingminimal— smallest available thinking budgetlow— light reasoningmedium— balanced default reasoninghigh— more reasoning for harder tasksxhigh— very high reasoning budgetmax— maximum reasoning budget
Note:
/thinkrejects levels that the active model does not support instead of silently selecting a different level.
Features
- Registers
/thinkwithout conflicting with Pi 0.84.3's native/thinkingcommand. - Derives argument completions from Pi's model-specific capabilities and refreshes them when the active model changes.
- Autocompletes
/th...to/thinkwithout Pi's trailing-space insertion; press Tab again to open the level picker. - Shows a
thinkingstatus item with the current level. - Updates the status item when the thinking level changes.
- Validates input and displays an error for unknown or model-incompatible levels.
Issues and feedback
Found a bug or have a feature request? Please report it on GitHub Issues.
For security vulnerabilities, please use GitHub's private vulnerability reporting instead of opening a public issue.