Installation & Setup
@maestria/pi is a Pi extension that turns the Pi coding agent into a disciplined engineering workstation. It registers 7 specialist subagents, 3 workflow mode commands, and spec-driven orchestration - all with a single extension entry.
Prerequisites
Section titled “Prerequisites”- Pi CLI - the Pi coding agent (latest version)
- Node.js 22.12+ - Required for npm-based extension resolution
- @gotgenes/pi-subagents Pi extension - Required for subagent dispatch. Install with
pi install npm:@gotgenes/pi-subagents
Installation via maestria CLI (Recommended)
Section titled “Installation via maestria CLI (Recommended)”The maestria CLI provides a unified interface for installing and managing maestria plugins across all supported platforms:
# Install for this platformpnpx maestria@latest install pi
# Verify installationpnpx maestria@latest statusThe CLI automatically installs the @gotgenes/pi-subagents peer dependency (required for subagent dispatch) alongside the main extension.
Alternative: manual Pi CLI setup
If you prefer not to use the maestria CLI:
-
Install the peer dependency:
Terminal window pi install npm:@gotgenes/pi-subagents -
Install the extension:
Terminal window pi install npm:@maestria/pi -
Restart Pi for both extensions to load.
Verify Installation
Section titled “Verify Installation”Start a new Pi session. The @maestria/pi extension loads automatically from the package manifest. Pi’s resource loader discovers its four methodology skills (orchestrator dispatcher, global agent rules, handoff contract, iteration limits) from the pi.skills manifest field and injects them into the system prompt as <skill> blocks – the same standard mechanism used by all major Pi extensions.
You should notice Pi behaving as a maestria dispatcher from the first turn: it responds to requests by decomposing tasks, delegating to specialist subagents, and following the spec-driven orchestration protocol – all guided by the auto-injected orchestrator skill.
You can also list installed extensions to verify:
pi extensions listYou should see @maestria/pi in the output.
Updating
Section titled “Updating”To update via the maestria CLI:
pnpx maestria@latest update piAlternative: Manual update
To update @maestria/pi to the latest version:
pi install npm:@maestria/pi@latestUninstalling
Section titled “Uninstalling”Via maestria CLI
Section titled “Via maestria CLI”pnpx maestria@latest uninstall piThis removes @maestria/pi. The @gotgenes/pi-subagents peer dependency is left
in place because other Pi extensions may depend on it.
Manual removal
Section titled “Manual removal”- Remove from Pi config: edit
~/.config/pi/pi.jsonand remove"@maestria/pi"from the"extensions"array - Uninstall:
Terminal window pi uninstall @maestria/pi - Optionally, remove
@gotgenes/pi-subagentsif no other extensions need it:Terminal window pi uninstall @gotgenes/pi-subagents - Restart Pi
Next Steps
Section titled “Next Steps”- Quick Start - Your first session with the extension
- Pi Reference - Commands, dispatch modes, and review mode
- Explore the workflow modes -
/fein,/sonar,/blitz