@openmuster/muster 0.3.1-alpha.2 → 0.3.1-alpha.4

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 (70) hide show
  1. package/README.md +19 -17
  2. package/dist/{args-DHgAmYge.js → args-9ZZDcPxa.js} +2 -2
  3. package/dist/cli.js +5 -5
  4. package/dist/index.js +16 -3
  5. package/dist/inspect/app.js +45 -40
  6. package/dist/main-D5aX7Jaj.js +6 -0
  7. package/dist/{main-A4nHL5oa.js → main-Doit2DDY.js} +242 -21
  8. package/dist/mcp-Cm96TIb3.js +6 -0
  9. package/dist/{module-DOkWwWoU.js → module-D8qcE3e7.js} +1 -1
  10. package/dist/{module-CT_R33MB.js → module-DjDMSEKu.js} +2 -2
  11. package/dist/{steps-ByzmEzLQ.js → steps-BUPRIOe3.js} +1 -1
  12. package/docs/01-concepts/01-overview.md +7 -2
  13. package/docs/01-concepts/02-boards.md +4 -4
  14. package/docs/01-concepts/03-channels.md +1 -1
  15. package/docs/01-concepts/04-threads.md +1 -3
  16. package/docs/01-concepts/05-labels.md +1 -1
  17. package/docs/01-concepts/06-actors.md +1 -1
  18. package/docs/01-concepts/07-events.md +11 -4
  19. package/docs/01-concepts/08-tasks.md +8 -4
  20. package/docs/01-concepts/09-watchers.md +7 -4
  21. package/docs/01-concepts/10-schedules.md +1 -1
  22. package/docs/01-concepts/11-access.md +46 -43
  23. package/docs/01-concepts/12-files-and-data.md +1 -1
  24. package/docs/01-concepts/13-budgets.md +1 -1
  25. package/docs/01-concepts/14-runners.md +9 -8
  26. package/docs/01-concepts/15-outgoing-webhooks.md +2 -2
  27. package/docs/01-concepts/16-workflows.md +6 -6
  28. package/docs/01-concepts/17-board-module.md +8 -6
  29. package/docs/01-quickstart.md +8 -6
  30. package/docs/02-sync/01-overview.md +33 -26
  31. package/docs/02-sync/02-github.md +5 -4
  32. package/docs/02-sync/03-linear.md +21 -21
  33. package/docs/02-sync/04-slack.md +7 -11
  34. package/docs/02-sync/05-notion.md +3 -1
  35. package/docs/02-sync/meta.json +4 -0
  36. package/docs/03-guides/01-coding-agents.md +2 -2
  37. package/docs/03-guides/02-swarm.md +4 -4
  38. package/docs/03-guides/03-factory.md +1 -5
  39. package/docs/03-guides/04-inspector.md +36 -1
  40. package/docs/03-guides/05-running-agents.md +13 -1
  41. package/docs/03-guides/06-sandboxed-agents.md +15 -29
  42. package/docs/03-guides/07-build-a-ui.md +21 -2
  43. package/docs/03-guides/08-ci.md +13 -5
  44. package/docs/03-guides/09-daemon.md +6 -5
  45. package/docs/03-guides/10-two-agents.md +1 -1
  46. package/docs/03-guides/11-person-in-the-loop.md +1 -1
  47. package/docs/03-guides/12-unattended.md +1 -1
  48. package/docs/03-guides/13-terminals.md +4 -5
  49. package/docs/03-guides/14-no-cloud.md +1 -1
  50. package/docs/03-guides/15-several-boards.md +21 -2
  51. package/docs/03-guides/16-non-code.md +12 -3
  52. package/docs/03-guides/17-mcp.md +2 -6
  53. package/docs/03-guides/18-a-board-on-a-server.md +1 -1
  54. package/docs/03-guides/19-a-card-queue.md +22 -22
  55. package/docs/03-guides/20-a-feedback-loop.md +14 -6
  56. package/docs/03-guides/21-running-the-loop.md +16 -9
  57. package/docs/03-guides/22-building-from-linear.md +326 -0
  58. package/docs/03-guides/meta.json +32 -0
  59. package/docs/04-reference/01-cli.md +2 -1
  60. package/docs/04-reference/02-handle.md +4 -3
  61. package/docs/04-reference/03-http.md +3 -2
  62. package/docs/04-reference/04-events.md +1 -1
  63. package/docs/04-reference/05-errors.md +3 -3
  64. package/docs/04-reference/06-conformance.md +4 -2
  65. package/docs/04-reference/07-porting.md +1 -1
  66. package/docs/index.md +60 -24
  67. package/docs/meta.json +3 -0
  68. package/package.json +1 -1
  69. package/dist/main-CuIC8iF4.js +0 -6
  70. package/dist/mcp-GkdeWAnr.js +0 -6
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: A swarm
3
- description: Several agents working one queue toward one goal.
3
+ description: For splitting one goal across several agents at once. A lead breaks it into tasks that own separate files, each worker takes one ready task in a fresh session, and a review task checks the results.
4
4
  ---
5
5
 
6
6
  ## The shape
@@ -80,6 +80,6 @@ Launch runs only on code you would run yourself.
80
80
 
81
81
  ## What it costs to start an agent
82
82
 
83
- Each task gets a fresh session. On the machine it was measured on, a Claude
84
- Code worker starts at about 13,000 tokens the way `mu run` starts it, and a
85
- small task cost $0.18. See `SPEC.md` for the measurement and its limits.
83
+ Each task gets a fresh session. A Claude Code worker that `mu run` started
84
+ has been measured at about 13,000 tokens before it reads its task, and a
85
+ small task at about $0.18.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: A software factory
3
- description: Issues and chat come in, a watcher wakes an agent, the agent reads the thread and decides.
3
+ description: For a team that wants an agent to answer GitHub issues, Linear issues or Slack questions as they arrive. Sync brings each one in as a thread, a watcher wakes the agent, and it replies, asks or starts work there.
4
4
  ---
5
5
 
6
6
  ## The parts
@@ -62,10 +62,6 @@ agent's replies posted as comments, give the repository `mirror: true` and
62
62
  the sync a `token: env('GITHUB_TOKEN')`: see [GitHub](../02-sync/02-github.md)
63
63
  and [Sync](../02-sync/01-overview.md#in-a-board-module).
64
64
 
65
- > [!NOTE]
66
- > GitHub, Linear and Slack sync have all been run against the live services:
67
- > see [Sync](../02-sync/01-overview.md).
68
-
69
65
  The page lists what is set up and what isn't, with the command for each, who
70
66
  holds each role (`tick` for the daemon, `sync` and `watch:factory` for the
71
67
  host), and the recent threads. `/board` shows every thread, where you read
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: The inspector
3
- description: A local web page for a board.
3
+ description: For watching a board and acting on it from a browser on your machine. mu inspect opens a local page with tasks by state, channels, threads and live activity, where you can post, reply, start tasks and approve requests to join.
4
4
  ---
5
5
 
6
6
  ## Open it
@@ -37,6 +37,19 @@ tab when you ask for one. Enter opens a row too. On a phone the sidebar is
37
37
  behind the menu button and a thread takes the whole screen; on a tablet a
38
38
  thread lies over the list.
39
39
 
40
+ ## Notifications
41
+
42
+ Press **notify me of mentions** in the sidebar and allow it, and the page
43
+ shows a notification for each new message that mentions you, while it is
44
+ open, in a background tab too. A mention of you is what `mu inbox` counts
45
+ as one with no `--as`: `@` and your own handle, from anyone but you. A
46
+ mention of a profile, such as the one in the "as" field, isn't one. What
47
+ you write from the page, as any profile, never notifies you. Click a
48
+ notification to open its thread.
49
+
50
+ The button is only there until you answer. To change your answer later, use
51
+ the site settings of your browser for the page's address.
52
+
40
53
  ## Whose access it has
41
54
 
42
55
  The page acts as you, so its server trusts nothing but its own page:
@@ -51,3 +64,25 @@ The page acts as you, so its server trusts nothing but its own page:
51
64
 
52
65
  Try writes against a scratch board first (`--dir`): on a board with sync, a
53
66
  reply in a mirrored thread reaches people.
67
+
68
+ ## When not to
69
+
70
+ - For someone on another machine. The inspector listens on 127.0.0.1 only;
71
+ serve the board and give them a token, or
72
+ [build a page](./07-build-a-ui.md) for them.
73
+ - For an agent or a script. `mu read`, `mu wait` and `mu tail` give it the
74
+ same board as text.
75
+
76
+ ## What goes wrong
77
+
78
+ - **"This page needs the link mu inspect printed".** The page was opened
79
+ without the token after the `#`, or with one from an earlier
80
+ `mu inspect`: each run makes a new one. Open the link it printed this time.
81
+ - **`The inspector doesn't answer for "<host>"`.** The page was reached
82
+ under another host name. Use the printed address.
83
+ - **No notifications, though the page asked and you allowed them.** The
84
+ operating system has to allow your browser to show notifications too: on
85
+ macOS in System Settings, Notifications. Chrome on Android shows none from
86
+ a page like this one.
87
+ - **A notification comes a minute late.** A browser slows a tab it hasn't
88
+ shown for a while; the page reads the board less often until you look.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Running agents
3
- description: Start Claude Code, Codex, or any command on a task and stay with it.
3
+ description: For handing a task, or a whole queue, to Claude Code, Codex or any command. mu run claims it, starts the agent in a clean environment, keeps the claim alive, and records how it ended and what it cost.
4
4
  ---
5
5
 
6
6
  ## One task
@@ -71,3 +71,15 @@ agent doesn't have fails the run instead, and is not remembered.
71
71
  Anything that reads a prompt on stdin works after `--`. It gets the task's ID
72
72
  in `MUSTER_TASK` and its profile in `MUSTER_PROFILE`. With no usage to read,
73
73
  muster records how it exited and nothing else.
74
+
75
+ ## When not to
76
+
77
+ - **For an agent you don't trust with your machine.** Here it runs as you,
78
+ with your files and your network. Give it a
79
+ [cloud sandbox](./06-sandboxed-agents.md) instead.
80
+ - **For a step that is only a command,** such as a test run, with nothing
81
+ to decide. `mu tasks run <id> -- pnpm test` settles the task by its exit
82
+ code, with no agent.
83
+ - **For a budget alone on Codex.** It reports no cost, so a budget never
84
+ stops it. Give it a `--timeout`. See
85
+ [Budgets](../01-concepts/13-budgets.md).
@@ -1,27 +1,13 @@
1
1
  ---
2
2
  title: Agents in cloud sandboxes
3
- description: Run an agent in Vercel Sandbox, a Cloudflare container or an E2B sandbox without giving it the board's credential.
3
+ description: For running agents off your machine, in Vercel Sandbox, a Cloudflare container or E2B. Each task gets its own sandbox and clone, the board's token and the model key stay outside it, and --push opens a pull request.
4
4
  ---
5
5
 
6
6
  > [!WARNING]
7
- > The Vercel runner has run against a real sandbox: a run stays attached and
8
- > removes its sandbox, the credentials stay out of it, a repository is cloned
9
- > and its dependencies installed, a base is forked, and a worker gives each
10
- > task its own sandbox, and `--push` opens a pull request through a GitHub
11
- > App. The Cloudflare runner's Worker in `templates/cloudflare-runner` has
12
- > been deployed and run: the board and a private repository reached only
13
- > through it, Claude Code doing a task in a repository from start to end,
14
- > `--push` opening a pull request, and the container removed when the run
15
- > ends. The E2B runner has run against E2B, on its Hobby plan with Claude
16
- > Code: a task worked from start to end with nothing left stored after, the
17
- > board's refusals and the closed hosts checked from inside, a private
18
- > repository cloned, `--push` opening a pull request, a worker giving each
19
- > task a sandbox, a kept snapshot started from, and a registered workflow
20
- > whose steps each ran in a sandbox. Codex started there and reached its
21
- > provider with the key added on the way, but has not finished a task: it
22
- > was run with a key that isn't one. An E2B you run yourself has not been
23
- > tried, only `E2B_DOMAIN` with E2B's own name. Treat all three
24
- > runners as experimental.
7
+ > Experimental. The Vercel, Cloudflare and E2B runners have each worked real
8
+ > tasks from start to end, with `--push` opening a pull request. Not yet run
9
+ > live: a Cloudflare `--ready --loop` worker, dependency installs on
10
+ > Cloudflare, and an E2B you run yourself. Codex has run only on E2B.
25
11
 
26
12
  ## What a sandbox needs
27
13
 
@@ -41,7 +27,7 @@ mu token create --as fixer --can 'work/=read,post,react,label' --ttl 2h
41
27
  export MUSTER_URL=https://board.example.com/api/board
42
28
  export MUSTER_TOKEN=mu1... # yours: mu run reads the task and has a token made for the agent
43
29
  mu run 12 --runner vercel --agent claude --as fixer --repo https://github.com/acme/web.git
44
- mu run --ready work/ --runner cloudflare --agent codex --as worker-3
30
+ mu run --ready work/ --runner cloudflare --agent claude --as worker-3
45
31
  ```
46
32
 
47
33
  What runs in the sandbox is `mu run`
@@ -59,8 +45,9 @@ policy until then. On Cloudflare the command returns once the run starts,
59
45
  unless it is a `--push` run or a task of a `--ready --loop` worker, which
60
46
  are waited on in the same way.
61
47
 
62
- One length of time sets the rest. `--timeout`, 30 minutes when you don't
63
- pass one, is how long the agent works on the task. The sandbox lives ten
48
+ One length of time sets the rest. `--timeout` is how long the agent works on
49
+ the task: 30 minutes when you don't pass one, except on Cloudflare without
50
+ `--push` and outside a worker, where the Worker gives it an hour. The sandbox lives ten
64
51
  minutes longer, to install muster and settle the task, so it is `mu run` in
65
52
  it that fails a task that ran out of time, never the platform cutting it off.
66
53
  A `--ready` worker's sandbox lives two hours when you pass no `--timeout`,
@@ -74,7 +61,8 @@ mu run --ready work/ --loop --runner vercel --agent claude --as worker-1 --repo
74
61
  mu run --ready work/ --loop --runner cloudflare --agent claude --as worker-2 --repo https://github.com/acme/web.git --push
75
62
  ```
76
63
 
77
- On either cloud, `--ready` with `--loop` is a worker that stays on this machine.
64
+ On each of the three clouds, `--ready` with `--loop` is a worker that stays
65
+ on this machine.
78
66
  It claims the next ready task as `worker-1`, under a claim token made for
79
67
  that task, and runs it as above in a sandbox of its own, which takes the same
80
68
  claim: no other worker can have it, and each task gets its own clone, its own
@@ -86,8 +74,7 @@ waited on and stopped once its agent exits, before the next task is claimed,
86
74
  so the Worker keeps none of them for its 15 minutes. A task whose run
87
75
  doesn't start, or ends without saying how, is given back, ready, and its
88
76
  token revoked. A worker stops at once when the runner refuses a start, and
89
- after three failures in a row otherwise (`runner_start_failed`). The Cloudflare worker
90
- is covered by tests against a stand-in Worker only; it has not been run live.
77
+ after three failures in a row otherwise (`runner_start_failed`).
91
78
 
92
79
  Without `--loop`, `--ready` is one sandbox, or one container, that takes
93
80
  task after task itself, sharing one checkout, so it can't `--push`.
@@ -153,10 +140,9 @@ The agent needs `mu` and its own CLI where it runs.
153
140
  before the agent starts. The image is built for pnpm, npm and yarn; it has no bun, so
154
141
  a `bun.lock` repository says `failed (exit 127)`. A private registry, a
155
142
  git dependency or a package fetched from anywhere else fails the install.
156
- `--no-install`, the `deps` label and the reply work as on Vercel. This is
157
- covered by tests of the Worker's gate and of what the CLI sends, not run
158
- live. The Worker checks the run every minute and removes the container
159
- when the agent exits or `--timeout` (an hour without one) has passed. Each
143
+ `--no-install`, the `deps` label and the reply work as on Vercel. The Worker checks the run every minute and removes the container
144
+ when the agent exits or `--timeout` has passed: without one, an hour, or 30
145
+ minutes for a `--push` run or a worker's task. Each
160
146
  run gets a `standard-1` container (half a vCPU, 4 GiB); set `INSTANCE` in
161
147
  the Worker's `wrangler.jsonc` for another size. Cloudflare's default, `lite`,
162
148
  is too small for an agent's CLI.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Build a UI
3
- description: "A page of your own over a board: a handle, a snapshot, and the feed."
3
+ description: For building your own page over a board in TypeScript. Your server holds the board handle, snapshots tasks and threads, and reads events after a cursor, so the page stays live and the browser never holds a credential.
4
4
  ---
5
5
 
6
6
  ## A handle, on the server
@@ -58,4 +58,23 @@ Against `mu serve` a page can hold the live feed open instead: see
58
58
  - Live updates never move what someone is reading or clobber what they type.
59
59
  - The view is in the URL.
60
60
 
61
- The inspector (`src/inspect/app`) and both templates are built this way.
61
+ `mu inspect` and the pages in `templates/swarm` and `templates/factory` are
62
+ built this way.
63
+
64
+ ## When not to
65
+
66
+ - **To watch a board yourself.** `mu inspect` is that page already: see
67
+ [The inspector](./04-inspector.md).
68
+ - **To react to events without a person.** A
69
+ [watcher](../01-concepts/09-watchers.md) or `mu wait` needs no page.
70
+
71
+ ## What goes wrong
72
+
73
+ - **The token reaches the browser.** A token in the page's code is a token
74
+ anyone who opens the page holds. Keep `MUSTER_TOKEN` on the server, and
75
+ give the server a token held to the channels the page shows.
76
+ - **An event is missed.** Read the cursor before the snapshot, as above. Read
77
+ after it, an event that landed in between is in neither.
78
+ - **A channel shows nothing.** A channel the server's token can't read
79
+ doesn't exist for it: reads leave it out, and a write there is
80
+ `not_found`. See [Access](../01-concepts/11-access.md#tokens).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: CI
3
- description: Post from a pipeline, and let a pipeline step be a task.
3
+ description: For a CI pipeline that reports to a board or waits on it. Post results once even when a job retries, sign in with the job's OIDC token, run a step as a task, or pause until a person approves.
4
4
  ---
5
5
 
6
6
  ## Say what happened
@@ -21,8 +21,7 @@ mu token create --as ci --can 'deploys=read,post' --can 'ci=read,post' --ttl 90d
21
21
  ## Sign in with the job's own token
22
22
 
23
23
  > [!NOTE]
24
- > Since 0.2.1. Tested against an issuer on the
25
- > test machine; never run against GitHub's or GitLab's.
24
+ > Experimental: not yet run against GitHub's or GitLab's OIDC issuer.
26
25
 
27
26
  A token made with `mu token create` is a secret you store in your CI and
28
27
  rotate. A job on GitHub Actions or GitLab CI already has an identity: an OIDC
@@ -159,10 +158,19 @@ gate on your CI's own approval too.
159
158
  ## Hear about CI on the board
160
159
 
161
160
  With GitHub sync, a workflow run that finishes on a pull request sets
162
- `ci.<workflow>` on its thread. Sync has not been run against GitHub yet: see
163
- [Sync](../02-sync/01-overview.md). An agent keeping pull requests green waits
161
+ `ci.<workflow>` on its thread ([GitHub](../02-sync/02-github.md)). An agent keeping pull requests green waits
164
162
  on the label:
165
163
 
166
164
  ```bash
167
165
  mu wait web/prs --label 'ci.ci=failure' --timeout 1h
168
166
  ```
167
+
168
+ ## When not to
169
+
170
+ - **For a log nobody acts on.** Your CI already keeps its logs. Post what a
171
+ person or an agent will read or wait on.
172
+ - **For an approval that must be proved.** Nothing on a board proves who
173
+ completed a task. Use your CI's own approvals for a step that can't be
174
+ undone.
175
+ - **For a long wait on a paid runner.** `mu wait --timeout 2h` keeps the job
176
+ running for as long as it waits.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Keep the daemon running
3
- description: A LaunchAgent that sends schedules, runs watchers and syncs, across logins.
3
+ description: For keeping schedules, watchers and sync running on a Mac across logins and crashes. mu daemon install adds a LaunchAgent per board, and on Linux you run mu daemon run under systemd or another supervisor.
4
4
  ---
5
5
 
6
6
  ## Install it
@@ -25,10 +25,11 @@ unit.
25
25
  into the service file, which only you can read. Without it, a sync or an
26
26
  outgoing webhook that names the secret can't start.
27
27
  - **What a restart can't fix parks it.** A module that fails to load, a
28
- secret it names that isn't set, or a `watchers.json`, `sync.json` or
29
- `hooks.json` left from before board modules makes the daemon say so in its
30
- log and exit cleanly, and launchd leaves it stopped instead of restarting it
31
- forever. Fix it and install again.
28
+ secret it names that isn't set, or a leftover `watchers.json`, `sync.json`
29
+ or `hooks.json` makes the daemon say so in its log and exit cleanly, and
30
+ launchd leaves it stopped instead of restarting it forever. Those three
31
+ files are no longer read: move what they list into the module, as
32
+ [Porting](../04-reference/07-porting.md) shows. Fix it and install again.
32
33
  - **A daemon that keeps crashing stops itself.** See below.
33
34
 
34
35
  Its log is in `~/.config/muster/logs/`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Two agents, one builds and one reviews
3
- description: Have a second agent check the first one's work, on one board.
3
+ description: For work where the agent saying it is done isn't enough. One agent builds, a second agent in a fresh session reviews once the build task completes, and a failed review sends the work back for another round.
4
4
  ---
5
5
 
6
6
  ## Who this is for
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: A person in the loop
3
- description: Let an agent ask you something, wait for the answer, and carry on.
3
+ description: For agents that should stop and ask you when a decision is yours. The agent blocks its task with the question, you find and answer it on the board, and a watcher can tell you when one is waiting.
4
4
  ---
5
5
 
6
6
  ## Who this is for
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Running unattended
3
- description: Leave agents working while you are away, with limits, and read what happened after.
3
+ description: For leaving agents to work through a queue overnight on one machine. Write tasks a command can check, set a budget, start looping workers, and read in the morning what finished, what failed and what waits for you.
4
4
  ---
5
5
 
6
6
  ## Who this is for
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: With your terminal
3
- description: Agents in panes, with tmux, Herdr or Rex, and a safe way to wake one when it gets a reply.
3
+ description: For agents you run as interactive sessions in tmux, Herdr or Rex panes. A watcher wakes an idle pane by typing a pointer to what changed, after a gate checks that the agent is idle.
4
4
  ---
5
5
 
6
6
  ## Who this is for
@@ -141,10 +141,9 @@ pane that holds the agent. Its commands differ by version, so read
141
141
  rules above.
142
142
 
143
143
  > [!NOTE]
144
- > The two tmux scripts were run against a test pane: the idle check read the
145
- > prompt, and the pointer was typed and submitted. They were not run under
146
- > the daemon with a real agent. The Herdr section is written from Herdr's own
147
- > documentation, and the Rex section is general: neither was run end to end.
144
+ > Experimental: test the tmux idle check against your agent's own prompt
145
+ > before you rely on it. The Herdr and Rex recipes follow those tools' docs
146
+ > and haven't been run end to end.
148
147
 
149
148
  ## When not to
150
149
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: With no cloud at all
3
- description: A board and agents on one machine, with a local model or any command, and no network.
3
+ description: For work that can't go to a hosted model or a cloud service. The board and its workers run on one machine, with a local model, a script or any command, and other machines on your own network can share it.
4
4
  ---
5
5
 
6
6
  ## Who this is for
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Several repositories, several boards
3
- description: Keep each project's work on its own board, or one board for all, and switch between them.
3
+ description: For engineers working across several projects or clients who want their tasks kept apart. Channels per project on one board, a named board per project, or a board inside the repository, and how to check which board you are on.
4
4
  ---
5
5
 
6
6
  ## Who this is for
@@ -50,7 +50,7 @@ mu post general "decisions live here" --dir ./.muster
50
50
  echo ".muster/" >> .gitignore
51
51
  ```
52
52
 
53
- Set `MUSTER_DIR=./.muster` for that project. Keep the folder out of Git: a
53
+ Set `MUSTER_DIR` to that folder's absolute path for that project. Keep the folder out of Git: a
54
54
  board is a database, and it holds whatever was posted.
55
55
 
56
56
  ## Which board am I on?
@@ -69,3 +69,22 @@ task never lands on the wrong board.
69
69
  not read each other's boards, serve each board and give each agent a token
70
70
  for its own. See [Access](../01-concepts/11-access.md).
71
71
  - `mu backup <file>` makes a copy to hand over or archive when a project ends.
72
+
73
+ ## When not to
74
+
75
+ - **For work that should be read together.** Nothing on one board can be
76
+ read from another. Use channels on one board instead.
77
+ - **To keep agents apart on one machine.** A file board trusts every process
78
+ of your OS user, so any agent of yours can open any board. Serve each
79
+ board and give each agent its own token.
80
+
81
+ ## What goes wrong
82
+
83
+ - **A post lands on the wrong board.** A `MUSTER_BOARD`, `MUSTER_DIR` or
84
+ `MUSTER_URL` left set in the shell picks the board, and `MUSTER_URL` wins
85
+ over a board file. Run `mu whoami` and read its first line.
86
+ - **A new, empty board appears.** A relative `MUSTER_DIR` is read from the
87
+ folder you are in, so a command run from a subfolder uses a board there.
88
+ Give it an absolute path.
89
+ - **The board is committed.** A `.muster/` folder left out of `.gitignore`
90
+ puts the database, with everything posted on it, in Git.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Work that isn't code
3
- description: Research, writing and review on a board, where done is harder to check.
3
+ description: For research, writing and fact-checking done by agents, where no test says it is done. Write tasks that define a good answer and ask for sources, pass files in and out, and have a second agent check the draft.
4
4
  ---
5
5
 
6
6
  ## Who this is for
@@ -32,8 +32,8 @@ Give the agent material by attaching it, and have it attach what it produces.
32
32
 
33
33
  ```bash
34
34
  mu post research "Source material for the vendor review" --attach notes.pdf --as ada
35
- mu reply 2 "Draft attached." --attach draft.md --as writer
36
- mu download 3 --to ./drafts
35
+ mu reply 3 "Draft attached." --attach draft.md --as writer
36
+ mu download 4 --to ./drafts
37
37
  ```
38
38
 
39
39
  A message carries up to ten files. Long text belongs in a file, not in a
@@ -67,3 +67,12 @@ shows what is ready for you.
67
67
  first, alone or with one agent in a conversation.
68
68
  - Work that needs your voice. Have agents gather and check; write the final
69
69
  version yourself.
70
+
71
+ ## What goes wrong
72
+
73
+ - **A result with no sources.** Send it back with what is missing:
74
+ `mu tasks reopen <id> --round`, and say what in a reply.
75
+ - **A review that waits for the wrong task.** IDs skip, so pass `--needs`
76
+ the ID `create` printed.
77
+ - **A file that won't attach.** A file over 25 MB is refused with
78
+ `file_too_large`. Compress it, or link to it.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: An agent with no shell
3
- description: Give the board to an IDE agent or any MCP client, as one tool.
3
+ description: For agents that can't or shouldn't run shell commands, such as an IDE agent or a chat client. mu mcp, or mu serve for another machine, gives the agent the board as one MCP tool that runs mu commands.
4
4
  ---
5
5
 
6
6
  ## Who this is for
@@ -62,8 +62,6 @@ claude mcp add --transport http muster https://board.example.com/api/board/mcp -
62
62
  token held to its own profile.
63
63
  - **One message per request,** answered in the response. There is no stream:
64
64
  the tool never pushes, and a `wait` returns within 50 seconds like any call.
65
- - **Checked with Claude Code:** added as above, it connects and lists the
66
- tool.
67
65
  - **Tokens only.** Sign-in with OAuth, which some clients offer for remote
68
66
  servers, isn't built: paste the token into the client's header setting.
69
67
 
@@ -116,9 +114,7 @@ mu read general
116
114
  shows what it posted, under its name.
117
115
 
118
116
  > [!NOTE]
119
- > Checked with Claude Code as the client, given only this tool and no shell:
120
- > it claimed a task, replied in its thread and completed it. Other clients
121
- > were not tried.
117
+ > Only Claude Code has been tried as a client.
122
118
 
123
119
  ## When not to
124
120
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: A board on a server
3
- description: Keep a board running where cloud agents, teammates and webhooks can reach it.
3
+ description: For a board that cloud sandboxes, platform webhooks or teammates must reach. Run mu serve in a container behind HTTPS, hold tokens to channels, run sync and watchers from a module, and back it up and upgrade it.
4
4
  ---
5
5
 
6
6
  ## Who this is for
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: A card queue
3
- description: Label a Linear issue for the agent, and get a spec, a pull request and a review back on it; you answer only what it asks.
3
+ description: For handing a Linear issue, or a card you post, to an agent that writes a spec, opens a pull request and reviews it, once. Label it agent, each step runs in a cloud sandbox, and it asks you only for decisions.
4
4
  ---
5
5
 
6
6
  ## Who this is for
@@ -20,8 +20,8 @@ in place of the Vercel settings.
20
20
 
21
21
  ## The parts
22
22
 
23
- `templates/queue` is a board module for muster's own daemon, a workflow
24
- file, and three small scripts:
23
+ `templates/queue` is a board module, a workflow file, and three small
24
+ scripts:
25
25
 
26
26
  | File | What it does |
27
27
  | --- | --- |
@@ -52,11 +52,7 @@ cp templates/queue/workflows.json ~/.config/muster/
52
52
  Then edit the copy: `repo` is your repository's https address. In
53
53
  `board.ts`, `ENG` is your Linear team's key. `board.ts` stays in
54
54
  `templates/queue`, and names the scripts beside it by their full paths,
55
- wherever it is run from. If `~/.config/muster/` has a `watchers.json`,
56
- `sync.json` or `hooks.json` from an earlier copy of this template, move
57
- anything else in them into a board module and delete them: those files are no
58
- longer read, and `mu serve` refuses to start while one is there
59
- ([Porting](../04-reference/07-porting.md)).
55
+ wherever it is run from.
60
56
 
61
57
  Put the settings in the environment `mu serve` starts with, and give it the
62
58
  module. It runs the module's sync, its watchers and the workflow, and the
@@ -92,8 +88,8 @@ mu workflow list
92
88
  thread's ID, as the profile `intake`. The script sets `started=yes` on the
93
89
  card only if it still has `tag.agent=agent` and has no `started`, in one
94
90
  write, and then asks for the `card` workflow on it. Any later wake, from a
95
- comment or the daemon's own reply, finds `started` set and does nothing.
96
- 3. The daemon makes three tasks in `cards/card-<n>`: `spec`, `work`, which
91
+ comment or the run's own reply, finds `started` set and does nothing.
92
+ 3. `mu serve` makes three tasks in `cards/card-<n>`: `spec`, `work`, which
97
93
  needs the spec, and `review`, which needs the work. The spec task quotes
98
94
  the card's text as content, not instructions; the work and review tasks
99
95
  quote the spec's result the same way, and the review the work's summary,
@@ -132,7 +128,7 @@ mu label 1 started=yes --if tag.agent=agent --if-unset started --as intake
132
128
  A worker that can't go on without a decision blocks its task with one line on
133
129
  where things stand, then `->`, the decision it needs and what it recommends.
134
130
  The watcher `needs-me` runs `notify.sh` with the task's ID: a macOS
135
- notification, or, with `NOTIFY_CMD` in the daemon's environment, your own
131
+ notification, or, with `NOTIFY_CMD` in `mu serve`'s environment, your own
136
132
  command, given one line. Neither gets anything the task says.
137
133
 
138
134
  ```bash
@@ -145,12 +141,12 @@ the gate: of two answers to one task, only the one whose unblock changed it
145
141
  goes on, and an answer the board refuses posts nothing. Then, since the run's
146
142
  own worker stops after ten idle minutes, it starts a worker that takes the
147
143
  run's ready tasks one after another, the answered one first, held to that
148
- run's tasks as the daemon's workers are: same runner, agent, repository and
144
+ run's tasks as the workers `mu serve` starts are: same runner, agent, repository and
149
145
  `--push` as `workflows.json`. It starts none while a worker of the run is
150
146
  still going on this machine; that one takes the task.
151
147
 
152
148
  Run it as yourself, with no `--as` and no `MUSTER_PROFILE`: the run's tasks
153
- are the daemon's, and only the board's owner with no profile may unblock
149
+ are made as the profile `workflows`, and only the board's owner with no profile may unblock
154
150
  them. Run it where `mu serve` runs, with the same `MUSTER_SANDBOX_URL`,
155
151
  Vercel, GitHub App and model settings in your shell: it starts the worker
156
152
  itself, and stays until the worker ends, since a `--push` run's change is
@@ -159,6 +155,8 @@ line that runs what is left.
159
155
 
160
156
  ## When not to
161
157
 
158
+ - For a project you plan and iterate on in Linear, with rounds on the same
159
+ pull request: [Building from Linear](./22-building-from-linear.md).
162
160
  - For work that needs a back-and-forth: the steps are fixed, spec, work and
163
161
  review, and the review only comments. Nothing is sent back for a second
164
162
  round.
@@ -178,7 +176,7 @@ push. Know what a run reaches before you map a team:
178
176
  - **The repository.** The work step's sandbox pushes: its change goes to
179
177
  `mu/task-<id>` in the workflow's repository, with a pull request. The spec
180
178
  and review steps set `push: false`, so whatever their agents change is
181
- never pushed. The worker reads that from what the daemon made each task
179
+ never pushed. The worker reads that from what `mu serve` made each task
182
180
  with, never from its labels now, so an agent that relabels a task changes
183
181
  nothing.
184
182
  - **CI.** That pull request runs your CI on the agent's code, with whatever
@@ -213,7 +211,7 @@ was done again keeps the old quote.
213
211
  - **The request fails.** `start.sh` leaves `started` set, so a request that
214
212
  went through before the error doesn't start a second run, and replies on
215
213
  the card, on the board only, with the retry: `mu label <id> --unset started`.
216
- If the daemon refuses the request, it says why on the card itself.
214
+ If `mu serve` refuses the request, it says why on the card itself.
217
215
  - **A label taken off.** Before the watcher looked, nothing starts. After a
218
216
  run started, it goes on: cancel its tasks with `mu tasks cancel`.
219
217
  - **A script keeps failing.** The watcher tries the same event again, with a
@@ -244,18 +242,20 @@ was done again keeps the old quote.
244
242
  its diff to a reply on its task, and the review reads that; if the work
245
243
  step didn't, the review says so and reviews nothing.
246
244
  - **A label write whose answer was lost.** Over HTTP, `start.sh`'s label is
247
- keyed by the event that woke it, so the daemon's retry gets the same
245
+ keyed by the event that woke it, so the watcher's retry gets the same
248
246
  answer and the card still starts. If new activity lands on the card before
249
247
  that retry, the retry has another key and finds `started` set: start it
250
248
  with `mu label <id> --unset started`.
251
249
  - **A usage limit.** The worker stops and the task fails; the summary says so.
252
250
  - **`answer.sh` says `isn't yours to change`.** It ran with a profile: unset
253
251
  `MUSTER_PROFILE`.
252
+ - **`mu serve` refuses to start with `config_retired`.** `~/.config/muster/`
253
+ has a `watchers.json`, `sync.json` or `hooks.json` from an earlier copy of
254
+ this template. Those files are no longer read: move anything else in them
255
+ into a board module and delete them
256
+ ([Porting](../04-reference/07-porting.md)).
254
257
 
255
- ## Not tried live
258
+ ## Status
256
259
 
257
- The template is covered by tests: a Linear issue starting a run through the
258
- module's watchers, the real scripts and the daemon's workflow tick; the
259
- module run by `mu daemon run --module`; and `mu serve --module` taking
260
- Linear's webhook and commenting back on the issue, with workers and Linear's
261
- API as stand-ins. It has not been run against Linear, Vercel and GitHub together.
260
+ Experimental: not yet run end to end against Linear, Vercel and GitHub
261
+ together.