npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ogulcancelik/pi-model-thinking

v0.1.0

Published

Auto-set thinking levels per model/provider in pi

Downloads

25

Readme

pi-model-thinking

Auto-set and remember thinking levels per model in pi.

No more Ctrl+PShift+TabShift+Tab when switching models. This extension remembers what thinking level you set for each model and restores it automatically.

Install

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

For local development:

pi install ~/Projects/pi-extensions/packages/pi-model-thinking

How it works

The extension uses a single file: ~/.pi/agent/model-thinking.json.

This file is both your initial config and your live state. You can seed it manually, or let it grow organically as you use pi.

If the model is in the file

On model_select (Ctrl+P, /model, session restore), the extension automatically applies the stored thinking level.

If the model is NOT in the file

The extension does nothing. Pi handles thinking natively, exactly as before.

When you manually change thinking (Shift+Tab)

The extension writes the new level into model-thinking.json for that exact model. Next time you use that model — even in a new session — it starts with your chosen level.

If your change matches a provider-level default in the file, the exact model entry is cleaned up automatically.

Config format

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

{
  "models": {
    "anthropic/claude-sonnet-4-5": "high",
    "openai/gpt-5.2-codex": "medium"
  },
  "providers": {
    "fireworks": "low"
  }
}

Resolution order:

  1. models["provider/modelId"] — exact match
  2. providers["provider"] — provider-wide fallback
  3. Not in file → extension ignores, pi handles natively

You don't need a config file at all. Start without one, and the file will be created the first time you Shift+Tab on a model.

Commands

/model-thinking — shows current resolution and whether the active model is managed.

/model-thinking reset — deletes model-thinking.json, clearing all remembered levels.

Example flow

  1. Start pi with no config file. Use Claude. Thinking is handled by pi natively.
  2. Shift+Tab change thinking to high. Extension silently writes "anthropic/claude-sonnet-4-5": "high".
  3. Quit pi, start a new session, Ctrl+P back to Claude. Thinking is automatically high.
  4. Switch to GPT (not in file). Extension does nothing — pi's native default applies.
  5. Shift+Tab on GPT to medium. Extension adds it to the file.
  6. Switch back to Claude → high. Switch to GPT → medium. No manual tweaking needed.