Overview
The web UI is a Phoenix LiveView application that runs locally and provides:Chat Interface
Conversational coding with markdown rendering and code highlighting
File Explorer
Browse your project structure with instant file preview
Diff Viewer
Visual unified diffs for all file changes
Terminal Output
See command execution results in real-time
Starting the Web UI
Launch the web interface:Interface Layout
The workspace is divided into three main areas:Header Bar
The top bar displays:- Loom logo - Brand and app identifier
- Model selector - Change AI models on the fly
- Mode toggle - Switch between Normal and Architect mode
- Cost tracker - Running total of tokens and API costs
- Session switcher - Navigate between active sessions
- Status indicator - Current session state (Ready, Thinking, Running tool)
Main Chat Area
The central panel shows your conversation:View Responses
Loom’s responses appear with:
- Markdown formatting
- Syntax-highlighted code blocks
- File path references
- Collapsible tool results
Sidebar Tabs
The right sidebar has four tabs:Files Tab
Browse and preview your project files:- Tree view with expand/collapse folders
- Filter input to search by filename
- Click to preview - file contents appear below the tree
- Syntax coloring - different colors for file types
- Stats footer - total file count and size
.git, _build, deps, node_modules, .loom, .elixir_ls
Diff Tab
Visual diff viewer for all file changes:- Unified diff format with line numbers
- Color-coded changes:
- Green background: Added lines
- Red background: Deleted lines
- Gray: Context lines
- Collapsible files - click file name to expand/collapse
- Addition/deletion counts - see +/- line counts per file
Terminal Tab
View output from shell commands:- Command history - all executed commands
- Exit codes - success/failure indicators
- stdout/stderr - full command output
- Scrollable - review long output
Graph Tab
Visual decision graph showing:- Session flow and branching
- Tool invocations
- Decision points
The graph view uses the decision logging system to track Loom’s reasoning process.
Session Management
Creating Sessions
Click New Session in the session switcher to start a fresh conversation. Each session:- Has a unique ID (first 8 characters shown in UI)
- Maintains its own conversation history
- Tracks independent cost/token metrics
- Can be resumed later
Switching Sessions
Use the session switcher dropdown to:- View all active sessions
- Switch to a different session
- See session status (idle, thinking, executing)
Session URLs
Each session has a unique URL:Model Selection
Changing Models
Click the model selector dropdown to choose from available models:anthropic:claude-opus-4-6- Most capable, slower, higher costanthropic:claude-sonnet-4-6- Balanced performance (default)anthropic:claude-haiku-4-5- Fast, lower cost
Model Configuration
Models are defined in your.loom.toml:
Architect Mode
Toggle the Architect button to enable two-model workflow:- Normal Mode
- Architect Mode
Single model handles everything:
- Planning
- Code writing
- Testing
- Debugging
- Normal (gray) - single model
- Architect (purple) - two-model mode
Permission Dialogs
When Loom needs to perform write or execute operations, a modal appears:Actions
- Deny: Reject this operation, Loom continues without it
- Allow Once: Approve this single operation
- Allow Always: Auto-approve all operations for this session
Auto-Approve Config
Set tools to auto-approve in.loom.toml:
Real-Time Updates
The UI updates live as Loom works:- Status changes: Idle → Thinking → Executing tool → Idle
- Message streaming: Assistant responses appear as they’re generated
- Tool execution: Spinners and indicators show active tools
- Diff updates: New diffs appear automatically after edits
- Terminal output: Command results stream in real-time
Cost Dashboard
Click the cost display in the header to open the full dashboard:- Total cost across all sessions
- Token usage (prompt + completion)
- Cost per session
- Cost per model
- Historical trends
http://localhost:4200/dashboard
Keyboard Shortcuts
Shift + Enter
Submit message in text area
Esc
Close permission dialog (denies request)
File Tree Features
Filtering Files
Type in the filter input to search:File Preview
Click any file to see its contents:- Opens in split view below the tree
- Syntax-free plain text display
- Close with × button
- Full scrolling for large files
Expandable Folders
Click folder names to expand/collapse:- ▶ Collapsed folder
- ▼ Expanded folder
Message Display
User Messages
Your messages appear on the right side with gray background.Assistant Messages
Loom’s responses on the left with:- Indigo Loom icon (L)
- Dark background
- Rendered markdown:
- Headers
- Code blocks with syntax highlighting
- Lists (ordered and unordered)
- Links
- Bold, italic, inline code
Tool Results
Collapsible<details> sections:
- Full tool output
- Truncated if > 2000 characters
- Monospace font for readability
Responsive Design
The UI adapts to different screen sizes:- Desktop (1400px+): Full layout with sidebar
- Laptop (1024px+): Compact sidebar
- Tablet/Mobile (768px): Stacked layout, collapsible panels
Dark Theme
Loom uses a dark color scheme optimized for long coding sessions:- Background:
#030712(gray-950) - Panels:
#111827(gray-900) - Borders:
#1f2937(gray-800) - Primary:
#6366f1(indigo-400) - Text:
#f3f4f6(gray-100)
Browser Support
Chromium-based browsers (Chrome, Edge, Brave)
Firefox
Safari
- JavaScript enabled
- WebSocket support
- Modern CSS (flexbox, grid)
Performance
Live Updates
Phoenix LiveView uses WebSockets for real-time updates without polling.Large Files
File preview is limited to prevent browser slowdown:- Display limit: Full file
- Diff truncation: After 2000 chars in tool results
Session History
All messages are kept in memory. For very long sessions (100+ messages), consider starting a new session.Next Steps
CLI
Use Loom from the command line
Tools
Understand what tools Loom can use
Permissions
Configure security policies
Cost Dashboard
Track API usage and costs