Extensions and scripts for coding agents, kept in one place: Pi extensions (installable from a single source), shared Windows 11 CLI completion/attention notifications, and standalone status bar scripts for Codex CLI, Claude Code, and Droid CLI.
pi install git:github.com/nonlog/agent-extrasThe root package.json declares every Pi extension under pi.extensions (including pi-auto-session-title and the Pi adapter of windows-cli-notify), so one install brings all of them. Host hooks for Codex CLI, Claude Code, and Factory Droid are installed via packages/windows-cli-notify/install.ps1, and the scripts under packages/statuslines are copied by hand.
| Package | What it does | Origin |
|---|---|---|
packages/pi-polish |
Claude Code-style output: tool rows fold into one line, edits render as colored diffs, ❯/● markers, orange status line, responsive footer with model brand icons |
Patched fork of pringled/pi-extensions (MIT, Thomas van Dongen) |
packages/pi-spinner-verbs |
Claude Code's 185 default spinner verbs plus themed packs (including 73 Breaking Bad entries), with /verbs and /verb-status; verbs rotate per model turn |
Patched fork of @robhowley/pi-spinner-verbs (MIT, Rob Howley) |
packages/pi-bar-cursor |
Replaces Pi's reverse-video block caret with an accent-colored blinking hardware bar cursor | nonlog/pi-bar-cursor (MIT, nonlog) |
packages/pi-model-prompts |
Selects a local private instruction section by exact provider/model ID while retaining Pi's runtime instructions | nonlog |
packages/pi-auto-session-title |
Automatically names unnamed Pi sessions from the first substantive prompt via ctx.modelRegistry.complete() and pi.setSessionName(), plus /retitle |
nonlog |
packages/windows-cli-notify |
Shared Windows 11 toast notifications (completion & attention/questions) for Codex CLI, Claude Code, Factory Droid, and Pi | nonlog |
packages/statuslines |
The same two-line status bar for Codex CLI, Claude Code, and Droid CLI, as standalone Node scripts (the Pi version lives in pi-polish) | nonlog |
fonts/HerdrAgentIconsMax-Regular.ttf |
Private-use icon font (U+E1A0–U+E1BB) carrying the model and agent brand logos used by the status bars |
hhdebb/herdr-radar (notices) |
Four changes on top of upstream 0.1.2, fixing conflicts with pi-open-tui and @robhowley/pi-spinner-verbs. Details in packages/pi-polish/README.md.
❯marker renders inside pi-open-tui's framed editor (the frame's│rail broke the original match).- The status line renders the verb published by pi-spinner-verbs instead of overwriting it every second.
- The thinking block is left intact, so pi-open-tui's thinking peek has a label row to rewrite.
outputPadstays at 2, which patch 1 requires.
pi-polish also gives generic MCP/extension tools compact result summaries, preserves visible errors and custom interactive UIs, and uses a crab startup logo. Tools start collapsed; ctrl+o expands them, including codemode's detailed view. Pasted image paths display as [Image #1] markers without changing attachment submission. /polish-thinking single|multi|off selects a single-line preview, the latest 3 lines, or hidden thinking; the choice is saved. Keep "hideThinkingBlock": true in Pi settings to start with previews. See pi-polish for configuration and regression tests.
extensions/footer.ts replaces FooterComponent.render with a normally two-line layout matching Droid CLI statusline:
D:\Workspace\General | DeepSeek V4.1 Flash high | [████████████▒▒▒▒] 300k/400k
Verify Droid skills and MCP setup | main [↕1/2]
- Line 1:
[cwd] | [model + thinking] | [context bar + tokens]- Folder icon
and full cwd path in warm gold#d7af00. - Brand logo and model name in official brand color, followed by
and thinking level in Tailwind-styled effort color (supportsdynamic). - Storage icon
, 16-cell context bar[████▒▒▒▒]with smooth LERP color interpolation (green → amber → danger red), and token usageused/limit.
- Folder icon
- Line 2:
[session title] | [git branch] [upstream divergence] [runtime]- Session title icon ``, pi's own brand glyph (Herdr Agent Icons Max
U+E1A9, glyph name `pi`) and the title itself share one color: pi.dev's accent blue `#6a9fcc` (`--color-accent-blue` / `--accent` in pi.dev/style.css), the same blue the site uses for links and the "yours" highlight. - Git branch icon
with branch name in vibrant light green#afff5f. - Upstream divergence in dim brackets, nothing when the branch is level with its upstream:
[↑n]ahead,[↓n]behind,[↕a/b]diverged. Parsed from the## branch...upstream [ahead N, behind M]line ofgit status --porcelain=v1 --branch; the file-level counts pi-open-tui also shows were dropped on request. - Runtime devicon only, and only inside a git repository — outside one the separator would hang off the session title with just an icon after it. From the detection table ported from pi-open-tui's
runtime.ts: bun, node, rust, go, python, ruby, java, swift, kotlin, cpp, deno, php, haskell, julia, lua, elixir, erlang, gleam, crystal, dart, nim, zig, ocaml, clojure, scala, perl, elm, haxe, terraform, helm, gradle, cmake, meson, nix, conda, pixi, pulumi, typst, buf, dotnet. First match wins, so abun.lockbeats thepackage.jsonbeside it. Detection is pureexistsSync, so it needs no process and no background refresh.
- Session title icon ``, pi's own brand glyph (Herdr Agent Icons Max
- The git divergence spawns a process, so it does not run inside
render: the cached value is drawn and a background refresh starts when it goes stale (5 s). pi re-renders on keystrokes and streamed output, so the value is fresh while working; while idle it can sit one refresh behind, and the first frame after a cwd change shows the branch and title only. export defaultinstalls the latest replacement on every load instead of guarding on a one-shot marker:/reloadre-imports this module, so a one-shot guard would bail out and leave the previous closure installed, which is why edits used to need a full restart.- Separators
|in low-contrast neutral gray#5f5f5f. - All text styles prefixed with
\x1b[22;1;(cancels dim, enables bold highlight). - On narrow terminals, the directory, model and context bar each get their own row when they cannot fit together. The title and Git details share a row when possible and otherwise use separate rows. Long individual fields are truncated to the available width; the bar shortens on very narrow screens.
- Ovis on Windows mirrors a desktop-width grid instead of resizing Pi's terminal. To help its browser wrap at the separators, the wide footer uses nonbreaking spaces between generated words and counts while keeping an ordinary space right after each icon so terminals like Tern do not shrink wide Nerd Font / PUA glyphs to a single cell; copying those fields preserves those spaces. The cwd itself is not changed. Very narrow screens can still split a field, and this does not resize the rest of the terminal.
- Extension statuses are no longer drawn:
ctx.ui.setStatus()output is dropped.
Model brand logos are drawn from Herdr Agent Icons Max (U+E1A0–U+E1BB). Install fonts/HerdrAgentIconsMax-Regular.ttf and list Herdr Agent Icons Max as a terminal fallback — that font carries those codepoints and nothing else, so without it every icon renders as tofu:
[terminal]
family = "CaskaydiaCove Nerd Font"
fallback = ["Herdr Agent Icons Max", "Symbols Nerd Font Mono"]Brands with an icon: deepseek, claude, gemini, gpt, grok, glm, muse. Anything else falls back to a generic chip glyph from CaskaydiaCove NF.
Verbs rotate per model turn instead of on a clock, and Claude Code's default list is prepended to the selected theme or custom file.
Upstream ran setInterval(tick, 3000), so the word changed every 3 seconds regardless of what the agent was doing. This fork picks a verb on turn_start and holds it for the whole turn — the same way Claude Code behaves, where a long single thought keeps one word and the word changes when the work moves on. There is no timer at all; /verbs (default) selects the 185-verb Claude Code base and /verb-status reports the combined pool. The configured Breaking Bad theme adds 73 entries for 258 verbs total.
One local fix on top of upstream 0.1.1: the caret no longer dies after /reload.
handleReloadCommand emits session_start and only then calls applyRuntimeSettings(), which runs ui.setShowHardwareCursor(settings.showHardwareCursor). With showHardwareCursor: false in settings, that write landed after the extension had turned the cursor on, and ensureHardwareCursorVisible memoised per (tui, generation) so it never retried — the caret stayed hidden until pi was fully restarted. The guard now reads the live TUI state instead of the memo, so the next render re-asserts it.
It also overlaps with pi-open-tui, which owns the caret too:
- pi-open-tui writes DECSCUSR
\x1b[6 q(steady bar) and manages the hardware cursor itself - pi-bar-cursor writes
\x1b[5 q(blinking bar) plus anOSC 12accent color
Both write the same cursor sequence, so the shape and color can flip depending on which wrote last. If you run pi-open-tui, either drop pi-bar-cursor or expect the two to fight over the caret.
MIT. Each package keeps its own LICENSE file with its original copyright holder; the root LICENSE covers the repository as a whole.