CLI Features
Loom’s command-line interface provides an interactive REPL (Read-Eval-Print Loop) for AI-powered coding assistance, conversation persistence, and remote execution environments.Installation
Quick Start
Global Options
Path to custom configuration file
Workspace directory for file operations (default: current directory)
Override log level: trace, debug, info, warn, error
Output logs in JSON format for structured logging
Loom server URL for LLM proxy and thread syncDefault:
Environment:
http://localhost:8080Environment:
LOOM_SERVER_URLLLM provider to use:
Environment:
anthropic or openaiDefault: anthropicEnvironment:
LOOM_LLM_PROVIDERCommands
Session Management
Private sessions are stored locally only and never sync to the server. Use for sensitive work or offline development.
Thread Operations
- List
- Search
- Thread ID (UUIDv7 format:
T-<uuid>) - Title (auto-generated from first message)
- Message count
- Last activity timestamp
Authentication
keyring crate.
Version Information
- Loom version (from
Cargo.toml) - Build timestamp
- Git commit SHA
- Rust version used for compilation
ACP Agent Mode
Runs Loom as an Agent Client Protocol (ACP) agent over stdio for VS Code extension integration. This mode is used internally by editor plugins.
Configuration
Loom loads configuration from multiple sources (in priority order):- Command-line flags (
--config,--workspace, etc.) - Environment variables (
LOOM_*) - Config file (
~/.config/loom/config.tomlor custom path) - Built-in defaults
Example Config File
REPL Usage
Once in the REPL, you can:Agent responds and executes tools
The agent will:
- Read relevant files (
read_filetool) - Suggest changes
- Apply edits (
edit_filetool) - Run tests (
bashtool)
REPL Controls
- Ctrl+C: Save thread and exit gracefully
- Ctrl+D (EOF): Same as Ctrl+C
- Empty input: Ignored, reprompts
Auto-Commit
Loom automatically commits changes when certain tools are executed:Auto-commit triggers
edit_file: File modificationsbash: Commands that modify the working tree
LOOM_AUTO_COMMIT_DISABLE=1- Model:
claude-3-haiku-20240307(fast, cheap) - Max diff size: 32 KB
- Commit message: Auto-generated based on changes
Git Integration
Loom captures git metadata for every thread:- Initial state: Branch, commit SHA, dirty status
- Final state: Current branch, commit SHA, dirty status
- Commits made: List of all commit SHAs created during the session
- Remote URL: Git remote origin (normalized slug)
- Thread search by branch/repo/commit
- Workspace history tracking
- Collaboration insights
Git Credential Helper
Advanced Commands
Spool (VCS)
Tunnel Management
SSH to Weaver
Exit Codes
0: Success1: General error (check stderr)2: Invalid arguments
Environment Variables
Server URL for LLM proxy and thread sync
Default:
Default:
http://localhost:8080LLM provider:
Default:
anthropic or openaiDefault:
anthropicDisable automatic git commits
Values:
Values:
true, 1, yesOverride thread sync endpoint (advanced)
Troubleshooting
Connection refused to server
Connection refused to server
Check if the server is running:Or use the hosted version:
Thread not found
Thread not found
List available threads:Thread IDs use UUIDv7 format starting with
T-.Tool execution fails
Tool execution fails
Enable debug logging:Check workspace permissions and file paths.
Auto-commit not working
Auto-commit not working
Verify you’re in a git repository:Check if auto-commit is disabled: