pi-thinking-hotkeys

Pi extension for Codex-style directional thinking effort hotkeys

Package details

extension

Install pi-thinking-hotkeys from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-thinking-hotkeys
Package
pi-thinking-hotkeys
Version
0.1.0
Published
May 4, 2026
Downloads
not available
Author
masonc15
License
MIT
Types
extension
Size
8.7 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-thinking-hotkeys

Codex-style directional hotkeys for changing pi's active reasoning level.

Shortcut Action
Alt+, Decrease thinking effort
Alt+. Increase thinking effort

[!NOTE] On macOS, Alt is the Option (⌥) key.

Install

pi install npm:pi-thinking-hotkeys

Or from git:

pi install git:github.com/masonc15/pi-thinking-hotkeys

Verify with /help — the shortcuts appear under Extensions.

Usage

Press the shortcut while the editor is focused. Levels move along:

off → minimal → low → medium → high → xhigh
  • Levels the active model doesn't support are skipped.
  • At a bound, the shortcut is a no-op and pi shows a notification.
  • Non-reasoning models stay at off.

Pi's model display continues to show the current level.

Terminal support

The shortcuts need Kitty keyboard protocol or xterm modifyOtherKeys, both of which pi enables when the terminal supports them. Some terminals and tmux setups instead send the legacy ESC , / ESC . sequences, which pi's key parser does not currently decode as alt+, / alt+.. To check what your setup sends:

npm run check:keys

Development

npm install
npm run check        # typecheck + tests
pi --no-extensions -e .

License

MIT