pi-toolbox

extension

A comprehensive extension toolkit for the Pi Coding Agent — 17 extensions, 11 themes, skills, agents, and team orchestration templates

by · v1.0.0 · published 3mo ago

$ pi install npm:pi-toolbox
downloads/mo
109
stars
last push
open issues

Signals

license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

248 downloads · last 12 weeks (weekly)

README

pi-toolbox

A comprehensive extension toolkit for the Pi Coding Agent17 extensions, 11 themes, skills, agents, and team orchestration templates.

🎬 Watch pi-toolbox in action


Installation

# Install globally
pi install npm:pi-toolbox

# Or project-local (shareable via git)
pi install -l npm:pi-toolbox

# Or try without installing
pi -e npm:pi-toolbox

Selective Loading

Load only specific extensions via settings.json:

{
  "packages": [
    {
      "source": "npm:pi-toolbox",
      "extensions": [
        "+extensions/minimal.ts",
        "+extensions/theme-cycler.ts",
        "+extensions/damage-control.ts"
      ],
      "themes": [],
      "skills": []
    }
  ]
}

Setup: Agents & Configs

Extensions like agent-team, agent-chain, system-select, and damage-control read agent definitions and configs from your project's .pi/ directory. Run the setup script to copy the bundled templates:

# From your project root
npx pi-toolbox setup

# Or manually
bash node_modules/pi-toolbox/setup.sh

This copies:

  • 8 agent personas.pi/agents/*.md (scout, planner, builder, reviewer, documenter, red-team, plan-reviewer, bowser)
  • 10 Pi Pi experts.pi/agents/pi-pi/*.md (ext, theme, skill, config, tui, prompt, agent, keybinding, cli experts)
  • Team rosters.pi/agents/teams.yaml
  • Pipeline chains.pi/agents/agent-chain.yaml
  • Safety rules.pi/damage-control-rules.yaml

Existing files are never overwritten. Delete a file first to get the latest version.


Extensions

UI & Footer

ExtensionDescriptionUsage
pure-focusRemoves footer and status line entirely — distraction-free modepi -e extensions/pure-focus.ts
minimalCompact footer: model name + 10-block context meter [###-------] 30%pi -e extensions/minimal.ts
tool-counterRich two-line footer: model + context + token/cost stats + per-tool call tallypi -e extensions/tool-counter.ts
tool-counter-widgetLive-updating above-editor widget with per-tool call counts and background colorspi -e extensions/tool-counter-widget.ts
theme-cyclerCycle themes with Ctrl+X / Ctrl+Q or /theme picker. Shows color swatch.pi -e extensions/theme-cycler.ts
session-replay/replay opens a scrollable timeline overlay of session historypi -e extensions/session-replay.ts

Workflow & Discipline

ExtensionDescriptionUsage
purpose-gatePrompts you to declare session intent on startup. Blocks prompts until answered.pi -e extensions/purpose-gate.ts
tilldoneTask discipline system — define tasks before working. Tracks completion with live progress.pi -e extensions/tilldone.ts

Multi-Agent Orchestration

ExtensionDescriptionUsage
agent-teamDispatcher orchestrator with team select and grid dashboard. Primary agent delegates via dispatch_agent.pi -e extensions/agent-team.ts
agent-chainSequential pipeline orchestrator — chains agents where each step's output feeds the next.pi -e extensions/agent-chain.ts
subagent-widget/sub <task> spawns background subagents with live streaming progress widgets.pi -e extensions/subagent-widget.ts
pi-piMeta-agent that builds Pi agents with parallel expert research.pi -e extensions/pi-pi.ts

Cross-Agent & Safety

ExtensionDescriptionUsage
cross-agentScans .claude/, .gemini/, .codex/ dirs and registers their commands, skills, and agents in Pi.pi -e extensions/cross-agent.ts
system-select/system to interactively switch agent personas/system prompts.pi -e extensions/system-select.ts
damage-controlReal-time safety auditing — intercepts dangerous bash patterns, enforces path access controls.pi -e extensions/damage-control.ts

Code Review

ExtensionDescriptionUsage
go-reviewReviews Go code changes against the 100 Go Mistakes checklist. Custom TUI rendering.pi -e extensions/go-review.ts

Stacking Extensions

Extensions compose — pass multiple -e flags:

# Minimal footer + theme cycling
pi -e extensions/minimal.ts -e extensions/theme-cycler.ts

# Agent team with theme cycling
pi -e extensions/agent-team.ts -e extensions/theme-cycler.ts

# Subagent spawner + distraction-free + theme cycling
pi -e extensions/subagent-widget.ts -e extensions/pure-focus.ts -e extensions/theme-cycler.ts

# Task discipline + safety auditing + minimal footer
pi -e extensions/tilldone.ts -e extensions/damage-control.ts -e extensions/minimal.ts

Themes

11 hand-crafted themes with all 51 Pi color tokens:

ThemeVibe
synthwaveNeon pink/cyan retro-futuristic
catppuccin-mochaWarm pastel dark
cyberpunkElectric neon futuristic
draculaClassic purple-accented dark
everforestCalm forest greens
gruvboxEarthy warm retro
midnight-oceanDeep navy blue
nordArctic cool blues
ocean-breezeLight oceanic teal
rose-pineWarm muted rose
tokyo-nightSharp Tokyo neon

Each extension auto-loads its assigned theme on boot. Use /theme or Ctrl+X/Ctrl+Q (with theme-cycler) to switch.


Skills

Bowser — Playwright Browser Automation

Headless browser automation using playwright-cli. Supports parallel sessions, persistent profiles, and vision mode.

/skill:bowser

Features:

  • Headless by default, --headed for visible browser
  • Named sessions (-s=<name>) for parallel instances
  • Persistent cookies and storage state
  • Screenshots, PDF export, network interception

Agents

Core Agents

AgentRoleTools
scoutFast recon and codebase explorationread, grep, find, ls
plannerArchitecture and implementation planningread, grep, find, ls
builderImplementation and code generationread, write, edit, bash, grep, find, ls
reviewerCode review and quality checksread, bash, grep, find, ls
documenterDocumentation and README generationread, write, edit, grep, find, ls
red-teamSecurity and adversarial testingread, bash, grep, find, ls
plan-reviewerCritically evaluates implementation plansread, grep, find, ls
bowserHeadless browser automation via Playwrightbash

Pi Pi Experts (Meta-Agent Team)

ExpertDomain
ext-expertExtensions — tools, events, commands, rendering
theme-expertThemes — JSON format, 51 color tokens, vars
skill-expertSkills — SKILL.md packages, scripts, frontmatter
config-expertSettings — settings.json, providers, models, packages
tui-expertTUI — components, overlays, widgets, footers
prompt-expertPrompt templates — .md format, arguments
agent-expertAgent definitions — personas, teams.yaml, orchestration
keybinding-expertKeyboard shortcuts — Key IDs, reserved keys, compatibility
cli-expertCLI — flags, modes, environment variables

Team Rosters (teams.yaml)

TeamMembers
fullscout, planner, builder, reviewer, documenter, red-team
plan-buildplanner, builder, reviewer
infoscout, documenter, reviewer
frontendplanner, builder, bowser
pi-piext-expert, theme-expert, skill-expert, config-expert, tui-expert, prompt-expert, agent-expert

Agent Chains (agent-chain.yaml)

ChainFlowDescription
plan-build-reviewplanner → builder → reviewerStandard development cycle
plan-buildplanner → builderFast two-step without review
scout-flowscout → scout → scoutTriple-scout deep recon
plan-review-planplanner → plan-reviewer → plannerIterative planning with critique
full-reviewscout → planner → builder → reviewerEnd-to-end pipeline

Safety: Damage Control

The damage-control extension provides real-time security hooks:

  • Dangerous Commands — regex patterns block rm -rf, git reset --hard, DROP DATABASE, AWS/GCP/Firebase destructive ops
  • Zero Access Paths — blocks all access to .env, ~/.ssh/, *.pem, *.tfstate, credentials files
  • Read-Only Paths — allows reading but blocks modifying lockfiles, build outputs, /etc/
  • No-Delete Paths — allows modifying but prevents deleting .git/, LICENSE, README.md, Dockerfile

Rules are defined in .pi/damage-control-rules.yaml (run npx pi-toolbox setup to install).


Color Language

Extensions follow a consistent color convention:

TokenRoleUsed For
successPrimary valueCounts, hash fills, branch names
accentSecondary valuePercentages, tool names
warningPunctuation/frameBrackets, parens, pipes, cost
dimFiller/spacingDashes, labels, separators
mutedSubdued textCWD name, fallback states

Prerequisites

ToolPurposeInstall
Bun ≥ 1.3.2Runtime & package managerbun.sh
piPi Coding Agent CLIPi docs

Resources


License

MIT