@maestria/pi
maestria extension for the Pi coding agent
Package details
Install @maestria/pi from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@maestria/pi- Package
@maestria/pi- Version
0.8.0- Published
- Oct 5, 2026
- Downloads
- 2,305/mo · 506/wk
- Author
- sozonome
- License
- MIT
- Types
- extension, skill
- Size
- 98.1 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"skills": [
"./skills"
],
"extensions": [
"./dist/extension.mjs"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@maestria/pi
A Pi coding agent extension that brings maestria's structured agent orchestration - specialist delegation, workflow modes, and maker/checker review - to Pi.
This package is part of the maestria project. See VISION.md for the project vision, motivation, and scope.
Installation
# Recommended: via the maestria CLI (installs the peer dependency too)
pnpx maestria@latest install pi
# Manual: install the required peer dependency first, then the extension
pi install npm:@gotgenes/pi-subagents@^21.5.1
pi install npm:@maestria/pi
Uninstall via pnpx maestria@latest uninstall pi. The @gotgenes/pi-subagents peer dependency is shared with other Pi extensions; only remove it separately if nothing else needs it.
What It Provides
- Methodology skills (4 as of 2026-09-22; see the package directory for the current list) - orchestrator dispatcher, global agent rules, handoff contract, and iteration limits, injected into every session.
- Workflow modes (3 as of 2026-09-22; see the user-facing documentation for the current list) -
/fein(full pipeline),/sonar(research only),/blitz(fast implementation). - Compaction preservation - session state survives compaction with structured summaries.
- Subagent dispatch - delegation to specialist subagents via the
@gotgenes/pi-subagentspeer package. - Maker/checker split -
/reviewmode blocks destructive tools where Pi supports it. - Root project customization -
.maestria/workflow.mdthen.maestria/rules.mdfrom the session directory, injected every turn as subordinate guidance (never waives safety, authorization, or host permissions).
Root Project Customization
Place optional .maestria/workflow.md (sequencing) and .maestria/rules.md (rules) at the root of the directory you open the session in. Scope is root-only: no ancestor scan, no nested inheritance, and the root is the host-selected session cwd read live each turn (never a process-global). Files are re-read in full on every before_agent_start turn, so additions, edits, and deletions apply on the next turn with no restart; nothing is persisted to session entries or compaction state, and post-compaction turns pick up the same fresh read. Absent or empty files leave the prompt unchanged. A present-but-unusable file (directory, special file, unreadable, unresolvable, or a symlink escaping the root) surfaces via a UI notification plus a STOP banner in the system prompt telling the model to report the error and wait, instead of running with silently absent config. Diagnostics name only the relative file and the failure kind. Whether subagent turns automatically receive the same injection is unverified, so delegation briefs still carry the active constraints. Limitation: the Pi host swallows before_agent_start handler exceptions, so a broken file cannot cancel the model call itself; the notification plus banner is the loudest supported signal.
Support / Platform Notes
- Subagent dispatch depends on the
@gotgenes/pi-subagentspeer package (supported range^21.5.1); the maestria CLI installs it for you. - The methodology is advisory prompt guidance; the maker/checker split is enforced at the tool level only where Pi supports review-mode tool blocking.
- Pi-specific:
@maestria/ompis a separate package for Oh My Pi.
Documentation and Changelog
- User-facing documentation on the docs site (shared with
@maestria/omp) - Changelog
Contributing
See the contributing guide for repository conventions.
License
MIT