@hk_net/pi-thinking-command
v0.1.3
Published
Pi extension that adds a /thinking slash command for changing reasoning level
Downloads
552
Maintainers
Readme
/thinking command extension for pi
Adds a /thinking slash command to pi for changing the active thinking/reasoning level from inside a session.
Normally in pi, changing the thinking/reasoning level means opening the settings menu, navigating to Thinking, and selecting the requested level. This extension is a convenience shortcut for that workflow, so you can switch levels directly with commands such as /thinking low or /thinking xhigh.
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.
Install
Install just this extension from npm:
pi install npm:@hk_net/pi-thinking-commandOr install the full collection from GitHub:
pi install git:[email protected]:hknet/pi-extensions@main
pi install https://github.com/hknet/pi-extensionsOr install this extension manually:
cp packages/pi-thinking-command/thinking-shortcut.ts ~/.pi/agent/extensions/thinking-shortcut.tsAfter installing, restart pi or run:
/reloadUsage
/thinking [off|minimal|low|medium|high|xhigh]Examples:
/thinking off
/thinking low
/thinking medium
/thinking high
/thinking xhighIf no argument is provided, /thinking sets the level to medium.
Levels
off— disable extended thinkingminimal— smallest available thinking budgetlow— light reasoningmedium— balanced default reasoninghigh— more reasoning for harder tasksxhigh— maximum reasoning budget
Note: If the current model does not support the requested level, pi clamps to the nearest supported level (searching both up and down the level hierarchy).
Features
- Registers the
/thinkingcommand. - Provides argument completions for all supported levels.
- 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 levels.
