@mu-crew/mu 3.2.0 → 3.2.1
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 +203 -599
- package/README.md +76 -327
- package/dist/cli.js.map +1 -1
- package/dist/extension/mu-pi.js +178 -45
- package/dist/extension/mu-pi.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/docs/ARCHITECTURE.md +175 -1072
- package/docs/ROADMAP.md +88 -169
- package/docs/VISION.md +205 -415
- package/docs/VOCABULARY.md +202 -466
- package/docs/architecture/control-socket.md +119 -0
- package/docs/architecture/dag.md +113 -0
- package/docs/architecture/mux.md +163 -0
- package/docs/architecture/ops-log.md +140 -0
- package/docs/architecture/sdk.md +185 -0
- package/docs/architecture/sync.md +129 -0
- package/docs/architecture/tui.md +146 -0
- package/docs/guide/README.md +25 -0
- package/docs/guide/backends.md +61 -0
- package/docs/guide/cleanup.md +74 -0
- package/docs/guide/delegate.md +87 -0
- package/docs/guide/dispatch.md +137 -0
- package/docs/guide/getting-started.md +177 -0
- package/docs/guide/recovery.md +133 -0
- package/docs/guide/remote.md +74 -0
- package/docs/guide/sql.md +76 -0
- package/docs/guide/stop-a-worker.md +64 -0
- package/docs/guide/sync.md +78 -0
- package/docs/guide/tui.md +98 -0
- package/docs/guide/upgrade.md +76 -0
- package/docs/history/CHANGELOG-pre-3.md +4866 -0
- package/docs/reference/env.md +87 -0
- package/docs/reference/naming.md +82 -0
- package/docs/specs/2026-09-28-agent-state-from-murmur.md +1 -1
- package/docs/specs/2026-09-29-task-substates.md +1 -1
- package/package.json +1 -1
- package/skills/mu/REMOTE_WORKERS.md +179 -504
- package/skills/mu/SKILL.md +116 -185
- package/docs/HANDOVER.md +0 -486
- package/docs/USAGE_GUIDE.md +0 -2738
package/skills/mu/SKILL.md
CHANGED
|
@@ -14,25 +14,19 @@ not in `--help` do not exist.
|
|
|
14
14
|
|
|
15
15
|
## Output + JSON shapes
|
|
16
16
|
|
|
17
|
-
Default output
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- `mu sql --json`: bare array rows.
|
|
23
|
-
- `mu log --tail`: NDJSON (one object per line).
|
|
24
|
-
- Errors: `{error,message,nextSteps,exitCode}` on stderr.
|
|
25
|
-
- Validation errors also include structured `usage`.
|
|
26
|
-
- **`nextSteps` survives in JSON.**
|
|
17
|
+
Default output is a card on stdout plus a `Next:` block. Read both.
|
|
18
|
+
Every verb takes `--json`: one stdout object; collections are
|
|
19
|
+
`{items, count}`; `mu sql --json` is bare rows; `mu log --tail` is
|
|
20
|
+
NDJSON. Errors are `{error,message,nextSteps,exitCode}` on stderr
|
|
21
|
+
(validation errors add `usage`). **`nextSteps` survives in JSON.**
|
|
27
22
|
|
|
28
23
|
## Vocabulary
|
|
29
24
|
|
|
30
|
-
- **workstream** —
|
|
31
|
-
|
|
25
|
+
- **workstream** — one **mux session** `mu-<name>` (tmux session or
|
|
26
|
+
herdr workspace) and one DB partition.
|
|
32
27
|
- **agent** — named worker in a pane (you may be one).
|
|
33
|
-
- **mux** —
|
|
34
|
-
|
|
35
|
-
Spawn, send, and read work on both. `mu agent kick` is Linux-only on herdr.
|
|
28
|
+
- **mux** — tmux or herdr, one per invocation. `mu doctor` names it;
|
|
29
|
+
`MU_MUX` forces it. `mu agent kick` is Linux-only on herdr.
|
|
36
30
|
- **control socket (ctl)** — how mu drives a pi agent: the mu pi
|
|
37
31
|
extension (`mu link pi`) serves exact send, state, wait and abort
|
|
38
32
|
inside pi's own TUI. `ctl missing|refused` means it does not answer.
|
|
@@ -42,8 +36,8 @@ both. `--json` exists on every verb:
|
|
|
42
36
|
Any `CLOSED/*` satisfies `--blocked-by`.
|
|
43
37
|
- **claim / release** — atomic take/clear of `tasks.owner`.
|
|
44
38
|
- **note** — append-only task context; survives sessions.
|
|
45
|
-
- **track** — independent DAG subtree;
|
|
46
|
-
ready
|
|
39
|
+
- **track** — independent DAG subtree; spawn at most one agent per
|
|
40
|
+
ready track.
|
|
47
41
|
- **workspace** — per-agent VCS copy under
|
|
48
42
|
`<state-dir>/workspaces/<workstream>/<agent>/`.
|
|
49
43
|
|
|
@@ -55,82 +49,67 @@ or inspection.
|
|
|
55
49
|
|
|
56
50
|
### Off-the-cuff helpers (`scratch`)
|
|
57
51
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
(`lastText`).
|
|
52
|
+
For one-shot work inside pi, call `mu_delegate` (installed by `mu link pi`).
|
|
53
|
+
Outside pi: spawn into the reserved `scratch` workstream (no task DAG,
|
|
54
|
+
auto-created), `send --fresh`, then `mu agent wait --json` (`lastText`).
|
|
62
55
|
|
|
63
|
-
- `mu agent wait <
|
|
64
|
-
timeout, 6 pane died.
|
|
56
|
+
- `mu agent wait <names...> --first` waits for busy → idle instead of a
|
|
57
|
+
`sleep` loop; exit 0 met, 5 timeout, 6 pane died.
|
|
65
58
|
- For a watcher, persist last-seen state in a log ledger: write `mu log -w
|
|
66
59
|
scratch --kind pr-state 'pr=1234 sha=abc ci=red'`, then read `mu log -w
|
|
67
60
|
scratch --kind pr-state -n 1 --json`. Act only on change.
|
|
68
61
|
- One agent per independent unit; `--workspace` for any helper that may edit,
|
|
69
62
|
build, or test the shared repo.
|
|
70
63
|
|
|
71
|
-
A helper stuck at `needs_input` right after spawn likely hit pi's
|
|
72
|
-
prompt: add `--approve` to `MU_<CLI>_COMMAND
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Move off `scratch` when work gains dependencies or review gates.
|
|
64
|
+
A helper stuck at `needs_input` right after spawn likely hit pi's
|
|
65
|
+
project trust prompt: add `--approve` to `MU_<CLI>_COMMAND`. Move off
|
|
66
|
+
`scratch` when work gains dependencies or review gates.
|
|
76
67
|
|
|
77
68
|
## Mental model
|
|
78
69
|
|
|
79
70
|
### Workstreams, DAGs, tracks
|
|
80
71
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
72
|
+
The DAG has one edge: `mu task block A --by B` means **B blocks A**.
|
|
73
|
+
Tracks sharing a prerequisite collapse into one, so two agents never
|
|
74
|
+
take the same dependency.
|
|
84
75
|
|
|
85
76
|
### Workspaces prevent trampling
|
|
86
77
|
|
|
87
|
-
If an agent may edit
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
Workspaces auto-detect jj/sl/git; non-VCS uses `cp -a`. They are
|
|
92
|
-
auto-freed on `mu agent close` **iff clean**: no uncommitted changes
|
|
93
|
-
and no commits since fork. Non-clean close fails with
|
|
94
|
-
`WorkspacePreservedError`; then use `mu workspace free <agent>` or
|
|
95
|
-
`mu agent close <agent> --discard-workspace` (lossy).
|
|
78
|
+
If an agent may edit, build, or test while another is active in the same
|
|
79
|
+
repo, spawn with `--workspace`. Two builds in one checkout corrupt each
|
|
80
|
+
other; keep the main checkout for orchestration.
|
|
96
81
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
82
|
+
Workspaces auto-detect jj, sl, or git (else `cp -a`). `mu agent close`
|
|
83
|
+
frees one **only if clean** (no uncommitted changes, no commits since
|
|
84
|
+
fork); otherwise it fails with `WorkspacePreservedError`. Then use
|
|
85
|
+
`mu workspace free <agent>` or `--discard-workspace` (lossy).
|
|
86
|
+
Between waves, `mu workspace refresh <agent>` rebases onto main and
|
|
87
|
+
keeps LLM context. Claim and send warn at ≥10 commits behind
|
|
88
|
+
(`--strict-staleness` refuses).
|
|
100
89
|
|
|
101
90
|
### Remote agents
|
|
102
91
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
DB; panes may be remote** — never run a second mu on the host, since
|
|
108
|
-
`tasks.owner_id` is an FK into the machine-local `agents` table and a
|
|
109
|
-
remote mu could not claim your tasks anyway. You create the remote
|
|
110
|
-
workspace yourself (`--workspace` is local-only).
|
|
92
|
+
The PANE is local, the PROCESS is remote (`--command 'ssh <host> -t
|
|
93
|
+
"..."'`); `mu agent remote-env` forwards a pi agent's control socket.
|
|
94
|
+
**One orchestrator DB**: never run a second mu on the host. You create
|
|
95
|
+
the remote workspace yourself (`--workspace` is local-only).
|
|
111
96
|
|
|
112
97
|
**Read [REMOTE_WORKERS.md](REMOTE_WORKERS.md) before spawning your first
|
|
113
|
-
remote agent, and again before waiting on one
|
|
114
|
-
the claim's one-shot `Next:` command
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
- **`mule` exit 3 is a HANDBACK** — no ssh master, and opening one can
|
|
120
|
-
need a human to touch a hardware key. Ask the operator; never retry,
|
|
121
|
-
never run `ssh -MNf` yourself, never fall back to `ssh <host> <cmd>`.
|
|
122
|
-
- **Exit 4 and 6 mean wait again; 5 means never.** Neither says the work
|
|
123
|
-
failed.
|
|
98
|
+
remote agent, and again before waiting on one.** Poll once per turn with
|
|
99
|
+
the claim's one-shot `Next:` command. On a session-capped host, route
|
|
100
|
+
long commands and polls through [mule](https://github.com/mu-crew/mule):
|
|
101
|
+
a refused bare ssh returns an empty sha that looks like progress.
|
|
102
|
+
**`mule` exit 3 is a HANDBACK** to the operator (hardware-key touch):
|
|
103
|
+
never retry or open `ssh -MNf` yourself.
|
|
124
104
|
|
|
125
105
|
### Agent names
|
|
126
106
|
|
|
127
|
-
Use roles: `worker-1`, `
|
|
128
|
-
`auditor-1`, `planner-1`.
|
|
107
|
+
Use roles with the smallest unused suffix: `worker-1`, `reviewer-1`,
|
|
108
|
+
`scout-1`, `auditor-1`, `planner-1`. No human names.
|
|
129
109
|
|
|
130
110
|
### Task note contract
|
|
131
111
|
|
|
132
|
-
End every delegated task with a note
|
|
133
|
-
fields:
|
|
112
|
+
End every delegated task with a note holding the applicable fields:
|
|
134
113
|
|
|
135
114
|
```text
|
|
136
115
|
FILES: paths inspected/changed (line ranges if precise)
|
|
@@ -143,12 +122,7 @@ ODDITIES: weird things not acted on
|
|
|
143
122
|
```
|
|
144
123
|
|
|
145
124
|
Then close with grounding:
|
|
146
|
-
|
|
147
|
-
```bash
|
|
148
|
-
mu task close <id> -w <ws> --evidence "tests pass: cargo test exit 0"
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
Future agents can reconstruct context via `mu task notes <id>`.
|
|
125
|
+
`mu task close <id> -w <ws> --evidence "tests pass: cargo test exit 0"`.
|
|
152
126
|
|
|
153
127
|
## Orchestrator loop
|
|
154
128
|
|
|
@@ -159,10 +133,9 @@ Every turn:
|
|
|
159
133
|
2. Spawn at most one agent per independent ready track.
|
|
160
134
|
3. **Claim before sending — even one-shot reviewers/scouts.**
|
|
161
135
|
`mu task claim <id> -w <ws> --for <agent> --evidence "..."`.
|
|
162
|
-
If no task exists, `mu task add` first
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
waitable.
|
|
136
|
+
If no task exists, `mu task add` first (`--note 'REPRO: ...'` when
|
|
137
|
+
the title is not enough). Ownership is durable and waitable; agent
|
|
138
|
+
state is not.
|
|
166
139
|
4. Send each new task with `mu agent send <w> --fresh '...'` (new
|
|
167
140
|
session + prompt in one step; refuses while busy): task id,
|
|
168
141
|
files/notes to read, workspace path, validation command, scope
|
|
@@ -184,41 +157,31 @@ Every turn:
|
|
|
184
157
|
|
|
185
158
|
## Dispatch rules that prevent real failures
|
|
186
159
|
|
|
187
|
-
- **Pipeline; don't barrier.** Wait for one task, cherry-pick only its
|
|
188
|
-
commits
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
- **
|
|
205
|
-
|
|
206
|
-
a half-edited clone.
|
|
207
|
-
- **Freeze only what conflicts.** While one task owns shared files, give idle
|
|
208
|
-
workers tasks that avoid them; a blanket freeze idled four of five workers for
|
|
209
|
-
a day.
|
|
210
|
-
- **Fix done before a long run.** Put the completion criterion in the task note
|
|
211
|
-
first: which checks, how many agreeing runs, what may differ. Without it the
|
|
212
|
-
target moves with every run.
|
|
213
|
-
- **Split long proofs into independent units**, sharded and in parallel, so a
|
|
214
|
-
unit that passes stays passed and one flake restarts only its own unit.
|
|
215
|
-
Workers poll background jobs every few minutes, not hourly.
|
|
160
|
+
- **Pipeline; don't barrier.** Wait for one task, cherry-pick only its
|
|
161
|
+
new commits, verify, return control. An umbrella wait hides progress;
|
|
162
|
+
merging stale branches can restore reverted code.
|
|
163
|
+
- **Verify the merge, not the worker's rerun.** Only the combination
|
|
164
|
+
with moved main is new; that found three breaks rerunning found none
|
|
165
|
+
of. Run a remote merge gate on the host (see REMOTE_WORKERS.md).
|
|
166
|
+
- **Push only from a green gate.** Make `git push` the last line under
|
|
167
|
+
`set -e`. Check the gate runs what it claims: an env-gated randomized
|
|
168
|
+
test once passed with zero cases.
|
|
169
|
+
- **Dispatch from current main.** Reset the worker's worktree to main
|
|
170
|
+
before each task.
|
|
171
|
+
- **Accept evidence, not close notes.** Re-run the key measurement from
|
|
172
|
+
a clean checkout; close notes have claimed unpushed commits.
|
|
173
|
+
- **Freeze only what conflicts.** Give idle workers tasks that avoid
|
|
174
|
+
shared files; a blanket freeze idled four of five workers for a day.
|
|
175
|
+
- **Fix done before a long run.** Put the completion criterion (checks,
|
|
176
|
+
agreeing runs, allowed variance) in the task note first.
|
|
177
|
+
- **Split long proofs into independent units**, sharded and parallel,
|
|
178
|
+
so one flake restarts only its unit.
|
|
216
179
|
- Bucket waves by file cluster, not severity; two agents editing one file
|
|
217
180
|
conflict. Refresh workspaces between waves.
|
|
218
|
-
- Cross-workstream wait
|
|
219
|
-
|
|
220
|
-
- For an idle worker, read the pane
|
|
221
|
-
|
|
181
|
+
- Cross-workstream wait and claim use qualified refs; only task
|
|
182
|
+
ownership crosses.
|
|
183
|
+
- For an idle worker, read the pane, then answer, retry, or release its
|
|
184
|
+
task. `MU_IDLE_THRESHOLD_MS` defaults to 5m.
|
|
222
185
|
- **Never chain `/new` and a prompt as two sends to a pi agent:** the prompt
|
|
223
186
|
can land mid-reset and vanish (it did, twice). `--fresh` does both inside pi.
|
|
224
187
|
- **Stop a worker:** `mu agent abort <w>` first for pi (exact, local or
|
|
@@ -230,15 +193,9 @@ Every turn:
|
|
|
230
193
|
|
|
231
194
|
## CLI gotchas
|
|
232
195
|
|
|
233
|
-
- **`workstream teardown`** is dry-run
|
|
234
|
-
TOMBSTONE ops, so
|
|
235
|
-
|
|
236
|
-
`workstream list --torn-down` replays past teardowns with the group id to
|
|
237
|
-
undo, newest first, marking ones already recreated.
|
|
238
|
-
- **`agent wait <names...> --first`** blocks until an agent stops working
|
|
239
|
-
(busy → anything else) — the task-less counterpart to `mu task wait`, for
|
|
240
|
-
helpers that own no task. Use it instead of a `sleep` loop. Exit 0 met,
|
|
241
|
-
5 timeout, 6 pane died.
|
|
196
|
+
- **`workstream teardown`** is dry-run without `--yes`. It writes
|
|
197
|
+
TOMBSTONE ops, so `mu undo <group> --yes` reverses it; the log is the
|
|
198
|
+
backup. `workstream list --torn-down` lists group ids to undo.
|
|
242
199
|
- **`task close --if-ready`** no-ops until every blocker is CLOSED; bare
|
|
243
200
|
`task release` reopens IN_PROGRESS.
|
|
244
201
|
- **`task close --as rejected|wontfix --why ...`** (declined | valid, not worth it) unblocks dependents (listed in
|
|
@@ -247,49 +204,32 @@ Every turn:
|
|
|
247
204
|
IN_PROGRESS — `task release` first.
|
|
248
205
|
- **For waits use `task wait`, not `log --tail`.** `--kind` is the operator's
|
|
249
206
|
log-ledger channel; `--intent` is what mu recorded.
|
|
250
|
-
- **`mu undo`** bare lists
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
(ingest is idempotent).
|
|
269
|
-
**NEVER put `MU_DB_PATH` inside `MU_SYNC_DIR`** — it corrupts the DB and
|
|
270
|
-
`mu doctor` hard-fails. Agent/workspace state and task OWNERSHIP are
|
|
271
|
-
machine-local and never travel.
|
|
272
|
-
- **`mu doctor`** runs fast checks; `--deep` rebuilds the log into a temp DB and
|
|
273
|
-
diffs it field-by-field. DRIFT means the log and the tables disagree, which
|
|
274
|
-
breaks undo and sync at once (exit 5, naming table, key and field). It is a
|
|
275
|
-
capture bug, not operator error: back up and report it, do NOT reflexively
|
|
276
|
-
rebuild — if capture missed a mutation, the live rows hold the real work.
|
|
277
|
-
The `disk` section reconciles state-dir against DB both ways and is
|
|
278
|
-
**report-only**: `ws-rows` is a row whose directory is gone (nothing else
|
|
279
|
-
reports it), `ws-dirs` blocks the next `--workspace` spawn, and an orphan dir
|
|
280
|
-
may hold the only copy of uncommitted work — which is why mu prints the
|
|
281
|
-
cleanup command and runs none of them. `--disk` adds per-checkout byte usage.
|
|
207
|
+
- **`mu undo`** bare lists groups; `<group>` previews; `<group> --yes`
|
|
208
|
+
emits inverse ops for that group only (redo = undo the undo). Exit 4
|
|
209
|
+
if a later action changed the same fields (`--force` discards it).
|
|
210
|
+
Rows only: killed panes and freed workspace dirs do not come back.
|
|
211
|
+
- **`mu rebuild <file>`** writes a new DB from the ops log, without
|
|
212
|
+
agents or workspaces; re-spawn after the swap. Recovery is
|
|
213
|
+
`mu rebuild`, not `mu db backup`.
|
|
214
|
+
- **`mu sql`** skips ambient sync.
|
|
215
|
+
- **Sync:** set `MU_SYNC_DIR` on each machine to a shared folder
|
|
216
|
+
(Syncthing). Every command flushes and ingests ops, merged per field.
|
|
217
|
+
mu never runs ssh or rsync; `mu sync` prints the line.
|
|
218
|
+
`--repair <peer>` is always safe. **Never put `MU_DB_PATH` inside
|
|
219
|
+
`MU_SYNC_DIR`**: it corrupts the DB. Agents, workspaces, and task
|
|
220
|
+
ownership never travel.
|
|
221
|
+
- **`mu doctor --deep` DRIFT** (exit 5) is a capture bug: back up and
|
|
222
|
+
report it. Do not rebuild; the live rows may hold work the log missed.
|
|
223
|
+
The `disk` section is report-only: an orphan dir may hold the only copy
|
|
224
|
+
of uncommitted work, so mu prints cleanup commands and runs none.
|
|
282
225
|
|
|
283
226
|
## `mu task wait`
|
|
284
227
|
|
|
285
228
|
Use `--first --on-stall exit`: `--first` populates `.firing`, and
|
|
286
|
-
`--on-stall exit`
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
Answer it — questions are cheaper than rework. For remote workers, see
|
|
291
|
-
[REMOTE_WORKERS.md](REMOTE_WORKERS.md) before choosing timeout or stall
|
|
292
|
-
handling.
|
|
229
|
+
`--on-stall exit` stops an unattended wait when a worker needs attention.
|
|
230
|
+
Exit 6 is a dead pane; exit 7 is an owner in `needs_input`. Read that
|
|
231
|
+
pane (`mu agent read <owner>`) and answer: the worker may be waiting on
|
|
232
|
+
you. Questions are cheaper than rework.
|
|
293
233
|
|
|
294
234
|
## Models and thinking effort
|
|
295
235
|
|
|
@@ -301,38 +241,29 @@ export MU_PI_COMMAND="pi --model sonnet:medium"
|
|
|
301
241
|
mu agent spawn a --cli pi_big # uses $MU_PI_BIG_COMMAND
|
|
302
242
|
```
|
|
303
243
|
|
|
304
|
-
Convention: `pi_mini`
|
|
305
|
-
|
|
306
|
-
|
|
244
|
+
Convention: `pi_mini` for probing, `pi` for build and refactor,
|
|
245
|
+
`pi_big` for design, review, and incidents. List models with
|
|
246
|
+
`pi --list-models [search]`.
|
|
307
247
|
|
|
308
248
|
## Reaper and agent state
|
|
309
249
|
|
|
310
|
-
If an agent pane dies, or `mu agent close` kills it mid-task,
|
|
311
|
-
IN_PROGRESS tasks revert to OPEN with a `[reaper]` note
|
|
312
|
-
|
|
250
|
+
If an agent pane dies, or `mu agent close` kills it mid-task, its
|
|
251
|
+
IN_PROGRESS tasks revert to OPEN with a `[reaper]` note. No manual
|
|
252
|
+
release after crashes.
|
|
313
253
|
|
|
314
|
-
pi agents report state through the control socket
|
|
315
|
-
[murmur](https://github.com/mu-crew/murmur) on
|
|
316
|
-
`unknown` means no state source; `mu doctor`
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
```bash
|
|
322
|
-
mu agent read worker-1 -n 100
|
|
323
|
-
mu log -w <ws> --tail
|
|
324
|
-
mu task notes <id>
|
|
325
|
-
```
|
|
254
|
+
pi agents report state through the control socket and need no murmur.
|
|
255
|
+
Other CLIs report through [murmur](https://github.com/mu-crew/murmur) on
|
|
256
|
+
tmux, or herdr on herdr. `unknown` means no state source; `mu doctor`
|
|
257
|
+
says why. Before a high-stakes decision, read the pane
|
|
258
|
+
(`mu agent read worker-1 -n 100`), `mu log -w <ws> --tail`, and
|
|
259
|
+
`mu task notes <id>`.
|
|
326
260
|
|
|
327
261
|
## In-pane worker loop
|
|
328
262
|
|
|
329
|
-
`$MU_AGENT_NAME
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
- Worker pane: spawned/adopted by mu; bare `mu task claim <id>` works.
|
|
334
|
-
- Orchestrator pane: not registered; bare `claim` errors with next
|
|
335
|
-
steps: `--self`, `--for <worker>`, or `mu agent adopt <pane>`.
|
|
263
|
+
`$MU_AGENT_NAME` (injected at spawn) resolves identity; adopted panes
|
|
264
|
+
fall back to the pane title. In a worker pane, bare `mu task claim <id>`
|
|
265
|
+
works. In the unregistered orchestrator pane it errors; use `--self`,
|
|
266
|
+
`--for <worker>`, or `mu agent adopt <pane>`.
|
|
336
267
|
|
|
337
268
|
```bash
|
|
338
269
|
mu me
|
|
@@ -355,9 +286,9 @@ prompt; a send it cannot confirm prints a `warning:` on stderr.
|
|
|
355
286
|
|
|
356
287
|
## Guardrails
|
|
357
288
|
|
|
358
|
-
Task ownership outranks
|
|
359
|
-
activity log. Keep edges within one workstream
|
|
360
|
-
|
|
289
|
+
Task ownership outranks agent state. Coordinate through task notes and
|
|
290
|
+
the activity log. Keep edges within one workstream and reserve the `mu_`
|
|
291
|
+
task-id prefix. Give workers bounded paths and commands.
|
|
361
292
|
|
|
362
293
|
## See also
|
|
363
294
|
|