@maestria/pi 0.6.8 → 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,77 +1,41 @@
|
|
|
1
1
|
# @maestria/pi
|
|
2
2
|
|
|
3
|
-
A [Pi coding agent](https://pi.software/) extension that brings Maestria's structured agent orchestration to Pi.
|
|
3
|
+
A [Pi coding agent](https://pi.software/) extension that brings Maestria's structured agent orchestration - specialist delegation, workflow modes, and maker/checker review - to Pi.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- **4 Methodology Skills** - Orchestrator dispatcher, global agent rules, handoff contract, and iteration limits - automatically injected into every session via Pi's standard skill system (`SKILL.md` files registered in `pi.skills`)
|
|
8
|
-
- **3 Workflow Modes** - `fein` (full pipeline), `sonar` (research only), `blitz` (fast implementation)
|
|
9
|
-
- **Skill-Based Prompt Injection** - Behavioral instructions injected via Pi's native skill mechanism, not custom event hooks. Skills are auto-discovered from the package manifest and loaded into the system prompt by Pi's resource loader - the standard pattern used by all major Pi extensions.
|
|
10
|
-
- **Compaction Preservation** - Session state survives compaction with structured summaries
|
|
11
|
-
- **Subagent Dispatch** - Delegation via `@gotgenes/pi-subagents` with 7-field handoff validation
|
|
12
|
-
- **Maker/Checker Split** - Review mode blocks destructive tools. Dangerous bash patterns flagged.
|
|
5
|
+
> This package is part of Maestria. See [VISION.md](https://github.com/agustinusnathaniel/maestria/blob/main/VISION.md) for the project vision, motivation, and scope. The agents and skills are **generated** from the canonical directives in `packages/core/agent-directives/` by the [sync pipeline](https://github.com/agustinusnathaniel/maestria/blob/main/CONTRIBUTING.md#3-the-sync-pipeline-core-concept).
|
|
13
6
|
|
|
14
7
|
## Installation
|
|
15
8
|
|
|
16
|
-
### Recommended: via maestria CLI
|
|
17
|
-
|
|
18
9
|
```bash
|
|
10
|
+
# Recommended: via the maestria CLI (installs the peer dependency too)
|
|
19
11
|
pnpx maestria@latest install pi
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
The CLI automatically installs both `@gotgenes/pi-subagents` (required peer dependency for subagent dispatch) and `@maestria/pi` in the correct order.
|
|
23
|
-
|
|
24
|
-
### Alternative: manual Pi CLI
|
|
25
12
|
|
|
26
|
-
|
|
27
|
-
# Install required peer dependency first
|
|
13
|
+
# Manual: install the required peer dependency first, then the extension
|
|
28
14
|
pi install npm:@gotgenes/pi-subagents
|
|
29
|
-
|
|
30
|
-
# Install the extension
|
|
31
15
|
pi install npm:@maestria/pi
|
|
32
16
|
```
|
|
33
17
|
|
|
34
|
-
|
|
18
|
+
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.
|
|
35
19
|
|
|
36
|
-
|
|
37
|
-
# Via maestria CLI (removes @maestria/pi)
|
|
38
|
-
pnpx maestria@latest uninstall pi
|
|
39
|
-
```
|
|
20
|
+
## What It Provides
|
|
40
21
|
|
|
41
|
-
|
|
22
|
+
- **4 methodology skills** - orchestrator dispatcher, global agent rules, handoff contract, and iteration limits, injected into every session via Pi's standard skill system.
|
|
23
|
+
- **3 workflow modes** - `/fein` (full pipeline), `/sonar` (research only), `/blitz` (fast implementation).
|
|
24
|
+
- **Compaction preservation** - session state survives compaction with structured summaries.
|
|
25
|
+
- **Subagent dispatch** - delegation via `@gotgenes/pi-subagents` with 7-field handoff validation.
|
|
26
|
+
- **Maker/checker split** - `/review` mode blocks destructive tools where Pi supports it.
|
|
42
27
|
|
|
43
|
-
|
|
44
|
-
pi uninstall @gotgenes/pi-subagents
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Commands
|
|
48
|
-
|
|
49
|
-
| Command | Description |
|
|
50
|
-
| --- | --- |
|
|
51
|
-
| `/fein <goal>` | Set workflow mode to full pipeline (recon → design → impl → review) |
|
|
52
|
-
| `/sonar <goal>` | Set workflow mode to research only (recon → design → stop) |
|
|
53
|
-
| `/blitz <goal>` | Set workflow mode to fast implementation (builder directly) |
|
|
54
|
-
| `/review <target>` | Enter review mode - blocks destructive tools, sets read-only toolset |
|
|
55
|
-
| `/restore-model` | Restore the original model and tools active before review mode |
|
|
56
|
-
| `/handoff <goal>` | Generate a structured handoff prompt for a new task context |
|
|
57
|
-
| `/review-model <model-id>` | Set which model to use when entering review mode |
|
|
58
|
-
| `/maestria-status` | Show current maestria session state including handoff history |
|
|
28
|
+
## Support / Platform Notes
|
|
59
29
|
|
|
60
|
-
|
|
30
|
+
- Subagent dispatch depends on the `@gotgenes/pi-subagents` peer package; the maestria CLI installs it for you.
|
|
31
|
+
- The methodology is advisory prompt guidance; the maker/checker split is enforced at the tool level only where Pi supports review-mode tool blocking.
|
|
32
|
+
- Pi-specific: `@maestria/omp` is a separate package for Oh My Pi.
|
|
33
|
+
- The agents and skills are projections of the canonical core directives. To change behavior, edit `packages/core/agent-directives/` and re-run the sync pipeline - never edit the generated files under `agents/` or `skills/` directly.
|
|
61
34
|
|
|
62
|
-
|
|
63
|
-
# Install dependencies
|
|
64
|
-
pnpm install
|
|
65
|
-
|
|
66
|
-
# Build
|
|
67
|
-
vp pack
|
|
35
|
+
## Documentation and Changelog
|
|
68
36
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
# Format, lint, type-check
|
|
73
|
-
vp check
|
|
74
|
-
```
|
|
37
|
+
- [User-facing documentation](https://maestria.sznm.dev/pi-omp/) on the docs site (shared with `@maestria/omp`)
|
|
38
|
+
- [Changelog](https://github.com/agustinusnathaniel/maestria/blob/main/packages/pi/CHANGELOG.md)
|
|
75
39
|
|
|
76
40
|
## License
|
|
77
41
|
|
package/package.json
CHANGED
|
@@ -41,6 +41,14 @@ This is the cross-platform behavior contract. It defines outcomes, evidence, saf
|
|
|
41
41
|
- Adjacent findings do not expand the current task automatically. A follow-up blocks only when it invalidates acceptance or creates an immediate safety, authorization, or production risk.
|
|
42
42
|
- Security, authentication, authorization, and permission findings are mandatory stops. Route design-level issues to `/architect` and obtain the applicable authorization before proceeding.
|
|
43
43
|
|
|
44
|
+
## Session Continuation and Delivery
|
|
45
|
+
|
|
46
|
+
- **!!! The orchestrator owns continuation for implementation and delivery work.** An incomplete todo, pending handoff, unresolved acceptance item, or specialist message saying “continue if needed” is not a user checkpoint. Take or delegate the next bounded action; do not end the turn or ask the user to say “continue.” Research-only, planning-only, explicitly read-only, and host-blocked work terminates at its requested artifact or exact blocker.
|
|
47
|
+
- A specialist's read-only or no-edit result ends that delegation, not the parent work unit. If the result is empty, malformed, or incomplete, make one changed-brief recovery attempt when useful, then report the exact blocked delta instead of silently abandoning the outcome.
|
|
48
|
+
- Freeze the outcome, acceptance criteria, non-goals, and review budget at the start of the work unit. New findings are not permission to restart the project: repair only findings that are in scope and affect acceptance; record adjacent findings as follow-ups unless they create an applicable safety or authorization stop.
|
|
49
|
+
- Do not reset a review or repair budget by splitting the same outcome into more delegations, changing specialist names, or relabelling the finding. A new scope requires a new outcome and acceptance criteria.
|
|
50
|
+
- For implementation work, continue through validation and the project's normal delivery artifact. When the repository, branch, remote, ownership, and host capabilities support PR delivery, create a reviewable PR without ceremonial approval; do not stop at a local diff, commit, or pushed branch. Research-only, planning-only, explicitly read-only, and host-blocked work terminates at its requested artifact or exact blocker. Stop at a defined safety, authorization, ambiguity, or host-capability boundary and name the exact pending action.
|
|
51
|
+
|
|
44
52
|
## Delegation and Context
|
|
45
53
|
|
|
46
54
|
Supported specialists are `adventurer`, `architect`, `builder`, `diagnose`, `planner`, `reviewer`, and `writer`.
|
|
@@ -15,8 +15,14 @@ description: >-
|
|
|
15
15
|
- Define a verifiable termination condition before looping.
|
|
16
16
|
- Set a practical repair bound, normally three rounds. Extend only when the
|
|
17
17
|
latest attempt shows observable progress; never silently reset the bound.
|
|
18
|
+
- The bound applies to the same user outcome, even when work is split across
|
|
19
|
+
more delegations or specialist types. Start a new bound only after recording
|
|
20
|
+
a genuinely new outcome with new acceptance criteria.
|
|
18
21
|
- Repeated causes, repeated findings, restored diffs, or no new evidence mean
|
|
19
22
|
non-progress. Change strategy or escalate rather than retrying unchanged.
|
|
23
|
+
- Do not broaden the outcome merely because review found adjacent work. Keep
|
|
24
|
+
the accepted slice deliverable and record adjacent findings as follow-ups
|
|
25
|
+
unless they invalidate acceptance or trigger a safety/authorization stop.
|
|
20
26
|
- Stop on safety ambiguity, authorization boundaries, or unresolved review
|
|
21
27
|
blockers. Report: `Tried X, Y, Z. Blocked by [cause]. Need [input] to
|
|
22
28
|
proceed.`
|
|
@@ -100,7 +100,13 @@ Modes are case-insensitive and per-turn unless the platform documents another li
|
|
|
100
100
|
|
|
101
101
|
## Commit and Session Flow
|
|
102
102
|
|
|
103
|
-
For
|
|
103
|
+
For implementation work, own the delivery path: `inspect -> plan -> implement -> validate -> review -> repair -> commit -> push -> PR`.
|
|
104
|
+
|
|
105
|
+
When the repository, branch, remote, ownership, and host capabilities support PR delivery, complete it without ceremonial approval. Do not stop at a local diff, commit, pushed branch, or `PR pending`. Merge, release, and production actions remain separate.
|
|
106
|
+
|
|
107
|
+
The parent session owns continuation until the selected implementation outcome reaches its terminal artifact. Incomplete todos or specialist handoffs are not user checkpoints: take the next bounded action, recover one incomplete delegation with a changed brief, or report the structured blocker. Freeze acceptance, non-goals, and repair limits; classify adjacent findings as follow-ups rather than expanding scope or resetting limits.
|
|
108
|
+
|
|
109
|
+
Research-only, planning-only, explicitly read-only, `sonar`, and host-blocked routes terminate at their requested artifact or exact blocker. Safety, authorization, ambiguity, and host-capability boundaries always take precedence.
|
|
104
110
|
|
|
105
111
|
An explicitly authorized checkpoint may preserve unreviewed work but never authorizes shipping. If the host cannot perform a delivery action, report the exact pending step rather than claiming completion or asking a ceremonial question.
|
|
106
112
|
|