| type | reference | ||||
|---|---|---|---|---|---|
| id | cli-commands-reference | ||||
| title | REslava Loom CLI Commands Reference | ||||
| status | active | ||||
| created | 2026-04-14 | ||||
| version | 1 | ||||
| tags |
|
||||
| requires_load |
This document catalogs every command available in the loom command-line interface. Commands are grouped by functional area.
Initialize a new REslava Loom workspace in ~/looms/default/ and register it in the global registry.
Syntax:
loom init [--force]Options:
--force: Overwrite existing configuration if present.
Example:
loom initCreates ~/looms/default/ with .loom/ directory and registers it in ~/.loom/config.yaml.
Create a new named loom workspace.
Syntax:
loom setup <name> [--path <path>] [--no-switch]Options:
--path <path>: Custom path for the loom (default:~/looms/<name>/).--no-switch: Do not set as active loom after creation.
Example:
loom setup testCreates ~/looms/test/, registers it, and switches to it.
Switch the active loom context.
Syntax:
loom switch <name>Example:
loom switch testList all registered looms.
Syntax:
loom list [--json]Options:
--json: Output in JSON format.
Example Output:
LOOMS
default ~/looms/default
* test ~/looms/test
Show the currently active loom.
Syntax:
loom current(Planned) Comprehensive system health check and repair.
Syntax:
loom doctor [--fix]Create a new idea document.
Syntax:
loom weave idea "<Title>" [--thread <name>]Options:
--thread <name>: Place the idea inside an existing thread folder. If omitted, creates a new thread folder based on the title.
Example:
loom weave idea "Add Dark Mode" --thread user-preferencesCreates threads/user-preferences/user-preferences-idea.md.
Create a new design document from an idea or from scratch.
Syntax:
loom weave design <thread-id> [--from-idea]Options:
--from-idea: Use the existing idea.md as the basis for the design.
Example:
loom weave design user-preferences --from-ideaCreates threads/user-preferences/user-preferences-design.md.
Create a new implementation plan from a finalized design.
Syntax:
loom weave plan <thread-id> [--template <path>]Options:
--template <path>: Use a custom plan template.
Example:
loom weave plan payment-systemCreates threads/payment-system/plans/payment-system-plan-001.md.
Display derived state of all threads or a specific thread.
Syntax:
loom status [thread-id] [--verbose] [--json] [--tokens]Options:
--verbose: Show detailed document status and relationships.--json: Output in JSON format for scripting.--tokens: Show token usage statistics.
Example:
loom status payment-system --verboseList all threads with their current status and phase.
Syntax:
loom list threads [--filter <status>] [--json]Options:
--filter <status>: Show only threads with a given status (active,done,cancelled).
Check document relationships, frontmatter integrity, and staleness.
Syntax:
loom validate [thread-id] [--all] [--fix]Options:
--all: Validate all threads in the active loom.--fix: Attempt to automatically correct fixable issues.
Validate the syntax and semantics of .loom/workflow.yml.
Syntax:
loom validate-configChat Mode: Send the current document to the AI and append the response.
Syntax:
loom ai respond [--document <path>] [--model <model>] [--minimal] [--full-context]Options:
--document <path>: Specify a document to use as context (default: current thread's design.md).--model <model>: Override the configured AI model.--minimal: Skiprequires_loadand use summary if available.--full-context: Force full context even if budget exceeded.
Action Mode: Request a structured JSON event proposal from the AI.
Syntax:
loom ai propose [--document <path>] [--auto-approve]Options:
--document <path>: Target document for the proposal.--auto-approve: Skip the approval prompt (use with caution).
Generate or regenerate the -ctx.md summary file for a thread.
Syntax:
loom summarise-context <thread-id> [--force]Options:
--force: Overwrite existing summary even if it appears fresh.
Create a new chat file in the chats/ directory.
Syntax:
loom chat new [--title "<Topic>"] [--model <model>]Options:
--title "<Topic>": Provide a custom title (used in filename).--model <model>: Specify the AI model used for this chat.
Example:
loom chat new --title "JWT vs OAuth debate"Creates chats/2026-04-14-jwt-vs-oauth-debate.md.
Promote a chat to an idea document.
Syntax:
loom promote <chat-file> --to idea [--thread <name>]Example:
loom promote chats/brainstorm.md --to idea --thread authUse a chat as context to refine a design or plan.
Syntax:
loom refine-with-chat <target-doc> <chat-file> [--auto-approve]Example:
loom refine-with-chat threads/auth/auth-design.md chats/security-chat.mdAppend chat content (or a summary) to a target document's # CHAT section.
Syntax:
loom append-chat <chat-file> --to <target-doc> [--summarize]Manually archive a chat without further action.
Syntax:
loom chat archive <chat-file>List all active chats in the chats/ directory.
Syntax:
loom chat list [--json](Planned) Search archived chat summaries.
Syntax:
loom chat search "<query>" [--action <type>] [--thread <id>]Manually fire a workflow event.
Syntax:
loom run <thread-id> <event-name> [--payload <json>]Example:
loom run payment-system REFINE_DESIGNShortcut for loom run <thread-id> REFINE_DESIGN.
Syntax:
loom refine-design <thread-id>Shortcut for loom run <plan-id> START_PLAN.
Syntax:
loom start-plan <plan-id>Mark a specific plan step as done.
Syntax:
loom complete-step <plan-id> --step <n>(Planned) Fix common issues like broken parent links or stale flags.
Syntax:
loom repair [thread-id] [--fix-orphans] [--fix-stale] [--dry-run](Planned) Add new optional frontmatter fields to all existing documents.
Syntax:
loom migrate [--add-missing-fields] [--rename-field <old> <new>]Move a completed or cancelled thread to _archive/threads/.
Syntax:
loom archive <thread-id> [--reason <done|cancelled|postponed|superseded>]Example:
loom archive old-checkout --reason supersededMigrate a mono-loom project to multi-loom mode.
Syntax:
loom upgrade --to-multiMoves Loom-specific directories to ~/looms/default/ and creates global registry.