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

pi-gpt-fast-mode

v0.1.2

Published

Pi extension to control OpenAI's GPT service tier (priority/flex/default/auto) for GPT-5.4 / GPT-5.5, with subagent hand-off.

Readme

pi-gpt-fast-mode

A pi extension that controls OpenAI's service tier for GPT-5.4 / GPT-5.5 from inside pi.

pi-gpt-fast-mode preview

Unlike a simple on/off "fast mode", this lets you pick the tier:

  • priority — faster, premium (the classic "fast mode")
  • flex — cheaper, slower (economy)
  • default — standard
  • auto — let OpenAI choose

It shows the active tier in the TUI and hands the preference off to subagents automatically.

npm · Pi Package Gallery

Install

pi install npm:pi-gpt-fast-mode

Or install from git:

pi install git:github.com/devwithpug/pi-gpt-fast-mode

Try it for a single run without installing:

pi -e npm:pi-gpt-fast-mode

Usage

/fast            # toggle Fast Mode (uses the selected tier, default: priority)
/fast on         # enable
/fast off        # disable
/fast priority   # select the fast/premium tier and enable
/fast flex       # select the economy tier and enable
/fast default    # standard tier and enable
/fast auto       # let OpenAI choose, and enable
/fast status     # report current state and tier

Start pi with Fast Mode already requested (priority tier):

pi --fast

How it behaves

The extension separates what you want from what is applied:

  • desired — you asked for Fast Mode (/fast, --fast, or persisted config)
  • active — desired and the current model is supported → requests get service_tier: <tier>

Switching to an unsupported model temporarily stops the request without losing your preference or your selected tier. Switch back to a GPT-5.4/5.5 model and it resumes.

Subagents

Turn Fast Mode on once in your parent pi session, then launch subagents as usual. The preference is exported as the PI_GPT_FAST_MODE environment variable (1 / 0), which child pi processes inherit on startup. A subagent only sends the tier request when it is also on a supported model.

Parent on an unsupported model is fine. If your parent session runs a non-GPT model (e.g. Claude) and you only use GPT-5.4/5.5 in subagents, just run /fast in the parent anyway. The preference is still recorded and handed off — the parent simply won't request a tier for itself, but subagents on GPT-5.4/5.5 will. The TUI indicator shows fast⇢ in that "armed" state to signal the preference is passed downstream.

To verify, ask a subagent to print PI_GPT_FAST_MODE; 1 means the preference was handed off.

Supported models

By default:

[
  "openai/gpt-5.4",
  "openai/gpt-5.5",
  "openai-codex/gpt-5.4",
  "openai-codex/gpt-5.5"
]

Model keys must match pi's exact provider/model key.

Configuration

Config files are resolved in this order (first that exists wins):

  1. Project: .pi/extensions/pi-gpt-fast-mode.json
  2. User: ~/.pi/agent/extensions/pi-gpt-fast-mode/config.json
{
  "persist": false,
  "desired": false,
  "tier": "priority",
  "models": [
    "openai/gpt-5.4",
    "openai/gpt-5.5",
    "openai-codex/gpt-5.4",
    "openai-codex/gpt-5.5"
  ],
  "indicator": "status"
}

| Field | Default | Meaning | |-------|---------|---------| | persist | false | Remember the on/off choice and tier between pi runs. | | desired | false | Saved preference (only honored when persist is true). | | tier | "priority" | Service tier: priority, flex, default, or auto. | | models | see above | Exact provider/model keys allowed to use Fast Mode. | | indicator | "status" | TUI feedback: status, widget, or off. |

Fast Mode starts disabled and session-only by default. Set "persist": true to remember your choice between runs.

How it differs from similar extensions

The core mechanism — injecting service_tier via before_provider_request — is necessarily the same as other OpenAI fast-mode extensions. This one adds:

  • Multi-tier control (priority / flex / default / auto) instead of a single hardcoded priority toggle, so it doubles as an economy (flex) switch.
  • A /fast status subcommand and a tier-aware TUI indicator.

Troubleshooting

I turned Fast Mode on but I don't see the indicator. Check that your current model is in models, and that indicator is not off.

My choice isn't remembered after restart. Set "persist": true in your config.

Does this guarantee faster responses? No. It requests a service tier when possible. Actual latency, availability, and billing depend on OpenAI and your account. Not every model/account supports every tier; OpenAI rejects unsupported tiers.

Development

npm install
npm run check   # typecheck + tests

License

MIT © devwithpug

Inspired by pi-openai-fast-mode and pi-openai-fast.