Skip to content

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.

FlagDefaultMeaning
--mode <strict|permissive>strictConformance mode.
--jsonoffMachine-readable output on stdout; logs on stderr.
CodeMeaning
0conforming, or all cases passed
1violations found, or at least one case failed
2execution error (unreadable file, bad manifest, endpoint down)

Static conformance of one document. Emits a §25.1 report. Never touches the network.

Terminal window
muster check examples/soul/Soul.md
muster check examples/soul/Soul.md --json --mode permissive
muster check examples/soul/Soul.md --profile concise --state cold_strict

Options: --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.

Prints the effective configuration after full §7.5 resolution.

Terminal window
muster resolve examples/soul/Soul.md --output-format canonical-json

Options: --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.

Terminal window
muster resolve examples/resolve-field-provenance/Soul.md --profile chat --explain voice.verbosity

The 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.

DiagnosticMeaning
missing fieldThe path is absent and has no earlier leaf assignment to report.
unsupported field with mapping or list traversalThe path selects a mapping or tries to descend through a list.
unsupported reserved fieldThe path selects a reserved root or any of its descendants.
absent; no winning leafA 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 valueA value the explanation would display contains Infinity, negative Infinity, or NaN. The diagnostic identifies its authored source.

Runs a CTS-1 fixture suite (Appendix F manifest). Reports per-case PASS/FAIL and an aggregate.

Terminal window
muster cts run examples/cts/manifest.yaml
muster cts run examples/cts/manifest.yaml --filter 'merge_*'

Options: --filter <glob> (matches case ids).

Behavioral conformance against an OpenAI-compatible endpoint. Emits per-case verdicts, with full transcripts under --json.

Terminal window
muster behave run examples/behave/manifest.yaml
muster behave run examples/behave/manifest.yaml \
--base-url https://integrate.api.nvidia.com/v1 \
--model meta/llama-3.1-8b-instruct --runs 3

Options: --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.

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.

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

Terminal window
muster skills run examples/skills/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

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.)

Terminal window
muster sop run examples/sop/manifest.yaml

In --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.

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.

Terminal window
muster tools run examples/tools/manifest.json

Lints MEMORY.md / USER.md for staleness and contradiction. Add --behavioral for recall and privacy probes.

Terminal window
muster memory run examples/memory/manifest.json
muster memory run examples/memory/manifest.json --behavioral \
--base-url http://localhost:11434/v1 --model llama3.2

Options: --behavioral, --base-url <url> (default http://localhost:11434/v1), --model <name> (default llama3.2).

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).

Terminal window
muster heartbeat run examples/heartbeat/manifest.json
MUSTER_ENDPOINT=https://api.openai.com/v1 muster heartbeat run examples/heartbeat/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.

Terminal window
muster a2a run examples/a2a/manifest.json
MUSTER_A2A_ENDPOINT=https://my-agent.example.com muster a2a run examples/a2a/manifest.json

Legacy 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).

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.

Terminal window
muster crosslayer run examples/crosslayer/manifest.yaml --static-only
MUSTER_ENDPOINT=https://api.openai.com/v1 muster crosslayer run examples/crosslayer/manifest.yaml

Use --static-only to skip behavioral cases even when an endpoint is configured.

For static-only skills, SOP, tools, and heartbeat runs, unset both MUSTER_ENDPOINT and MUSTER_BASE_URL.

VariableUsed byMeaning
MUSTER_API_KEY (fallback OPENAI_API_KEY)all behavioral layersAPI key, read at request time.
MUSTER_ENDPOINTskills, sop, tools, heartbeat, crosslayer, memory-utilizationCanonical OpenAI-compatible base URL.
MUSTER_BASE_URLSame readers as MUSTER_ENDPOINTDeprecated fallback. A command warns when it selects this alias.
MUSTER_MODELskills, sop, tools, heartbeat, crosslayer, memory-utilizationDefaults to gpt-4o-mini for skills, SOP, and crosslayer, gpt-4o for tools, default for heartbeat, and llama3.2 for memory-utilization.
MUSTER_A2A_ENDPOINTa2aDeployed A2A agent base URL.
MUSTER_A2A_TOKENa2aBearer token for the authorized auth probe.
MUSTER_A2A_TIMEOUT_MSa2aRequest timeout in ms (default 10000).