Matrix logo

CLI Reference

The Matrix command-line surfaces — mclc, mcl-execute, mcl-tools, mcl-validate, cortex-shell, deusctl, and neo — and what each subcommand does.

Matrix ships several CLIs built by make install into ./bin. They share flags like -cortex-root, -manifest, and -skills-root.

mclc — the compiler

SubcommandPurpose
compileCompile prose + a skill + a verb into an Intent Frame.
validateStrict validation of a SKILL.mtx.
hashCompute the canonical AST digest.
parseParse and dump the AST.
./bin/mclc compile -skill skills/writing-plans/SKILL.mtx \
  -prose "Build a deployment pipeline" -verb build [-dry-run]

mcl-execute — the runtime

SubcommandPurpose
walkCompile an intent, synthesize a PlanTree, and walk it to completion.
classifyRun the materiality classifier on an intent.
loaderLoad and inspect an agent manifest + its skills.
daemonRun the per-user HTTP + SSE daemon.
./bin/mcl-execute walk -prose "Summarise the README" \
  -manifest agents/default.json -cortex-root ./runs/dev-cortex -skills-root ./skills

mcl-tools — MCP tool inspection

SubcommandPurpose
verifyVerify a manifest's tool bijection (declared == discovered).
listList tools exposed by the manifest's MCP servers.
describeShow a tool's schema.
callInvoke a tool directly.

mcl-validate

Validates a single SKILL.mtx. The mtx-corpus CI job runs this across the whole corpus on every PR.

./bin/mcl-validate skills/<slug>/SKILL.mtx

cortex-shell

Inspect and maintain a cortex store. The load-bearing command is the replay verifier:

cortex-shell rebuild -verify-only   # drop derived, rebuild, assert byte-identical OverallRoot

deusctl & neo

  • deusctl — operate the Deus marketplace control plane (register/publish services, manage deployments).
  • neo — run the Neo conversational agent locally (CLI reporter → stdout/stderr).
MCL & skill authoring

Author the skills these CLIs compile.