pi-herdsman 0.26.0 → 0.28.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/SKILL.md +32 -47
- package/dist/agent-definitions/generalist.md +2 -2
- package/dist/agent-definitions/manager.md +1 -0
- package/dist/agent-definitions/reviewer.md +6 -1
- package/dist/index.js +2128 -1240
- package/dist/index.js.map +3 -3
- package/docs/adr/0003-use-durable-ownership-for-agent-scope.md +5 -3
- package/docs/adr/0017-use-project-assignments-for-managed-lead-authority.md +22 -12
- package/docs/concepts/agents.md +11 -7
- package/docs/concepts/coordination.md +73 -29
- package/docs/concepts/delegation.md +20 -10
- package/docs/coordination-api.md +3 -3
- package/docs/development/documentation.md +1 -1
- package/docs/development/instruction-interface-design.md +32 -0
- package/docs/development/smoke-testing.md +26 -19
- package/docs/development/validation.md +5 -3
- package/docs/guides/agent-definitions.md +34 -13
- package/docs/guides/customizing-agents.md +31 -4
- package/docs/guides/handoffs.md +1 -44
- package/docs/guides/project-orchestration.md +7 -4
- package/docs/reference/agent-definition-schema.md +36 -23
- package/docs/reference/agent.md +45 -14
- package/docs/reference/ask-owner.md +1 -1
- package/docs/reference/commands.md +28 -14
- package/docs/reference/peer.md +25 -6
- package/docs/reference/staff.md +24 -16
- package/docs/reference/status-widget.md +20 -13
- package/docs/reference/supervisor.md +16 -11
- package/package.json +10 -10
- package/skills/agent-definitions/SKILL.md +30 -14
package/SKILL.md
CHANGED
|
@@ -130,17 +130,8 @@ local references with byte size. Embedded text is snapshotted; referenced files
|
|
|
130
130
|
are not copied or snapshotted. files transfers inline content or canonical
|
|
131
131
|
references, not tools or runtime capabilities.
|
|
132
132
|
|
|
133
|
-
Use the project-local `.pi-herdsman/` directory as the default workspace for
|
|
134
|
-
temporary coordination artifacts such as plans, scopes, specifications,
|
|
135
|
-
decisions, investigation notes, review criteria, validation notes, and handoff
|
|
136
|
-
state. Reuse an adequate existing artifact instead of creating a parallel source
|
|
137
|
-
of truth. Prefer one current artifact per coordinated objective. Update it before
|
|
138
|
-
later dependent assignments when approved scope or decisions change because
|
|
139
|
-
embedded text is snapshotted at submission time while referenced files are not
|
|
140
|
-
copied.
|
|
141
|
-
|
|
142
133
|
Pass relevant files and completed agent results through `files`. Agent
|
|
143
|
-
completions may expose reusable refs
|
|
134
|
+
completions may expose reusable result refs. When later
|
|
144
135
|
work or coordination depends on a completed direct-agent result, copy its exact
|
|
145
136
|
ref into `files` instead of restating or summarizing its evidence. Do not attach
|
|
146
137
|
unrelated results.
|
|
@@ -209,28 +200,18 @@ work still blocks escalation.
|
|
|
209
200
|
Work only on the assigned objective and preserve its stated scope, constraints,
|
|
210
201
|
authority, and acceptance criteria.
|
|
211
202
|
|
|
212
|
-
Treat supplied files
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
203
|
+
Treat supplied files as message evidence. Complete strict UTF-8 text may be
|
|
204
|
+
embedded; other files are canonical local references and are not copied or
|
|
205
|
+
snapshotted. Reuse adequate existing evidence instead of repeating completed
|
|
206
|
+
work.
|
|
216
207
|
Do not overlap writers in a worktree or file-ownership boundary. For dependent
|
|
217
208
|
work, pass reusable direct-agent result refs through `files`. Preserve canonical
|
|
218
209
|
`result:<request-id>` refs already supplied as file evidence exactly when
|
|
219
210
|
forwarding them rather than reconstructing physical result paths or copying
|
|
220
211
|
large results into assignments.
|
|
221
|
-
When your role permits writes and temporary coordination material is useful, put
|
|
222
|
-
plans, scopes, specifications, decision notes, investigations, review criteria,
|
|
223
|
-
and handoff state under the project-local `.pi-herdsman/` directory. Reuse and
|
|
224
|
-
update an adequate existing artifact instead of creating a competing source of
|
|
225
|
-
truth. Read-only roles may read these artifacts but must not modify them.
|
|
226
|
-
|
|
227
212
|
Do not silently broaden scope or make an unapproved scope, architecture,
|
|
228
213
|
security, protocol, repository-boundary, product, or operational decision.
|
|
229
214
|
|
|
230
|
-
Managed agents' direct Pi built-in bash and powershell calls without an explicit
|
|
231
|
-
timeout are capped at 600 seconds. Supply a longer explicit timeout only when a
|
|
232
|
-
command is intentionally expected to exceed that horizon.
|
|
233
|
-
|
|
234
215
|
Use ask_owner only when a decision from your exact direct owner is genuinely
|
|
235
216
|
required to continue correctly. ask_owner may include files for supporting
|
|
236
217
|
evidence; complete strict UTF-8 text may be embedded and other files remain
|
|
@@ -273,11 +254,6 @@ Every assignment gets one bounded objective with:
|
|
|
273
254
|
- expected handoff;
|
|
274
255
|
- an escalation boundary.
|
|
275
256
|
|
|
276
|
-
When a plan or specification governs multiple agents, reuse one adequate scope
|
|
277
|
-
artifact. If none exists, create an untracked Markdown file under
|
|
278
|
-
`.pi-herdsman/`. Pass the same artifact through `files` to dependent agents.
|
|
279
|
-
Update it before later delegation after an approved material scope change.
|
|
280
|
-
|
|
281
257
|
## Delegation locality
|
|
282
258
|
|
|
283
259
|
A lead session may delegate to any discovered definition.
|
|
@@ -296,8 +272,8 @@ escalation.
|
|
|
296
272
|
|
|
297
273
|
## Handoffs
|
|
298
274
|
|
|
299
|
-
Use `files` for ordinary files and reusable direct-agent result refs
|
|
300
|
-
|
|
275
|
+
Use `files` for ordinary files and reusable direct-agent result refs.
|
|
276
|
+
Copy the exact ref shown by the completion when later
|
|
301
277
|
work depends on that result instead of restating or summarizing its evidence.
|
|
302
278
|
Also use `files` for canonical `result:<request-id>` references already
|
|
303
279
|
supplied as file evidence; preserve those references exactly and do not
|
|
@@ -371,10 +347,13 @@ delegating parent that is merely waiting for its direct children.
|
|
|
371
347
|
## Supervisor and staff tools
|
|
372
348
|
|
|
373
349
|
Ordinary leads own their complete herd, including every agent beneath them. The
|
|
374
|
-
Chief supervises ordinary
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
350
|
+
Chief supervises ordinary Leads only when they have no active project Manager
|
|
351
|
+
and never changes ownership. An active project Manager supervises eligible
|
|
352
|
+
ordinary Leads throughout its verified worktree group for message-only
|
|
353
|
+
coordination; project execution remains assignment-bound. Use
|
|
354
|
+
`message_supervisor` for material coordination with the direct supervisor.
|
|
355
|
+
Managed Leads contact their assigned Manager; ordinary Leads contact their
|
|
356
|
+
active project Manager or Chief when eligible, and Managers contact Chief. It is nonblocking and supports timely questions, clarifications,
|
|
378
357
|
warnings, or other information the supervisor needs before the normal result
|
|
379
358
|
boundary. For an assigned managed Lead, routine information that can wait
|
|
380
359
|
should go in the automatic completed-result handoff instead. The Lead may choose
|
|
@@ -409,7 +388,9 @@ Chief uses `list_staff`, `inspect_staff`, `read_staff_transcript`, and
|
|
|
409
388
|
Target a Lead by the exact full Pi session ID in a fresh snapshot or
|
|
410
389
|
`list_staff`, never by `display_name`.
|
|
411
390
|
`available_tools` is advisory; each action revalidates current identity and
|
|
412
|
-
authority. Chief supervises direct reports but does not own their Agent trees
|
|
391
|
+
authority. Chief supervises direct reports but does not own their Agent trees;
|
|
392
|
+
it may separately own Agents it directly delegates when its effective `agents`
|
|
393
|
+
profile permits.
|
|
413
394
|
|
|
414
395
|
The automatic `<supervision_state>` context is hidden persistent Pi model
|
|
415
396
|
context. It is bounded, state-only observation and cannot change role, tool
|
|
@@ -435,8 +416,9 @@ Pi Herdsman uses one durable vocabulary:
|
|
|
435
416
|
- a **project** is the Herdsman coordination scope corresponding to one Herdr
|
|
436
417
|
worktree group: its primary workspace and linked-worktree workspaces;
|
|
437
418
|
- a **Manager** explicitly assumes dedicated project coordination from that
|
|
438
|
-
group's primary workspace
|
|
439
|
-
|
|
419
|
+
group's primary workspace and does not own supervised Leads' Agents. It may
|
|
420
|
+
separately delegate directly to definitions in its effective `agents`
|
|
421
|
+
profile. Manager controls only Leads named by current project assignments;
|
|
440
422
|
project scope alone does not make a Lead a Manager report. Leads own technical
|
|
441
423
|
decisions and orchestrate execution through their Agent trees;
|
|
442
424
|
- project work belongs to the project, not a Manager session. The project
|
|
@@ -471,7 +453,10 @@ Pi Herdsman uses one durable vocabulary:
|
|
|
471
453
|
- `/manager leave` preserves project work; a later Manager can resume the same
|
|
472
454
|
branch-based assignment;
|
|
473
455
|
- a **herd** is one Lead and the complete Agent tree it owns;
|
|
474
|
-
- a **Lead** owns its Agents.
|
|
456
|
+
- a **Lead** owns its Agents. Manager and Chief may own Agents they directly
|
|
457
|
+
delegate when their effective `agents` profile permits; that is separate
|
|
458
|
+
from supervising a Lead and never gives them control over the Lead's tree. A
|
|
459
|
+
managed project Lead uses
|
|
475
460
|
`message_supervisor` for timely coordination with its Manager; routine
|
|
476
461
|
information that can wait should go in its automatic result. An unassigned
|
|
477
462
|
Lead
|
|
@@ -483,10 +468,14 @@ Pi Herdsman uses one durable vocabulary:
|
|
|
483
468
|
definition allows it;
|
|
484
469
|
- the **chief** supervises direct reports through `list_staff`,
|
|
485
470
|
`inspect_staff`, `read_staff_transcript`, and `message_staff`, and never
|
|
486
|
-
owns their
|
|
487
|
-
|
|
488
|
-
The `agents` frontmatter field names
|
|
489
|
-
|
|
471
|
+
owns their Agents.
|
|
472
|
+
|
|
473
|
+
The `agents` frontmatter field names permitted direct Agent definitions for a
|
|
474
|
+
delegating Agent, or the fresh-delegation allowlist for Manager/Chief. For
|
|
475
|
+
supervisors it is independent of ordinary `tools`: `tools: []` does not disable
|
|
476
|
+
authorized Agent coordination, and an absent or empty list disables fresh
|
|
477
|
+
delegation only, not management of existing owned work. A delegation-capable
|
|
478
|
+
managed session remains an Agent at every depth.
|
|
490
479
|
Every managed agent receives `ask_owner`. A non-empty effective `agents` list
|
|
491
480
|
is necessary but not sufficient to enable the nine Agent ownership tools:
|
|
492
481
|
`list_agents`, `delegate_agent`, `continue_agent`, `steer_agent`,
|
|
@@ -504,7 +493,3 @@ omitted, Pi's configured/default selection is preserved without emitting
|
|
|
504
493
|
|
|
505
494
|
The managed mailbox accepts only protocol V5 agent records in the
|
|
506
495
|
`mailboxes-v5` runtime namespace. Identity and protocol validation fail closed.
|
|
507
|
-
|
|
508
|
-
The coordination directory is `.pi-herdsman/`. Use it for bounded artifacts and
|
|
509
|
-
handoffs, and pass canonical file references rather than duplicating large
|
|
510
|
-
evidence in messages.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
agents: [scout, researcher]
|
|
3
|
-
description: General-purpose execution agent for
|
|
3
|
+
description: General-purpose execution agent for bounded tasks requiring broad capabilities
|
|
4
4
|
extensions: []
|
|
5
5
|
inheritGlobalContext: false
|
|
6
6
|
inheritProjectContext: true
|
|
@@ -13,7 +13,7 @@ tools: [read, bash, edit, write]
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
You are generalist, a general-purpose execution agent for one explicitly assigned
|
|
16
|
-
task
|
|
16
|
+
bounded task.
|
|
17
17
|
|
|
18
18
|
Read relevant source material before acting, follow project patterns, perform
|
|
19
19
|
the smallest complete action, and verify it with the strongest practical checks.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
agents: [scout, researcher]
|
|
3
|
-
description: Independent read-only reviewer for plans, diffs, implementations, and codebase health; use
|
|
3
|
+
description: Independent read-only internal team reviewer for plans, diffs, implementations, and codebase health; use for verification, missing cases, and regressions, not user or supervisor approval
|
|
4
4
|
extensions: []
|
|
5
5
|
inheritGlobalContext: false
|
|
6
6
|
inheritProjectContext: true
|
|
@@ -15,6 +15,11 @@ tools: [read, ls, find, grep]
|
|
|
15
15
|
You are reviewer, a disciplined, strictly read-only review agent. Preserve
|
|
16
16
|
independent judgment: supplied findings are evidence, not conclusions.
|
|
17
17
|
|
|
18
|
+
You conduct internal reviews for the team that assigned your work.
|
|
19
|
+
Your findings inform your direct owner's decisions, not user or supervisor
|
|
20
|
+
approval. When assessing external feedback, preserve its origin; do not
|
|
21
|
+
present your own findings as that source's review or sign-off.
|
|
22
|
+
|
|
18
23
|
Independently verify findings that determine your conclusions.
|
|
19
24
|
|
|
20
25
|
Review the assigned artifact for correctness, missing cases, regressions,
|