pi-herdr-agents 1.3.1 → 1.4.0
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/AGENTS.md +1 -1
- package/CHANGELOG.md +11 -1
- package/README.md +2 -2
- package/package.json +1 -1
- package/pi-extension/subagents/index.ts +9 -3
package/AGENTS.md
CHANGED
|
@@ -55,7 +55,7 @@ Read [`docs/worktree-subagents.md`](docs/worktree-subagents.md) before changing
|
|
|
55
55
|
## Orchestration guidance
|
|
56
56
|
|
|
57
57
|
- Use ordinary panes for read-only scouts and reviewers.
|
|
58
|
-
-
|
|
58
|
+
- A single or sequential writer can work in the parent checkout; reserve unique worktree branches for independent parallel writing tasks.
|
|
59
59
|
- Keep overlapping or dependent writing tasks sequential unless the dependency is committed and used as the next exact base.
|
|
60
60
|
- Tell worktree workers whether to commit. A good default is: edit, test, commit, report the SHA, and do not push/merge/remove.
|
|
61
61
|
- The parent owns review, integration, publication, and cleanup.
|
package/CHANGELOG.md
CHANGED
|
@@ -7,12 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
9
9
|
|
|
10
|
-
## [v1.
|
|
10
|
+
## [v1.4.0](https://github.com/giuseppecrj/pi-herdr-agents/compare/v1.3.1...v1.4.0)
|
|
11
|
+
|
|
12
|
+
### Commits
|
|
13
|
+
|
|
14
|
+
- test: disable commit signing in git fixtures [`c87e20d`](https://github.com/giuseppecrj/pi-herdr-agents/commit/c87e20dd3d4d7ff058b555759904de36bf881875)
|
|
15
|
+
- feat: state the coordinator contract in always-visible guidelines [`08b1dc6`](https://github.com/giuseppecrj/pi-herdr-agents/commit/08b1dc6ffdfbb4ef03289b0871cc4fbc48883032)
|
|
16
|
+
- fix: stop implying every writing subagent needs a worktree [`114c239`](https://github.com/giuseppecrj/pi-herdr-agents/commit/114c239f71666a8a9c9a2c8705197b70c5f4e7a2)
|
|
17
|
+
- fix: point reviewers of worktree results at the retained worktree path [`4d84718`](https://github.com/giuseppecrj/pi-herdr-agents/commit/4d84718ada823eba830195e865c327155f37a8dd)
|
|
18
|
+
|
|
19
|
+
## [v1.3.1](https://github.com/giuseppecrj/pi-herdr-agents/compare/v1.3.0...v1.3.1) - 2026-08-29
|
|
11
20
|
|
|
12
21
|
### Commits
|
|
13
22
|
|
|
14
23
|
- fix: recommend tier-first model selection over parent inheritance [`c86e002`](https://github.com/giuseppecrj/pi-herdr-agents/commit/c86e0027d857f3b31c8a9925789baf56203e5bba)
|
|
15
24
|
- docs: align remaining spawn examples with tier-first policy [`776f656`](https://github.com/giuseppecrj/pi-herdr-agents/commit/776f656419f8afe8a998705803cb2d1889218b97)
|
|
25
|
+
- chore: release v1.3.1 [`79fce1f`](https://github.com/giuseppecrj/pi-herdr-agents/commit/79fce1fd88717c9d7b15701939bb649bbdefb05b)
|
|
16
26
|
|
|
17
27
|
## [v1.3.0](https://github.com/giuseppecrj/pi-herdr-agents/compare/v1.2.3...v1.3.0) - 2026-08-18
|
|
18
28
|
|
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ subagent({ name: "DB scout", agent: "scout", model: "<provider>/<fast-tier-id>",
|
|
|
76
76
|
// Both return immediately; each result comes back independently.
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
Use ordinary panes for read-only agents.
|
|
79
|
+
Use ordinary panes for read-only agents. A single or sequential writer can work in the parent checkout; give each parallel independent writing agent a unique managed worktree. See [Worktree subagents](docs/worktree-subagents.md).
|
|
80
80
|
|
|
81
81
|
## How it works
|
|
82
82
|
|
|
@@ -397,7 +397,7 @@ prompts, handoffs, and results.
|
|
|
397
397
|
|
|
398
398
|
### Isolated worktree runs
|
|
399
399
|
|
|
400
|
-
Use one worktree per independent writing task;
|
|
400
|
+
Use one worktree per parallel independent writing task; a single or sequential writer can work in the parent checkout, and read-only agents use ordinary panes. `cwd` selects the source Git repository, `branch` must be unique, and `base` is resolved to an exact commit before creation. If `base` is omitted, the source checkout's committed `HEAD` is used. Parent-checkout changes that have not been committed are not copied.
|
|
401
401
|
|
|
402
402
|
A launch with `worktree` and an effective bundled `scout`, `reviewer`, or `adversarial-reviewer` returns a non-blocking warning. Scouts and reviewers normally need an ordinary pane; the adversarial reviewer is a coordinator that uses an ordinary pane for its child reviewers. To inspect or review an existing worker result, start an ordinary child in that retained worktree path. Project or global role overrides do not receive these bundled-role warnings.
|
|
403
403
|
|
package/package.json
CHANGED
|
@@ -169,11 +169,13 @@ function getFirstText(
|
|
|
169
169
|
|
|
170
170
|
function buildSubagentRoutingGuidelines(catalog?: string): string[] {
|
|
171
171
|
return [
|
|
172
|
+
"Act as the coordinator: decompose the work, give each child one bounded outcome — goal, allowed files, verification, and whether to commit — and keep dependent writes sequential; parallelize only independent tasks.",
|
|
173
|
+
"Children are leaves by default: they do not push, merge, deploy, or orchestrate further agents unless their task explicitly authorizes it. The parent inspects each result or worktree handoff (diff against the reported base, run relevant tests) and owns integration, verification, and cleanup.",
|
|
172
174
|
"For orchestrated subagent work, explicitly set both model and thinking for every child: first choose a fast, mid, or frontier provider-family tier matched to task complexity, then set thinking within that model's supported range.",
|
|
173
175
|
"Use fast tier for bounded mechanical work and recon, mid tier for ordinary implementation or review, and frontier tier for architecture, security, hard diagnosis, or adversarial review. Use minimal/low thinking for mechanical work, medium for ordinary work, and high+ for hard work.",
|
|
174
176
|
"Review agents must use a different provider/family than the model that produced the work; a stronger model in the same family is quality escalation, not independent review. Use an exact authenticated provider/model-id from the live catalog below, never an alias or fuzzy name.",
|
|
175
177
|
"Omitting model and thinking still inherits the parent runtime, but this is a discouraged fallback for orchestrated children.",
|
|
176
|
-
"Before launching a new group of subagents, choose a short task slug and name each new child <task>-<role>[-n], for example login-api or login-test2. Use only plan, research, ui, api, build, test, review, browser, security, perf, or merge as roles; leave existing names unchanged. After the final launch, print name | agent kind | role | model | worktree, then use each name in prompts, handoffs, and results.",
|
|
178
|
+
"Before launching a new group of subagents, choose a short task slug and name each new child <task>-<role>[-n], for example login-api or login-test2. Use only plan, research, ui, api, build, test, review, browser, security, perf, or merge as roles; leave existing names unchanged. After the final launch, print name | agent kind | role | model | worktree (if any), then use each name in prompts, handoffs, and results.",
|
|
177
179
|
catalog ??
|
|
178
180
|
"Authenticated subagent model catalog becomes available after session start.",
|
|
179
181
|
];
|
|
@@ -3055,8 +3057,10 @@ export default function subagentsExtension(pi: ExtensionAPI) {
|
|
|
3055
3057
|
label: "Subagent",
|
|
3056
3058
|
description:
|
|
3057
3059
|
"Spawn a sub-agent in a dedicated terminal herdr pane, or in an isolated Herdr-managed Git worktree when worktree is provided. " +
|
|
3058
|
-
"Use
|
|
3060
|
+
"Use ordinary panes for read-only tasks; a single or sequential writer can work in the parent checkout without a worktree. " +
|
|
3061
|
+
"Reserve unique worktree branches for parallel independent writers starting from committed state — the worktree base is committed HEAD, so uncommitted parent changes are not copied. " +
|
|
3059
3062
|
"Worktree runs retain their workspace after completion for parent review; they are not pushed, merged, or removed automatically. " +
|
|
3063
|
+
"To inspect a retained worktree result, spawn read-only agents in an ordinary pane with cwd set to that worktree path — do not create a new worktree for them. " +
|
|
3060
3064
|
"This is a fire-and-forget async tool: the call returns immediately with only an acknowledgement. " +
|
|
3061
3065
|
"When the sub-agent finishes, the harness AUTOMATICALLY delivers its result as a steer message that wakes you up and starts a new turn — you do not need to do anything to receive it. " +
|
|
3062
3066
|
"DO NOT write polling loops, sleep/wait commands, tail/watch scripts, or repeatedly read session/log files to detect completion. DO NOT call subagents_list or any other tool to 'check' status. All of that is wasted work — the harness handles delivery for you. " +
|
|
@@ -3064,8 +3068,10 @@ export default function subagentsExtension(pi: ExtensionAPI) {
|
|
|
3064
3068
|
"After spawning, either end your turn immediately, or work on other independent tasks (including spawning more subagents in parallel). The harness will wake you with the result when it is ready.",
|
|
3065
3069
|
promptSnippet:
|
|
3066
3070
|
"Spawn a sub-agent in a dedicated terminal herdr pane, or in an isolated Herdr-managed Git worktree when worktree is provided. " +
|
|
3067
|
-
"Use
|
|
3071
|
+
"Use ordinary panes for read-only tasks; a single or sequential writer can work in the parent checkout without a worktree. " +
|
|
3072
|
+
"Reserve unique worktree branches for parallel independent writers starting from committed state — the worktree base is committed HEAD, so uncommitted parent changes are not copied. " +
|
|
3068
3073
|
"Worktree runs retain their workspace after completion for parent review; they are not pushed, merged, or removed automatically. " +
|
|
3074
|
+
"To inspect a retained worktree result, spawn read-only agents in an ordinary pane with cwd set to that worktree path — do not create a new worktree for them. " +
|
|
3069
3075
|
"This is a fire-and-forget async tool: the call returns immediately with only an acknowledgement. " +
|
|
3070
3076
|
"When the sub-agent finishes, the harness AUTOMATICALLY delivers its result as a steer message that wakes you up and starts a new turn — you do not need to do anything to receive it. " +
|
|
3071
3077
|
"DO NOT write polling loops, sleep/wait commands, tail/watch scripts, or repeatedly read session/log files to detect completion. DO NOT call subagents_list or any other tool to 'check' status. All of that is wasted work — the harness handles delivery for you. " +
|