@openmuster/muster 0.3.1-alpha.3 → 0.3.1-alpha.5

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 (57) hide show
  1. package/README.md +16 -10
  2. package/dist/{args-DX9QSK1f.js → args-CaFBa2IP.js} +305 -23
  3. package/dist/cli.js +3 -3
  4. package/dist/index.d.ts +67 -18
  5. package/dist/index.js +106 -41
  6. package/dist/inspect/app.js +79 -51
  7. package/dist/{main-DgrIMbeA.js → main-BeEB08iI.js} +397 -26
  8. package/dist/main-CLzQkYeG.js +6 -0
  9. package/dist/mcp-CAAZRJgv.js +6 -0
  10. package/dist/{module-C-HJjWWo.js → module-BX2IjSiv.js} +2 -2
  11. package/dist/{module-CxoN1MOe.js → module-D9KdbEpS.js} +1 -1
  12. package/dist/skills/board/SKILL.md +5 -0
  13. package/dist/{steps-DtzUdcBE.js → steps-FNDWY1P_.js} +16 -4
  14. package/docs/01-concepts/09-watchers.md +4 -32
  15. package/docs/01-concepts/10-schedules.md +1 -1
  16. package/docs/01-concepts/11-access.md +19 -3
  17. package/docs/01-concepts/13-budgets.md +66 -3
  18. package/docs/01-concepts/15-outgoing-webhooks.md +6 -19
  19. package/docs/01-concepts/16-workflows.md +22 -2
  20. package/docs/01-quickstart.md +74 -42
  21. package/docs/02-sync/01-overview.md +34 -2
  22. package/docs/02-sync/02-github.md +40 -19
  23. package/docs/02-sync/03-linear.md +103 -85
  24. package/docs/02-sync/04-slack.md +116 -111
  25. package/docs/02-sync/05-notion.md +46 -25
  26. package/docs/03-guides/01-coding-agents.md +51 -33
  27. package/docs/03-guides/02-swarm.md +30 -15
  28. package/docs/03-guides/03-factory.md +193 -80
  29. package/docs/03-guides/04-inspector.md +79 -29
  30. package/docs/03-guides/05-running-agents.md +62 -35
  31. package/docs/03-guides/06-sandboxed-agents.md +488 -305
  32. package/docs/03-guides/07-build-a-ui.md +86 -31
  33. package/docs/03-guides/08-ci.md +59 -36
  34. package/docs/03-guides/09-daemon.md +121 -53
  35. package/docs/03-guides/10-two-agents.md +31 -22
  36. package/docs/03-guides/11-person-in-the-loop.md +47 -34
  37. package/docs/03-guides/12-unattended.md +46 -27
  38. package/docs/03-guides/13-terminals.md +51 -39
  39. package/docs/03-guides/14-no-cloud.md +31 -19
  40. package/docs/03-guides/15-several-boards.md +61 -27
  41. package/docs/03-guides/16-non-code.md +29 -18
  42. package/docs/03-guides/17-mcp.md +37 -30
  43. package/docs/03-guides/18-a-board-on-a-server.md +66 -43
  44. package/docs/03-guides/19-a-card-queue.md +210 -121
  45. package/docs/03-guides/20-a-feedback-loop.md +298 -134
  46. package/docs/03-guides/21-running-the-loop.md +94 -64
  47. package/docs/03-guides/22-building-from-linear.md +81 -57
  48. package/docs/04-reference/01-cli.md +8 -0
  49. package/docs/04-reference/02-handle.md +10 -15
  50. package/docs/04-reference/03-http.md +1 -1
  51. package/docs/04-reference/04-events.md +2 -1
  52. package/docs/04-reference/05-errors.md +3 -0
  53. package/docs/04-reference/08-files.md +49 -0
  54. package/docs/index.md +22 -0
  55. package/package.json +1 -1
  56. package/dist/main-CdVlnWHy.js +0 -6
  57. package/dist/mcp-NueWYyQs.js +0 -6
@@ -11,6 +11,11 @@ that one agent at a time can hold. The command is `mu` (`muster` is the same
11
11
  program). `mu help` lists everything it does, and `mu <command> --help` one
12
12
  command's options.
13
13
 
14
+ If `mu` isn't on the path, it is installed with
15
+ `npm install -g @openmuster/muster`, or run once as
16
+ `npx @openmuster/muster <command>`. Not `npx mu`: `mu` on npm is another
17
+ package.
18
+
14
19
  ## Before anything else: where, and as whom
15
20
 
16
21
  ```bash
@@ -1,4 +1,4 @@
1
- import { $ as channelScope, C as ROUTES, J as LIMITS, P as configDir, X as WORKFLOWS_PROFILE, Y as PROGRESS, Z as actorId, et as inScope, n as duration, q as OPEN_STATES, rt as Failure, w as SANDBOX_ROUTES, y as MOUNT } from "./args-DX9QSK1f.js";
1
+ import { $ as PROGRESS, Q as LIMITS, R as configDir, T as SANDBOX_ROUTES, Z as OPEN_STATES, b as MOUNT, et as WORKFLOWS_PROFILE, it as inScope, r as duration, rt as channelScope, st as Failure, tt as actorId, w as ROUTES } from "./args-CaFBa2IP.js";
2
2
  import { chmodSync, closeSync, existsSync, mkdirSync, openSync, readFileSync, readdirSync, rmSync, statSync } from "node:fs";
3
3
  import { tmpdir } from "node:os";
4
4
  import { dirname, join } from "node:path";
@@ -2086,7 +2086,11 @@ function loadWorkflows(path = workflowsPath()) {
2086
2086
  if (w.push !== void 0 && typeof w.push !== "boolean") fail("has a \"workers.push\" that isn't true or false.");
2087
2087
  if ((w.push === true || steps.some((step) => step.push === true)) && !(cloud && typeof w.repo === "string" && githubRepo(w.repo))) fail("can only \"push\" with \"runner\": \"vercel\", \"cloudflare\" or \"e2b\" and a github.com https \"repo\".");
2088
2088
  if (w.timeout !== void 0) checkDuration(w.timeout, "workers.timeout");
2089
+ if (w.template !== void 0 && (typeof w.template !== "string" || !/^[A-Za-z0-9][A-Za-z0-9_.:/-]{0,127}$/.test(w.template))) fail("has a \"workers.template\" that isn't an E2B template name.");
2090
+ if (w.template !== void 0 && w.runner !== "e2b") fail("has a \"workers.template\", which is for \"e2b\" workers: no other runner makes a sandbox from a template you name.");
2091
+ if (w.model !== void 0 && (typeof w.model !== "string" || !/^[A-Za-z0-9][A-Za-z0-9_.:/-]{0,127}$/.test(w.model))) fail("has a \"workers.model\" that isn't a model name.");
2089
2092
  if (entryObject.timeout !== void 0) checkDuration(entryObject.timeout, "timeout");
2093
+ if (entryObject.mode !== void 0 && entryObject.mode !== "run" && entryObject.mode !== "suggest") fail("has a \"mode\" that isn't \"run\" or \"suggest\".");
2090
2094
  const workers = {
2091
2095
  count: w.count,
2092
2096
  agent: w.agent,
@@ -2095,7 +2099,9 @@ function loadWorkflows(path = workflowsPath()) {
2095
2099
  ...w.repo !== void 0 ? { repo: w.repo } : {},
2096
2100
  ...w.push !== void 0 ? { push: w.push } : {},
2097
2101
  ...w.cwd !== void 0 ? { cwd: w.cwd } : {},
2098
- ...w.timeout !== void 0 ? { timeout: w.timeout } : {}
2102
+ ...w.timeout !== void 0 ? { timeout: w.timeout } : {},
2103
+ ...w.template !== void 0 ? { template: w.template } : {},
2104
+ ...w.model !== void 0 ? { model: w.model } : {}
2099
2105
  };
2100
2106
  return {
2101
2107
  name,
@@ -2104,7 +2110,8 @@ function loadWorkflows(path = workflowsPath()) {
2104
2110
  channels: entryObject.channels,
2105
2111
  steps,
2106
2112
  workers,
2107
- ...entryObject.timeout !== void 0 ? { timeout: entryObject.timeout } : {}
2113
+ ...entryObject.timeout !== void 0 ? { timeout: entryObject.timeout } : {},
2114
+ ...entryObject.mode !== void 0 ? { mode: entryObject.mode } : {}
2108
2115
  };
2109
2116
  });
2110
2117
  }
@@ -2137,7 +2144,7 @@ function missingSettings(workers, env) {
2137
2144
  for (const name of ["MUSTER_CF_WORKER", "MUSTER_CF_SECRET"]) if (!env[name]) missing.push(name);
2138
2145
  }
2139
2146
  if (workers.runner === "e2b") {
2140
- for (const name of ["E2B_API_KEY", "MUSTER_E2B_TEMPLATE"]) if (!env[name]) missing.push(name);
2147
+ for (const name of ["E2B_API_KEY", ...workers.template ? [] : ["MUSTER_E2B_TEMPLATE"]]) if (!env[name]) missing.push(name);
2141
2148
  }
2142
2149
  if (workers.runner === "vercel") {
2143
2150
  const set = [
@@ -2229,6 +2236,8 @@ function workerArgv(workflow, run$1, seq, i, owner) {
2229
2236
  ...workers.repo ? ["--repo", workers.repo] : [],
2230
2237
  ...pushes(workflow) ? ["--push"] : [],
2231
2238
  ...workers.timeout ? ["--timeout", workers.timeout] : [],
2239
+ ...workers.template ? ["--template", workers.template] : [],
2240
+ ...workers.model ? ["--model", workers.model] : [],
2232
2241
  "--by",
2233
2242
  `${owner}+${WORKFLOWS_PROFILE}`,
2234
2243
  "--label",
@@ -2336,6 +2345,9 @@ async function runWorkflows(team, workflows, deps) {
2336
2345
  if (refusal !== null || !workflow) {
2337
2346
  await say(event.seq, thread, refusal);
2338
2347
  out.refused.push(event.seq);
2348
+ } else if (workflow.mode === "suggest") {
2349
+ await say(event.seq, thread, `would start ${name}: ${workflow.steps.length} ${workflow.steps.length === 1 ? "task" : "tasks"}, ${workflow.workers.count} ${workflow.workers.count === 1 ? "worker" : "workers"}; suggest only, nothing started`);
2350
+ (out.suggested ??= []).push(event.seq);
2339
2351
  } else {
2340
2352
  const result = await start(team, writer, workflow, {
2341
2353
  seq: event.seq,
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Watchers and the daemon
3
- description: A watcher runs your command when a matching event lands on the board, such as a blocked task or a mention. How the daemon hosts watchers, what the command receives, retries, gates, and mu daemon check.
3
+ description: A watcher runs your command when a matching event lands on the board, such as a blocked task or a mention. How the daemon hosts watchers, what the command receives, retries and gates.
4
4
  ---
5
5
 
6
6
  ## The daemon
@@ -95,7 +95,9 @@ export default board({
95
95
  A reminder the profile scheduled for itself wakes it too.
96
96
 
97
97
  Try the filter by hand first: `mu tail work/ --type task.completed --json`.
98
- The event a watcher gets is what that prints, one at a time.
98
+ The event a watcher gets is what that prints, one at a time. To check the
99
+ whole path, from the filter to an answer, see
100
+ [Check that a watcher wakes something](../03-guides/09-daemon.md#check-that-a-watcher-wakes-something).
99
101
 
100
102
  ## What a wake carries
101
103
 
@@ -113,36 +115,6 @@ The event a watcher gets is what that prints, one at a time.
113
115
  agent through `command()`, not through a function that pastes it into a
114
116
  prompt.
115
117
 
116
- ## Check that it wakes something
117
-
118
- ```bash
119
- mu daemon check lead
120
- mu daemon check triage --in work/checks --timeout 10m
121
- ```
122
-
123
- `check` writes a message the watcher's filter matches, then waits for a reply
124
- in its thread. A reply proves the whole path: a host runs the watcher, the
125
- filter matches, the gate lets it through, and the command wakes something
126
- that answers. It prints who answered and how long it took.
127
-
128
- - **Its message is built from the filter:** the watcher's channel, its labels,
129
- a mention or words it asks for. A watcher on a subtree needs `--in` to say
130
- which channel under it. It stays on the board, never synced.
131
- - **It fails fast when nothing runs the watcher** (`watcher_not_running`),
132
- before writing anything: no host holds its lease. If the daemon stopped
133
- restarting, it says that instead (`daemon_stopped`).
134
- - **A run that keeps failing is `wake_failed`,** after the five tries an
135
- event gets, which take a few minutes. A command that runs but wakes nothing
136
- that replies is `timeout`, with the thread to read.
137
- - **Some watchers can't be checked with a message:** one that listens only
138
- for task events, or only to a platform's users. Write what it listens for
139
- by hand instead.
140
-
141
- Whatever the command wakes has to reply. The agents in
142
- [A software factory](../03-guides/03-factory.md) and
143
- [With your terminal](../03-guides/13-terminals.md) read the thread and answer
144
- it like any other.
145
-
146
118
  ## What it promises
147
119
 
148
120
  - **It starts from now.** What was on the board before a watcher first ran
@@ -3,7 +3,7 @@ title: Schedules
3
3
  description: Schedule a message to post in a thread or channel later, once or on a period. The daemon or mu serve sends it, never twice, and a scheduled reply wakes watchers on its thread so an agent can check back.
4
4
  ---
5
5
 
6
- ## Check back later
6
+ ## A message for later
7
7
 
8
8
  ```bash
9
9
  mu schedule 12 "is the PR still open?" --in 2h
@@ -92,9 +92,25 @@ record of is refused, so restoring a board from an old backup stops the
92
92
  tokens made since.
93
93
 
94
94
  A token made before 0.2.0 may have no ID. Such a token can't be revoked and
95
- stops when it runs out. To stop one sooner, delete
96
- the board's key in `~/.config/muster/keys/`, which stops every token the board
97
- has made.
95
+ stops when it runs out. To stop one sooner, rotate the key and drop the old
96
+ one, as below.
97
+
98
+ ## Rotate the signing key
99
+
100
+ Rotate the key when you think it was copied: anyone with it can make tokens
101
+ the board accepts. Rotate in three steps, so tokens you still want keep
102
+ working until you replace them:
103
+
104
+ 1. `mu token rotate-key` puts a new key in place. Tokens made from now on are
105
+ signed with it. The old key is kept as retired, and tokens it signed still
106
+ work. Restart `mu serve` to use the new key.
107
+ 2. Make new tokens for the agents and machines you still trust, with
108
+ `mu token create`.
109
+ 3. `mu token drop-old-keys` deletes every retired key, which stops every token
110
+ they signed once `mu serve` restarts.
111
+
112
+ If the key was copied, run both commands at once and make new tokens after:
113
+ waiting leaves whoever has the old key able to make tokens.
98
114
 
99
115
  The signing key is made once and kept in `~/.config/muster/keys/`, so tokens
100
116
  survive a restart of `mu serve`.
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  title: Budgets
3
- description: A budget caps what the tasks under a channel may cost in dollars. Once it is spent, the board refuses new claims there with over_budget. Agents that report no cost, such as Codex, need a time limit instead.
3
+ description: A budget caps what the tasks under a channel may cost in dollars. Once it is spent, the board refuses new claims there with over_budget. Agents that report no cost, such as Codex, need a time limit instead. mu report shows how work went and what it cost, by agent and workflow.
4
4
  ---
5
5
 
6
- ## Set one
6
+ ## A budget is on a channel
7
7
 
8
8
  ```bash
9
9
  mu budget work 25
@@ -12,7 +12,9 @@ mu budget work --none
12
12
  ```
13
13
 
14
14
  A budget is on a channel and covers every task under it. `mu budget` with no
15
- argument lists them with what each has spent.
15
+ argument lists them with what each has spent, and `--none` lifts one. To
16
+ set one before agents work through a queue overnight, see
17
+ [Running unattended](../03-guides/12-unattended.md#set-a-limit-before-you-leave).
16
18
 
17
19
  ## What it counts, and what it stops
18
20
 
@@ -29,6 +31,67 @@ A looping worker (`mu run --ready work/ --loop`) stops when the board says the
29
31
  money is spent. `--budget <usd>` on the worker is a limit of its own, on what
30
32
  that one worker has spent.
31
33
 
34
+ ## Know the cost before a worker starts
35
+
36
+ ```bash
37
+ mu run --ready work --estimate --agent claude
38
+ ```
39
+
40
+ A looping worker (`mu run --ready work --loop`) prints one line before it
41
+ takes its first task, and `--estimate` prints only that line and starts
42
+ nothing:
43
+
44
+ ```text
45
+ 3 ready, about $0.90 at $0.30 a task
46
+ ```
47
+
48
+ The count is the ready tasks this worker may take, read as `--ready` reads
49
+ the channel (`work` is that channel, `work/` every channel under it): its
50
+ owners, `--from`, `--by`, `--label`, and tasks assigned to it or to nobody.
51
+ The price is what a task in that channel or under it cost that agent on
52
+ average over the last 30 days, from the `cost` labels below. With no cost
53
+ on record, as for Codex, it says `no cost history` and gives no figure.
54
+ An estimate changes nothing about a budget: the board still refuses claims
55
+ once the money is spent.
56
+
57
+ ## See how work went
58
+
59
+ ```bash
60
+ mu report work
61
+ mu report --since 7d --json
62
+ ```
63
+
64
+ `mu report` reads the tasks under a channel (every channel when you name
65
+ none) that changed in the last 30 days, or in `--since`. It groups them by
66
+ the `agent` label `mu run` writes, and again by the `workflow` label a
67
+ [workflow](./16-workflows.md)'s tasks have. It changes nothing.
68
+
69
+ ```text
70
+ since 2026-10-29 in #work
71
+ agent tasks 1st round rounds failed failing input cost per task
72
+ claude 2 1 50% 1.00 0 0 1 $0.60 $0.30
73
+ codex 1 0 0% 1.00 1 0 0 - -
74
+ ```
75
+
76
+ | Column | Meaning |
77
+ | --- | --- |
78
+ | `tasks` | Tasks in the group |
79
+ | `1st round` | Completed and never sent back with `tasks reopen --round`, and their share |
80
+ | `rounds` | Rounds on average: 1, and 1 more for each `--round` |
81
+ | `failed` | Tasks in the state `failed` now |
82
+ | `failing` | Tasks the board held as `failing` at least once |
83
+ | `input` | Times a task was held with kind `needs_input` |
84
+ | `cost`, `per task` | The sum of `cost` labels, and that sum over the tasks that have one |
85
+
86
+ What it can't say:
87
+
88
+ - **No model.** `mu run` records the agent, not the model it ran, so the
89
+ report has no model column.
90
+ - **The last run's cost.** Each run of a task writes its `cost` label
91
+ again, so a task sent back shows what its latest round cost.
92
+ - **No agent, no row of its own.** `mu run` writes `agent` only when it
93
+ read a session from the agent. Tasks without it are `(none)`.
94
+
32
95
  ## What it can't count
33
96
 
34
97
  An agent that reports no cost, as Codex does, adds nothing to the sum. Hold
@@ -89,9 +89,10 @@ Three headers come with it.
89
89
  | `muster-timestamp` | When this request was sent, in seconds since 1970 |
90
90
  | `muster-signature` | `v1=` and an HMAC-SHA256, in hex, of `<delivery>.<timestamp>.<body>` under your secret |
91
91
 
92
- ## Verify it
92
+ ### How a receiver checks the signature
93
93
 
94
- A receiver that skips this accepts requests from anyone who learns its URL.
94
+ A receiver that skips this check accepts requests from anyone who learns its
95
+ URL. This is the check in Node.js:
95
96
 
96
97
  ```js
97
98
  import { createHmac, timingSafeEqual } from 'node:crypto'
@@ -135,22 +136,6 @@ function fromMuster(headers, raw, secret) {
135
136
  `mu daemon run` from starting, and it says which variable. `mu serve` says
136
137
  the same on its error output and serves the board without the module.
137
138
 
138
- ## Check that it arrives
139
-
140
- ```bash
141
- mu daemon check phone
142
- mu daemon status
143
- ```
144
-
145
- `check` sends a signed ping to the hook's URL from this terminal and prints
146
- what the receiver answered. Its event has the type `ping` and is not on the
147
- board. The secret has to be set where you run it.
148
-
149
- - **`hook_failed`** when nothing answered, or the receiver refused it. A
150
- `401` or `403` usually means the two sides hold different secrets.
151
- - **It proves the URL and the secret, not the host.** Whether a host sends the
152
- hooks is `mu daemon status`, and its log says what each hook sent.
153
-
154
139
  ## When not to use one
155
140
 
156
141
  - **To wake an agent on this machine,** use a
@@ -163,7 +148,9 @@ board. The secret has to be set where you run it.
163
148
  ## What goes wrong
164
149
 
165
150
  - **Nothing arrives.** `mu daemon status` lists the hook, and
166
- `mu daemon check <name>` tries the URL. Then read the daemon's log in
151
+ `mu daemon check <name>` tries the URL: see
152
+ [Check that an outgoing webhook arrives](../03-guides/09-daemon.md#check-that-an-outgoing-webhook-arrives).
153
+ Then read the daemon's log in
167
154
  `~/.config/muster/logs/`: `failed hook phone at 41 HTTP 500` names the event
168
155
  and the answer. `mu serve` prints the same line on its error output.
169
156
  - **The daemon won't start.** A secret isn't set, or a hook shares its name
@@ -75,6 +75,7 @@ second workflow, is
75
75
  | `steps` | 1 to 20 tasks. `key` and `text` are required. `needs` names earlier keys, `for` gives the task to one profile, `labels` are `k: v` text, `push` (`true` or `false`) overrides `workers.push` for that step |
76
76
  | `workers` | The crew. See below |
77
77
  | `timeout` | How long a run may take before it is summed up as it stands, such as `2h`. Left out, `24h` |
78
+ | `mode` | `run` (the default) starts the run. `suggest` only says what it would start. See [Suggest only](#suggest-only) |
78
79
 
79
80
  `workers` takes:
80
81
 
@@ -88,13 +89,15 @@ second workflow, is
88
89
  | `repo` | The repository each task works on |
89
90
  | `push` | Push each task's changes and open a pull request. Needs `runner` set to `vercel`, `cloudflare` or `e2b`, and a `repo` on github.com. A step's own `push` wins over it |
90
91
  | `timeout` | A limit on each task, as `mu run --timeout` takes it |
92
+ | `template` | The E2B template each task's sandbox is made from, in place of `MUSTER_E2B_TEMPLATE`, as `mu run --template` takes it. Only with `runner` set to `e2b`. Two workflows can then work on repositories that need different tools |
93
+ | `model` | The model the agent uses, as `mu run --model` takes it |
91
94
 
92
95
  The file is checked when it is read. A step that `needs` a key that isn't an
93
96
  earlier step, two steps with one key, a `push` with nothing to push to, or a
94
97
  `{steps.<key>.result}` for a step it doesn't need is refused with a message
95
98
  that names the workflow.
96
99
 
97
- ## Starting one
100
+ ## Asking for a run
98
101
 
99
102
  ```bash
100
103
  mu workflow list
@@ -209,7 +212,7 @@ is told apart from anything a person writes.
209
212
  - **A cloud worker takes its settings from the daemon's environment,** as
210
213
  `mu run` would: `MUSTER_URL` or `MUSTER_SANDBOX_URL`, and for `vercel` the
211
214
  Vercel token, team and project, for `cloudflare` `MUSTER_CF_WORKER` and
212
- `MUSTER_CF_SECRET`, for `e2b` `E2B_API_KEY` and `MUSTER_E2B_TEMPLATE`, and with `push` the GitHub App's. Set them where the
215
+ `MUSTER_CF_SECRET`, for `e2b` `E2B_API_KEY` and `MUSTER_E2B_TEMPLATE` (unless the workflow names its own `template`), and with `push` the GitHub App's. Set them where the
213
216
  daemon starts; `mu daemon install` takes each with `--env <name>`. Experimental: Cloudflare workers have not yet
214
217
  run against a live Cloudflare account.
215
218
  - **Each request is one run.** Run it twice and the second run is a second
@@ -254,6 +257,7 @@ For a request on thread 812 in `work/api`, the daemon:
254
257
  | `couldn't start implement: …` | The board refused the tasks, such as a text that is too long |
255
258
  | `couldn't start implement: … (gave up after 5 tries)` | Five ticks in a row the board couldn't answer (busy, out of reach). The daemon reads on, so one request never holds up the rest |
256
259
  | `started 3 workers for implement; couldn't confirm the run: …` | The workers started, then the board refused or couldn't take the run's first message. They keep going; `mu tasks work/api/implement-41` shows how far they got |
260
+ | `would start implement: 3 tasks, 3 workers; suggest only, nothing started` | The workflow's `mode` is `suggest` |
257
261
  | `implement isn't registered here` | No such name in this daemon's file |
258
262
  | `<actor> may not start implement` | The requester isn't in `who` |
259
263
  | `implement doesn't run in work/other` | The thread's channel isn't in `channels` |
@@ -315,6 +319,22 @@ it before speaking as itself: `@` becomes a lookalike so it mentions nobody,
315
319
  `<` and `>` so Slack makes no ping or link, and a Markdown link is broken.
316
320
  A `pr` is shown only for a pull request URL on github.com.
317
321
 
322
+ ## Suggest only
323
+
324
+ Set `"mode": "suggest"` on a workflow to try it out, or to see what people
325
+ ask for before you let it spend money. The daemon checks the request as it
326
+ would any other: `who` and `channels` still refuse. Then it replies on the
327
+ thread with what it would start, and makes no tasks and starts no workers:
328
+
329
+ ```text
330
+ would start implement: 3 tasks, 3 workers; suggest only, nothing started
331
+ ```
332
+
333
+ The reply is the answer to that request. Nothing carries a suggestion out
334
+ later: switch the workflow to `"mode": "run"`, restart the daemon, and the
335
+ request is still answered. Ask again with `mu workflow run` to start it.
336
+ `mu workflow list` marks such a workflow `suggest only`.
337
+
318
338
  ## When not to use one
319
339
 
320
340
  - **For a one-off.** Make the tasks yourself with `mu tasks create`. A
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Quickstart
3
- description: Install mu, make a board on this machine, and take a task from created to completed, first by hand and then with Claude Code or Codex doing the work.
3
+ description: For anyone new to muster. You install mu, make a board on this machine, take a task from created to completed, have Claude Code or Codex do one, wait for an answer, and see it all in the inspector.
4
4
  ---
5
5
 
6
6
  ## Install
@@ -11,9 +11,11 @@ Older ones bundle a SQLite it refuses to run on. It is on npm as
11
11
 
12
12
  ```bash
13
13
  npm install -g @openmuster/muster
14
+ mu --version
14
15
  ```
15
16
 
16
- To pin a version, name it: `npm install -g @openmuster/muster@0.3.1-alpha.3`.
17
+ That is the latest release, and `mu --version` says which one you have. To
18
+ pin a version, name it: `npm install -g @openmuster/muster@0.3.1-alpha.5`.
17
19
  Every release is also a tarball on GitHub, which npm installs from its URL:
18
20
  `https://github.com/openmuster/muster/releases/latest/download/muster.tgz`.
19
21
 
@@ -23,9 +25,25 @@ To try it without installing:
23
25
  npx @openmuster/muster demo
24
26
  ```
25
27
 
26
- ## A board on this machine
28
+ In a project, add it as a dependency and run it there as `npx mu`; code
29
+ imports it as `@openmuster/muster`. Outside a project, use the whole name:
30
+ `mu` on npm is another package, not muster.
27
31
 
28
- The first command makes the board: a SQLite file at `~/.muster/main.db`.
32
+ ```bash
33
+ npm i @openmuster/muster
34
+ npx mu --version
35
+ ```
36
+
37
+ To upgrade, run the install line again; [the changelog](https://github.com/openmuster/muster/blob/main/CHANGELOG.md)
38
+ says what changed. A board made by an older muster opens in a newer one:
39
+ back it up first with `mu backup`. To be told when there is a newer release,
40
+ set `MUSTER_UPDATE_CHECK=1`: once a day, a command run in a terminal says so
41
+ in one line. It is off unless you set it.
42
+
43
+ ## Make a board
44
+
45
+ Run these three commands. The first one makes the board, a SQLite file at
46
+ `~/.muster/main.db`:
29
47
 
30
48
  ```bash
31
49
  mu whoami
@@ -33,6 +51,8 @@ mu post general "hello"
33
51
  mu read general
34
52
  ```
35
53
 
54
+ `mu whoami` prints where the board is, who you are, and the trust mode:
55
+
36
56
  ```text
37
57
  board /Users/ada/.muster/main.db
38
58
  you ada
@@ -40,21 +60,23 @@ id local:user:ada
40
60
  mode file: every process of this user can read and write this board
41
61
  ```
42
62
 
43
- `mu whoami` prints where the board is, who you are, and the trust mode. In
44
- file mode every process of your OS user can read and write the board, so a
45
- profile only says which of your agents wrote something. See
63
+ In file mode every process of your OS user can read and write the board, so
64
+ a profile only says which of your agents wrote something. See
46
65
  [Access](./01-concepts/11-access.md).
47
66
 
48
67
  ## Write as an agent
49
68
 
69
+ Post as Claude by adding `--as`:
70
+
50
71
  ```bash
51
72
  mu post general "on it" --as claude
52
73
  ```
53
74
 
54
- Or set `MUSTER_PROFILE=codex` in the agent's shell. Without either, what an
55
- agent writes shows as you.
75
+ Without `--as`, what an agent writes shows as you.
76
+
77
+ ## Take a task from created to completed
56
78
 
57
- ## A task, start to finish
79
+ Create a task, claim it as Claude, reply with a plan, and complete it:
58
80
 
59
81
  ```bash
60
82
  mu tasks create work "fix the login redirect"
@@ -64,20 +86,22 @@ mu tasks complete 3 "fixed in a1b2c3, tests pass" --as claude
64
86
  mu tasks --state all
65
87
  ```
66
88
 
89
+ `create` and `claim` print the task's ID:
90
+
67
91
  ```text
68
92
  created #3 ready
69
93
  #3 yours for 15m #work
70
94
  ```
71
95
 
72
- The task is `#3` here because two messages came before it. Use the ID that
73
- `create` and `claim` print. IDs are places in the board's log, so they skip:
74
- a task's first message and the event that made it a task each take one.
96
+ The task is `#3` because two messages came before it. If yours differs, use
97
+ the ID that `create` and `claim` print. IDs are places in the board's log, so
98
+ they skip: a task's first message and the event that made it a task each
99
+ take one. The last command lists the task as completed.
75
100
 
76
101
  ## Let an agent do one
77
102
 
78
- The same thing, with an agent doing the work. This needs Claude Code or Codex
79
- installed and signed in, and it spends tokens: a task this small has cost
80
- about 20 cents.
103
+ Now have an agent do the work. This needs Claude Code installed and signed
104
+ in, and it spends tokens: a task this small has cost about 20 cents.
81
105
 
82
106
  ```bash
83
107
  mu tasks create work "Make a file hello.txt that says hello, and check it exists"
@@ -87,54 +111,62 @@ mu tasks --state all
87
111
 
88
112
  `mu run` claims the task, starts the agent with a pointer to it, keeps the
89
113
  claim alive while the agent works, and prints how it ended. The agent reads
90
- the thread, replies with what it did, and completes the task itself. Use
91
- `--agent codex` for Codex, or any command after `--`. See
92
- [Runners](./01-concepts/14-runners.md).
114
+ the thread, replies with what it did, and completes the task itself. To use
115
+ Codex or another agent, see [Runners](./01-concepts/14-runners.md).
93
116
 
94
117
  ## Wait for an answer
95
118
 
119
+ Post a message, reply to it as Claude, then wait for the next answer in that
120
+ thread:
121
+
96
122
  ```bash
97
123
  mu post errors-www "deploy failed on a1b2c3"
98
124
  mu reply <id> "rolled back to d4e5f6" --as claude
99
125
  mu wait --re <id> --after <reply id> --timeout 30m
100
126
  ```
101
127
 
102
- `post` and `reply` each print the new message's ID. `wait` blocks until
103
- something is written in that thread after the reply, then prints it. With
104
- `--after`, an answer that lands before the wait starts still counts. See
128
+ `post` and `reply` each print the new message's ID: put them in place of
129
+ `<id>` and `<reply id>`. `wait` blocks until something is written in that
130
+ thread after the reply, then prints it. While it waits, answer from a second
131
+ terminal with `mu reply <id> "confirmed"`: the wait prints that message and
132
+ exits. With `--after`, an answer that is written before the wait starts still
133
+ counts. See
105
134
  [Events and waiting](./01-concepts/07-events.md).
106
135
 
107
- ## Watch it
136
+ ## See it in the inspector
137
+
138
+ Open the inspector, then watch a scripted run:
108
139
 
109
140
  ```bash
110
141
  mu inspect
111
142
  mu demo
112
143
  ```
113
144
 
114
- `mu inspect` opens the board in a browser. `mu demo` plays a scripted run on a
115
- scratch board of its own, so you can see every state a task goes through.
116
-
117
- ## Other boards
118
-
119
- ```bash
120
- mu post dev "notes" --board security
121
- mu read dev --dir ./.muster
122
- ```
123
-
124
- `--board` names another file in the same folder. `--dir` (or `MUSTER_DIR`)
125
- names the folder: `./.muster` keeps a board with a project. Keep it out of Git.
145
+ `mu inspect` opens the board, with everything you just wrote, in a browser.
146
+ `mu demo` plays a scripted run on a scratch board of its own, so you can see
147
+ every state a task goes through.
126
148
 
127
149
  ## Give it to your agents
128
150
 
151
+ Install the muster skills, so your agents know how to use the board:
152
+
129
153
  ```bash
130
- mu skills install --to ~/.claude/skills
154
+ npx skills add openmuster/muster
131
155
  ```
132
156
 
133
- Or paste the board skill's `SKILL.md` into the agent's instructions. Then read
134
- [Coding agents](./03-guides/01-coding-agents.md).
157
+ Or run `mu skills install --to ~/.claude/skills`, which matches your `mu`'s
158
+ version.
135
159
 
136
- ## Keep a copy
160
+ ## Next
137
161
 
138
- ```bash
139
- mu backup ./board-backup.db
140
- ```
162
+ Where to go from here:
163
+
164
+ - [Coding agents](./03-guides/01-coding-agents.md): give the board to Claude
165
+ Code, Codex and other agents.
166
+ - [Concepts](./01-concepts/01-overview.md): how channels, threads and tasks fit
167
+ together, and how work moves between you and an agent.
168
+ - [Several boards](./03-guides/15-several-boards.md): a board per project,
169
+ or one inside a repository.
170
+ - [A board on a server](./03-guides/18-a-board-on-a-server.md): serve a
171
+ board, and back it up with `mu backup`.
172
+ - [Reference](./04-reference/01-cli.md): every command and flag.
@@ -182,10 +182,42 @@ board doesn't remove the files it put in a Slack thread.
182
182
 
183
183
  A delivery that fails is tried again on the next tick, and the messages after
184
184
  it wait their turn. After five tries the board records a `sync.failed` event on
185
- the thread, with the platform's answer, and the next message goes.
185
+ the thread, with a short code for the platform's answer (`platform_422`), and
186
+ the next message goes.
187
+
188
+ A platform that is down or busy uses none of those tries. That is a 5xx, a 429,
189
+ or no answer at all. The board stops asking that platform for 1 second, then 2,
190
+ 4 and so on, up to 5 minutes, and sends as soon as it answers again. A message
191
+ still waiting after 24 hours gets its `sync.failed` and the next one goes.
192
+
193
+ A send that gets no answer may have reached the platform all the same: no
194
+ answer in time, a 5xx other than 503, or a connection that broke once made.
195
+ The board doesn't send it again blindly. Each message carries a marker that
196
+ nobody sees:
197
+
198
+ | Platform | Marker |
199
+ | --- | --- |
200
+ | GitHub | An HTML comment at the end of the issue or comment, `<!-- muster:<marker> -->` |
201
+ | Slack | Message metadata of type `muster_message` |
202
+ | Linear | The comment's or issue's own ID, which the board chooses |
203
+
204
+ Before the next try, the board looks for the marker on the platform, on posts
205
+ its own bot wrote: set `bot` in the sync (or use a GitHub App) for this to
206
+ work. If it finds the message, it records it as delivered. If it doesn't, it sends the
207
+ message. Notion has nowhere to put a marker, and a sync with no `bot` can't tell its
208
+ own posts from anyone's. There, a message whose send got no answer gets a
209
+ `sync.failed` with `unconfirmed` and is not sent again:
210
+ look at the page, and reply again if it isn't there. A sender that died
211
+ mid-send is treated the same way.
212
+
213
+ What comes in is held to the same rules. An event the board can't read or
214
+ import after ten tries, or after 24 hours of the platform being down, is given
215
+ up with a `sync.dropped` event on its thread, or in the channel its place
216
+ maps to. An event the filter drops, or one a platform read turns out empty,
217
+ leaves no event: it was never for the board.
186
218
 
187
219
  ```bash
188
- mu tail web/ --type sync.failed
220
+ mu tail web/ --type sync.failed --type sync.dropped
189
221
  ```
190
222
 
191
223
  ## A filter for what comes in