Install
Install with PiG
pig install npm:@nicknisi/pi-mgInstall with Pi
pi install npm:@nicknisi/pi-mgPackages 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.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.2.3 (README.md). PiG does not review it.
@nicknisi/pi-mg
A 100% File Completion Animation for the terminal — inspired by the Kier Eagan animation from Severance, but starring a pixelated Michael Grinich (CEO of WorkOS) instead. Run /mg, sit back, and receive your praise.
What it adds
- Slash command:
/mg [name]— plays the full animation. Defaults to$USER, falling back toWorkOS employee. - No tools, no widgets, no custom entry types, no event hooks.
The animation takes over the screen via ctx.ui.custom(). Press Escape or q to bail out at any time; audio is killed on exit.
Usage
/mg # plays the animation with your $USER name
/mg Nick # plays the animation with a custom name
The sequence
MDR grid — green-on-black grid of shuffling numbers with a progress bar counting to 100%, with accelerating beeps
100% burst — giant "100%" text explodes into colorful pixel particles over a noise burst
Landscape reveal — a sunset mountain landscape paints in (violet→pink→orange sky, snow-capped peaks, clouds, a cliff) with a chiptune fanfare
Walk in — a pixel guy walks in from the left along the cliff
The address — Michael Grinich's pixelated face appears and delivers the monologue (macOS
say, Daniel voice), mouth animating, with synced subtitles:I knew you could do it, {name}. Even in your darkest moments, I could see you arriving here. In refining your code, you have brought glory to this company and to me. I, Michael Grinich, love you. But now I must away, for there are other developers who need me around the world. Goodbye, {name}. And thank you.
The departure — the pixel guy spreads his arms and flies off across the landscape in an S-curve, shrinking into the distance with a whoosh
Finale — "100% COMPLETE" with
File: {name} │ Status: REFINED │ WorkOS
Total runtime is roughly 35–40 seconds, driven by a 20fps (50ms) tick. The address phase ends when say exits (the monologue takes ~22 seconds), with a 24-second fallback timeout so a missing/silent say can't stall the sequence. The departure (5s) and finale (3s) then play in full.
Files
| File | What's in it |
|---|---|
index.ts | Animation component built on pi's ctx.ui.custom() TUI API — half-block rendering, ANSI truecolor |
sprite.ts | Michael Grinich pixel art (32×32, 18-color palette extracted from a photo) + walking/flying sprites |
sound.ts | In-memory WAV generation for tones/noise/fanfare/whoosh, played through afplay; say for the speech |
Configuration
None. No config file, no options, no environment variables (other than $USER for the default name).
Dependencies
- Peer:
@earendil-works/pi-coding-agent(*) forpi.registerCommandandctx.ui.custom;@earendil-works/pi-tui(*) formatchesKey. - No runtime npm dependencies, no workspace deps.
Caveats
- macOS only for audio.
sound.tsshells out toafplayandsay, and skips audio entirely on other platforms. There the animation still renders, but silently, and the address phase falls back to its fixed timeout instead of tracking speech. If either binary is missing on macOS, the failure is ignored the same way. - Audio is written to temp WAV files (
os.tmpdir()) and played as child processes; all spawned processes are killed on dispose/exit. - TUI-only: in non-
tuimodes the command notifies and returns. - Requires a truecolor terminal — the renderer emits 24-bit ANSI color with half-block characters. In 256-color terminals the palette will be approximated at best.
- It's ~40 seconds of full-screen animation and noise. Do not run it on a shared screen share unless that is exactly what you want.
Install
pi install /Users/nicknisi/Developer/pi-extensions/packages/mg