Skip to main content

Reference

Exact command behavior, stable artifact formats, and schema documentation for Loom.

New to Loom? Start with Hello Loom or the Introduction.


Start here if…

GoalEntry point
Run a workflow locallyloom run
Validate workflow structure before runningloom check
Generate a compiled representation for inspectionloom compile
Inspect the effective layered runtime configloom config
Understand which surface to editCLI overview and Runtime config
Debug a failing runDiagnostics ladder, then Runtime logs contract
Understand what Loom wrote to diskRuntime logs contract and Receipts contract
Print the CLI version for a bug reportloom version

CLI

CommandPurpose
CLI overviewChoose the right command and understand which surface each command reads
loom runExecute a workflow and produce runtime logs + a run receipt
loom checkValidate workflow YAML against the schema and Loom's validation rules
loom compileCompile a workflow into Graph IR JSON for inspection or tooling
loom configInspect the effective layered runtime config and discover config sources
loom versionPrint the CLI version string

Use the CLI reference with this boundary in mind:

  • loom run, loom check, and loom compile operate on .loom/workflow.yml
  • loom config inspects layered runtime config for local execution
  • .loom/workflow.yml remains the executable workflow source of truth

Contracts and schemas

Contracts define the on-disk artifact formats that Loom guarantees. Build tooling against contract fields (pointer fields, schema_version) rather than internal implementation details.

ContractWhat it covers
Runtime logsOn-disk log structure, pointer-first navigation (summary → manifest → failing unit events), and the current loom.runtime.logs.v2 schema
ReceiptsReceipt shape, where receipts are written, and the pointer fields that link to runtime logs
Secrets error codesSECRETS_* error codes, cause matrices, and fix guidance
Workflow schema v1Authoritative YAML schema for workflows (v1)

MCP (Cursor / AI agents)

The Loom MCP server exposes the CLI as Model Context Protocol tools for editor-integrated workflows.

PageWhat it covers
MCP overviewSetup instructions for Cursor, requirements, and capabilities
MCP tools referenceAll MCP tools with parameters, outputs, examples, and a step-by-step failure triage flow

Versioning

Loom uses versioned schemas across multiple surfaces. Each surface is versioned independently.

SurfaceVersion fieldCurrent valueWhere it appears
Workflow schemaversion in workflow YAMLv1Syntax v1, Workflow schema v1
Runtime logsschema_version in every JSON artifactloom.runtime.logs.v2Runtime logs contract
Receiptsschema_version in receipt JSONv1Receipts contract

During Alpha, schemas may evolve between releases. The schema_version field will be incremented on breaking changes. No formal backward compatibility window is guaranteed yet.


Troubleshooting

PageWhen to use it
Diagnostics ladderStep-by-step failure triage using pointer navigation
Common failuresRecognize common failure patterns and take the first fix step
What to sharePrepare a minimal report when asking for help