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

@zigai/pi-model-modes

v0.6.0

Published

Pi package that adds prompt modes for model and thinking-level switching.

Downloads

881

Readme

Pi Model Modes

Mode presets for switching models and thinking levels in Pi.

Install

pi install npm:@zigai/pi-model-modes

Features

  • Adds /mode for selecting and configuring prompt modes.
  • Adds Ctrl+Shift+M to select a mode.
  • Supports optional forward and backward keyboard shortcuts for cycling modes.
  • Colors the prompt editor border from the active mode, with an opt-in setting for thinking-derived border colors.
  • Applies an optional persistent default model to fresh sessions without changing it when the session model changes.

Modes can store a provider, model, thinking level, and optional color. Their JSON object order is the exact cycle order; with configured modes, no implicit entries are added. Mode cycling matches the active provider and model, ignoring thinking level, and wraps from the last mode to the first and vice versa. No cycling shortcut is configured by default.

Set the persistent default through /modeConfigure modes…Set default model…, or edit defaultModel in the configuration file.

Configuration

Global settings are stored in ~/.pi/agent/extension-settings/pi-model-modes.json.

| Option | Type | Default | Description | | --- | --- | --- | --- | | version | number | 1 | Settings format version. | | currentMode | string | "default" | Currently selected mode ID. | | defaultModel.provider | string | — | Default model provider. | | defaultModel.modelId | string | — | Default model ID. | | defaultModel.thinkingLevel | unknown | — | Optional default thinking level. | | modeUseThinkingBorderColors | boolean | false | Use thinking-level colors instead of mode colors for borders. | | modeShowThinkingLevelStatus | boolean | false | Show thinking level alongside mode status. | | shortcuts.forward | string | — | Shortcut for cycling modes forward. | | shortcuts.backward | string | — | Shortcut for cycling modes backward. | | modes | object | {} | Named model-mode specifications keyed by mode ID. |

{
  "$schema": "./schemas/pi-model-modes.schema.json",
  "version": 1,
  "currentMode": "default",
  "modeUseThinkingBorderColors": false,
  "modeShowThinkingLevelStatus": false,
  "modes": {}
}

License

MIT