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
Authorize this CLI accountloom auth account
Authorize the configured project for ingestionloom auth project
Connect this repository to a Web projectloom web setup project
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 record state and events in two JSONL files
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 auth accountAuthorize scoped account access and manage this device login
loom auth projectApprove a narrow project credential without storing an account grant
loom web setup projectSelect or create the repository's Web destination
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 describe recorded fields and behavior. Build tooling against the documented records and command surfaces.

ContractWhat it covers
Runtime logsWorkflow state and contextual event JSONL files
ReceiptsValidation and historical saved-upload receipts
Secrets error codesSECRETS_* error codes, cause matrices, and fix guidance
Workflow schema v1Authoritative YAML schema for workflows (v1)
GitLab pipeline contextThe loom.gitlab-pipeline-context.v1 file behind --context: variables, changes, runner_tags, and validation codes
GitLab keyword compatibilityGenerated matrix of root, job, default: and rules: keywords, rule grammar, and every GL_* code with its fix hint

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 logsJSONL record fieldsUnversionedRuntime logs contract
Receiptsschema_version in receipt JSONv1Receipts contract
GitLab contextversion in the context JSONloom.gitlab-pipeline-context.v1GitLab pipeline context

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