@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.
Files changed (40) hide show
  1. package/AGENTS.md +203 -599
  2. package/README.md +76 -327
  3. package/dist/cli.js.map +1 -1
  4. package/dist/extension/mu-pi.js +178 -45
  5. package/dist/extension/mu-pi.js.map +1 -1
  6. package/dist/index.js.map +1 -1
  7. package/docs/ARCHITECTURE.md +175 -1072
  8. package/docs/ROADMAP.md +88 -169
  9. package/docs/VISION.md +205 -415
  10. package/docs/VOCABULARY.md +202 -466
  11. package/docs/architecture/control-socket.md +119 -0
  12. package/docs/architecture/dag.md +113 -0
  13. package/docs/architecture/mux.md +163 -0
  14. package/docs/architecture/ops-log.md +140 -0
  15. package/docs/architecture/sdk.md +185 -0
  16. package/docs/architecture/sync.md +129 -0
  17. package/docs/architecture/tui.md +146 -0
  18. package/docs/guide/README.md +25 -0
  19. package/docs/guide/backends.md +61 -0
  20. package/docs/guide/cleanup.md +74 -0
  21. package/docs/guide/delegate.md +87 -0
  22. package/docs/guide/dispatch.md +137 -0
  23. package/docs/guide/getting-started.md +177 -0
  24. package/docs/guide/recovery.md +133 -0
  25. package/docs/guide/remote.md +74 -0
  26. package/docs/guide/sql.md +76 -0
  27. package/docs/guide/stop-a-worker.md +64 -0
  28. package/docs/guide/sync.md +78 -0
  29. package/docs/guide/tui.md +98 -0
  30. package/docs/guide/upgrade.md +76 -0
  31. package/docs/history/CHANGELOG-pre-3.md +4866 -0
  32. package/docs/reference/env.md +87 -0
  33. package/docs/reference/naming.md +82 -0
  34. package/docs/specs/2026-09-28-agent-state-from-murmur.md +1 -1
  35. package/docs/specs/2026-09-29-task-substates.md +1 -1
  36. package/package.json +1 -1
  37. package/skills/mu/REMOTE_WORKERS.md +179 -504
  38. package/skills/mu/SKILL.md +116 -185
  39. package/docs/HANDOVER.md +0 -486
  40. package/docs/USAGE_GUIDE.md +0 -2738
@@ -14,25 +14,19 @@ not in `--help` do not exist.
14
14
 
15
15
  ## Output + JSON shapes
16
16
 
17
- Default output: textual card on stdout plus a `Next:` block. Read
18
- both. `--json` exists on every verb:
19
- - Success: one stdout object.
20
- - Collection reads (`task list`, `workspace commits`, ...): `{items: T[], count: number}`.
21
- - Singletons keep named fields.
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** — unit of organization; one **mux session** named
31
- `mu-<name>` (a tmux session, or a herdr workspace).
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** — the multiplexer mu drives: tmux, or herdr. One per
34
- invocation. `mu doctor` names the active one; `MU_MUX` forces it.
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; don't spawn more agents than
46
- ready tracks.
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
- The reserved `scratch` workstream holds helpers that need no task DAG; it
59
- auto-creates on spawn. `mu_delegate` (installed by `mu link pi`) is its tool
60
- form for one answer back; the CLI form is spawn + send + `mu agent wait --json`
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 <name> --first` waits for busy → idle; exit 0 met, 5
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 project trust
72
- prompt: add `--approve` to `MU_<CLI>_COMMAND` rather than overriding it with
73
- `--command`.
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
- One workstream is one mux session and DB partition. Its task DAG has one edge:
82
- `mu task block A --by B` means **B blocks A**. Parallel tracks sharing a
83
- prerequisite collapse, preventing two agents from taking the same dependency.
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/build/test while another agent is active in the
88
- same repo, spawn with `--workspace`. Keep the main checkout for
89
- orchestration: two builds in one checkout corrupt each other.
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
- Between waves, `mu workspace refresh <agent>` rebases onto fresh main without
98
- killing LLM context. Claim/send warn at ≥10 commits behind; scripts can make
99
- that a refusal with `--strict-staleness`.
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
- Agents can run on another machine: the PANE is local, the PROCESS is
104
- remote (`--command 'ssh <host> -t "..."'`), so `send`, `read`, and the
105
- reaper keep working unchanged. A pi agent's control socket is forwarded
106
- over that ssh (`mu agent remote-env`). **One orchestrator
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; poll once per turn and run
114
- the claim's one-shot `Next:` command.** Three more costly traps:
115
- - **On a session-capped host, route long commands and silent-failure
116
- polls through [mule](https://github.com/mu-crew/mule).** A refused
117
- bare `rev-parse` can return an empty sha that looks like progress;
118
- batch all workers in one `--max-secs`-bounded mule job.
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`, `worker-2`, `reviewer-1`, `scout-1`,
128
- `auditor-1`, `planner-1`. Smallest unused suffix. Avoid human names.
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 containing the applicable
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; include initial context with
163
- `--note 'REPRO: ...\nSCOPE: ...'` when the title alone is not
164
- enough. Agent state is runtime observation; task ownership is durable and
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 new
188
- commits onto main, verify the combined tree, then return control. Waiting on an
189
- umbrella task hides partial progress; merging stale branches can restore
190
- reverted code.
191
- - **Verify the merge, not the worker's rerun.** The worker tested against its
192
- fork point; only the combination with moved main is new. This found three
193
- integration breaks where rerunning worker suites found none. For remote work,
194
- run the merged gate on the host with warm dependencies: 500s × 30 integrations
195
- is four laptop-hours. Keep platform-sensitive checks and the final release gate
196
- local; macOS `ps` once exposed a bug Linux could not.
197
- - **Push only from a green gate.** Script the gate so `git push` is its last
198
- line under `set -e`; a chain that printed a failure and pushed anyway put a red
199
- commit on main. Check the gate runs what it claims: a randomized test gated on
200
- an env var passed with zero cases.
201
- - **Dispatch from current main.** Reset the worker's worktree to main before each
202
- task. Stale bases caused four merges that conflicted or broke tests after
203
- passing in the worker.
204
- - **Accept evidence, not close notes.** Re-run the key measurement from a clean
205
- checkout. Close notes have claimed unpushed commits and reported numbers from
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/claim uses qualified refs. The owner stays in its own
219
- workstream; only task ownership crosses.
220
- - For an idle worker, read the pane to learn why it stopped, then answer,
221
- retry, or release its task. `MU_IDLE_THRESHOLD_MS` defaults to 5m.
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 by default; `--yes` commits. It writes
234
- TOMBSTONE ops, so history survives and `mu undo <group> --yes` reverses the
235
- deletions — do NOT `mu db backup` first, the log IS the backup.
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 undoable actions with group ids; `<group>` previews;
251
- `<group> --yes` applies. It emits INVERSE ops for that one group, so it
252
- touches nothing else, and the undo is itself an op — REDO is
253
- `mu undo <that group> --yes`. Refuses with exit 4 if a later action changed
254
- the same fields (`--force` discards that newer work). Rows only: killed panes
255
- and freed workspace dirs do not come back. No snapshots, no `--to`.
256
- - **`mu rebuild <file>`** writes a NEW DB from the ops log. Agents and
257
- workspaces are absent because they have no captured ops; re-spawn after swap.
258
- - **`mu sql`** alone skips ambient sync, preserving no-surprise mutations.
259
- - **`mu db backup`** is a convenient copy; real recovery is `mu rebuild`.
260
- - **Sync (laptop ↔ devserver):** `export MU_SYNC_DIR=$HOME/Sync/mu` on each
261
- machine pointing at a shared folder (Syncthing recommended). Every command
262
- then flushes your ops and ingests peers' — ambient, no daemon — so a bare
263
- `mu task list` on the other box already shows what you added here. Merge is
264
- per-FIELD, so two machines editing different fields of one task both keep
265
- their edit. `mu sync` bare reports peer status plus a copy-pasteable rsync
266
- line; mu never runs ssh/scp/rsync itself. `--from <peer-mu.db>` reads a
267
- peer's ops directly; `--repair <peer>` re-reads from zero and is always safe
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` prevents unattended waits from polling forever when a worker
287
- needs attention. Exit 6 means a dead pane; exit 7 means the owner sat in
288
- `needs_input`. Read that pane (`mu agent read <owner>`) before acting: the
289
- worker may be waiting on an answer from you, not merely forgetting to close.
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` / `pi` / `pi_big`. Use mini for probing,
305
- modest for build/edit/refactor, big for design/review/incidents.
306
- Discover model strings with `pi --list-models [fuzzy-search]`.
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, owned
311
- IN_PROGRESS tasks revert to OPEN with a `[reaper]` note and `task
312
- reap` op. No manual release after crashes.
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; other CLIs through
315
- [murmur](https://github.com/mu-crew/murmur) on tmux or herdr on herdr.
316
- `unknown` means no state source; `mu doctor` says why. pi agents need
317
- no murmur. See [REMOTE_WORKERS.md](REMOTE_WORKERS.md) § mu and murmur.
318
-
319
- For high-stakes decisions:
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`, injected at spawn, resolves identity; the pane title
330
- is the fallback that adopted panes need. Env-first means this loop is
331
- identical whichever multiplexer you are in — you never need to know.
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 runtime agent state. Coordinate through task notes and the
359
- activity log. Keep edges within one workstream, role-name agents, and reserve
360
- the `mu_` task-id prefix. Give workers bounded paths and commands.
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