gentle-pi 0.10.2 → 0.10.3
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 +9 -9
- package/assets/orchestrator.md +10 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -115,19 +115,19 @@ Typical flow:
|
|
|
115
115
|
| Unknown codebase area or context-heavy investigation | Focused subagent delegation. |
|
|
116
116
|
| Large, ambiguous, architectural, product-facing, or high-review-risk change | SDD/OpenSpec flow. |
|
|
117
117
|
|
|
118
|
-
The goal is not ceremony. The goal is to avoid accidental chaos. Once a task stops being small, delegation is
|
|
118
|
+
The goal is not ceremony. The goal is to avoid accidental chaos. Once a task stops being small, delegation is mandatory.
|
|
119
119
|
|
|
120
120
|
### Delegation triggers
|
|
121
121
|
|
|
122
|
-
`gentle-pi` keeps the parent session thin and
|
|
122
|
+
`gentle-pi` keeps the parent session thin and delegates at the narrowest useful point. When the Pi Subagents extension is installed, the preferred runtime is the `subagent_*` tool family because it runs the user's configured project/global subagent definitions and preserves history/background behavior. If those tools are unavailable, the parent should fall back to Pi's native `Agent` tool or another available delegation mechanism. The requirement is delegation; the runtime is capability-dependent.
|
|
123
123
|
|
|
124
|
-
| Trigger |
|
|
125
|
-
| --------------------------------------------------------------------------------------------------------------------------- |
|
|
126
|
-
| Reading 4+ files to understand a flow | Launch `scout
|
|
127
|
-
| Touching 2+ non-trivial code files |
|
|
128
|
-
| Commit, push, or PR after code changes | Run a fresh-context `reviewer` unless the diff is trivial docs/text.
|
|
129
|
-
| Wrong cwd, worktree/git accident, merge recovery, confusing test/env issue | Stop and run a fresh audit reviewer before continuing.
|
|
130
|
-
| Long monolithic session with accumulating complexity, roughly 20 tool calls, 5 exploratory reads, or 2 non-mechanical edits | Pause and delegate or explain
|
|
124
|
+
| Trigger | Required behavior |
|
|
125
|
+
| --------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
|
126
|
+
| Reading 4+ files to understand a flow | Launch `scout`, `context-builder`, or the closest read-only mapping subagent. |
|
|
127
|
+
| Touching 2+ non-trivial code files | Delegate one writer; do not continue inline unless delegation is unavailable. |
|
|
128
|
+
| Commit, push, or PR after code changes | Run a fresh-context `reviewer` unless the diff is trivial docs/text. |
|
|
129
|
+
| Wrong cwd, worktree/git accident, merge recovery, confusing test/env issue | Stop and run a fresh audit reviewer before continuing. |
|
|
130
|
+
| Long monolithic session with accumulating complexity, roughly 20 tool calls, 5 exploratory reads, or 2 non-mechanical edits | Pause and delegate the remaining work, or stop and explain the exact blocker. |
|
|
131
131
|
|
|
132
132
|
The intended balanced loop for a bounded bugfix is:
|
|
133
133
|
|
package/assets/orchestrator.md
CHANGED
|
@@ -82,7 +82,9 @@ Examples:
|
|
|
82
82
|
- run tests/builds and summarize results;
|
|
83
83
|
- fresh-context review.
|
|
84
84
|
|
|
85
|
-
Use `
|
|
85
|
+
Use the configured subagent runtime when available. Prefer the `subagent_*` tools (`subagent_run`, status/result helpers) when the Pi Subagents extension is installed, because they run the user's configured project/global subagent definitions and preserve history/background behavior. Prefer `subagent_run` with `mode: "background"` for long independent exploration, implementation, tests, or review, and `mode: "task"` when the parent needs the result before continuing.
|
|
86
|
+
|
|
87
|
+
If `subagent_*` tools are unavailable, fall back to Pi's native `Agent` tool or another available delegation mechanism. The delegation trigger remains mandatory; the fallback changes the runtime, not the requirement to delegate. If no delegation mechanism is available, stop the complex work and explain the blocker instead of silently continuing inline.
|
|
86
88
|
|
|
87
89
|
### Pi Subagent Model Routing
|
|
88
90
|
|
|
@@ -133,14 +135,14 @@ Core question: does this inflate parent context without need?
|
|
|
133
135
|
|
|
134
136
|
### Mandatory Delegation Triggers
|
|
135
137
|
|
|
136
|
-
These are parent-orchestrator stop rules. Once any trigger fires, the parent
|
|
138
|
+
These are parent-orchestrator stop rules. Once any trigger fires, the parent MUST delegate through the best available subagent runtime. Prefer `subagent_run` when present; otherwise use Pi's native `Agent` or another available delegation mechanism. Do not replace a required delegation with inline execution. Do not inject these as child-agent permission to spawn subagents; children receive concrete role work and must not orchestrate.
|
|
137
139
|
|
|
138
|
-
1. **4-file rule**: if understanding requires reading 4+ files, launch `scout
|
|
139
|
-
2. **Multi-file write rule**: if implementation will touch 2+ non-trivial files,
|
|
140
|
-
3. **PR rule**: before commit/push/PR for code changes, run a fresh-context
|
|
141
|
-
4. **Incident rule**: after wrong `cwd`, accidental repo/worktree mutation, failed merge recovery, confusing test command, or environment workaround, stop and run a fresh audit reviewer.
|
|
142
|
-
5. **Long-session rule**: if accumulating work is no longer clearly local — roughly 20 tool calls, 5 exploratory file reads, or 2 non-mechanical edits without delegation — pause and
|
|
143
|
-
6. **Fresh review rule**: use
|
|
140
|
+
1. **4-file rule**: if understanding requires reading 4+ files, launch `scout`, `context-builder`, or the closest read-only mapping subagent with fresh context and a narrow mapping task. State the fallback agent/runtime if the preferred one is unavailable.
|
|
141
|
+
2. **Multi-file write rule**: if implementation will touch 2+ non-trivial files, delegate one writer; inline writing is allowed only for trivial/mechanical edits or when the parent explicitly records why no delegation runtime is available. A fresh review still follows delegated implementation.
|
|
142
|
+
3. **PR rule**: before commit/push/PR for code changes, run a fresh-context reviewer unless the diff is trivial docs/text-only.
|
|
143
|
+
4. **Incident rule**: after wrong `cwd`, accidental repo/worktree mutation, failed merge recovery, confusing test command, or environment workaround, stop and run a fresh audit reviewer before continuing.
|
|
144
|
+
5. **Long-session rule**: if accumulating work is no longer clearly local — roughly 20 tool calls, 5 exploratory file reads, or 2 non-mechanical edits without delegation — pause and delegate the remaining work instead of silently continuing monolithically.
|
|
145
|
+
6. **Fresh review rule**: use fresh-context reviewer/audit subagents for adversarial review of diffs, conflicts, PR readiness, and incidents. Use continuity-oriented workers only for implementation work that needs inherited state.
|
|
144
146
|
|
|
145
147
|
### Cost and Context Balance
|
|
146
148
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gentle-pi",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"description": "Turn Pi into el Gentleman: a senior-architect development harness with SDD/OpenSpec, subagents, strict TDD evidence, review guardrails, and skill discovery.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|