CLI reference
One binary, muster. The persona layer has four commands (check, resolve,
cts run, behave run); each other layer has one run command. The global
flags and exit codes below apply everywhere.
From a source checkout, replace muster with node dist/cli/index.js.
Global flags
Section titled “Global flags”| Flag | Default | Meaning |
|---|---|---|
--mode <strict|permissive> | strict | Conformance mode. |
--json | off | Machine-readable output on stdout; logs on stderr. |
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | conforming, or all cases passed |
1 | violations found, or at least one case failed |
2 | execution error (unreadable file, bad manifest, endpoint down) |
Persona (Soul.md)
Section titled “Persona (Soul.md)”muster check <soul.md>
Section titled “muster check <soul.md>”Static conformance of one document. Emits a §25.1 report. Never touches the network.
muster check examples/soul/Soul.mdmuster check examples/soul/Soul.md --json --mode permissivemuster check examples/soul/Soul.md --profile concise --state cold_strictOptions: --profile <name>, --state <name>, --restrict-refs [dir] (confine
§7.2 reference loading; see
Reference resolution), and
--adapter <rfc1|heartbeat|a2a> to statically lint a heartbeat or A2A file
instead of a Soul.md.
muster resolve <soul.md>
Section titled “muster resolve <soul.md>”Prints the effective configuration after full §7.5 resolution.
muster resolve examples/soul/Soul.md --output-format canonical-jsonOptions: --profile, --state, --restrict-refs [dir], and
--output-format <canonical-json|json|yaml> (default canonical-json, the
byte-stable RFC 8785 form CTS-1 compares against).
Use --explain <key.path> to print one scalar (including null) or list and
the ordered assignments that determined it. Use case-sensitive dotted mapping
keys. Each key starts with an ASCII letter or underscore and may also contain
digits and hyphens. The declaration roots profiles, profile_overrides,
and state are reserved. The output shows the applied profile and state and
marks the winning assignment with its authored file and YAML path.
muster resolve examples/resolve-field-provenance/Soul.md --profile chat --explain voice.verbosityThe explanation is human-readable. Combining --explain with an explicit
--output-format or global --json is a usage error.
After successful resolution, a scalar or whole list, including an explicit
null scalar, produces an explanation on stdout and exits with status 0.
Lookup failures leave stdout empty, write the diagnostic to stderr, and exit
with status 1.
| Diagnostic | Meaning |
|---|---|
missing field | The path is absent and has no earlier leaf assignment to report. |
unsupported field with mapping or list traversal | The path selects a mapping or tries to descend through a list. |
unsupported reserved field | The path selects a reserved root or any of its descendants. |
absent; no winning leaf | A later assignment replaced an ancestor and removed a previously assigned leaf. The diagnostic includes the assignment history and the replacing ancestor’s source and value. |
unsupported nonfinite value | A value the explanation would display contains Infinity, negative Infinity, or NaN. The diagnostic identifies its authored source. |
muster cts run <manifest.yaml>
Section titled “muster cts run <manifest.yaml>”Runs a CTS-1 fixture suite (Appendix F manifest). Reports per-case PASS/FAIL and an aggregate.
muster cts run examples/cts/manifest.yamlmuster cts run examples/cts/manifest.yaml --filter 'merge_*'Options: --filter <glob> (matches case ids).
muster behave run <manifest.yaml>
Section titled “muster behave run <manifest.yaml>”Behavioral conformance against an OpenAI-compatible endpoint. Emits per-case
verdicts, with full transcripts under --json.
muster behave run examples/behave/manifest.yamlmuster behave run examples/behave/manifest.yaml \ --base-url https://integrate.api.nvidia.com/v1 \ --model meta/llama-3.1-8b-instruct --runs 3Options: --base-url <url>, --model <name>, --temperature <t>,
--runs <n>. The API key comes only from MUSTER_API_KEY (fallback
OPENAI_API_KEY). There is deliberately no key flag.
Adapter layers
Section titled “Adapter layers”Each adapter layer has a single run command that takes a manifest. Static
cases always run offline. Behavioral cases run only when the relevant endpoint
variable is set, and are skipped (not failed) otherwise. See
The layers for what each one checks.
muster skills run <manifest.yaml>
Section titled “muster skills run <manifest.yaml>”Lints SKILL.md front matter, layout, and bundled-file safety; runs
trigger-routing conformance when an endpoint variable is set.
A static case passes when the lint outcome matches expectations.ok and each
entry in expectations.violations matches the path and severity of one actual
finding. Extra findings are allowed. Omit the list or use an empty list to
check only expectations.ok.
The live Skills CTS has a separate discrimination-control check. It requires observed runs on both axes, zero run errors, an overall failed verdict, and a valid should-trigger rate strictly below a finite threshold in [0, 1]. The live CTS uses the configured endpoint. Recorded finding RG-001
muster skills run examples/skills/manifest.yamlmuster skills compare <manifest.yaml>
Section titled “muster skills compare <manifest.yaml>”Offer each candidate skill to the configured endpoint for each labeled query. The command prints observed routes, errors, and confusion pairs. Add --json for versioned per-attempt evidence. Run the bundled examples/skills-compare/scripted.mjs with Node for a credential-free example. Comparison rubric and JSON contract
muster sop run <manifest.yaml>
Section titled “muster sop run <manifest.yaml>”Lints an AGENTS.md SOP for rule-text presence, precedence, and tool drift; runs
compliance and adversarial probes when an endpoint variable is set. (The adapter is
named openclaw-sop internally.)
muster sop run examples/sop/manifest.yamlIn --json reports, judge grades may include a reason with the judge’s
reply, an error message, or an explanation when the judge was skipped. These
diagnostics can contain sensitive text from prompts, transcripts, or provider
responses. Review and redact sensitive content before sharing saved reports.
muster tools run <manifest.json>
Section titled “muster tools run <manifest.json>”Lints a TOOLS.md manifest and checks it against an environment descriptor; runs
tool-selection probes when an endpoint variable is set. A case may set
expect: "fail" for a negative test.
muster tools run examples/tools/manifest.jsonmuster memory run <manifest.json>
Section titled “muster memory run <manifest.json>”Lints MEMORY.md / USER.md for staleness and contradiction. Add --behavioral
for recall and privacy probes.
muster memory run examples/memory/manifest.jsonmuster memory run examples/memory/manifest.json --behavioral \ --base-url http://localhost:11434/v1 --model llama3.2Options: --behavioral, --base-url <url> (default
http://localhost:11434/v1), --model <name> (default llama3.2).
muster heartbeat run <manifest.json>
Section titled “muster heartbeat run <manifest.json>”Lints a HEARTBEAT.md and its interval config; runs action-diff, idempotency,
and quiet-ack probes when an endpoint variable is set (MUSTER_MODEL defaults to
default).
muster heartbeat run examples/heartbeat/manifest.jsonMUSTER_ENDPOINT=https://api.openai.com/v1 muster heartbeat run examples/heartbeat/manifest.jsonmuster a2a run <manifest.json>
Section titled “muster a2a run <manifest.json>”Lints an A2A agent card and verifies signatures offline; runs live skill,
auth-negative, and signed-card checks when MUSTER_A2A_ENDPOINT is set.
For this manifest format, a discrimination control passes when its grader
completes and finds nonconformance. If a fixture read or probe error prevents
a verdict, the case fails and the --json result includes errored: true.
The command exits 1 when any case fails.
muster a2a run examples/a2a/manifest.jsonMUSTER_A2A_ENDPOINT=https://my-agent.example.com muster a2a run examples/a2a/manifest.jsonLegacy manifests with live cases use MUSTER_A2A_ENDPOINT and
MUSTER_A2A_TOKEN. Manifests with kind: behavioral default to those names
and can override them with endpoint.env and endpoint.token_env. The request
timeout uses MUSTER_A2A_TIMEOUT_MS (default 10000).
muster crosslayer run <manifest.yaml>
Section titled “muster crosslayer run <manifest.yaml>”Checks composition, precedence, and rule survival across a layer stack. Static cases always run. Behavioral rule-survival cases use the manifest endpoint block when present and fall back to the endpoint variables.
muster crosslayer run examples/crosslayer/manifest.yaml --static-onlyMUSTER_ENDPOINT=https://api.openai.com/v1 muster crosslayer run examples/crosslayer/manifest.yamlUse --static-only to skip behavioral cases even when an endpoint is configured.
Environment variables
Section titled “Environment variables”For static-only skills, SOP, tools, and heartbeat runs, unset both
MUSTER_ENDPOINT and MUSTER_BASE_URL.
| Variable | Used by | Meaning |
|---|---|---|
MUSTER_API_KEY (fallback OPENAI_API_KEY) | all behavioral layers | API key, read at request time. |
MUSTER_ENDPOINT | skills, sop, tools, heartbeat, crosslayer, memory-utilization | Canonical OpenAI-compatible base URL. |
MUSTER_BASE_URL | Same readers as MUSTER_ENDPOINT | Deprecated fallback. A command warns when it selects this alias. |
MUSTER_MODEL | skills, sop, tools, heartbeat, crosslayer, memory-utilization | Defaults to gpt-4o-mini for skills, SOP, and crosslayer, gpt-4o for tools, default for heartbeat, and llama3.2 for memory-utilization. |
MUSTER_A2A_ENDPOINT | a2a | Deployed A2A agent base URL. |
MUSTER_A2A_TOKEN | a2a | Bearer token for the authorized auth probe. |
MUSTER_A2A_TIMEOUT_MS | a2a | Request timeout in ms (default 10000). |