@henryqw/pi-model-thinking

Remember Pi thinking level per model.

Packages

Package details

extension

Install @henryqw/pi-model-thinking from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@henryqw/pi-model-thinking
Package
@henryqw/pi-model-thinking
Version
0.1.7
Published
Aug 17, 2026
Downloads
460/mo · 460/wk
Author
henrywang
License
MIT
Types
extension
Size
7.2 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ]
}

Security note

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

README

@henryqw/pi-model-thinking

Remember the thinking level for each model and restore it when that model becomes active.

Install

pi install npm:@henryqw/pi-model-thinking

With

Package Why
@henryqw/pi-multi-codex Improves. Numbered Codex slots share one thinking level.

Use

Surface Type Purpose
/model-thinking command Choose the level to remember for the current model. Use current level clears the saved choice.

Valid levels: off, minimal, low, medium, high, xhigh, max. Applied on session start and model change. Numbered pi-multi-codex providers share canonical openai-codex/model, so account switches keep the same level.

Config

~/.pi/agent/config/pi-model-thinking.json

{
  "anthropic/claude-opus-4-8": "high",
  "openai-codex/gpt-5.6-luna": "minimal"
}

Missing config starts empty. Invalid entries are skipped. Malformed files are preserved and never rewritten on startup.

Remove

pi remove npm:@henryqw/pi-model-thinking

Development

npm test --workspace @henryqw/pi-model-thinking
npm run typecheck --workspace @henryqw/pi-model-thinking
npm run pack:check --workspace @henryqw/pi-model-thinking