@aliaksei-raketski/pi-fast-mode

Pi extension that enables fast-mode payload tuning for supported Claude/OpenAI models.

Packages

Package details

extension

Install @aliaksei-raketski/pi-fast-mode from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@aliaksei-raketski/pi-fast-mode
Package
@aliaksei-raketski/pi-fast-mode
Version
0.3.8
Published
Jul 22, 2026
Downloads
1,105/mo · 39/wk
Author
aliaksei-raketski
License
MIT
Types
extension
Size
21.9 KB
Dependencies
1 dependency · 1 peer
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

@aliaksei-raketski/pi-fast-mode

A Pi extension that enables fast mode for supported models with one command and shortcut:

  • /fast: toggles fast mode on/off.
  • F3: toggles fast mode on/off.
  • No arguments. /fast always toggles.

The current model determines what gets injected:

  • Claude Opus 4.6 / 4.7 / 4.8
    • Adds speed: "fast"
    • Adds required header anthropic-beta: fast-mode-2026-02-01
  • OpenAI Codex GPT-5.4 / GPT-5.5 / GPT-5.6 Luna, Sol, and Terra
    • Adds service_tier: "priority"
    • Requires ChatGPT/OAuth auth (API-key models are skipped)

Install

pi install npm:@aliaksei-raketski/pi-fast-mode
# or project-local
pi install -l npm:@aliaksei-raketski/pi-fast-mode

Try locally from the repository root:

pi -e ./packages/fast-mode

This package ships the extension as TypeScript source. Pi loads extension entrypoints with its runtime TypeScript loader, so no JavaScript build output is required for this package.

Package contents

  • extensions/fast-mode/index.ts Pi extension entrypoint.
  • Fast-mode request hooks and session state helpers.

Behavior

  • Start Pi with fast mode enabled:
pi --fast
  • Footer status is always visible as one of:

    • fast on (accent color)
    • fast off (gray)

When fast mode is enabled but the current model is not supported, status stays as:

  • fast on in gray (so you can see it is enabled, but inactive for current model)

When you switch to a supported model, fast mode is applied automatically if it is enabled.

The fast mode toggle is stored in the current session, so it survives /reload, resume, and branch navigation.