Getting Started
Start an interactive session in your project directory:Command Options
Specify which model to use for the session
Set the project path to work in
Auto-approve all permission prompts (use with caution)
Resume a previous session by ID
Display help information
Show the Loom version
Interactive Mode
When you runloom without a prompt, you enter an interactive REPL session:
Start Session
Launch Loom in your project directory:You’ll see the session start with your configured model.
Use Session Commands
Control your session with slash commands:
/help- Show available commands/history- View conversation history/sessions- List active sessions/model- Show or change the model/architect- Toggle architect/editor mode/clear- Clear the terminal/quitor/exit- End the session
One-Shot Mode
Execute a single task and exit:- Start a session
- Process your request
- Display the response
- Exit automatically
- Quick code analysis
- Automated scripts
- CI/CD integrations
Session Management
View Active Sessions
List all running sessions:Resume a Session
Continue a previous conversation:Model Selection
Default Model
Configured in your.loom.toml:
Override at Runtime
Use the--model flag:
Check Current Model
In an interactive session:Architect Mode
Toggle between normal and architect mode during a session:Normal Mode
Single AI model handles all tasks directly.
Architect Mode
Uses two models:
- Architect: Plans and coordinates
- Editor: Executes file changes
Permission Prompts
When Loom needs to perform sensitive operations (write files, run commands), you’ll see a permission prompt:Options
- y (yes): Allow this one time
- n (no): Deny this operation
- a (always): Allow for all operations in this session
Auto-Approve Mode
Skip all prompts with--yes:
Output Formatting
The CLI renders markdown responses with:- Syntax-highlighted code blocks
- Formatted lists and headers
- File path references (e.g.,
src/app.ex:42) - Tool execution indicators
Status Indicators
While Loom is working, you’ll see:Examples
Code Analysis
Bug Fixing
Refactoring
Test Generation
Documentation
Tips & Best Practices
Troubleshooting
Session Not Starting
Ensure you’re in a valid project directory with a.loom.toml config file. If not, Loom will use default settings.
Model Not Found
Check your API keys are configured:Permission Denied
If Loom can’t write files, check file permissions in your project directory.Next Steps
Web UI
Try the visual interface with file tree and diff viewer
Tools
Learn about Loom’s built-in tools for code manipulation
Permissions
Configure permission policies for your workspace
MCP
Connect external tools via Model Context Protocol