-
Notifications
You must be signed in to change notification settings - Fork 50
Q&A
Everything you wanted to know about ClawCode, answered.
- Getting Started
- Core Concepts
- LLM Providers & Models
- Development Workflow
- Collaboration & Teams
- Themes & UI Customization
- Learning & Evolution
- Privacy & Security
- Integrations & Extensibility
- Troubleshooting
- Comparison & Alternatives
ClawCode is an open-source, terminal-native AI coding assistant platform. Think of it as your AI-powered engineering cockpit — it combines an intelligent agent runtime, 20+ development tools, multi-agent team orchestration, and a self-improving learning system, all running inside your terminal.
Unlike simple chat-based AI tools, ClawCode can read, write, edit, search, and execute code in your project, plan complex features with structured workflows, coordinate teams of AI specialists, and learn from every session to get better over time.
# Clone the repository
git clone https://github.com/your-org/clawcode.git
cd clawcode
# Install with pip (Python 3.12+)
pip install -e .
# Or with development dependencies
pip install -e ".[dev]"Once installed, launch the interactive TUI:
clawcodeOr run a one-shot non-interactive query:
clawcode -p "Explain the authentication module"| Requirement | Detail |
|---|---|
| Python | 3.12 or later |
| Operating System | Windows, macOS, or Linux |
| Terminal | Any modern terminal (Windows Terminal, iTerm2, Alacritty, etc.) |
| LLM API Key | At least one provider API key (Anthropic, OpenAI, or Google) |
Create a .clawcode.json file in your project root or home directory:
{
"providers": {
"anthropic": {
"api_key": "sk-ant-your-key-here"
}
}
}Alternatively, set the environment variable:
export ANTHROPIC_API_KEY="sk-ant-your-key-here"That's it — launch clawcode and start coding.
Yes! You can use the GitHub Copilot provider which works with your existing Copilot subscription (no additional API key needed). Or use any provider that offers free tiers (Google Gemini, for example).
{
"providers": {
"copilot": {
"disabled": false
}
}
}ClawCode runs a ReAct (Reasoning + Acting) agent loop:
1. You type a request
2. The agent reasons about what to do
3. It selects and invokes tools (read files, search code, edit, run commands)
4. It observes the results
5. It repeats until the task is done
The agent has access to 20+ tools — file operations, shell execution, code search, browser automation, and more. Each tool call is permission-gated (you control what's allowed).
| Category | Tools |
|---|---|
| File operations | View, Write, Edit, Patch |
| Shell | Bash (with timeout), ExecuteCode (sandboxed Python) |
| Search | Glob (file patterns), Grep (content regex) — Rust-powered for speed |
| Advanced | WebFetch, Diagnostics (LSP), TodoWrite/Read |
| Browser | Navigate, Click, Type, Screenshot, Vision analysis, Web search |
| Desktop | Screenshot, Mouse, Keyboard |
| Agents | Agent/Task (spawn subagents with isolated tool sets) |
| Integration | MCP (external tool servers), Git operations |
ClawCode provides multiple safety mechanisms:
| Safety Feature | How It Works |
|---|---|
| Permission dialogs | Destructive operations require your approval |
| Plan mode | Read-only research mode — agent can look but not touch |
| Spec mode | Three-phase: analyze (read-only) → implement → verify (test-only) |
| /rewind | One-command undo — restore all files to their git HEAD state |
| Git integration | All changes are trackable via git diff |
| File tracking | Real-time panel showing exactly which files were read or modified |
ClawCode supports an exceptionally wide range of providers:
| Provider | Models | Special Notes |
|---|---|---|
| Anthropic | Claude 3.5 Sonnet/Haiku/Opus, Claude 3.7 Sonnet | Extended thinking, prompt caching |
| OpenAI | GPT-4o, o1/o3/o4, GPT-4.1 | Plus 20+ OpenAI-compatible APIs |
| Google Gemini | 1.5 Pro, 2.0 Flash, 2.5 Pro/Flash | Up to 2M token context window |
| Groq | Llama, Mixtral, Qwen, DeepSeek | Ultra-fast inference |
| Azure OpenAI | All OpenAI models | Enterprise compliance |
| OpenRouter | 100+ models from any vendor | Unified API |
| xAI | Grok-2, Grok-2-mini | Up to 131K context |
| AWS Bedrock | Claude, Titan, Llama, Mistral | AWS-native |
| GitHub Copilot | GPT-4o, Claude, Gemini, O-series | Works with Copilot subscription |
Absolutely! ClawCode has first-class support for Chinese LLM providers through OpenAI-compatible endpoints:
| Provider | Models | Configuration |
|---|---|---|
| DeepSeek | deepseek-chat, deepseek-reasoner | Auto-detected from model name |
| Qwen (Alibaba) | qwen-, qwq-, qvq-* | Auto-detected |
| GLM (Zhipu) | glm-* | Auto-detected |
| Moonshot/Kimi | moonshot-* | Auto-detected |
| MiniMax | minimax-, abab- | Auto-detected |
| VolcEngine/Doubao | doubao-, ep- | Auto-detected |
| Baichuan | baichuan-* | Auto-detected |
| StepFun | step-* | Auto-detected |
Just set the API key and base URL in your config:
{
"providers": {
"openai": {
"api_key": "your-deepseek-key",
"base_url": "https://api.deepseek.com/v1",
"models": ["deepseek-chat", "deepseek-reasoner"]
}
},
"agents": {
"coder": {
"model": "deepseek-chat",
"provider_key": "openai"
}
}
}Press Ctrl + O in the TUI to open the model picker. It lists all models from your configuration and a bundled catalog of 121+ models. Select one and the switch is instant — no restart needed.
Costs depend entirely on your LLM provider. ClawCode tracks usage at every level:
| What's Tracked | Where to See It |
|---|---|
| Per-message tokens (input + output) |
/usage command |
| Per-session accumulation | Session panel (Ctrl + A) |
| Per-turn live tokens | HUD status bar |
| Estimated cost in USD |
/usage command |
Tip: Use smaller models (Haiku, GPT-4o-mini) for title generation and summarization to save costs:
{
"agents": {
"title": { "model": "claude-3-5-haiku-20241022", "max_tokens": 100 },
"summarizer": { "model": "claude-3-5-haiku-20241022", "max_tokens": 4096 }
}
}ClawCode handles this automatically. When your conversation reaches ~70% of the model's context window:
- The agent flushes important facts to persistent memory first
- A dedicated summarizer agent compresses older messages into a compact summary
- The most recent messages are kept intact
- The conversation continues seamlessly
You can also trigger this manually with /compact.
# Interactive TUI mode
clawcode
# Then just type what you want:
> "Fix the authentication bug in src/auth.py"
> "Add unit tests for the payment module"
> "Refactor the database connection pool"Or use non-interactive mode for scripting:
clawcode -p "Add error handling to all API endpoints" -f jsonPlan mode (/plan) restricts the agent to read-only operations — it can search, read, and analyze your code but cannot modify anything.
Use it when:
- You want the agent to understand a codebase before making changes
- You need a plan or architecture review without risking modifications
- You're exploring unfamiliar code
/plan Analyze the microservices architecture and suggest improvements
The agent will research your codebase, produce a structured plan, and save it to .claw/plans/ — but won't touch a single file.
Spec mode (/spec) is a structured three-phase workflow:
| Phase | Access | What Happens |
|---|---|---|
| Pending | Read-only | Agent analyzes the codebase and produces a specification |
| Executing | Full access | Agent implements the specification |
| Verifying | Test-only | Agent runs tests and validates the work |
This produces a complete artifact bundle:
| File | Purpose |
|---|---|
spec.md |
Detailed specification |
tasks.md |
Task breakdown with dependencies |
checklist.md |
Acceptance criteria with auto-verify commands |
meta.json |
Machine-readable structured data |
Claw mode (/claw) is a lightweight autonomous agent with full tool access and an iteration budget. It's perfect for well-defined tasks where you want the agent to work independently:
/claw Refactor the user service to use dependency injection
The agent will iterate, search, edit, and test until the budget is exhausted or the task is complete. Unlike Plan mode, it can modify files. Unlike Spec mode, it doesn't produce formal artifacts — it just gets the job done.
Yes! Use the /rewind command to restore all modified files to their git HEAD state:
/rewind
This is safe because:
- It only touches tracked files (never deletes new untracked files)
- It uses git restore under the hood
- Changes are stashed first (recoverable if needed)
Yes! The non-interactive mode (-p flag) is designed for automation:
# Generate a security review report
clawcode -p "Review the codebase for security vulnerabilities" -f json | jq .response
# Check code quality
clawcode -p "Run linting and report issues" -q
# Generate documentation
clawcode -p "Generate API documentation from the route definitions"Output formats: text (default) or json ({"response": "..."}).
Yes! This is one of ClawCode's most powerful features. Three built-in team commands:
| Command | Team Size | Focus |
|---|---|---|
/clawteam |
14 engineering roles | Full engineering lifecycle |
/designteam |
6 design roles | Product design workflows |
/research team |
8 research roles | Academic/technical investigation |
Example:
/clawteam Build an order management system with audit logging
This dispatches multiple AI specialists — architect, backend engineer, QA, etc. — to collaborate on your task. Each role has its own tool permissions and expertise.
| Role | Specialty | Can Modify Code? |
|---|---|---|
| Product Manager | Strategy, scope, acceptance | No |
| Business Analyst | Requirements, stakeholder alignment | No |
| System Architect | Architecture, trade-offs | No |
| UI/UX Designer | User flows, interaction design | No |
| Dev Manager | Execution planning | No |
| Team Lead | Cross-role coordination | No |
| Backend Engineer | Backend implementation | Yes |
| Frontend Engineer | Frontend implementation | Yes |
| Mobile Engineer | Mobile development | Yes |
| DevOps | CI/CD, infrastructure | Yes |
| QA Engineer | Testing, quality validation | Yes |
| SRE | Reliability, observability | Yes |
| Project Manager | Scheduling, governance | No |
| Scrum Master | Agile process | No |
Saddle is ClawCode's standalone collaboration framework that turns a one-line requirement into a complete project roadmap through a three-stage pipeline:
spec → design → develop
| Stage | What Happens | Output |
|---|---|---|
| Spec | Clarify scope and split work |
spec.md, tasks.md, checklist.md
|
| Design | DesignTeam creates design | Full design documentation |
| Develop | ClawTeam implements | Engineering execution |
Run it with:
saddle run "Build an order system with audit logging" --mode fastSaddle also includes Saddle Studio — a browser-based visual editor for configuring collaboration modes.
Deep loop is an iterative convergence mechanism for team commands. When enabled, the team runs multiple iterations until quality thresholds are met.
/clawteam --deep_loop --max_iters 10 Refactor the payment module
Each iteration:
- Inspects the previous outcome
- Deepens the design and architecture
- Expands implementation scope
- Evaluates convergence (delta score, critical risks)
The loop stops when gap_delta falls below the threshold for consecutive rounds.
When to use deep loop:
- Complex refactoring requiring multiple passes
- Tasks where quality is more important than speed
- Situations where initial attempts may miss edge cases
Yes! Create a Markdown file with YAML frontmatter in .claw/agents/:
---
name: my-security-reviewer
description: Security-focused code reviewer
tools: [Read, Glob, Grep, Bash]
---
You are a security-focused code reviewer. Analyze the codebase for:
- Authentication vulnerabilities
- Input validation gaps
- SQL injection risks
- XSS attack surfaces
Provide specific file paths and line numbers for each finding.Your custom agents override built-in ones with the same name. The merge order is:
Built-in agents → ~/.claude/agents/ → .claw/agents/ (highest priority)
Absolutely! ClawCode offers 8 themes and 6 display modes:
Themes (color palettes):
| Theme | Vibe |
|---|---|
| Yellow (default) | Warm amber on dark charcoal |
| Catppuccin | Pastel macaron tones |
| Dracula | Vibrant purple/cyan |
| Gruvbox | Retro warm tones |
| Monokai | Classic editor palette |
| One Dark | Atom-inspired balance |
| Tokyo Night | Japanese serene aesthetics |
| Light | Bright mode for well-lit environments |
Display modes (layouts):
| Mode | Layout |
|---|---|
| OpenCode (default) | No sidebar, right panel, bottom HUD |
| ClawCode | Neutral blue-gray tones |
| Claude | Full-width, Anthropic orange accent |
| Classic | Left sidebar + top status bar |
| Minimal | Messages + input only |
| Zen | Centered narrow column, maximum focus |
Switch with Ctrl + T (theme) or Ctrl + D (display mode).
ClawCode includes design language references from 54 world-class brands (Apple, Stripe, Vercel, Figma, Notion, etc.). When you ask ClawCode to generate UI code, it can automatically match the best brand style using an AI-driven TF-IDF engine.
This means you can say:
"Build a dashboard with a Stripe-like design language"
And ClawCode will reference Stripe's actual design tokens, typography, and component patterns.
Yes — this is one of its most unique features. ClawCode implements a three-layer learning system:
| Layer | What It Learns |
|---|---|
| Instinct | Atomic preferences: coding style, formatting rules, tool choices |
| ECAP | Problem-solving workflows: structured traces of how problems were solved |
| TECAP | Team collaboration patterns: how multi-agent teams coordinate |
The more you use ClawCode, the smarter it gets — without any manual configuration.
Every session → observations recorded
↓
Autonomous cycle analyzes patterns
↓
Recurring patterns → instincts (confidence: 0.5)
↓
Successful workflows → ECAP capsules (structured traces)
↓
Team collaborations → TECAP capsules (coordination patterns)
↓
Future sessions automatically apply relevant experience
↓
Feedback reinforces or fades knowledge
Key behaviors:
- Confidence scoring: Each piece of knowledge has a 0–1 confidence score
- Decay: Unused knowledge fades at 3% per day
- Reinforcement: Successful applications increase confidence (+0.04)
- Penalty: Failures decrease confidence more (-0.048, 1.2× penalty)
- Quality gates: Only validated knowledge gets promoted
The autonomous cycle is a 7-stage pipeline that runs periodically:
| Stage | Purpose |
|---|---|
| Observe | Consume raw observations from session logs |
| Analyze | Cluster observations, identify patterns |
| Evolve | Promote patterns to instincts and skills |
| Import | Make evolved artifacts available to agents |
| Report | Generate quality reports and metrics |
| Tuning | Apply feedback-based parameter adjustments |
| Export | Export reports and capsules for review |
# Run manually (dry run by default)
clawcode-autonomous-cycle --cwd /path/to/project
# Full run (with writes)
clawcode-autonomous-cycle --no-dry-runKnowledge decays gradually if not reinforced:
- Confidence decreases by 3% per day for unused instincts
- But it never drops below a 20% floor
- A single successful application restores and boosts confidence
You can also manually reinforce knowledge:
/experience-feedback ecap-xxxx --result success --score 0.9
Yes! Export and import capsules:
# Export from project A
/experience-export ecap-xxxx --format json
# Import into project B
/experience-import ./ecap.json
Team experiences (TECAPs) can also be shared:
/team-experience-export tecap-xxxx --v1-compatible
/team-experience-import ./tecap.json
Yes — when the agent processes your requests, relevant code snippets are sent to your configured LLM provider's API. This is how all AI coding assistants work. You control which provider to use and can choose self-hosted models if data privacy is a concern.
API keys are stored in .clawcode.json config files. Best practices:
- Never commit
.clawcode.jsonto version control (add to.gitignore) - Use environment variables instead of config files when possible
- The learning system redacts sensitive data (API keys, tokens, file paths) from experience capsules
ClawCode's memory system actively scans for injection attempts before storing any user-provided content:
| Threat Pattern | Risk Level |
|---|---|
"ignore previous instructions" |
Prompt injection |
"you are now..." |
Role hijack |
"disregard your instructions" |
Rule override |
curl ... $SECRET |
Credential exfiltration |
Detected threats are rejected before storage.
| Collected | Not Collected |
|---|---|
| Tool call sequences | Your API keys |
| Success/failure outcomes | File contents (in capsules) |
| Problem types and patterns | Personal information |
| Performance metrics | Credentials |
All learning data is stored locally in .clawcode/learning/ — nothing is sent to external servers.
Yes! ClawCode implements a full MCP client:
| Feature | Description |
|---|---|
| Stdio transport | Connect to local MCP server subprocesses |
| SSE transport | Connect to remote HTTP-based MCP servers |
| Dynamic management | Add/remove servers at runtime |
| Tool discovery | Auto-discover tools from connected servers |
MCP tools become available to all agents during team orchestration — your custom MCP servers (database clients, API gateways, internal tools) become part of the team's toolkit.
| Integration | How It Works |
|---|---|
| LSP | 30+ language servers for real-time diagnostics and symbol info |
| Git/GitHub | PR review, diff generation, /rewind undo |
| Browser | Full browser automation for testing and scraping |
| Docker | Containerized code execution |
| SSH | Remote server execution |
| Plugins | Claude Code-compatible plugin system |
ClawCode is terminal-native — it runs in any terminal emulator, so it works alongside any editor. You can also use the non-interactive mode for editor integration:
# Vim/Neovim integration example
:!clawcode -p "Fix the function under the cursor" -c %:p:hYes! ClawCode has a Claude Code-compatible plugin system supporting:
| Plugin Feature | Description |
|---|---|
| Skills | Reusable prompt templates and workflows |
| Hooks | Lifecycle events (SessionStart, UserPromptSubmit, Stop) |
| MCP Servers | Inject external tool servers |
| LSP Servers | Inject language server integrations |
| Slash Commands | Custom namespaced commands |
Plugins can be installed from: local directories, GitHub repos, git URLs, npm, or pip.
-
Python version: Ensure Python 3.12+
python --version
-
API key: Verify your
.clawcode.jsonhas a valid provider API key -
Config file location: ClawCode looks for config in:
-
./.clawcode.json(current directory) -
~/.clawcode.json(home directory)
-
-
Dependencies: Reinstall if needed:
pip install -e ".[dev]"
| Optimization | How |
|---|---|
| Use a faster model | Switch to Haiku or GPT-4o-mini for simple tasks (Ctrl + O) |
| Use a faster provider | Groq offers ultra-fast inference |
| Reduce context | Use /compact to compress conversation history |
| Use compact prompt profile | In Saddle: prompt_profile: compact
|
| Use fast mode | In Saddle: --mode fast (12-iteration cap, compact prompts) |
-
Undo immediately:
/rewindrestores files to git HEAD -
Give feedback: Help the learning system improve
/experience-feedback ecap-xxxx --result failure --score 0.3 - Be more specific: Add constraints to your request
-
Use Plan mode first: Let the agent research before acting (
/plan) -
Use Spec mode: Get a structured plan before implementation (
/spec)
# Remove all learning data
rm -rf .clawcode/learning/
# Remove all runtime state
rm -rf .clawcode/
# Remove config
rm .clawcode.jsonThis gives you a completely clean slate. The agent will start learning from scratch.
| Feature | ClawCode | Claude Code |
|---|---|---|
| Architecture | Open-source, extensible platform | Proprietary, closed |
| Provider support | 9+ providers, 100+ models | Anthropic only |
| Team orchestration | 14 engineering + 6 design + 8 research roles | Single agent |
| Learning system | Three-layer (Instinct → ECAP → TECAP) | None |
| UI customization | 8 themes × 6 display modes | Limited |
| Brand design | 54 brand catalogs with AI matching | None |
| Plugin system | Claude Code-compatible plugins | Built-in only |
| Pipeline framework | Saddle (spec → design → develop) | None |
ClawCode is Claude Code-compatible — it can read .claude/ directories and use Claude Code plugins.
| Feature | ClawCode | Cursor |
|---|---|---|
| Interface | Terminal-native (TUI) | Desktop GUI editor |
| Agent types | 28+ specialized roles | General-purpose |
| Multi-agent | Built-in team orchestration | Limited |
| Self-improvement | Autonomous learning cycle | None |
| Extensibility | Plugin system, MCP, custom agents | Extensions |
| Cost | Bring your own API key | Subscription-based |
ClawCode is for developers who prefer the terminal and want deeper AI collaboration than GUI tools offer.
| You Might Love ClawCode If... | ClawCode May Not Be For You If... |
|---|---|
| You live in the terminal | You prefer GUI-based tools |
| You work on complex, multi-file projects | You only need quick code snippets |
| You want AI that learns your style | You don't want any data stored |
| You need multi-model flexibility | You're happy with a single provider |
| You build teams of AI specialists | You only need single-agent chat |
| You value open-source and extensibility | You want a managed, zero-config solution |
| Resource | Location |
|---|---|
| Project README | Root README.md
|
| Aesthetic Design Guide | docs/wiki/Aesthetic-Design.en.md |
| Collaboration Guide | docs/wiki/Collaboration.en.md |
| Development Guide | docs/wiki/Development.en.md |
| Evolution Guide | docs/wiki/Evolution.en.md |
| Architecture Decisions | docs/adr/ |
| Saddle Documentation | saddle/README.en.md |
| ECAP User Guide | docs/ECAP_v2_USER_GUIDE.md |
| TECAP Upgrade Guide | docs/TECAP_v2_UPGRADE.md |
ClawCode — Creative Engineering Cockpit for Serious AI Builders
Questions not answered here? Open an issue or start a discussion on GitHub.
From visual experience to engineering aesthetics — craft your own terminal workspace.
- Design Philosophy
- Theme System
- Display Modes
- 54 Brand Design Catalogs
- AI Smart Style Selection Engine
- Anti-Pattern Guardian System
- HUD — Heads-Up Display
- Welcome Panel & Claw Mascot
- Keyboard Shortcuts Quick Reference
- Configuration & Persistence
- Design Team Workflow
- Architecture Overview
ClawCode's aesthetic design follows three core principles:
-
Terminal-Native Visual Quality — Achieve GUI-level visual refinement within a pure terminal environment. Powered by the Textual TUI framework and Rich rendering engine, ClawCode delivers a CSS-driven styling system, real-time Markdown rendering, syntax highlighting, and dynamic animations — all inside your terminal.
-
Multi-Layer Customization — From global color themes to layout modes, from AI-driven automatic style selection to manually locked brand styles, users can adjust the interface appearance at any granularity level.
-
Engineering Aesthetics Driven — Every visual decision is backed by semantic intent. Colors aren't just "pretty" — they carry functional roles: information hierarchy, action feedback, and cognitive guidance.
ClawCode ships with 8 hand-picked themes spanning warm to cool tones, classic to trendy aesthetics. Each theme defines 11 semantic color tokens, ensuring every UI element's coloration has a clear design purpose.
| Theme | Background | Primary | Accent | Style |
|---|---|---|---|---|
| Yellow ⭐ Default |
#1c1b1a Deep Charcoal |
#eab700 Amber Gold |
#f0c14b Warm Gold |
Warm high contrast, ideal for long coding sessions |
| Catppuccin |
#1e1e2e Deep Indigo |
#cba6f7 Lavender |
#f9e2af Cream |
Soothing pastel palette, visually comfortable |
| Dracula |
#282a36 Midnight Gray |
#bd93f9 Electric Purple |
#f1fa8c Neon Yellow |
Classic Dracula, high recognizability |
| Gruvbox |
#282828 Dark Brown |
#d3869b Rose Pink |
#fabd2f Retro Gold |
Retro warm tones, unique personality |
| Monokai |
#272822 Dark Olive |
#ae81ff Violet |
#e6db74 Lemon Yellow |
Classic editor palette, developer favorite |
| One Dark |
#282c34 Graphite Blue |
#c678dd Lavender |
#e5c07b Amber |
Atom editor style, balanced elegance |
| Tokyo Night |
#1a1b26 Deep Night Blue |
#bb9af7 Lavender Blue |
#e0af68 Warm Orange |
Japanese aesthetics, serene and deep |
| Light |
#ffffff Pure White |
#9d7cd8 Soft Purple |
#ff9e64 Warm Orange |
Light mode, ideal for bright environments |
💡 Tip:
Darkis an alias forYellow— selectingDarkuses the default Yellow theme.
| Action | Shortcut | Description |
|---|---|---|
| Cycle to next theme | Ctrl + T |
Cycles through Yellow → Catppuccin → Dracula → … |
| Open theme selector | Ctrl + Shift + T |
Opens a theme list panel; current theme is marked with *
|
| Confirm in dialog | Enter |
Selects and applies the highlighted theme |
Each theme defines 11 semantic color tokens corresponding to different element roles in the interface:
| Token | Purpose |
|---|---|
background |
Global background color |
foreground |
Body text color |
primary |
Primary actions, highlights, links |
secondary |
Secondary information, auxiliary labels |
accent |
Accent color for drawing attention |
error |
Error states, failure indicators |
warning |
Warning states, caution indicators |
success |
Success states, confirmation feedback |
muted |
De-emphasized text, comments, disabled states |
border |
Borders, dividers |
panel |
Panel backgrounds, card surfaces |
This semantic design ensures that when switching between themes, the functional meaning of UI elements remains consistent — errors are always red-ish, successes are always green-ish — preventing cognitive disorientation caused by theme changes.
Themes control colors; display modes control layout. ClawCode offers 6 display modes, each defining a distinct interface layout and color atmosphere.
┌──────────────────────────────────────────────────┐
│ Chat Area │ Info Panel │
│ │ Code Awareness │
│ [Message List] │ │
│ │ │
│ ┌──────────────────────┐ │ │
│ │ > Input Box │ │ │
│ └──────────────────────┘ │ │
│ [HUD Status Bar] │ │
└──────────────────────────────────────────────────┘
- No sidebar, right info panel visible
- OpenCode-style input box (
>prompt) - Bottom HUD status bar
- Warm amber
#fab283as the primary tone
- Same layout structure as OpenCode
- Neutral blue-gray tone
#11141cbackground - Ideal for users who prefer calm, cool tones
┌──────────────────────────────────────────────────┐
│ Chat Area (Full Width) │
│ │
│ [Message List] │
│ │
│ ┌──────────────────────────────────────────────┐ │
│ │ Claude-style Input Box │ │
│ └──────────────────────────────────────────────┘ │
│ [HUD Status Bar] │
└──────────────────────────────────────────────────┘
- Full-width chat area, no right panel
- Anthropic orange
#da7756as the primary tone - Deep indigo background
#1a1a2e - Claude-style input box
┌──────────┬───────────────────────────────────────┐
│ Sidebar │ Chat Area │
│ │ │
│ [Session]│ [Message List] │
│ [Session]│ │
│ [Session]│ ┌──────────────────────────────────┐ │
│ │ │ Classic Input Box │ │
│ │ └──────────────────────────────────┘ │
└──────────┴───────────────────────────────────────┘
- Left session sidebar visible
- Top status bar replaces bottom HUD
- One Dark warm tone
#e5c07b
- Bare-bones interface: only message list and input box
- No sidebar, no right panel
- Solarized Dark high-contrast palette
- Ideal for focused conversation scenarios
- Centered narrow-column layout (max width 100 characters)
- No sidebar, no panels, no bottom HUD
- Nord-inspired palette
#88c0d0frost blue - Maximum focus and immersion
| Shortcut | Description |
|---|---|
Ctrl + D |
Opens the display mode selection dialog |
Choose your preferred mode in the popup dialog — the layout and color scheme will switch instantly.
ClawCode includes design language references from 54 world-class brands. Each brand directory contains:
| File | Description |
|---|---|
DESIGN.md |
Complete design system documentation (colors, typography, layout, component specs) |
README.md |
Brand overview with preview screenshots |
preview.html |
Light mode HTML visual preview |
preview-dark.html |
Dark mode HTML visual preview |
tokens.compact.json |
Compact design tokens (primary color, background, text, border radius, shadow, font family) |
These brand catalogs are not just for ClawCode's own UI aesthetics — they serve as a design reference library for AI code generation. When you ask ClawCode to generate UI code, it can automatically reference the corresponding brand's design language to ensure output quality.
📋 Click to expand all 54 brands
| # | Brand | # | Brand | # | Brand |
|---|---|---|---|---|---|
| 1 | Airbnb | 19 | Intercom | 37 | Resend |
| 2 | Airtable | 20 | Kraken | 38 | Revolut |
| 3 | Apple | 21 | Linear | 39 | RunwayML |
| 4 | BMW | 22 | Lovable | 40 | Sanity |
| 5 | Cal | 23 | MiniMax | 41 | Sentry |
| 6 | Claude | 24 | Mintlify | 42 | SpaceX |
| 7 | Clay | 25 | Miro | 43 | Spotify |
| 8 | ClickHouse | 26 | Mistral | 44 | Stripe |
| 9 | Cohere | 27 | MongoDB | 45 | Supabase |
| 10 | Coinbase | 28 | Notion | 46 | Superhuman |
| 11 | Composio | 29 | NVIDIA | 47 | Together.ai |
| 12 | Cursor | 30 | Ollama | 48 | Uber |
| 13 | ElevenLabs | 31 | OpenCode | 49 | Vercel |
| 14 | Expo | 32 | 50 | VoltAgent | |
| 15 | Figma | 33 | PostHog | 51 | Warp |
| 16 | Framer | 34 | Raycast | 52 | Webflow |
| 17 | HashiCorp | 35 | Replicate | 53 | Wise |
| 18 | IBM | 36 | RunwayML | 54 | x.ai / Zapier |
Example — Stripe Compact Tokens:
{
"primary_color": "#533afd",
"background": "#ffffff",
"text": "#061b31",
"radius": "8px",
"shadow": "0 8px 24px rgba(50,50,93,0.25)",
"font_family": "sohne-var, SourceCodePro"
}Example — Vercel Design Characteristics:
- Geist Sans / Mono fonts with extreme negative letter-spacing
- Shadow-as-border technique (using
box-shadowinstead ofborder) - Near-pure white canvas
#ffffff+ deep black text#171717 - Workflow colors: Ship Red
#ff5b4f, Preview Pink#de1d8d, Develop Blue#0a72ef
ClawCode's most distinctive aesthetic feature is its AI-driven UI style auto-matching system. When you make a UI-related request, the system automatically selects the best-matching design style from the 54 brand catalogs.
User Input Prompt
│
▼
┌─────────────────────┐
│ UI Keyword Detection │ ← Recognizes "ui", "界面", "design", "theme", etc.
└─────────┬───────────┘
│
▼
┌─────────────────────┐
│ TF-IDF Vectorization│ ← Converts user input into feature vectors
│ + Synonym Expansion │ ← 28 synonym groups expand matching scope
└─────────┬───────────┘
│
▼
┌─────────────────────┐
│ Multi-Dim Weighted │ ← 5 dimensions scored independently
│ Scoring │
└─────────┬───────────┘
│
▼
┌─────────────────────┐
│ RRF Fusion Ranking │ ← Reciprocal Rank Fusion combining keyword & semantic matching
└─────────┬───────────┘
│
▼
┌─────────────────────┐
│ Anti-Pattern Check │ ← Filters out non-compliant design proposals
└─────────┬───────────┘
│
▼
Recommended Brand Style
The system uses TF-IDF (Term Frequency-Inverse Document Frequency) to vectorize user input for matching, and expands the matching scope through 28 synonym groups. Examples:
| Synonym Group | Covered Terms |
|---|---|
| Dashboard | dashboard, admin_panel, control_panel, 管理后台, 管理面板 |
| Landing Page | landing_page, product_landing, 落地页, 首页, 主页 |
| E-commerce | ecommerce, shopping, 商城, 电商, shop, store |
| Fintech | fintech, 金融, finance, banking, 银行, 支付 |
| Minimal | minimal, minimalist, 简洁, 极简, clean |
| Documentation | docs, documentation, 文档, 文档站, 知识库 |
The system scores each candidate brand independently across 5 dimensions:
| Dimension | Weight | Description |
|---|---|---|
fit_surfaces |
2.0 | Matching surface types (landing page, dashboard, blog, etc.) |
fit_domains |
1.6 | Matching industry domains (fintech, e-commerce, dev tools, etc.) |
tags |
1.2 | Tag matching (minimal engineering, technical premium, etc.) |
tone_keywords |
0.8 | Tone keywords (professional, friendly, bold, etc.) |
identity |
0.4 | Brand identity characteristics |
The final ranking is produced by Reciprocal Rank Fusion (RRF), which merges two signal sources — keyword matching and TF-IDF cosine similarity — into a unified ranking.
The system natively supports Chinese input matching through 4-gram extraction for CJK characters:
- Direct recognition of Chinese keywords:
界面(interface),页面(page),主页(homepage),仪表盘(dashboard),组件(component),样式(style),布局(layout),主题(theme),颜色(color),字体(font),按钮(button),表单(form),导航(navigation),交互(interaction), etc. - Synonym groups include Chinese-English cross-references:
电商 ↔ ecommerce,金融 ↔ fintech,极简 ↔ minimal
Style selection isn't just about "what looks good" — it's also about knowing "what to avoid." ClawCode includes an anti-pattern guardian system that actively detects and prevents bad design practices during style recommendation and code generation.
The following anti-patterns apply to all brand styles:
| Anti-Pattern | Severity | Fix Suggestion |
|---|---|---|
| Rainbow gradient headline | Medium | Use a single primary accent with neutral typographic hierarchy |
| Glassmorphism with heavy blur | High | Replace blur cards with subtle border-shadow cards |
| Excessive animation | Medium | Reduce the number of animations, keep it simple |
| Neon glow borders | Medium | Use softer borders or shadows instead |
| Multiple conflicting accent colors | High | Limit to one primary color + one semantic status color |
Each brand also has its own anti-pattern rules:
| Brand | Anti-Patterns | Fix Suggestion |
|---|---|---|
| Vercel | Skeuomorphic textures, thick ornamental borders, emoji-heavy hero copy | Use flat monochrome surfaces with concise technical copy |
| Linear | Rounded cartoon cards, oversized marketing slogans, bright multi-color CTAs | Use tighter radius and structured issue-tracking density |
| Airbnb | Dark-only monochrome palette, dense enterprise dashboard grid | Increase whitespace and use lifestyle-oriented visual hierarchy |
The HUD (Heads-Up Display) is ClawCode's bottom real-time status bar, inspired by aircraft cockpit instrument panels — delivering maximum contextual information in minimal visual space.
| Section | Information |
|---|---|
| Model | Currently active LLM model name (e.g., claude-sonnet-4-20250514) |
| Running Tools | Tool name and target file currently executing (with spinner animation) |
| Tool Done | Names of completed tools (marked with done-color) |
| Agent Type | Currently active Agent role (e.g., architect, implementer, etc.) |
| TODO Progress | Task list completion progress (●●●○○ style) |
| Context Window | Current token usage |
Each HUD information section has independent color configuration, determined by the current display mode's DisplayModeChromeStyle:
| Element | Purpose |
|---|---|
hud_model_color |
Model name color |
hud_tool_running_color |
Pulse animation color for running tools |
hud_tool_name_color |
Tool name color |
hud_tool_done_color |
Completion marker color for finished tools |
hud_agent_type_color |
Agent type label color |
hud_todo_bullet_color |
TODO bullet dot color |
Every time you open a new blank session, ClawCode presents a carefully crafted welcome panel.
┌─────────────────────────────────────────────────┐
│ │
│ Welcome to ClawCode — your AI coding cockpit │
│ Model: claude-sonnet-4-20250514 │
│ Workspace: ~/my-project │
│ │
│ ┌─────────────────┐ ┌─────────────────────┐ │
│ │ 💡 Tips │ │ 📋 Recent Activity │ │
│ │ • Use /help │ │ • Fix auth bug │ │
│ │ • Ctrl+K commands│ │ • Refactor API │ │
│ │ • Ctrl+T theme │ │ • Add tests │ │
│ └─────────────────┘ └─────────────────────┘ │
│ │
└─────────────────────────────────────────────────┘
Welcome panel highlights:
-
Claw Pixel Mascot — ASCII pixel art rendered using Rich
Text+bgcolorfills - Brand Information — Version number, current model, workspace path
-
Two-Column Layout — Tips on the left + Recent activity on the right (Rich
Columnscomponent) - Adaptive Coloring — Panel border, accent, and muted colors all follow the current display mode
Below are the ClawCode shortcuts related to aesthetic design:
| Shortcut | Function | Description |
|---|---|---|
Ctrl + T |
Cycle theme | Switches to the next theme in preset order |
Ctrl + Shift + T |
Open theme selector | Opens the full theme list panel |
Ctrl + D |
Switch display mode | Opens the display mode selection dialog |
Ctrl + K |
Command palette | Search and execute any command |
Ctrl + M |
Toggle mouse mode | Enable/disable mouse interaction (affects hover effects) |
Ctrl + H / F1
|
Help panel | View the full keyboard shortcuts list |
Ctrl + Q |
Quit | Exit ClawCode |
ClawCode automatically saves your UI preferences and restores them on the next launch.
~/.config/clawcode/.clawcode_ui.json
| Setting | Description |
|---|---|
| Current theme | e.g., tokyonight, dracula
|
| Current display mode | e.g., opencode, zen
|
| Right panel width | Width after drag-resize |
Beyond AI auto-selection, you can manually lock a brand style:
- Manual Lock — Explicitly specify which brand's design language to use
- Auto Pick — Let AI match automatically based on context
- Hybrid — AI suggests a candidate list; you pick from it
ClawCode isn't just a tool — it includes a built-in virtual design team. Through the /designteam command, you can launch an AI design team composed of 6 specialized design roles:
| Role | Responsibility |
|---|---|
| Experience Design Expert | Overall UX strategy and evaluation |
| Interaction Designer | Interaction patterns and user flow design |
| UI Designer | Interface layout, component hierarchy and density |
| Product Designer | Aligning product functionality with design objectives |
| Visual/Ops Designer | Visual execution and operational material design |
| User Researcher | User needs research and usability testing |
Each design team role has its own YAML configuration file (located in .claw/design/designteam/), defining the role's domain expertise, working methods, and delivery standards. This multi-role collaboration ensures comprehensive and professional design solutions.
From a technical perspective, ClawCode's aesthetic design system consists of three layers:
┌────────────────────────────────────────────────────────────────┐
│ User Interaction Layer │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Theme │ │ Mode │ │ Brand │ │ Shortcut │ │
│ │ Switch │ │ Switch │ │ Select │ │ Actions │ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ │
│ │ │ │ │ │
├───────┴─────────────┴─────────────┴──────────────┴──────────────┤
│ Style Engine Layer │
│ ┌──────────────────┐ ┌──────────────────────────────────┐ │
│ │ Theme Engine │ │ Display Mode Engine │ │
│ │ 8 themes × │ │ 6 modes × │ │
│ │ 11 color tokens │ │ (65+ chrome + chat style slots) │ │
│ └──────────────────┘ └──────────────────────────────────┘ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ AI Style Engine │ │
│ │ TF-IDF + Synonym + RRF + Anti-Pattern + Session Memory │ │
│ └──────────────────────────────────────────────────────────┘ │
│ │
├─────────────────────────────────────────────────────────────────┤
│ Resource Layer │
│ ┌──────────────────┐ ┌──────────────────────────────────┐ │
│ │ .tcss Stylesheets │ │ 54 Brand Design Catalogs │ │
│ │ (Textual CSS) │ │ (.claw/design/UI/*) │ │
│ └──────────────────┘ └──────────────────────────────────┘ │
│ ┌──────────────────┐ ┌──────────────────────────────────┐ │
│ │ Rich Rendering │ │ Anti-Pattern Rule Library │ │
│ │ (Markdown/Syntax) │ │ (anti_patterns.json) │ │
│ └──────────────────┘ └──────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
Core Dual Rendering Engine:
-
Textual (Widget Layer) — Manages screen layout, keyboard events, focus management, mouse interactions, and CSS styling. Uses
.tcssfiles for structural styles. -
Rich (Content Layer) — Handles all in-widget content rendering. Widget
render()methods return RichRenderableTypeobjects, includingMarkdown,Syntax,Panel,Text, and more.
This layered architecture ensures decoupling of layout logic from content rendering, allowing themes and modes to be switched independently of content.
ClawCode — Creative Engineering Cockpit for Serious AI Builders
Experience engineering aesthetics in the terminal.