@oisin-ee/pi-dogsled 0.14.0 → 0.15.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 +19 -11
- package/package.json +1 -1
- package/plugins/dogsled/skills/dogsled/SKILL.md +6 -4
package/README.md
CHANGED
|
@@ -11,13 +11,13 @@ Install the binary on each Herdr host. Use the same release tag in each command.
|
|
|
11
11
|
Binary:
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
mise use github:oisin-ee/dogsled@v0.
|
|
14
|
+
mise use github:oisin-ee/dogsled@v0.15.0
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Pi (extension, tools, and skill), from npm or as part of `@oisin-ee/oisinpi`:
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
|
-
pi install npm:@oisin-ee/pi-dogsled@0.
|
|
20
|
+
pi install npm:@oisin-ee/pi-dogsled@0.15.0
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
At session start the extension compares its version with `dogsled --version` and warns when they differ.
|
|
@@ -25,14 +25,14 @@ At session start the extension compares its version with `dogsled --version` and
|
|
|
25
25
|
Claude Code (hooks, tools, and skill):
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
|
-
claude plugin marketplace add oisin-ee/dogsled#v0.
|
|
28
|
+
claude plugin marketplace add oisin-ee/dogsled#v0.15.0
|
|
29
29
|
claude plugin install dogsled@dogsled
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Codex (hooks, tools, and skill):
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
codex plugin marketplace add oisin-ee/dogsled --ref v0.
|
|
35
|
+
codex plugin marketplace add oisin-ee/dogsled --ref v0.15.0
|
|
36
36
|
codex plugin add dogsled@dogsled
|
|
37
37
|
```
|
|
38
38
|
|
|
@@ -42,7 +42,7 @@ The [Codex CLI reference](https://developers.openai.com/codex/cli/reference#code
|
|
|
42
42
|
Herdr (status-board popup):
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
|
-
herdr plugin install oisin-ee/dogsled --ref v0.
|
|
45
|
+
herdr plugin install oisin-ee/dogsled --ref v0.15.0 --yes
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
Harness plugins use the binary on `PATH`. They do not install it or start host services.
|
|
@@ -118,6 +118,7 @@ A wait deadline does not cancel its job or ticket. `cancel` only cancels pending
|
|
|
118
118
|
A task with a newline, a leading `-` or `@`, or more than 4000 characters goes to `launches/<id>.task.md`. Pi reads it as `@<file>`; Claude and Codex get a one-line pointer to it.
|
|
119
119
|
`--message-file PATH` (or `-` for stdin) reads the task from a file.
|
|
120
120
|
A failed `herdr agent start` is retried with backoff, three tries in all. After the last, the ticket fails and the owner's inbox says so. A refusal or a deadline fails at once.
|
|
121
|
+
Herdr refuses a start before it types into the pane, for example `agent_pane_busy` or `agent_name_taken`. That refusal is final: dogsled records it as the launch result, closes the empty pane it created, and does not retry. Any other failure leaves the outcome unknown, so dogsled keeps the pane and reconciles it on the next try.
|
|
121
122
|
|
|
122
123
|
`--profile NAME` (Pi only) reads `~/.config/dogsled/profiles/NAME/profile.json` on the host that runs the child:
|
|
123
124
|
|
|
@@ -140,10 +141,13 @@ Closing is driven by events. When a child's turn completes (Herdr's `completion_
|
|
|
140
141
|
|
|
141
142
|
1. reads its final reply from the transcript and keeps it in the item;
|
|
142
143
|
2. puts the reply in the owner's inbox (see [Inbox](#inbox));
|
|
143
|
-
3. closes a reader whose worktree is clean with no commits outside the default branch,
|
|
144
|
+
3. if the child called `done` during that turn, closes it when it is a reader whose worktree is clean with no commits outside the default branch, or when its branch has landed.
|
|
145
|
+
|
|
146
|
+
Herdr's `idle` and `done` only mean that the agent is ready for input. A child that asks a question, or that waits for its own children, is idle too. So a child says it has finished with the `done` MCP tool or `dogsled done`, in the turn that completes its task. Dogsled tells each child this at launch: Pi and Claude through `--append-system-prompt`, Codex through `-c developer_instructions`. The mark lives in the host's `done.json`, keyed by the Herdr terminal. A later turn, or an inbox record delivered to the child, ends it. `done` is refused while the caller owns open items or queued tickets.
|
|
147
|
+
A child that ends a turn without `done` stays open, and its reply tells the owner it waits for input.
|
|
144
148
|
|
|
145
149
|
A child with commits to land stays open and shows under TO LAND on the board, and the prompt line says `To land: web-tests (+2)`. Merge or drop the branch; the next sweep closes it.
|
|
146
|
-
A `blocked` child stays open, and the owner's inbox gets one `blocked` record per episode. A `working` child,
|
|
150
|
+
A `blocked` child stays open, and the owner's inbox gets one `blocked` record per episode. A `working` child, one that has never completed a turn, and one that has not called `done` are never closed automatically. Nothing closes on a timer.
|
|
147
151
|
|
|
148
152
|
`dogsled board` groups an owner's children, jobs, and queued tickets by what the owner must do: TO LAND, ATTENTION, RUNNING, and WAITING. Each agent row names the harness and model; each job row names its command. `--json` is what the Pi widget draws.
|
|
149
153
|
`dogsled read TARGET [--host H]` shows a child's or job's newest output and the captured final reply.
|
|
@@ -151,6 +155,7 @@ A `blocked` child stays open, and the owner's inbox gets one `blocked` record pe
|
|
|
151
155
|
```sh
|
|
152
156
|
dogsled close w2:p1
|
|
153
157
|
dogsled close w9:p1 --host netcup --json
|
|
158
|
+
dogsled done # as a child: my whole task is complete
|
|
154
159
|
```
|
|
155
160
|
|
|
156
161
|
`close` ends a child now, for an owner who does not want to wait for the sweep. `--host` defaults to the host of the pane's open item, else local.
|
|
@@ -166,6 +171,7 @@ After removal, close drops the worktree's registration, as prune does.
|
|
|
166
171
|
The JSON result is `{pane,worktree:{path,branch,workspace,branch_deleted,anchor_closed?}|null,pane_closed}`. A remote host runs the same steps over SSH.
|
|
167
172
|
|
|
168
173
|
The service admits tickets in FIFO order using the same placement policy.
|
|
174
|
+
The order holds per host. A ticket waits only behind earlier tickets that could take one of its hosts. A full host does not hold back a ticket that is pinned to another host with room.
|
|
169
175
|
It records an admission error rather than silently choosing another host after a clone, prepare, or launch failure.
|
|
170
176
|
A service interruption during admission leaves an explicit failed ticket for inspection, not an automatic duplicate launch.
|
|
171
177
|
For non-waiting callers, admission tells the owner through its inbox. An owner without an inbox reader hears once it has one; nothing is typed into its terminal.
|
|
@@ -232,6 +238,7 @@ A shared, locked cache permits at most one read per peer per ten seconds, includ
|
|
|
232
238
|
Status never probes peers itself.
|
|
233
239
|
|
|
234
240
|
A missing snapshot, failed read, or snapshot older than 30 seconds shows `service: down`.
|
|
241
|
+
When a snapshot exists, the host's reason gives its age, such as `service: down (last snapshot 44s ago)`. A slow tick on a loaded host is tens of seconds old. A stopped service gets older on every read.
|
|
235
242
|
The last peer measurement remains visible when available. Every discovered host stays in the output.
|
|
236
243
|
The JSON output contains `hosts`, with service state, reachability, sample time, probe, headroom, errors, and `retry_ms` while a peer read backs off.
|
|
237
244
|
|
|
@@ -305,13 +312,14 @@ Each path merges on its own. An addition, deletion, or mode change on a path the
|
|
|
305
312
|
Results use the remote-tracking branch, so `git fetch` keeps them current.
|
|
306
313
|
A local branch with no worktree is removable when it is integrated or every commit is on a remote branch. Other branches are report-only. The default branch is never a candidate. Prune deletes a branch with `git branch -D` after it rechecks the planned commit.
|
|
307
314
|
Prune and the sweep share the same holds: active panes or processes, the caller, an unreadable process table, and pending preparations or launches.
|
|
315
|
+
An unfinished launch holds its checkout while its pane exists, because an interrupted start can still bring up an agent there. When its pane is gone, it holds nothing.
|
|
308
316
|
An open agent item holds its checkout in prune and the sweep; `close` ends it and keeps the reply. Within `close`, a live owner holds the checkout until the default branch holds its work.
|
|
309
|
-
An idle
|
|
317
|
+
An idle or done agent that has not called `dogsled done` holds its checkout in prune, the sweep, and an automatic close; only an explicit `dogsled close` takes it. An idle shell, a done agent without an open item, and a workspace alone are not holds. The processes of an idle agent pane are not holds, but a background job that a shell started is. Foreign locks still prevent removal.
|
|
310
318
|
A dirty checkout whose commits are in the default branch gets a `landed_dirty` finding when no hold applies.
|
|
311
319
|
The finding includes the repository, checkout, branch or HEAD, dirty-path count, and up to ten paths. It is never removable.
|
|
312
320
|
A registered worktree whose directory is gone is a stale registration. Prune drops the record only.
|
|
313
321
|
A shell with no foreground command in an ended job's tab is idle at once: the job log keeps its output. So is a shell whose directory no longer exists.
|
|
314
|
-
Other panes need more than 24 hours continuously idle or done, based on service observations and a fresh snapshot.
|
|
322
|
+
Other panes need more than 24 hours continuously idle or done, based on service observations and a fresh snapshot. An agent pane also needs a `done` mark.
|
|
315
323
|
A shell pane is idle when the service found no foreground command at each sample for more than 24 hours, and it still has none. Herdr reports no activity time, so a command that starts and ends between samples does not count.
|
|
316
324
|
A workspace whose every pane is idle is one `workspaces` entry, and prune closes it whole. The caller's workspace stays, and so does a workspace that a worktree removal closes.
|
|
317
325
|
Ended jobs expire after 24 hours, together with their logs. Disk usage above 90% lists the largest known dogsled-owned paths.
|
|
@@ -343,7 +351,7 @@ Each requested pass builds the doctor plan in sweep scope. It applies only entri
|
|
|
343
351
|
|
|
344
352
|
- `panes` and `workspaces`: a shell at an empty prompt in an ended job's tab, or in a directory that no longer exists. A workspace closes whole when every pane in it is one of these.
|
|
345
353
|
- `worktrees` and `branches`: the shared loss rule and holds described above, identical to prune.
|
|
346
|
-
- Orphaned children:
|
|
354
|
+
- Orphaned children: a child that called `done`, whose owner is gone, and whose checkout passes the shared loss rule. Close runs teardown and removes its workspace, checkout, and item.
|
|
347
355
|
|
|
348
356
|
The sweep runs the same checks as `close` and `prune`. It never closes the service's own pane or workspace, or a worktree that the service works in. It skips a worktree it cannot check, and a failure on one entry does not stop the others.
|
|
349
357
|
The service keeps seven days of completed passes in `sweeps.jsonl` and the latest pass in `sweep.json`.
|
|
@@ -492,7 +500,7 @@ Plugin commands end with `|| true`. Pi also leaves the prompt unchanged if the b
|
|
|
492
500
|
|
|
493
501
|
### Tools
|
|
494
502
|
|
|
495
|
-
`dogsled mcp` serves the dogsled commands as MCP tools over stdio: `status`, `spawn`, `run`, `send`, `inbox`, `read`, `close`, `stop`, `cancel`, and `place`.
|
|
503
|
+
`dogsled mcp` serves the dogsled commands as MCP tools over stdio: `status`, `spawn`, `run`, `send`, `inbox`, `read`, `close`, `done`, `stop`, `cancel`, and `place`.
|
|
496
504
|
Each tool calls the same code as its CLI command and returns the same JSON. No tool waits: `spawn` and `run` return the item or the queued ticket at once.
|
|
497
505
|
The caller is the harness's `HERDR_PANE_ID`. Pi registers the server from its extension (tools `mcp__dogsled__*`); Claude Code reads `plugins/dogsled/.mcp.json`; Codex reads `plugins/dogsled/codex-mcp.json`, which forwards the Herdr and `DOGSLED_*` variables.
|
|
498
506
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oisin-ee/pi-dogsled",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Pi extension for dogsled: the board, the /dogsled panel, the inbox reader, and the dogsled tools. Needs the dogsled binary of the same version.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -5,7 +5,7 @@ description: Start Pi, Claude, and Codex children and jobs on the Herdr host wit
|
|
|
5
5
|
|
|
6
6
|
# Dogsled: children, jobs, and messages
|
|
7
7
|
|
|
8
|
-
Use dogsled to delegate, run jobs, and message other agents. Prefer the tools (`status`, `spawn`, `run`, `send`, `inbox`, `read`, `close`, `stop`, `cancel`, `place`); each matches a CLI command and returns the same JSON. In Pi they are `mcp__dogsled__<tool>`.
|
|
8
|
+
Use dogsled to delegate, run jobs, and message other agents. Prefer the tools (`status`, `spawn`, `run`, `send`, `inbox`, `read`, `close`, `done`, `stop`, `cancel`, `place`); each matches a CLI command and returns the same JSON. In Pi they are `mcp__dogsled__<tool>`.
|
|
9
9
|
|
|
10
10
|
Never type into another agent's terminal (`herdr agent prompt`, `herdr pane send-text`, `send-keys`): it mixes your text into the user's draft. Use `send`.
|
|
11
11
|
|
|
@@ -52,12 +52,14 @@ dogsled inbox list
|
|
|
52
52
|
|
|
53
53
|
## Closing
|
|
54
54
|
|
|
55
|
-
Dogsled closes
|
|
55
|
+
A child is finished when it calls the `done` tool (or `dogsled done`) during its last turn. Dogsled tells each child this at launch. Dogsled then closes the finished child for you, after it captures the reply:
|
|
56
56
|
|
|
57
|
-
- a reader (no commits outside the default branch, clean tree) closes when
|
|
57
|
+
- a reader (no commits outside the default branch, clean tree) closes when that turn ends;
|
|
58
58
|
- a writer closes once its branch has landed. Until then it shows under TO LAND: merge or drop the branch.
|
|
59
59
|
|
|
60
|
-
Blocked and working children never close, and nothing closes on a timer.
|
|
60
|
+
A child that ends a turn without `done` waits for input, for example after a question: its reply reaches your inbox, and it stays open. Answer it with `send`. Blocked and working children never close, and nothing closes on a timer.
|
|
61
|
+
|
|
62
|
+
When you are a child, call `done` once, in the turn that completes your whole task, then end the turn with your final reply. Do not call it when you ask a question or wait for your own children; `done` is refused while you own open children or queued work. To end a child now:
|
|
61
63
|
|
|
62
64
|
```sh
|
|
63
65
|
dogsled close PANE [--host HOST]
|