Small packages for the pi coding agent, kept in one repo.
None of these were planned. Each one started as a session that broke, or a thing pi could almost do, and the fix turned out small enough to keep around. They live together because they share conventions and get updated in the same afternoon, not because they form a system. Take the one you need.
Install the bundled packages straight from git:
pi install git:github.com/Blue-B/pi-custom-packagespi-herdr-subagent-working is intentionally excluded from that bundle. It
replaces herdr's managed Pi reporter and must be installed separately after the
reporter is disabled, as described in its README.
pi-prune-old-images is left out too, because it rewrites session files.
Or install packages one at a time. Nothing here is on npm, and pi install will
not take a subdirectory of a repository, so clone first and install from disk:
git clone https://github.com/Blue-B/pi-custom-packages.git
cd pi-custom-packages
pi install ./packages/pi-winshotThen /reload in pi.
No package here imports another, so installing one never drags in the rest. A few do expect something outside this repo (a subagent, a Windows app, an ffmpeg binary); those are listed with the package and again under Requirements.
pi-bash-watchdog catches common timeout and foreground-server mistakes.
| Package | What it does |
|---|---|
| pi-bash-watchdog | pi's bash timeout is in seconds, and models keep passing milliseconds. Rewrites 120000 to 120, caps foreground dev servers, fills a default when the field is missing. Adds /bash-watchdog-status. |
| Package | What it does |
|---|---|
| pi-elapsed-timer | Shows elapsed time once a second while pi works on a request, then keeps the run's total in the footer. Uses the same timer as the standalone elapsed-timer.ts extension. |
pi runs in WSL and cannot see the Windows desktop directly. pi-winshot captures
it through powershell.exe over WSL interop, with no Linux-side installation.
| Package | What it does |
|---|---|
| pi-winshot | Capture a screen, a region, a monitor, or one window even when five terminals sit on top of it. Then crop, resize, and mask the parts that should not reach the model. |
| pi-light-eyes | A light terminal that does not strain the eyes: soft off-white background, grayscale antialiasing, and D2Coding registered so weight actually applies. Ships the pi theme plus scripts that write the Windows Terminal scheme. |
| Package | What it does |
|---|---|
| pi-gpt-img | A gpt_img tool for text-to-image and image-to-image on ChatGPT Images (gpt-image-2-codex), reusing the ChatGPT/Codex OAuth token pi already holds. |
| pi-herdr-ask-blocked | herdr's sidebar shows a pane as working the entire time pi is actually waiting on an ask_user_question answer. This emits the blocked event herdr's own integration already listens for. |
| pi-prune-old-images | Long screenshot-heavy sessions keep every image as base64 in memory and in the session file, even after compaction stops sending them. This drops images that compaction already passed, so a 603 MB session went to 163 MB and its pi process from 2.2 GB to 0.5 GB. Rewrites session files, so it is installed separately rather than through the root bundle. |
| pi-herdr-subagent-working | Keeps a herdr pane working while async pi-subagents children are still running. Replaces herdr's managed Pi reporter, so it is installed separately rather than through the root bundle. |
| pi-openai-accounts | Switches between two ChatGPT subscription OAuth accounts (openai, openai-account-2). Preserves the account when changing models and rotates on quota errors without duplicate retries. /openai-accounts shows plan quotas through separate Codex credentials, with automatic account binding and no browser during refresh. Local token totals are shown separately. Requires Pi 0.99.2+; see the package README for first-time quota setup. |
| pi-webgpt-image | webgpt-image skill: generates images by driving a logged-in ChatGPT web chat in the browser instead of the Codex image endpoint. batch.sh runs several chats at once for variations, and edits can stay inside one thread. Same backend and quality as gpt_img; the reason to use it is having only a web login, or wanting parallel chats. |
Bash-watchdog and elapsed-timer need nothing beyond pi itself. The other packages each want something specific.
| Needs | Packages |
|---|---|
| Windows 10/11 with WSL2 and interop | winshot, light-eyes |
ffmpeg on PATH |
winshot, gpt-img |
herdr with herdr integration install pi |
herdr-ask-blocked |
| herdr and pi-subagents; replaces the managed Pi reporter | herdr-subagent-working |
| A ChatGPT or Codex OAuth login | gpt-img |
A ChatGPT web login plus a browser CLI (ab, or agent-browser via WG_BROWSER) |
webgpt-image |
| Pi 0.99.2+ and ChatGPT OAuth; Codex CLI file credentials for quota lookup | openai-accounts |
Windows screen capture requires WSL interop; native Linux has no Windows desktop to capture.
pi, tested on 0.84, and Node.js 18 or newer. Anything else is per package and listed above; each package README repeats its own.
Issues and pull requests are welcome. These grew out of one person's setup, so a package that half-works for you is worth reporting: the odds are good that the broken assumption is mine and not pi's.
MIT © Blue-B
