← Catalog

pi-working-phrase

A tiny Pi extension that replaces Pi's working status with shuffled phrases, a colored spinner, and an animated shine gradient.

Extension

Install

Install with PiG

pig install npm:pi-working-phrase

Install with Pi

pi install npm:pi-working-phrase
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Video

Declared by the package manifest. Open the file ↗

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://raw.githubusercontent.com/brandonmathis/pi-working-phrase/main/docs/assets/pi-working-phrase-demo.png",
  "video": "https://raw.githubusercontent.com/brandonmathis/pi-working-phrase/main/docs/assets/pi-working-phrase-demo.mp4",
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.2.1 (README.md). PiG does not review it.

pi-working-phrase

A tiny Pi extension that replaces Pi's working status with shuffled phrases, a theme-aware spinner, and an animated shine effect.

Preview

When Pi is responding, the standard working line is replaced with an animated spinner and shuffled phrase:

pi-working-phrase animated preview

Features

  • Shuffled working phrases while Pi is responding.
  • Configurable phrase shuffle speed.
  • Animated shine effect on the working message.
  • Theme-aware colors by default.
  • Optional custom hex colors for the shine effect and spinner.
  • Optional local custom phrases through sidecar config.
  • Minimal sidecar config: custom colors, phrase rotation speed, and appended phrases only.
  • No runtime dependencies.
  • Restores Pi defaults when the agent finishes or the session shuts down.

Requirements

  • Pi coding agent installed.
  • Node.js compatible with your installed Pi release.
  • Extension installed in a Pi auto-discovery location.

Requires Pi with extension auto-discovery support. This extension is written in TypeScript and is loaded by Pi directly; no build step is required for local use.

Installation

pi install git:github.com/brandonmathis/pi-working-phrase

Usage

Start using Pi normally. When Pi begins responding, pi-working-phrase sets a custom working message and spinner. When the response completes, the extension restores Pi's defaults.

No slash commands are added by this extension.

Config is read when the next Pi response starts. If you want to force a full extension reload, run /reload in Pi.

Configuration quick start

Customize the extension with a sidecar JSON file instead of editing files in src/.

PathScope
~/.pi/agent/pi-working-phrase.jsonGlobal, all projects. Honors PI_CODING_AGENT_DIR through Pi's agent directory.
<project>/.pi/pi-working-phrase.jsonProject-local override.

Project config is merged over global config. Unknown or invalid values are ignored safely.

Custom colors, phrase rotation speed, and local appended phrases are configurable from sidecar JSON. Built-in working phrases live in src/phrases.ts.

Use custom colors

By default, pi-working-phrase follows your active Pi theme. To use custom colors, set baseColor and/or spinnerColor; custom color mode is inferred automatically:

{
	"baseColor": "#9776c7",
	"spinnerColor": "#50fa7b"
}
  • baseColor controls the working phrase text and shine gradient.
  • spinnerColor controls the spinner.
  • Hex colors such as #9776c7 and short hex colors such as #abc are supported.
  • Invalid colors fall back safely to white.

To return to theme colors, remove baseColor and spinnerColor.

Add custom phrases

Append local-only phrases with customPhrases:

{
	"customPhrases": ["Asking the rubber duck"]
}

Change phrase rotation speed

{
	"phrasesShuffleMs": 5000
}

See docs/configuration.md for detailed guidance and examples.

Full configuration table

OptionDefaultDescription
baseColorundefinedEnables custom mode and sets custom-mode phrase/shine color.
spinnerColorundefinedEnables custom mode and sets custom-mode spinner color.
customPhrases[]Appends local-only phrases after the built-in phrase list.
phrasesShuffleMs8000Milliseconds between phrase changes.