pi-herdsman 0.13.1 → 0.14.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/README.md +42 -17
- package/SKILL.md +6 -3
- package/dist/index.js +92 -86
- package/docs/README.md +32 -25
- package/docs/concepts/lifecycle.md +24 -8
- package/docs/getting-started.md +3 -0
- package/docs/guides/container-deployment.md +178 -0
- package/docs/guides/recovery.md +12 -9
- package/docs/reference/agent-states.md +3 -0
- package/docs/reference/agent.md +13 -5
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -7,15 +7,21 @@
|
|
|
7
7
|
[](https://github.com/boadij/pi-herdsman/actions/workflows/validate.yml)
|
|
8
8
|
[](LICENSE)
|
|
9
9
|
|
|
10
|
-
**Asynchronous [Pi](https://github.com/earendil-works/pi) subagents and agent fleet orchestration with nested delegation,
|
|
10
|
+
**Asynchronous [Pi](https://github.com/earendil-works/pi) subagents and agent fleet orchestration for parallel coding agents with nested delegation, background work, and supervision in [herdr](https://github.com/herdrdev/herdr).**
|
|
11
11
|
|
|
12
12
|
Keep the conversation. Delegate the work.
|
|
13
13
|
|
|
14
|
-
Pi Herdsman is a Pi extension for asynchronous subagents
|
|
15
|
-
tasks to managed background agents running in
|
|
16
|
-
the lead conversation stays interactive. Run
|
|
17
|
-
delegation, steer active agents, route
|
|
18
|
-
owning agent, and supervise multiple leads
|
|
14
|
+
Pi Herdsman is a Pi extension for asynchronous subagents and multi-agent
|
|
15
|
+
coding. Delegate coding tasks to managed background agents running in
|
|
16
|
+
independent Pi sessions while the lead conversation stays interactive. Run
|
|
17
|
+
coding agents in parallel, nest delegation, steer active agents, route
|
|
18
|
+
questions and results back to their owning agent, and supervise multiple leads
|
|
19
|
+
through one coordinated hierarchy.
|
|
20
|
+
|
|
21
|
+
Use it in an existing Pi/herdr setup or deploy the SSH-ready container as a
|
|
22
|
+
portable remote coding-agent environment. [herdr Machines](https://herdr.dev/docs/connecting-machines/)
|
|
23
|
+
can bring local and remote workspaces and agents into one herdr window over
|
|
24
|
+
normal SSH.
|
|
19
25
|
|
|
20
26
|
Pi Herdsman calls its managed subagents **agents**.
|
|
21
27
|
|
|
@@ -34,22 +40,14 @@ agents, and a delegation-enabled agent may own permitted agents of its own.
|
|
|
34
40
|
Agent definitions, models, tools, extensions, and development process remain up
|
|
35
41
|
to you.
|
|
36
42
|
|
|
37
|
-
Chief supervision is separate from ownership:
|
|
38
|
-
|
|
39
|
-
```text
|
|
40
|
-
chief
|
|
41
|
-
├─ herd A / lead A
|
|
42
|
-
│ └─ agents...
|
|
43
|
-
└─ herd B / lead B
|
|
44
|
-
└─ agents...
|
|
45
|
-
```
|
|
46
|
-
|
|
47
43
|
## Demo
|
|
48
44
|
|
|
49
45
|

|
|
50
46
|
|
|
51
47
|
## Install
|
|
52
48
|
|
|
49
|
+
### Existing Pi / herdr
|
|
50
|
+
|
|
53
51
|
```sh
|
|
54
52
|
pi install npm:pi-herdsman
|
|
55
53
|
herdr integration install pi
|
|
@@ -67,6 +65,22 @@ Then run Pi in the Herdr pane:
|
|
|
67
65
|
pi
|
|
68
66
|
```
|
|
69
67
|
|
|
68
|
+
### Docker / remote machine
|
|
69
|
+
|
|
70
|
+
For a self-contained, SSH-ready remote coding-agent environment, see
|
|
71
|
+
[Container deployment](docs/guides/container-deployment.md).
|
|
72
|
+
|
|
73
|
+
Once normal SSH access works, the same container can be saved as a herdr
|
|
74
|
+
machine:
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
herdr machine add ssh://herdsman@host:2222 --label my-herd
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
A host defined in normal SSH configuration can be used directly instead.
|
|
81
|
+
|
|
82
|
+
## Try it
|
|
83
|
+
|
|
70
84
|
Ask Pi normally:
|
|
71
85
|
|
|
72
86
|
```text
|
|
@@ -97,6 +111,16 @@ To supervise independent leads across the current herdr runtime, use:
|
|
|
97
111
|
/chief
|
|
98
112
|
```
|
|
99
113
|
|
|
114
|
+
Chief supervision is separate from ownership:
|
|
115
|
+
|
|
116
|
+
```text
|
|
117
|
+
chief
|
|
118
|
+
├─ herd A / lead A
|
|
119
|
+
│ └─ agents...
|
|
120
|
+
└─ herd B / lead B
|
|
121
|
+
└─ agents...
|
|
122
|
+
```
|
|
123
|
+
|
|
100
124
|
Leave chief mode with:
|
|
101
125
|
|
|
102
126
|
```text
|
|
@@ -158,7 +182,8 @@ tools, extensions, skills, and instructions.
|
|
|
158
182
|
- Pi `>=0.87.0 <0.88.0` (supported)
|
|
159
183
|
- Node `>=22.19.0`
|
|
160
184
|
|
|
161
|
-
CI validates Node 22.19.0
|
|
185
|
+
Package CI validates the minimum supported Node 22.19.0 runtime. The container
|
|
186
|
+
separately ships and validates Node 26.
|
|
162
187
|
|
|
163
188
|
Install or refresh the herdr Pi integration:
|
|
164
189
|
|
package/SKILL.md
CHANGED
|
@@ -324,9 +324,12 @@ See [Recovery](docs/guides/recovery.md) for operator procedures and the
|
|
|
324
324
|
End a turn with unresolved agent work only when that work can still make
|
|
325
325
|
progress without the owner, or Herdsman is reconciling a durable transition
|
|
326
326
|
that can produce a future result or attention event. If an attention event
|
|
327
|
-
requires owner action, handle it before returning to passive waiting.
|
|
328
|
-
inactivity
|
|
329
|
-
|
|
327
|
+
requires owner action, handle it before returning to passive waiting. For stale
|
|
328
|
+
inactivity, use evidence attached to the first attention event before judging
|
|
329
|
+
health. If that evidence is absent or insufficient, perform at most one bounded
|
|
330
|
+
diagnostic read before returning to passive waiting. Repeated reminders for the
|
|
331
|
+
same stale episode do not by themselves justify another read. If the evidence
|
|
332
|
+
shows healthy or legitimately long-running work, leave it alone.
|
|
330
333
|
|
|
331
334
|
Health reconciliation is event-driven with a 30-second fallback scan. Actionable
|
|
332
335
|
health attention is sent only to the exact direct owner and is based on freshly
|