Skip to content

LiqunChen0606/clawterminal-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CatClaw — Your Mac's Best Friend on Mobile

Ship code from anywhere. CatClaw turns your iPhone or iPad into a full mobile dev environment -- SSH terminal, AI chatroom (Claude, Codex, Gemini, Aider), file browser, and multi-agent orchestration. Start a refactor on the train, review a PR at lunch, deploy from the couch. Your Mac does the heavy lifting; your phone is the remote control.

Download on the App Store Platform AI SSH

Latest Version: v1.9.7 (June 2026) — live on the App Store as ClawTerminal v1.5.0

The v1.9.4 through v1.9.7 updates below shipped together as ClawTerminal v1.5.0, now live on the App Store: no-account ntfy push, chat-app push for Hermes/OpenClaw, "every Claude Code command works", QR connection sharing, Claude Fable 5 + a Fast agent preset, and Quiet-while-app-is-open.

What's New in v1.9.7 (June 2026)

Feature What it does Learn More
ntfy push — no account needed The lowest-friction way to get phone notifications: no login, no registration, no API key. Run /notifier ntfy, pick an unguessable topic, tap Test — then install the free ntfy app and subscribe to the same topic. Your Mac sends each job completion to it. Also available as a channel in the /hermes / /openclaw chat-push wizard. Works alongside (and falls back from) the existing Apple Push and Telegram options. Tip: the topic name is the only secret, so make it hard to guess — or point it at your own self-hosted ntfy server. Tutorial

What's New in v1.9.6 (June 2026)

Feature What it does Learn More
Push agent results to a chat app After you install Hermes or OpenClaw (/hermes install / /openclaw install), ClawTerminal offers to forward job results to Telegram, Discord, or Slack — tap a chip, paste a bot token or webhook URL, test, and save. It writes a small config + a notify.sh wrapper on your Mac that your agentic tools can call when a task finishes. Re-open the setup any time with /hermes pushsetup or /openclaw pushsetup.
Fast agent routing (Fable 5) A new --routing fast preset for /team, /batch, and /orchestrate runs every agent on Claude Fable 5 — the fast 1M-context frontier model — instead of mixing tiers. Pick it when you want speed and a big context across the whole agent team. Joins the existing Quality / Balanced / Budget presets. Examples

What's New in v1.9.5 (June 2026)

Feature What it does Learn More
Claude Fable 5 Anthropic's Fable 5 model (claude-fable-5) is now selectable wherever you pick a Claude model — the chatroom model picker and Settings → CLI Tool Models. It carries a 1M-token context window, and per-job cost estimates are priced in automatically.
Quiet while the app is open Stop getting a completion banner for a job you're already watching. While ClawTerminal is open and in the foreground, on-device and Mac-side notifications for that session are held back; they resume the moment you leave the app. On by default — toggle at Settings → AI Intelligence → "Quiet While App Is Open." If you use the Mac notifier daemon, re-run /notifier install once to pick it up. Tutorial

What's New in v1.9.4 (June 2026)

Feature What it does Learn More
Every Claude Code command works ClawTerminal is now a superset of the Claude Code command surface. Any slash command your claude session supports — including new ones added in future CLI releases — is forwarded straight through and rendered in the rich card view, instead of an "Unknown command" error. Interactive-only commands (/config, /mcp, /agents, /login, /model) offer a one-tap jump to the Terminal tab where they belong. You no longer wait for an app update to use a new CLI command.
--app for visual orchestration /team --app [goal] and /batch --app [goal] open ClawTerminal's visual command center (wave/Kanban agent graph). Without --app, bare /team//batch now forward your goal to Claude's own native subagent orchestration. Type an orchestration flag (--agents, --multi, …) without --app and you get a "did you mean --app?" nudge instead of a broken run. Examples · Examples
QR connect — share a server in one scan Set up a connection on one device, then Share as QR; scan it on another iPhone or iPad to import the profile instantly — no retyping host, port, and username on a phone keyboard. Private key sharing is strictly opt-in (off by default, with a loud warning) — by default the key is entered on the new device and only the connection details travel in the QR. Collapses the single biggest first-run friction. Examples
Connect Claude without port setup (Beta) A new opt-in transport drives a Claude chatroom on your Mac through a documented local bridge instead of an SSH port forward — removing inbound-network configuration. Install with /channels install on your Mac (requires a recent Claude Code), then enable it in Settings → AI Intelligence. Honest about the tradeoff: it removes the network setup, not the Mac — claude still runs on your machine. SSH stays the default and powers the terminal, file browser, and the other AI tools.

What's New in v1.9.3 (Early May 2026)

Feature What it does Learn More
Apple On-Device LLM Tier On iPhone 15 Pro and newer (and M1+ iPads) running iOS 26 with Apple Intelligence enabled, three features now run entirely on-device when you don't have an Anthropic API key set: Save as Skill (skill extraction from a trajectory or background job), /standup (daily standup generator), and /whatif (shell-command outcome prediction). Free, instant, fully private — Apple's FoundationModels framework, nothing leaves the phone. The cascade goes API key first (best quality), then Apple Intelligence on-device, then Claude CLI on your Mac as a final fallback. Toggle: Settings → AI Intelligence → Apple On-Device LLM (defaulted ON when supported; the row shows live availability — Available / Apple Intelligence not enabled / device doesn't support / model preparing / requires iOS 26). Examples · Examples · Examples
iOS 26 Writing Tools iOS 26's system Writing Tools (Rewrite / Proofread / Make Friendly / Make Concise / Convert to Table) now appear in the chatroom input bar and the skill editor — both the global skill body and the per-project variant editor. Long-press selected text to invoke. Plain-text only, so the send pipeline never sees rich-text artifacts. Zero behavior change on iOS 17–25. Examples
iOS 26 SpeechAnalyzer for Voice /voice and the long-press send → Speak with Search sheet now use Apple's iOS 26 SpeechAnalyzer + SpeechTranscriber pipeline on supported devices — better accuracy, lower start-of-speech latency, fully on-device. Older iOS versions transparently keep the previous SFSpeechRecognizer path. No setup change; same trigger points.

What's New in v1.9.2

Feature What it does Learn More
Skill Library Audit Manage Skills now shows a "Last fired" relative-date badge on every skill row (clock icon + "5d ago" / "Never") plus a sort menu in the toolbar (Name / Last used). Identify cold skills at a glance — disable or delete the ones that aren't pulling weight, keep the ones that are. Backward-compatible: older skills you saved before this update show "Never" until they next fire. Examples · Tutorial
? Typing Hint The moment you type ? as the first character of a message, an indigo chip appears below the input bar reminding you that ? triggers Search Mode for that message. Disappears the moment you send, delete back to empty, or type a second ? (the literal ?? carve-out). Makes the ?prefix shortcut discoverable on the first keystroke instead of buried in tutorials. Examples · Tutorial
Slash Palette Tip of the Day Type / with no other characters and you'll see a yellow lightbulb tip card at the top of the slash palette pointing to one underused command — /effort, /btw, /think, /duck, /recap, /context, /retry, /pin, /wrapped, or /whatif. Same tip for everyone on the same calendar day; rotates daily. Tap the tip to insert the command into your input bar. Examples · Tutorial
Cleaner Search Section The 🔍 Search section in the Background Jobs tab now hides ?prefix jobs older than 7 days (favorited jobs are exempt; the All tab still shows everything). CLI skill-extraction jobs from the previous release are also fully hidden — they were always an implementation detail of "Save as Skill" and the inline progress row is the only UI you need. Less clutter, same data. Examples · Tutorial
Skill Extraction from Trajectories Turn any research result, ?prefix exploration, or background-job trajectory into a reusable Skill. Select 2-N entries → Save as Skill (N) → Haiku classifies as RULE (deliberation) vs RECIPE (steps) and auto-fills name, description, 3-6 keywords, and markdown body. Edit and save. Loads automatically the next time a similar question matches its keywords. Works with an Anthropic API key (3-5s) or via Claude CLI on your Mac (30-60s, no key needed). The rich result view also has a Job Output toggle so you can flip back to the raw tmux output for any ?prefix job. Examples · Tutorial
Trajectory Library Pin the winner from any /research run or Search Mode result into your chatroom's preamble. Every follow-up message Claude sees is grounded by that pinned conclusion — no re-explaining, no drift. Up to 3 pins per chatroom; the 📌 N chip shows active pins. Tap the chip to manage or unpin. Pins survive Frugal Mode. Examples · Tutorial
Search Mode + Trajectory Graph Start any message with ? to route it through the parallel propose-evaluate-refine engine — three chains explore different angles, rounds refine the best ones. Tap the result to open the trajectory graph: chains as columns, refinement rounds as rows, best attempt highlighted in gold with a ★. Works with an API key (in-app Haiku, full trajectory) or falls back to the chatroom's CLI for users without one. Long-press send → Send with Search for a one-off trigger without typing ?. Examples · Tutorial
Native Research Engine /research no longer needs SimpleTES installed on your Mac. The new in-app loop runs propose-evaluate-refine entirely against the Claude API — about $0.01 per run on Haiku, with live progress and a full trajectory graph in the result sheet. Best for text-heavy research like prompt engineering, design exploration, and strategic planning. SimpleTES (Mac) mode is still one tap away in the picker for code-exploration evaluators. Examples · Tutorial
Mac-hosted APNs Push /notifier setup walks you through a 5-step wizard (Apple Developer portal → download .p8 key → Mac config → device-token registration → test push). Your own Mac then posts directly to Apple's push servers, so iPhone gets real native push banners when background jobs finish. No third-party cloud, no relay server. Requires a paid Apple Developer account — single-developer use only. Examples · Tutorial
Telegram Bot Notifications /notifier telegram opens a 4-step wizard: create a bot via Telegram's @BotFather, paste the token, send your bot a message, save. Your Mac then routes every job-completion through your own bot — instant iPhone push via the Telegram app. No Apple Developer account, no certificates, no cloud server, no $99/yr. Examples · Tutorial
Mac Notifications + Research Mode /notifier install adds a tiny Mac daemon that fires native macOS notifications when background jobs complete (no cloud, no APNs). New /research <task> runs SimpleTES on your Mac for evaluation-driven discovery — Haiku translates the task into init_program + evaluator files automatically. Per-chatroom Super Research Mode toggle reminds you the command is unlocked. Examples · Tutorial
Tool Installers One-tap install or uninstall third-party AI CLIs on your Mac. /openclaw install, /hermes install, /openclaw uninstall, etc. Confirmation card previews the exact command before it runs. Examples · Tutorial
Learn Hub One unified, searchable place for interactive tutorials, written docs, and examples. Tap the book icon in the chatroom toolbar, or use /docs, /tutorial. Type to search across everything. Examples · Tutorial
Interactive Tutorials /tutorial launches 6 guided tracks (43 steps) that validate your real commands as you go — beginner, terminal, workflows, agents, devops, power. Also in Settings → Learn ClawTerminal Examples · Tutorial
Context-Aware AI 4 on-device sensors inject time of day, calendar, motion/activity, and battery into every prompt. Chip bar shows active signals. Claude adapts tone and length to the moment Examples · Tutorial
Frugal Mode /frugal per-chatroom, or ! prefix for one-off sends — strips skills, memory, pinned files, and tells Claude to just act. Cheapest, fastest, most direct answers Examples · Tutorial
Rubber Duck Mode /duck turns Claude into a Socratic rubber duck — only asks probing questions, never gives answers. For bug debugging, design reviews, and pressure-testing your reasoning Examples · Tutorial
Daily Standup Generator /standup writes your Yesterday/Today/Blockers note in 10 seconds from chatroom activity + git log. Auto-copies to clipboard. Local-only fallback if no API key Examples · Tutorial
Ambient Sound Design 4 subtle iOS system sounds for AI thinking, job complete, job failed, streaming start. Opt-in, per-event, off by default. Respects silent mode Examples · Tutorial
What If Simulator /whatif <command> predicts 3 likely outcomes of a shell command before you run it — green/yellow/red severity bars, probability %. Uses git status context Examples · Tutorial
Code Postcards Long-press any message → Share as Postcard → 1080×1080 PNG with syntax highlighting and gradient backdrop. One-tap share to Twitter, Discord, Slack Examples · Tutorial
Dev Wrapped /wrapped or /wrapped month — Spotify-Wrapped-style 9-page swipeable recap of your week: top commands, spend, peak hour, topics, longest session, share card Examples · Tutorial
Screenshot Memory /screenshot captures the current chatroom view, auto-tags it locally. /screenshots opens a searchable gallery. Visual bookmarks for "that beautiful explanation" Examples · Tutorial
Proactive AI Insights 4 background detectors (weekday failures, command repetition, session-length trends, cost spikes) fire notifications when patterns emerge. Opt-in, 72h dedup Examples · Tutorial
Dream Mode /dream — autonomous preference learning. CatClaw analyzes your conversation patterns overnight and builds a living profile of your skills, style, and focus areas — injected into every future session automatically Examples · Tutorial
Session Recap /recap — message count, job stats, recent topics, session cost at a glance Examples · Tutorial
Context Window Meter /context — visual progress bar with percentage and actionable suggestions before you hit the limit Examples · Tutorial
Effort Control /effort low|medium|high — dial thinking depth from quick answers to thorough deep-dives Examples · Tutorial
Side Questions /btw [question] — ask a quick question without derailing your main conversation Examples · Tutorial
Retry Last Message /retry — remove the last exchange and re-send for a different response Examples · Tutorial
Agent Personas /personality — switch between senior, mentor, reviewer, architect, and hacker modes Examples · Tutorial
Agent Soul /soul — define a persistent agent identity that survives session resets and is injected into every conversation in this chatroom Examples · Tutorial
Explicit Reasoning /think [question] — request an explicit reasoning chain; /trace to replay the last agent's full thinking trace in collapsible blocks Examples · Tutorial
Enhanced Hooks /hooks now supports pause/resume per hook, trigger-count display, and conditional expressions Examples
Smart Memory Categories /remember auto-classifies new memories as project context, user preference, or session insight — no manual tagging needed Examples
Countdown Ring on Send Hold the send button and a circular countdown ring animates before triggering your gesture shortcut — with haptic feedback per action type Examples
Multi-Model Race Pit Claude vs Codex vs Gemini on the same prompt -- pick the winner Examples · Tutorial
GitHub PR Workflow Create PRs, AI code review, CI checks -- all from your phone Examples · Tutorial
Session Handoff Start on your phone, continue on your Mac (or vice versa) Examples · Tutorial
Live Web Preview See your web app on your phone via SSH tunnel -- annotate bugs, send to Claude Examples · Tutorial
Smart Model Routing Auto-pick the right model per agent role: Quality, Balanced, or Budget Examples
Agent Reasoning See why your agents made decisions, not just what they did Examples
Git Worktree Mode Each agent gets its own branch -- no stepping on each other's toes Examples
AI Code Search Ask "where is auth handled?" and get ranked results with explanations Examples
Git Graph Visual branch timeline -- tap any branch to check it out Examples
Codebase Health One-tap project snapshot: LOC, TODOs, dependencies, largest file Examples
Server Monitor Live CPU, memory, and disk charts -- watch your deploy in real time Examples
Merge Conflict Resolver AI reads both sides, suggests a resolution, one-tap Apply Examples
Smart Notifications /notify when tests finish -- plain English rules, push when true Examples
Plan Mode See what Claude would change before it changes anything Examples
@web Context Pull any URL into your prompt -- docs, changelogs, Stack Overflow Examples
File Pinning Keep key files always in context -- no re-attaching every turn Examples
Analytics Dashboard Track token spend, job success rates, and daily activity Examples
Workflow Pipelines Define multi-step DAG pipelines -- parallel lint + test, then deploy Examples
Auto-Recovery Failed job? CatClaw classifies the error and retries automatically Examples
Auth Auto-Recovery CLI auth expired? CatClaw walks you through the fix in one tap Examples
AI Changelog Structured release notes from git log in seconds Examples
Test Generation Describe the feature in English, get tests in your framework Examples
Security Scan Four-check audit: deps, hardcoded secrets, .env leaks, .gitignore gaps Examples
Tribal Knowledge Extract the unwritten rules your README forgot to mention Examples
Spec-Driven Dev Generate formal requirements, then execute them with agents Examples
Codebase Graph "What depends on PaymentService?" -- answered with file + line refs Examples
Agent Hooks Auto-run tests every time you save a file -- zero manual effort Examples
Smart Suggestions Tap-to-ask follow-up chips -- "How do I fix this?" after every error Examples · Tutorial
Gesture Shortcuts Long-press Send = background job. Swipe down = compact context. Examples · Tutorial
Split-Screen Terminal Run shell commands below the chatroom -- no tab-switching Examples · Tutorial
Conversation Branching Fork any conversation to try two approaches side by side Examples · Tutorial
JSON Table Cards JSON arrays auto-render as scrollable tables with headers Examples · Tutorial
Auto-Context from Terminal Build fails? Tap "Ask Claude" -- error output already loaded Examples · Tutorial
Implicit Learning Correct Claude once, it remembers forever -- no commands needed Examples · Tutorial
Cat Mascot The paw pulses orange (thinking), cyan (working), bounces (done) Examples
Haptic Patterns Feel the difference: firm click = done, double buzz = failed Examples

Why CatClaw Instead of Claude Code Remote Control / Channels?

Claude Code has "Remote Control" (SSH tunnel to claude.ai) and "Channels" (Slack/Discord bridge). Both are remote interfaces to a single tool. CatClaw is a full mobile dev environment -- native iOS app, direct SSH, tmux-backed sessions that survive anything, and multi-tool AI orchestration. Here is how they stack up:

Feature ClawTerminal Claude Code Remote Control Claude Code Channels
Session persistence tmux survives Mac sleep, app backgrounding, SSH drops — pick up right where you left off Dies when terminal closes Dies when bridge process dies
Mac sleep resilience SSH auto-reconnects, tmux session persists with full output Process suspends, WebSocket drops Bridge dies, must restart
Real terminal Full PTY — vim, htop, tmux, interactive programs No (command execution only) No
File browser SFTP with batch operations, upload/download, breadcrumb navigation No No
Multi-tool AI Claude + Codex + Gemini + Aider in dedicated chatrooms Claude only Claude only
Multi-agent orchestration /batch --agents N with Commander + Workers + Synthesizer, cross-tool assignment Background agents (desktop only) No
Agent Teams /team — wave-based orchestration with visual command center, animated flow graph, discovery feed, per-agent status cards Desktop-only CLI text output No
Multi-model comparison /race — run 2–4 AI models on the same prompt simultaneously, side-by-side results with AI summary No No
GitHub PR workflow /pr create, /pr review, /pr list, /pr checks — full PR lifecycle with AI-powered code review No (desktop only) No
Session handoff /handoff — start on phone, continue on Mac; or pick up an active Mac session on your phone No No
Live web preview /preview — SSH port-forwarded browser preview of your dev server, auto-detects port from config files No No
Smart model routing Auto-assigns cost-appropriate models per agent role (Quality/Balanced/Budget presets). Use --routing balanced. No No
Git worktree isolation --vcs flag for agent branch isolation. Each agent works in its own branch; results auto-merge back with conflict reporting. /worktree (desktop) No
Agent reasoning Extracted agent reasoning shown as a collapsible banner on job results No No
Visual git graph /git — visual branch/commit timeline with branch tags; tap to checkout No No
Codebase health dashboard /health — one-tap scan: LOC, file count, TODOs, uncommitted changes, dependencies, largest file No No
Live server monitor /monitor — real-time CPU, memory, disk, uptime, load average with sparkline charts No No
AI code search /search [query] — semantic AI-powered search across your codebase with ranked explanations No No
Merge conflict resolver /conflicts — AI-powered conflict resolution with ours/theirs view and one-tap Apply No No
Smart notifications /notify when tests finish — natural language SSH-polled monitoring rules with push notifications No No
Plan mode /plan — structured dry-run plan (files, changes, risks) before any writes; tap Execute to proceed No No
@web context @web https://url — fetch a URL via SSH and inject content into your message context No No
File pinning /pin filepath — keep specific files always in context for every message in a chatroom No No
Analytics dashboard /dashboard — aggregate stats: job success rates, token spend, daily activity sparkline, most-used commands, drill-down filtered views No No
Workflow pipelines /workflow [name] — named multi-step pipelines as JSON DAGs, parallel steps, dependency ordering, live visual DAG with per-node status No No
Auto-recovery for failed jobs Classifies job failures (network timeout, missing dependency, auth, etc.) and auto-retries or shows one-tap "Retry with AI fix?" banner No No
AI changelog /changelog [range] — structured release notes from git log, organized into Features, Improvements, Bug Fixes, Other Changes No No
Test generation /gentest [description] — generates comprehensive tests from plain English; auto-detects Jest, Vitest, pytest, XCTest, Mocha No No
Security scan /security — four-check audit: dependency vulnerabilities, hardcoded secrets, .env tracking, .gitignore gaps, with AI prioritization No No
Tribal knowledge extraction /tribal — background job that documents unwritten project knowledge: architecture decisions, gotchas, hidden dependencies, naming conventions No No
Spec-driven development /spec [feature] — formal EARS-notation requirements with files, tasks, acceptance criteria, risks; optional agent execution No No
Codebase graph queries /graph [question] — queries file tree, import map, class/function definitions to answer architectural questions with file + line references No No
Agent hooks /hooks add name "pattern" "action" — file-change triggered background jobs; poll every 10s, 30s cooldown, manage with list/remove/stop No No
Scheduled/recurring jobs Hourly, daily, weekly recurring with auto-submission No No
Security model End-to-end SSH encryption, keys stored in iOS Keychain Localhost only (requires SSH tunnel to reach claude.ai) Code passes through third-party platforms (Slack, Discord)
Setup Just SSH credentials (password or key) CLI install + tunnel configuration Bot token + bridge setup + runtime
Native mobile app Full iOS/iPadOS/watchOS app, optimized for touch Web browser on claude.ai Messaging app (Slack/Discord)
Offline / local network Works on local WiFi without internet (SSH only) Requires active claude.ai connection Requires platform API
watchOS Voice dictation to submit jobs + monitor progress from wrist No No
iPad Split view sidebar, Stage Manager multi-window, shared SSH sessions No No
Code snippets Save, search, run from a persistent library No No
AI autocomplete Ghost text suggestions in terminal as you type No No
AI error diagnosis Floating "Ask Claude" pill auto-detects terminal errors No No
Cross-session memory /remember facts persist across all sessions No No
Shared chatroom Host/join via room codes, real-time guest viewing No No
Conversation export PDF and Markdown export with share sheet No No
Port forwarding Local, remote, and dynamic SOCKS5 tunnels No (tunnel is one-way) No
Mosh transport UDP-based Mosh for high-latency connections No No
Smart suggestions Context-aware follow-up chips after every response — tap to ask instantly without typing No No
Split-screen terminal Collapsible mini SSH terminal below the chatroom; drag to resize; no tab-switching needed No No
Conversation branching Fork at any message, switch between branches to compare approaches No No
JSON table cards JSON arrays in code blocks auto-render as scrollable tables with headers No No
Session recap /recap — message count, job stats, topics, and cost for the current session No No
Context window meter /context — visual usage bar with percentage and suggestions before you hit the limit No No
Effort control /effort low|medium|high — tune thinking depth per question without changing models No No
Personality switching /personality senior|mentor|reviewer|architect|hacker — switch agent persona mid-session No No
Dream Mode Autonomous overnight preference learning — CatClaw builds a living profile of your skills, style, and focus files that gets injected into every future session. No other tool does this. No No
Agent soul & personas /soul defines a persistent identity; /personality switches roles (senior/mentor/reviewer/architect/hacker) mid-session No No
Explicit reasoning /think requests a visible reasoning chain; /trace replays the last agent's full thinking blocks No No
Smart memory categories /remember auto-classifies memories as project context, preference, or insight — no manual tagging required No No

Bottom line: If you want to check on a Claude task from your phone, Remote Control works fine. If you want to actually develop from your phone -- run agents, review PRs, preview web apps, manage files, and never lose work when your phone sleeps -- CatClaw is purpose-built for that.


Table of Contents

  1. Getting Started
  2. SSH Setup — Connect to Your Mac (Local Network)
  3. Tailscale — Remote Access Anywhere (Recommended for remote use)
  4. SSH Keys
  5. Claude AI Chatroom (includes Background Jobs, Agent Orchestration, Batch Multi-Agent, Agent Teams, Multi-Model Comparison, GitHub PR Workflow, Session Handoff, and Live Web Preview)
  6. Skills & Marketplace
  7. Smart Commands
  8. Slash Commands & @ References
  9. Terminal Shortcuts
  10. Port Forwarding & Tunnels
  11. SFTP File Browser
  12. MCP Servers
  13. Tips & Tricks
  14. Troubleshooting
  15. Feature Tutorials

Examples

Copy-paste-ready recipes for every CatClaw feature. Each file covers one area with real scenarios you can try right now.

Example What's inside
SSH Terminal Connect via WiFi, Tailscale, Mosh; SSH config import; port forwarding; extended keyboard shortcuts
AI Chatroom CLI vs API mode, model switching, plan mode, compact, export
Background Jobs /submit one-shot jobs, --ckpt checkpoints, --skills injection, scheduled jobs
Batch Agents /batch with agent count, checkpoints, multi-tool, and skills flags
Agent Teams /team wave-based orchestration, --multi cross-tool, Visual Command Center
Smart Commands Custom slash commands with parameters, background auto-submit, tool overrides, skill injection
Memory & Skills /remember, /forget, /memories; enabling skills; per-message skills
SFTP & Files Browse, download, batch delete, Snap & Code workflow
Collaboration Host/join shared rooms, relay server setup, guest watch view
Multi-Model Comparison /race examples — compare Claude, Codex, and Gemini side-by-side on the same prompt
GitHub PR Workflow /pr create, /pr review, /pr list, /pr checks — full examples with review learning
Session Handoff /handoff mac and /handoff pickup — start on phone, continue on Mac
Live Web Preview /preview auto-detect, port override, --start, and stop examples
Slash Commands Reference Every slash command with syntax, flags, and examples — grouped by category
Git, Health & Monitor /git visual branch graph, /health codebase dashboard, /monitor live server stats, /search AI code search
Advanced Agent Features Git worktree mode (--vcs), smart model routing (--routing), agent reasoning banner, combining all flags
Workflow Automation /conflicts merge conflict resolver, /notify smart notifications, /plan enhanced dry-run, @web URL injection, /pin file pinning
AI Analysis & Automation /changelog release notes, /gentest test generation, /security audit, /tribal knowledge extraction, /spec requirements, /graph codebase queries, /hooks file-change automation
UX & Intelligence Features Smart suggestions, gesture shortcuts, split-screen terminal, conversation branching, JSON table cards, auto-context from terminal, implicit learning, cat mascot, haptic patterns
Session Intelligence /recap, /context, /effort, /btw, /retry, /personality — control how Claude thinks, responds, and remembers within a session
Dream Mode /dream, /dream now, /dream reset — autonomous preference learning, profile evolution over time, combining with /personality and /effort
Interactive Tutorials /tutorial, /tutorial <track>, /tutorial reset — in-app guided learning with real-command validation
Context-Aware AI Time, calendar, motion, and battery signals injected into prompts — chip bar, privacy settings, real before/after comparisons
Frugal Mode /frugal toggle and ! prefix — strip context for cheap, fast, direct answers
Rubber Duck Mode /duck Socratic debugging — example session with probing questions
Standup Generator /standup — auto-write Yesterday/Today/Blockers from chatroom + git log
Ambient Sound 4 iOS system sounds, popular combinations, silent-mode behavior
What If Simulator /whatif <command> examples for destructive, dangerous, and deceptively-safe commands
Code Postcards Share as Postcard workflow, social use cases, multi-block postcards
Dev Wrapped /wrapped 9-page recap — real example with activity, spend, topics, longest session
Screenshot Memory /screenshot and /screenshots — capture, tag, search, real scenarios
Proactive AI Insights 4 detectors with real notification examples and weekly rhythm
Search Mode /search on chatrooms — 7 scenarios including naming, design tradeoffs, taglines, policy brainstorming, prompt iteration, when NOT to use it, and reading the trajectory graph
Native Research /research Native mode — designing system prompts, naming features, App Store copy, strategic options, taglines, when NOT to use it (SimpleTES territory), fast product design iteration
Trajectory Library Pinning research winners — auth architecture, product naming, code review principles, ADRs, multi-decision design sessions, when NOT to pin, reading the score before pinning

Feature Tutorials

Deep dives into individual features. Each tutorial walks you through setup, usage, tips, and real-world workflows.

Multi-Model & AI Comparison

Tutorial Description
Multi-Model Comparison (/race) Race 2–4 AI models on the same prompt simultaneously. Side-by-side results on iPad, swipeable cards on iPhone, with an AI-generated comparison summary. Includes same-model thinking lenses (--copies, --lenses): Adversarial, Pragmatic, Principled, User-First, Skeptic, Optimizer
AI Code Review Learning Thumbs-up/down feedback on individual review items teaches CatClaw your team's preferences. Set focus areas with /pr focus security,tests,performance. Builds up over 5–10 reviews

Developer Workflow

Tutorial Description
GitHub PR Workflow (/pr) Full GitHub PR lifecycle: auto-generate PR title and body, AI-powered code review with severity-colored items (red/yellow/blue/green), CI status checks, and per-chatroom review learning with thumbs-up/down ratings
Session Handoff (/handoff) Bidirectional handoff between phone and Mac: send your current session to a Mac tmux window, or discover and pick up active Mac sessions on your phone. Uses Claude's --resume flag for seamless context continuity
Live Web Preview (/preview) SSH-tunneled live preview of your dev server in-app. Auto-detects port from package.json, .env, or vite.config. Multi-port tab switching, --start auto-launch, console log panel, screenshot+annotate, responsive viewport modes

Agent Orchestration

Tutorial Description
Agent Teams (/team) Wave-based orchestration: Research → Implement → Review waves with parallel agents, discovery propagation between waves, visual command center with animated flow graph and live discovery feed
Batch Multi-Agent Orchestration (/batch) Commander decomposes your goal, N parallel Workers execute it, Synthesizer merges results. Supports --agents, --multi, --ckpt, --skills, and --vcs for git worktree isolation
Smart Commands User-defined slash commands with named parameters, background auto-submit, tool overrides, skill injection, and auto-batch execution

Additional Features

Tutorial Description
Scheduling Recurring Background Jobs Set up hourly, daily, or weekly job schedules with automatic re-submission
Understanding Agent Checkpoints Track progress of long-running jobs with manual [CHECKPOINT] markers or automatic --ckpt detection
Using ClawTerminal on iPad NavigationSplitView sidebar, Stage Manager multi-window, shared SSH sessions
Multi-CLI Tool Support Use Aider, Codex, or custom CLI tools alongside Claude in dedicated chatrooms
Cross-Session AI Memory Persistent /remember facts injected into every chatroom session automatically
Shared Chatroom (Session Sharing) Share your AI chatroom session via room codes — guests watch in real-time

Additional Feature Tutorials

Tutorial Description
AI Error Diagnosis Floating "Ask Claude" pill for instant terminal error diagnosis
Snap & Code: Camera to Code Photograph a mockup or error, Claude generates and runs code
Conversation Export (PDF/Markdown) Save conversations as Markdown files or formatted PDFs
SFTP Batch Operations Multi-select files for bulk download and delete
Custom Terminal Themes Design custom color schemes with full 16-color ANSI palette editor
Inline Code Execution Run code blocks from Claude's responses with one tap
Code Snippet Library Save and reuse code blocks from conversations
Smart Notifications Notifications for job completion, long responses, and to-do completion
AI Analysis & Automation /changelog, /gentest, /security, /tribal, /spec, /graph, /hooks — step-by-step walkthroughs and real-world pipelines
UX & Intelligence Features Smart suggestions, gesture shortcuts, split-screen terminal, conversation branching, JSON table cards, auto-context, implicit learning — when and why to use each, productivity combinations
Session Intelligence /recap, /context, /effort, /btw, /retry, /personality — master your conversation flow with commands that give you control over how Claude thinks, responds, and remembers
Dream Mode How Dream Mode learns your patterns overnight, how the profile compounds over days and weeks, privacy details, and how to combine it with /personality, /effort, and /soul for a fully personalized assistant
Interactive Tutorials /tutorial launches 6 guided tracks (beginner, terminal, workflows, agents, devops, power) with automatic step validation on real commands
Context-Aware AI 4 on-device sensors (time, calendar, motion, battery) that inject signals into every prompt so Claude adapts tone and length to the moment
Frugal Mode /frugal per-chatroom, ! prefix for one-offs — strip skills, memory, pinned files for the cheapest, fastest, most direct answers
Rubber Duck Mode /duck turns Claude into a Socratic rubber duck — only asks probing questions, never gives answers
Daily Standup Generator /standup writes Yesterday/Today/Blockers in 10 seconds from chatroom activity + git log
Ambient Sound Design 4 subtle iOS system sounds for AI thinking, job complete, failed, streaming start — opt-in, per-event
What If Simulator /whatif <command> predicts 3 likely outcomes of a shell command before you run it, color-coded by severity
Code Postcards Long-press any message → Share as Postcard → 1080×1080 PNG with syntax highlighting and gradient
Dev Wrapped /wrapped — Spotify-Wrapped-style 9-page recap of your week: top commands, spend, peak hour, longest session
Screenshot Memory /screenshot captures chatroom view with auto-tagging; /screenshots opens searchable gallery
Proactive AI Insights 4 background pattern detectors (weekday failures, command repetition, session length, cost spikes) — notifications when patterns emerge
Search Mode How the propose-evaluate-refine loop works, when to use it, the Trajectory Graph, cost and latency, tips for getting the most out of each search
Native Research Engine Two modes (Native vs SimpleTES), knob configuration, cost breakdown, the Trajectory Graph, when to use /research vs Search Mode
Trajectory Library Pinning research winners into the chatroom preamble, the 📌 chip, cap-3 eviction dialog, Frugal Mode interaction, verifying a pin is working

1. Getting Started

Requirements

  • iPhone or iPad running iOS 17 or later
  • A Mac (macOS 13 Ventura or later) OR any SSH-accessible Linux/BSD server
  • tmux installed on your Mac/server (required for chatroom features)
  • (Optional) Tailscale for remote access outside your local network

Why tmux?

Your phone will sleep. Your WiFi will drop. iOS will background the app. tmux means none of that matters.

CatClaw runs Claude inside tmux sessions on your Mac. The AI keeps working even when your phone disconnects -- and CatClaw picks up where it left off when you reconnect. Background jobs, scheduled tasks, and multi-agent runs all depend on tmux.

Without tmux: Messages fall back to direct SSH channels, which drop when the connection is interrupted -- you may lose partial responses.

Install tmux

macOS (Homebrew):

brew install tmux

Ubuntu / Debian:

sudo apt install tmux

Verify installation:

tmux -V
# Expected output: tmux 3.x (any version 2.6+ works)

Note: tmux is usually pre-installed on most Linux servers. On macOS, you need to install it via Homebrew.

First Launch & Welcome Tour

When you open ClawTerminal for the first time you will see the Welcome Tour -- an 8-page interactive walkthrough covering all major features:

  1. Welcome to CatClaw — Overview of the app and what it does
  2. Powerful SSH Terminal — PTY, tabs, autocomplete, error diagnosis, Mosh, port forwarding
  3. Multi-Tool AI Chatroom — Claude, Codex, Gemini, Aider with tool-call cards, diffs, thinking blocks, memory, skills, and commands
  4. Background Jobs & Agents/submit, /batch with N parallel agents, scheduled jobs, checkpoints
  5. SFTP File Browser — Visual file management, batch operations, Snap & Code
  6. My Mac Workspace — Auto-detect via Bonjour, auto-key setup, dual terminal + AI mode, Tailscale
  7. iPad, Watch & Beyond — Split view, multi-window, watchOS dictation, shared chatrooms, relay server
  8. Ready to Go — Links to Settings and a reminder that you can revisit the tour

Tap Get Started on the last page to begin, then follow the Set Up My Mac wizard.

Revisit the tour anytime: Go to Settings → About → Welcome Tour to replay it.


2. SSH Setup — Connect to Your Mac (Local Network)

For connecting while on the same Wi-Fi network as your Mac. If you're away from home, see §3 Tailscale instead.

Enable Remote Login on your Mac

  1. Open System Settings → General → Sharing
  2. Turn on Remote Login
  3. Note your Mac's local hostname (shown as YourMac.local) or IP address

Add a Connection Profile

  1. In ClawTerminal, tap the Connections tab (bottom bar)
  2. Tap + (top right)
  3. Fill in:
    • Name: e.g. "My MacBook"
    • Hostname: YourMac.local or IP address
    • Port: 22 (default)
    • Username: your macOS login name. Run whoami in Terminal on your Mac to confirm it. The field starts empty — ClawTerminal no longer pre-fills "mobile".
    • Auth Method: Password or SSH Key (see §4)
  4. Tap Save, then tap the profile to connect

Tip: Use the My Mac wizard (My Mac tab → Set Up My Mac) for a guided setup that handles key generation, authorization, and Tailscale automatically.


3. Tailscale — Remote Access Anywhere

Tailscale creates a secure private network between your devices so you can SSH to your Mac from anywhere — coffee shop, hotel, cellular — without opening ports or configuring a VPN. It's the easiest way to connect ClawTerminal to your Mac remotely.

Best path for most users: Tailscale + Password login. Zero terminal commands needed on your Mac.


Step 1 — Install Tailscale on your Mac

  1. Download Tailscale from the Mac App Store or tailscale.com/download
  2. Open Tailscale → sign in with Google, GitHub, or Microsoft account (free)
  3. Tailscale is now running. Click the menu bar icon to see your Mac's Tailscale hostname (looks like your-mac.tail1234.ts.net) — copy this

Step 2 — Enable Remote Login on your Mac

  1. Open System Settings → General → Sharing
  2. Turn on Remote Login
  3. Make sure your macOS user account is listed under "Allow access for"

This is a one-time setup. You never need to open Terminal.

Step 3 — Install Tailscale on your iPhone/iPad

  1. Download Tailscale from the iOS App Store
  2. Sign in with the same account you used on your Mac
  3. Your Mac will appear in the Tailscale device list — confirm it shows Connected

Step 4 — Connect in ClawTerminal (Password method — recommended)

  1. Open ClawTerminal → tap the My Mac tab → Set Up My Mac
  2. On the "Find Your Mac" step, tap Tailscale
  3. Enter:
    • Hostname: your Mac's Tailscale hostname (e.g. your-mac.tail1234.ts.net)
    • Username: your macOS login name (run whoami in Terminal on your Mac — the field starts empty; do not leave it blank)
  4. Choose Password as the auth method
  5. Enter your macOS login password on the next screen
  6. Tap Test Connection — you should see a green checkmark
  7. Tap Finish

That's it. ClawTerminal will remember this profile and reconnect automatically after sleep.


Alternative: SSH Key Auth (more secure, no password to re-enter)

If you prefer passwordless login using an SSH key:

  1. Follow Steps 1–3 above to get Tailscale running

  2. In ClawTerminal → Settings → SSH KeysGenerate New Key → give it a name

  3. Tap the key → Copy Public Key

  4. On your Mac, open Terminal and run the following to authorize the key:

    mkdir -p ~/.ssh && pbpaste >> ~/.ssh/authorized_keys
    chmod 600 ~/.ssh/authorized_keys && chmod 700 ~/.ssh
  5. Back in ClawTerminal → Set Up My Mac → Tailscale → enter hostname + username → choose SSH Key → select the key you just created

  6. Tap Test ConnectionFinish


Why Tailscale + Password beats the old way

Method Works outside home No router config No terminal setup Encrypted Works on cellular
Local Wi-Fi only
Port forwarding ⚠️ Risky ⚠️
Tailscale + Password

Tailscale's free tier supports up to 3 devices — more than enough for iPhone + Mac.


Troubleshooting Tailscale

"Connection timed out" with Tailscale hostname

  • Open the Tailscale app on your iPhone and confirm your Mac shows Connected (not "Offline")
  • If your Mac is asleep, wake it first — Tailscale can't connect to a sleeping machine
  • Try using your Mac's Tailscale IP address instead of the hostname (visible in the Tailscale app)

Mac shows as offline in Tailscale

  • On your Mac, click the Tailscale menu bar icon → Connect
  • Make sure Tailscale is set to launch at login: Tailscale menu → Preferences → Launch at Login

Password authentication rejected

  • Double-check your macOS login password (not your Apple ID password)
  • Confirm Remote Login is still enabled in System Settings → Sharing

4. SSH Keys

SSH keys are more secure than passwords and allow passwordless login.

Generate a Key on your iPhone/iPad

  1. Go to Settings → SSH Keys
  2. Tap Generate New Key
  3. Give it a name (e.g. "My iPhone")
  4. The key pair is generated and stored securely in the iOS Keychain

Authorize the Key on your Mac

After generating, tap the key → Copy Public Key, then on your Mac run:

mkdir -p ~/.ssh && echo "PASTE_PUBLIC_KEY_HERE" >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
chmod 700 ~/.ssh

Or use the MyMac Setup Wizard — it handles this automatically over SSH.


5. Claude AI Chatroom

ClawTerminal integrates Claude AI in two modes:

Direct API Mode

  • Uses the Anthropic API directly from your device
  • Set your API key in Settings → Claude API Key
  • Choose your model (Opus 4.6, Sonnet 4.6, Fable 5, Haiku 4.5)
  • Supports streaming, thinking mode, file attachments

CLI Mode (My Mac)

  • Runs claude CLI over SSH via a persistent tmux session on your Mac
  • Requires Claude Code installed on your Mac:
npm install -g @anthropic-ai/claude-code
  • Supports multi-turn conversations, tool use, MCP servers, --resume continuity

Multi-CLI Tool Support

ClawTerminal supports multiple CLI tools beyond Claude Code. Create dedicated chatrooms for different tools:

Tool Description
Claude (default) Claude Code CLI — full tool use, MCP servers, --resume
Aider AI pair programming with git integration
Codex OpenAI Codex CLI
Custom Any CLI tool — configure the binary path and invocation command

To use a different tool: create a new chatroom → tap Info (i)CLI Tool → select the tool. Each tool type has its own tmux session, binary path detection, and output parsing.

See the Multi-CLI Tool Support tutorial for setup details.


Developer Setup (Recommended)

Two settings dramatically improve the chatroom experience for developers. Configure these before your first session.

Enable Tmux Chatroom Session

Settings → Claude → Tmux Chatroom Session → toggle ON.

Without tmux: each message runs claude --resume over a direct SSH exec channel. If your phone sleeps, the network blips, or iOS backgrounds the app, the channel drops and the response may be lost.

With tmux enabled:

  • Each chatroom maps to a named tmux session on your Mac (visible as claw_<room> in tmux ls).
  • Claude keeps running in that tmux session even when your phone disconnects — it finishes and writes output to a file.
  • On reconnect, the app re-attaches and streams any output you missed.
  • /submit background jobs run in their own tmux windows and are completely immune to phone sleep or disconnection.

Use CLI Mode (not API Mode)

The chatroom has two modes, shown in the Info (ⓘ) panel:

  • CLI mode (recommended when connected) — runs claude on your Mac over SSH. Uses your Mac's Claude Code plan, the project's CLAUDE.md, local tools (Bash, Read, Edit, etc.), and full filesystem access.
  • API mode — calls the Anthropic API directly from the iPhone. Useful without a Mac connection, but Claude has no access to your local tools or files.

CLI mode is the default when you are connected to your Mac. Keep it on.


Room Memory (Context Document)

Each chatroom has a Context Document — a free-text field injected into every system prompt. Use it to describe your project, preferences, or standing instructions.

Copying & Selecting Text from Responses

Copy the whole response: Long-press the Claude avatar (the claw icon beside any response) → Copy All.

Select a portion of the text: Long-press the Claude avatar → Select Text… — a full-screen sheet opens with the response text in a native iOS text view. Long-press any word to get iOS selection handles, drag to extend the selection, then tap Copy from the callout. Tap Done to close the sheet.

Why a separate sheet? iOS scroll views intercept long-press gestures before text selection can activate, so in-place word selection is unreliable inside a scrollable chat list. The sheet sidesteps this entirely with a dedicated UITextView.

Share the response: Long-press the Claude avatar → Share… to send the full text to any app via the iOS share sheet.


Background Jobs (/submit)

Submit long-running tasks to run in the background while you do something else — tasks can run for up to 2 hours on your Mac:

/submit refactor the auth module to use async/await

Add --ckpt to enable automatic checkpoint detection — ClawTerminal scans the job's output for progress indicators (tool use, test results, file operations, step markers) and creates checkpoint timeline entries automatically:

/submit --ckpt refactor the auth module to use async/await

You can also use manual checkpoints by asking Claude to output [CHECKPOINT: label] markers, or combine both approaches. See the Agent Checkpoints tutorial for details.

Progress updates appear in the Jobs panel. A notification fires when the task completes. The result is automatically injected into your next chatroom message so Claude has context without you having to paste anything.


Agent Orchestration (/orchestrate)

For complex tasks that benefit from multiple perspectives, /orchestrate spawns three parallel AI agents that work simultaneously, then synthesizes their results into a single actionable summary.

/orchestrate redesign the authentication system to use OAuth2

How it works

┌─────────────────────────────────────────────────┐
│  /orchestrate redesign auth to use OAuth2       │
└──────────────────┬──────────────────────────────┘
                   │
        ┌──────────┼──────────┐
        ▼          ▼          ▼
  ┌──────────┐ ┌──────────┐ ┌──────────┐
  │Researcher│ │Implementer│ │ Reviewer │
  │  (blue)  │ │  (green)  │ │ (orange) │
  └─────┬────┘ └─────┬────┘ └─────┬────┘
        │             │            │
        │   All 3 run in parallel  │
        │   as background jobs     │
        └──────────┬──┬────────────┘
                   │  │
                   ▼  ▼
            ┌──────────────┐
            │ Synthesizer  │
            │  (purple)    │
            │              │
            │ Reads all 3  │
            │ results and  │
            │ posts summary│
            └──────────────┘
  1. Researcher — Analyzes the codebase, reads relevant files, identifies patterns and constraints
  2. Implementer — Writes the actual code changes, creates new files, modifies existing ones
  3. Reviewer — Reviews the proposed changes for bugs, security issues, and best practices

After all three complete, a Synthesizer agent reads their combined output and posts a unified summary to your chatroom.

Viewing orchestration jobs

Open the Jobs panel to see orchestration groups. Jobs from the same /orchestrate command are grouped together under a collapsible header with:

  • A purple Orchestration badge
  • The original goal text
  • Role chips color-coded by agent type:
Role Color Purpose
Researcher Blue Codebase analysis and context gathering
Implementer Green Code writing and file modifications
Reviewer Orange Code review and quality checks
Synthesizer Purple Combines all results into actionable summary

When to use /orchestrate vs /submit

/submit /orchestrate
Agents 1 3 + synthesizer
Best for Single focused task Complex multi-faceted work
Speed Faster (one agent) Slower (waits for all 3)
Examples "fix the login bug" "redesign the auth system"
"add unit tests for UserService" "audit security across the app"
"update the README" "plan and implement dark mode"

Tip: Both /submit and /orchestrate respect your current /model selection. If you've switched to Opus via /model claude-opus-4-6, all spawned agents use Opus.


Batch Multi-Agent Orchestration (/batch)

/batch is the next evolution of agent orchestration. A Commander agent decomposes your goal into subtasks, N parallel Workers execute them simultaneously, and a Synthesizer merges their results into a single actionable summary.

/batch --agents 4 implement the new payment flow

Flags

Flag Description Default
--agents N Number of parallel worker agents (2–10) 3
--multi Cross-tool assignment — Commander assigns Claude, Codex, Gemini, or Aider to each subtask based on its strengths off
--ckpt Enable automatic checkpoint detection on all worker jobs off
--skills alias1,... Attach named skills to all worker agents none

--multi: Cross-Tool Assignment

When --multi is set, ClawTerminal SSHs to your Mac and detects which CLI tools are installed. The Commander then assigns each subtask to the best-suited tool:

Tool Strengths
Claude Code reasoning, architecture, documentation
Codex Focused code generation and completions
Gemini Long-context analysis, large file reads
Aider Git-integrated refactoring, multi-file edits
/batch --agents 4 --multi migrate the database schema from Postgres to SQLite

Viewing batch jobs

Open the Jobs panel to see the batch group. The Commander, all Workers (color-coded blue), and the Synthesizer (purple) appear under a collapsible group header showing the original goal and overall status. Tap any job to view its assigned subtask, output, tool assignment, and checkpoint timeline.

When to use /batch vs /orchestrate vs /submit

/submit /orchestrate /batch
Agents 1 3 (fixed roles) 2–10 (dynamic)
Task decomposition You write the task Fixed: Researcher / Implementer / Reviewer Commander decomposes dynamically
Multi-tool No No Yes (--multi)
Checkpoints --ckpt Not supported --ckpt
Best for Single focused task Multi-perspective review Complex goals needing flexible decomposition

See the Batch Multi-Agent Orchestration tutorial for a full walkthrough.


Agent Teams (/team)

/team is the most structured form of multi-agent work in ClawTerminal. A Commander agent decomposes your goal into a series of waves — sequential phases where multiple agents run in parallel. Discoveries from each wave are automatically extracted and injected into the next wave's prompts, so every stage builds on what was learned before.

/team Write a Python calculator with add, subtract, multiply, divide, input validation, and a REPL loop

How waves work

┌──────────────────────────────────────────────────┐
│  /team Write a Python calculator…                │
└────────────────────┬─────────────────────────────┘
                     │ Commander decomposes goal
                     │
          ┌──────────▼──────────┐
          │    Wave 1: Research  │  (parallel agents)
          │  Agent A  │ Agent B  │
          └──────────┬──────────┘
                     │ Discoveries extracted
                     ▼
          ┌──────────────────────┐
          │  Wave 2: Implement   │  (parallel agents)
          │  Agent C  │ Agent D  │  ← receives Wave 1 discoveries
          └──────────┬──────────┘
                     │ Discoveries extracted
                     ▼
          ┌──────────────────────┐
          │   Wave 3: Review     │  (parallel agents)
          │  Agent E  │ Agent F  │  ← receives Wave 1 + 2 discoveries
          └──────────┬──────────┘
                     │
                     ▼
               Final summary
               posted to chatroom
  1. Wave 1 — Research: Agents explore the codebase, gather context, and identify constraints. Their discoveries (key findings, file paths, design decisions) are extracted automatically.
  2. Wave 2 — Implementation: Agents receive the Research wave's discoveries and implement the solution. Their output (files created, patterns used, edge cases found) is extracted for the next wave.
  3. Wave 3 — Review: Agents receive all prior discoveries and review the implementation for correctness, security, and quality.

Flags

Flag Description Default
--multi Cross-tool assignment — Commander assigns Claude, Codex, Gemini, or Aider to agents based on their strengths within each wave off

Visual Command Center

While a team is running, the Team toolbar button opens the Visual Command Center — a full-screen view showing:

  • Animated flow graph — pulsing nodes for each agent and wave, animated data-flow lines showing discoveries moving between waves
  • Live discovery feed — real-time stream of discoveries extracted from completed agents
  • Per-agent status cards — progress ring, current status (queued / running / completed / failed), assigned tool, and a preview of recent output

The Team toolbar button is always visible in the chatroom toolbar. When no team is running, tapping it shows an empty state with usage instructions.

When to use /team vs /batch vs /orchestrate

/orchestrate /batch /team
Structure Fixed 3 roles Dynamic decomposition Wave-based sequential phases
Parallelism All 3 at once All workers at once Parallel within each wave
Knowledge sharing None None Discoveries flow between waves
Multi-tool No --multi --multi
Visual UI Jobs panel only Jobs panel only Animated command center
Best for Quick multi-perspective review Flexible parallel execution Complex tasks where each phase informs the next

See the Agent Teams tutorial for a full walkthrough with examples.


Multi-Model Comparison (/race)

/race runs the same prompt through 2–4 AI models simultaneously so you can compare their answers side-by-side. It is the fastest way to see how Claude, Codex, and Gemini each approach a problem before choosing which direction to take.

/race Write a fizzbuzz function
/race --models claude,codex Explain the observer pattern
/race --models claude,codex,gemini What are the security implications of this JWT implementation?

How /race works

  1. Your prompt is dispatched to each selected model as a background job.
  2. Results stream back in parallel — you see responses as they arrive.
  3. Once all models respond, an AI-generated comparison summary appears below, highlighting key differences in approach, correctness, and style.

/race layout by device

Device Layout
iPad Side-by-side columns — all models visible at once
iPhone Swipeable cards — swipe left/right to compare

/race flags

Flag Description Default
--models m1,m2,... Comma-separated list of models to race (2–4) claude,codex
--copies N Race the same model N times, each with a randomly selected thinking lens
--lenses lens1,lens2,... Race the same model with specific thinking lenses (see table below)

--models and --copies/--lenses are mutually exclusive — pick one approach per race.

Same-Model Thinking Lenses (--copies / --lenses)

Race the same model against itself with different system-level perspectives:

/race --copies 3 How should we structure the error handling in this service?
/race --lenses adversarial,pragmatic,optimizer Design a rate limiting strategy
Lens Focus
adversarial What could break? Edge cases, attack vectors, failure modes
pragmatic Simplest path to ship. Maintainability over perfection
principled Best practices, design patterns, SOLID principles
user-first End user experience, performance, accessibility
skeptic Hidden assumptions, unstated requirements, scope creep
optimizer Performance, memory, cost efficiency, redundancy

Lenses are useful when you already know which model to use but want to stress-test an idea from multiple angles before committing.

When to use /race

  • Evaluating a new algorithm or data structure approach
  • Comparing documentation quality across models
  • Getting a second opinion on a proposed solution before committing
  • Stress-testing a design with adversarial or skeptic lenses before a PR
  • Quick benchmarking of response style for a specific domain

/race requirements

  • The models you select must be installed and authenticated on your Mac (e.g. codex requires the OpenAI Codex CLI; gemini requires the Gemini CLI)
  • --copies / --lenses only require the currently active model — no additional installs needed
  • See Multi-CLI Tool Support for tool setup

GitHub PR Workflow (/pr)

/pr gives you a full GitHub pull request workflow from your phone. Create PRs, get AI-powered code reviews, check CI status — all over SSH without switching to a desktop browser.

Requirement: The gh CLI must be installed and authenticated on your Mac:

# Install
brew install gh

# Authenticate (one-time, on your Mac)
gh auth login

Create a PR

/pr
/pr create

ClawTerminal reads git diff from your current project directory, sends it to Claude, and Claude generates a PR title and body following your project's conventions. The PR is then created via gh pr create. You'll see the PR URL in the chatroom when it's done.

AI Code Review

/pr review 42

ClawTerminal fetches the PR diff via gh and sends it to Claude for review. Results appear as color-coded review cards:

Color Severity Example
Red Bug "This function doesn't handle the null case on line 47"
Yellow Suggestion "Consider extracting this logic into a helper function"
Blue Question "Why is this timeout set to 5000ms instead of the default?"
Green Praise "Nice use of async/await throughout this module"

Each card has a thumbs-up / thumbs-down button. Your ratings train CatClaw's review preferences for this chatroom — see AI Code Review Learning below.

List & Check CI

/pr list              # List open PRs in the current repo
/pr checks 42         # Show CI status and check results for PR #42

Set Review Focus

/pr focus security,tests,performance

Future reviews in this chatroom emphasize the listed areas. Run /pr focus with no arguments to reset to default (all areas equal weight).


AI Code Review Learning

Every /pr review result has thumbs-up / thumbs-down buttons on each review item. Your ratings teach CatClaw what matters to your team:

  • Thumbs up — reinforce this type of feedback; look for similar issues in future reviews
  • Thumbs down — deprioritize this category; it's either too noisy or not relevant for your project

Preferences are stored per-chatroom — a backend services room and a frontend room can have different review styles. Switch focus areas with /pr focus to tune emphasis without clearing your learned ratings.

Example workflow:

# First review — Claude looks at everything
/pr review 15

# Thumbs down on style nits, thumbs up on security and null-safety findings

# Second review on a later PR — Claude leads with security and null-safety,
# buries style suggestions at the bottom
/pr review 22

Session Handoff (/handoff)

/handoff lets you seamlessly continue a coding session between your phone and your Mac — without losing context, output history, or the current directory.

Hand off from phone to Mac

/handoff mac

ClawTerminal exports the current phone session's context (project directory, active Claude session ID, last N messages) and opens a new tmux window on your Mac pre-populated with that context. Sit down at your Mac, attach the tmux session, and keep going in a full terminal — the Claude session resumes with --resume, so conversation history is intact.

Pick up a Mac session on your phone

/handoff

ClawTerminal SSHs to your Mac and lists all active tmux sessions running Claude, along with:

  • Session name and project directory
  • Time running
  • Last line of output (preview)

Tap any session to attach it to the current chatroom. The phone session inherits the Claude session ID so conversation history continues seamlessly.

Use case: commute-to-desk handoff

Morning commute (phone):
  /submit Refactor the auth module — convert callbacks to async/await
  → (job runs in background while you commute)

Arrive at desk (Mac):
  /handoff mac
  → tmux window opens on your Mac, Claude session already attached
  → continue with full keyboard, multiple panes, editor open

Live Web Preview (/preview)

/preview opens a live, in-app browser preview of the dev server running on your Mac — connected through an SSH port-forwarding tunnel. It is the first mobile tool that gives you a real live web preview while coding.

/preview              # Auto-detect port and open preview
/preview --port 3000  # Specify port explicitly
/preview --start      # Auto-start dev server then open preview
/preview stop         # Close the SSH tunnel

Auto-detection

ClawTerminal scans the project directory for port configuration in this order:

  1. package.jsonscripts.dev, scripts.start (extracts port from --port flag or PORT= prefix)
  2. .env / .env.localPORT= or VITE_PORT= variables
  3. vite.config.ts / vite.config.jsserver.port value
  4. Falls back to 3000 if none found

--start flag

When --start is used, ClawTerminal runs your dev server start command (detected from package.json scripts.dev) in a background tmux window before opening the tunnel. The preview waits for the server to be ready (HTTP 200) before opening.

/preview --start      # Equivalent to: npm run dev (in tmux) + /preview

Under the hood

/preview creates a local port-forwarding tunnel from your iPhone to the Mac:

iPhone browser → SSH tunnel → Mac localhost:PORT → dev server

The same tunnel infrastructure used by the Port Forwarding tab (§10), but wired automatically from a single slash command.

Close the preview

/preview stop

Closes the SSH tunnel. The dev server continues running on your Mac unless you stop it separately.


6. Skills & Marketplace

Skills are Markdown snippets injected into Claude's system prompt to give it specialized knowledge, project context, or standing instructions. ClawTerminal ships with a built-in marketplace of 30 curated packages.

Browse & Install from the Marketplace

  1. In a chatroom, tap the Skills button in the toolbar → Marketplace tab

  2. Browse by category:

    Category What's inside
    Community Docker, Git, Python, Node.js, Homebrew, jq, curl, SSH Power User, and more
    Anthropic Workflows 14 Superpowers skills (brainstorming, TDD, systematic debugging, plan execution, parallel agents, code review, git worktrees…) — auto-enabled for new chatrooms
    LSP TypeScript, Python, and other language-server integrations
  3. Tap Install on any package — it appears in the My Skills tab

  4. Toggle skills on or off per chatroom from My Skills

Write a Custom Skill

  1. Skills button → My Skills → tap +

  2. Write Markdown — Claude reads this as system prompt context. Example:

    ## My Project
    You are working on a FastAPI backend in ~/Projects/myapp.
    Always use async/await. Tests live in tests/. Use pytest.
    Run `make dev` to start the dev server.
  3. Tap Save — the skill is now available across all your chatrooms

Import a Skill

  • From Files app: Skills → My Skills → Import → pick any .md file

  • From GitHub URL: Skills → My Skills → Import from URL → paste a raw GitHub URL to a .md file

    https://raw.githubusercontent.com/example/skills/main/docker.md
    

Save Tokens with --skills (Per-Message Injection)

Globally enabled skills are injected into every message, which consumes tokens even when irrelevant. For skills you only need occasionally, use per-message injection instead:

  1. Disable the skill globally (toggle off in My Skills)

  2. Set an alias — tap the skill → give it a short alias like tdd, debug, or docker

  3. Inject on demand — append --skills alias to any message:

    Fix the auth bug --skills tdd,debug
    

    Or with /submit and /batch:

    /submit Refactor the API layer --skills tdd
    /batch --agents 3 --skills security Build payment flow
    

This way the skill content is only sent when you need it — saving tokens on every other message. This is especially important for large skills (like the Anthropic Superpowers pack) that can add thousands of tokens per turn.

Tip: Keep small, always-relevant skills enabled globally (e.g., project context). Keep large, task-specific skills as aliases for on-demand use.

Export & Share Skills

Tap any skill → Export to save as JSON. Share with teammates and re-import with Import.


7. Smart Commands

ClawTerminal lets you define your own /command shortcuts that go beyond simple text templates. Smart Commands support:

  • Named parameters with optional defaults — e.g. /deploy production feature-x
  • Run in Background — auto-submit as a /submit background job
  • Tool Override — force a specific CLI tool (Claude/Codex/Gemini/Aider) regardless of chatroom default
  • Skill Aliases — auto-attach skills to the command's system prompt
  • Agent Count — auto-run as /batch --agents N with Commander + Workers + Synthesizer

Creating a Smart Command

  1. Type / in any chatroom to open the slash command palette
  2. Tap Manage Commands (or go to the Commands section in the toolbar)
  3. Tap + to create a new command
  4. Fill in the name, template with {paramName} placeholders, parameters, and optional smart fields
  5. Tap Save

Example: One-Tap Full Audit

Field Value
Name fullaudit
Template Perform a comprehensive audit of {scope}: security, performance, code quality, and test coverage.
Parameters scope (default: the entire codebase)
Agent Count 4
Run in Background Yes

Now /fullaudit spawns 4 parallel agents that audit your codebase, and /fullaudit src/payments/ focuses on a subdirectory.

See the Smart Commands tutorial for a full reference and more examples.


8. Slash Commands & @ References

Type / at the start of any message in a chatroom to see available commands. These work in both API mode and CLI mode unless noted.

Slash Commands

Command Description
/submit <task> [--ckpt] [--skills alias1,...] Send a long-running task to the background job queue. Add --ckpt for automatic checkpoint detection. A notification fires when done.
/resume Resume the most recent Claude Code CLI session for this chatroom (CLI mode only)
/plan <task> Switch to plan mode — Claude reads files and proposes a plan but cannot write or execute (CLI mode only)
/compact Ask Claude to summarise the conversation so far and compact the context window
/init Ask Claude to create a CLAUDE.md file in the current project directory with project-specific instructions
/model <name> Switch the active model mid-conversation, e.g. /model claude-opus-4-6
/clear Clear the current conversation and start fresh
/orchestrate <goal> Spawn 3 parallel AI agents (Researcher, Implementer, Reviewer) plus a Synthesis agent that combines their results. See Agent Orchestration below.
/batch <goal> [--agents N] [--multi] [--ckpt] [--skills alias,...] [--vcs] [--routing preset] Spawn a Commander + N Worker agents + Synthesizer. Commander decomposes the goal dynamically. --multi assigns different tools (Claude/Codex/Gemini/Aider) to different subtasks. --vcs gives each agent its own git branch (worktree mode). --routing quality/balanced/budget auto-assigns cost-appropriate models per role. See Batch Multi-Agent Orchestration.
/team <goal> [--multi] [--routing preset] Wave-based orchestration — Commander decomposes into sequential waves (Research → Implement → Review), agents run in parallel within each wave, discoveries propagate between waves. --routing quality/balanced/budget auto-assigns models per wave role. Visual command center with animated flow graph and live discovery feed. See Agent Teams.
/cost Show estimated token usage and cost for the current session
/diff Show the last code changes Claude made
/context Display current session context (project dir, session ID, model)
/status Show connection state and chatroom info
/doctor Run diagnostics on your current setup
/export Export the current conversation
/copy Copy Claude's last response to the clipboard
/rename <name> Rename the current chatroom
/tasks List all background jobs and their status
/config Display current settings
/race <prompt> [--models m1,m2,...] Race 2–4 AI models on the same prompt simultaneously. Results appear side-by-side (iPad) or as swipeable cards (iPhone), with an AI summary comparing strengths and trade-offs. Default models: claude + codex. Specify others with --models claude,codex,gemini.
/pr [create] Auto-generate a GitHub PR title and body from git diff, then create the PR via the gh CLI installed on your Mac. Requires gh authenticated on your Mac.
/pr review <number> AI-powered code review for the given PR number. Review items are color-coded by severity (red bugs, yellow suggestions, blue questions, green praise). Thumbs-up/down on each item teaches CatClaw your team's preferences.
/pr list List open pull requests in the current repo.
/pr checks <number> Show CI status and check details for the given PR number.
/pr focus <areas> Set review focus areas for this chatroom, e.g. /pr focus security,tests,performance. Future reviews emphasize the selected areas.
/handoff mac Hand your current phone chatroom session to a Mac tmux window. The terminal session is recreated on the Mac so you can continue in a full desktop terminal.
/handoff Discover active Claude sessions on your Mac and pick one up on your phone. Shows a list of running tmux sessions with their last output preview — tap one to attach.
/preview [--port N] [--start] [stop] Open a live web preview of your dev server via SSH port forwarding. Auto-detects the port from package.json, .env, or vite.config. Add --port 3000 for a specific port. Add --start to auto-launch the dev server before opening the preview. Run /preview stop to close the tunnel.
/git Open a visual git branch graph — commit timeline with branch tags. Tap a branch name to checkout.
/health Run a codebase health scan — lines of code, file count, TODO/FIXME count, uncommitted changes, dependencies, last commit age, branch count, and largest file. Results shown in a one-tap dashboard.
/monitor Open a live server monitor — real-time CPU usage, memory, disk space, uptime, and load average. Sparkline charts show trends. Tap refresh for latest readings.
/search <query> AI-powered semantic search across your codebase. Greps for keywords, then Claude ranks and explains the top 5 most relevant matches.
/voice Start voice input — dictate your message and tap send when done. Works in any chatroom or background job. On iOS 26 devices, transcription uses Apple's SpeechAnalyzer pipeline for higher accuracy and lower start-of-speech latency; older iOS versions keep the previous SFSpeechRecognizer path with no setup change.
/remember <fact> Save a fact to cross-session memory — injected into every future chatroom session
/forget <keyword> Remove memories matching the keyword
/memories Open the Memory Library to browse, search, and manage saved memories
/conflicts Scan for git merge conflicts, show AI resolution suggestions per file, one-tap Apply to write the resolved content.
/notify <condition> Set a natural language monitoring rule (e.g. /notify when tests finish). CatClaw polls via SSH every 30s and sends a push notification when the condition is met.
/notify list Show all active notification rules.
/notify cancel Remove all active notification rules.
/plan Toggle plan mode — your next message generates a structured plan (files, changes, risks, complexity) instead of making changes. Tap Execute in the plan card to proceed.
/pin <filepath> Keep a file always included in context for every message in this chatroom.
/pin List currently pinned files.
/unpin <filepath> Remove a file from the always-include pin list.
/dashboard Open the analytics dashboard — aggregate stats across all chatrooms and jobs: success rates, token spend, daily activity sparkline (last 14 days), most-used commands, most-active chatrooms. Tap any card to drill into a filtered job list.
/workflow [name] Run a named multi-step pipeline defined in workflows.json. Steps with no dependencies run in parallel; dependent steps wait. Rendered as a live DAG.
/workflow list List all saved workflow pipelines.
/workflow save [name] Save the last N slash commands as a new pipeline.
/recap Show a session summary — message count, background job stats, recent topics, and cumulative session cost. Great for orienting yourself after stepping away.
/context Show a visual context window usage bar — percentage used, token estimate, and actionable suggestions (compact, unpin files, start a new room).
/effort low Switch to concise mode — Claude gives direct answers with minimal elaboration. Best for quick lookups and factual questions.
/effort medium Switch to balanced mode — the default. Claude balances thoroughness with brevity.
/effort high Switch to thorough mode — Claude thinks deeply, considers edge cases, and explains its reasoning. Best for architectural decisions and complex debugging.
/btw <question> Ask a quick side question without derailing the conversation. Claude uses full context but keeps the answer to 1–2 sentences.
/retry Remove the last exchange (your message + Claude's response) and re-send your message to get a different approach.
/personality <name> Switch Claude's agent persona for this chatroom. Options: senior (opinionated, pushes back), mentor (patient, uses analogies), reviewer (meticulous, correctness-focused), architect (systems thinker, scalability), hacker (ship fast, iterate), default. Run /personality with no argument to list all personas.
/dream View your learned preference profile — skills, communication style, current focus areas, key project files, and workflow patterns derived from your conversation history.
/dream show Same as /dream — display the full profile card.
/dream now Trigger a dream cycle immediately — runs a Haiku-powered analysis of your recent messages and updates the profile on the spot. Useful after a productive session.
/dream reset Clear all learned preferences for this chatroom and start fresh.
/soul [identity] Define a persistent agent identity for this chatroom — injected at the start of every preamble and preserved across session resets. Run /soul with no argument to view the current identity. Clear with /soul reset.
/think [question] Request an explicit reasoning chain — Claude walks through its thinking step by step before answering. Thinking blocks are shown as collapsible indigo cards in the message bubble.
/trace Show the full thinking trace from the last agent response — all thinking blocks rendered in sequence, collapsible, in the order they were generated.
/help List all available slash commands

@ References

Type @web https://url anywhere in a message to fetch a URL and inject its content:

  1. CatClaw fetches the URL via SSH (curl) — no device traffic, uses your Mac's network
  2. HTML is stripped and the content is truncated to 4000 chars
  3. The result is injected as a <web_content url="..."> block before your message

Great for documentation pages, API references, GitHub raw files, or any plain-text URL. Combine with file references: Implement this spec: @web https://api.example.com/docs and also check @src/client.ts.

@ File References

Type @ anywhere in your message to open the remote file picker — a live SSH directory browser on your Mac:

  1. Type @ → a picker appears showing your Mac's file tree
  2. Navigate to the file you want to attach
  3. Tap it — the file's contents are injected as a <file_attachment> block in your message

Claude can then read, discuss, or modify that file. Works great for attaching config files, source files, or logs without copy-pasting.


9. Terminal Shortcuts

The shortcut bar below the terminal has four categories. Tap the pill labels to switch.

Dismiss keyboard: Tap the chevron-down button at the right edge of the extended keyboard bar to dismiss the keyboard without losing focus. This is available in both the terminal and the chatroom input.

Shell

Button Sends Effect
^C 0x03 SIGINT — interrupt running process
^D 0x04 EOF — logout / end stdin
^L 0x0C Clear screen
^Z 0x1A Suspend process to background
^R 0x12 Reverse history search
^A 0x01 Jump to line start
^E 0x05 Jump to line end
^W 0x17 Delete word backwards
!! !!\n Repeat last command
sudo!! sudo !!\n Run last command as root
exit exit\n Close shell

Tmux

All tmux shortcuts send Ctrl-B prefix followed by the key:

Button Key Action
new c New window
split | % Vertical split
split — " Horizontal split
detach d Detach session
prev p Previous window
next n Next window
zoom z Toggle pane zoom
kill x Kill pane

Git

Button Sends
status git status\n
diff git diff\n
log git log --oneline -10\n
push git push\n
pull git pull\n
add . git add .\n
commit git commit -m "" (cursor inside quotes)
stash git stash\n
stash pop git stash pop\n

Vim

Button Sends Action
:wq :wq\n Save and quit
:q! :q!\n Quit without saving
:w :w\n Save
insert i Enter insert mode
normal ESC Return to normal mode
undo u Undo
/search / Start search
dd dd Delete line
yy yy Yank (copy) line
ZZ ZZ Save and quit

10. Port Forwarding & Tunnels

Port forwarding lets you securely access services on your Mac or remote network through the SSH tunnel.

Add a Tunnel

  1. Connect to an SSH profile
  2. In My Mac tab → Tunnels sub-tab
  3. Tap + → choose tunnel type:
Type Description
Local Forward localhost:<localPort> on your device to host:port on the server
Remote Forward a port on the remote server back to your device
Dynamic SOCKS5 proxy on your device routing all traffic through the SSH server

Example: Access a local dev server

  • Type: Local
  • Local Port: 3000
  • Remote Host: localhost
  • Remote Port: 3000

Then open http://localhost:3000 in Safari on your iPhone to hit the dev server running on your Mac.


11. SFTP File Browser

Browse, upload, and download files over SFTP without leaving the app:

  1. Connect to an SSH profile
  2. In My Mac tab → Files sub-tab
  3. Navigate directories, tap files to preview or download
  4. Swipe left on a file to rename or delete

Long-Press Context Menu

Long-press any file or folder in the browser to get quick actions:

Action Available on What it does
Copy Path Files & Folders Copies the full absolute path (e.g. /Users/you/Projects/myapp) to the clipboard
Copy Name Files & Folders Copies just the file or folder name
Open Folder Folders only Navigates into the folder

Long-press any breadcrumb chip in the path bar to copy the current directory path.

Tip: Use Copy Path on a project folder, then paste it into a chatroom's Project Directory field (Info tab → Project directory) to point Claude at the right working directory. The project path is remembered for the entire conversation session — even after reconnects.

Create a Folder or File

Tap the green + button in the breadcrumb bar to create new items in the current directory:

Option What happens
New Folder Prompts for a folder name, creates it, and navigates into it
New File Prompts for a file name, creates an empty file, and auto-opens the inline text editor

This lets you scaffold a new project structure or create config files entirely from your iPhone without opening a terminal session.

Upload from Files App

Tap the Upload button (top right) to pick files from the iOS Files app and transfer them to the remote server. Supported types include Markdown, source code, PDFs, images, and any file type the iOS Files app can browse.


12. MCP Servers

ClawTerminal supports Model Context Protocol (MCP) servers, giving Claude access to external tools like file systems, databases, and APIs.

Add an MCP Server

  1. Go to Settings → MCP Servers
  2. Tap +
  3. Configure:
    • Name: display name
    • Transport: SSH (runs server on your Mac) or HTTP/SSE
    • Command: command to start the server on your Mac
# Example: filesystem server
npx -y @modelcontextprotocol/server-filesystem /Users/you/Projects

Enabled MCP servers are listed as available tools in every Claude chatroom.


13. Tips & Tricks

These are the shortcuts and workflows that power users swear by. Bookmark this section.

  • Markdown in the input field: Type markdown directly -- **bold**, *italic*, `inline code`, triple backticks for code blocks. Claude renders it all natively.
  • Multi-tab terminal: Tap + in the Terminal tab to run a server in one tab and edit code in another
  • Theme picker: Go to Settings --> Terminal Theme -- Catppuccin, Solarized Dark, One Dark, Monokai, Gruvbox Dark, or design your own
  • Font size: Pinch-to-zoom in the terminal -- adjusts instantly
  • Quick reconnect: Recently used profiles appear on the My Mac welcome screen for one-tap reconnect
  • Auto-reconnect after sleep: Phone slept? WiFi dropped? CatClaw silently restores the SSH connection when you come back -- no manual intervention needed
  • SFTP path to chatroom: Long-press any folder in Files --> Copy Path, paste into chatroom Info --> Project Directory. Done.
  • Session continuity: Once Claude runs its first command, the project directory locks for that session. Sleep, disconnect, reconnect -- it just works.
  • Context Document: Write standing instructions in the chatroom's Context Document. Claude reads them every turn.
  • iCloud Sync: Sync connection profiles across all your Apple devices automatically.
  • Home Screen Widget: Add the Quick Connect widget for one-tap SSH from your home screen.
  • Mosh for bad connections: On flaky WiFi or high latency? Switch to Mosh transport -- UDP-based, survives IP changes, instant local echo.
  • watchOS: Dictate jobs from your wrist, monitor progress, get completion alerts.
  • Pin important messages: Long-press --> Pin. Use the pin filter to show only what matters.
  • SSH config import: Import all your ~/.ssh/config profiles at once -- no re-typing hostnames and keys.
  • Commute-to-desk handoff: /submit a refactor before you leave. Monitor on the train. /handoff mac at your desk. Full context preserved.
  • Preview before push: /preview --start --> check the UI on your phone --> /pr create. Ship with confidence.
  • Annotate UI bugs visually: In the preview, tap camera, circle the broken element, send to Claude. Get a CSS fix back.
  • Orange flag hints: Flags like --agents 4 turn orange in the input bar as you type -- CatClaw confirms it parsed your intent.
  • /health before and after: Run /health before a refactor for a baseline. Run it again after. Compare LOC, TODO count, and file count.
  • /monitor during deploys: Watch CPU and memory react in real time. The sparkline chart shows if load normalizes.
  • /search in plain English: Ask "where is auth handled?" instead of writing regex. Claude ranks and explains the matches.
  • --vcs for safe experiments: Give each agent its own git branch. Bad results? Delete the branches. Good results? Auto-merged.
  • --routing budget for research: Save money on exploratory tasks. Use --routing quality when accuracy matters.
  • Agent reasoning as debugging: If an agent misunderstood you, the Reasoning card shows exactly where. Write a better prompt next time.
  • /notify to stop polling: /notify when tests finish --> put your phone down. Push notification when done.
  • /plan costs nothing: Review the plan. Adjust. Plan again. No code is written until you tap Execute.
  • @web for API docs: Pull a reference page into your prompt. Claude sees the spec alongside your code.
  • /pin for key files: /pin src/config.ts and it is in every message's context automatically. Unpin when you switch areas.
  • Weekly /dashboard: See which commands you use most, token spend trends, and job success rates. Drill into failures to improve your prompts.
  • /workflow for deployment: Define lint --> test --> build --> deploy as a JSON DAG. Run it with one command, watch the live graph.
  • Auto-recovery: Job failed from a network blip? CatClaw retries automatically. Check the retry lineage card to see what changed.
  • /changelog in seconds: Run /changelog v1.4.0..HEAD and paste structured release notes straight into GitHub.
  • /gentest from English: "the login flow with invalid credentials" --> tests in your framework, ready to review.
  • /security before shipping: One command, four checks: deps, secrets, .env leaks, .gitignore gaps. Prioritized results.
  • /tribal before onboarding: Document the gotchas, decisions, and naming conventions that live in your team's heads -- not your README.
  • /spec before agents: Generate formal requirements first. Then execute with agents who know exactly what to build.
  • /graph for architecture: "What depends on PaymentService?" -- answered with file paths and line numbers. No grep needed.
  • /hooks for continuous feedback: Auto-test on every save. Auto-lint on every change. Push notification on failure. Fully hands-free.
  • Tap, don't type: Smart suggestion chips after every response. "How do I fix this?" is one tap away.
  • Long-press Send: Hold for 0.5s to submit as a background job. The chat stays clean; results arrive in the Jobs tab.
  • Swipe down to compact: Context getting full? Swipe down on the input bar. Conversation summarized, tokens freed.
  • Split-screen terminal: Check git status without leaving the chat. Drag to resize. Tap to dismiss.
  • Branch to compare: Fork at any message, try two approaches, switch between them. "Clear branches" when you have a winner.
  • Implicit memory: Say "no, we use camelCase" once. CatClaw remembers it for every future session. No /remember needed.
  • JSON tables: Ask for results as a JSON array and they render as a scrollable table. Great for comparing options.
  • /recap on return: Stepped away for a few hours? /recap shows message count, recent topics, and session cost — orient yourself before diving back in.
  • /context before long prompts: Check how full your context is before pasting a big file. Over 80%? Run /compact first.
  • /effort high for architecture: Starting a design discussion? Set /effort high so Claude thinks through edge cases and trade-offs, not just the happy path.
  • /effort low for lookups: "What's the default port for Redis?" doesn't need a treatise. /effort low keeps answers snappy.
  • /btw without derailing: Check a quick fact mid-conversation without losing your train of thought. "What's the Swift equivalent of Python's map?" in one line.
  • /retry beats re-typing: If Claude took the wrong angle, /retry is faster than editing and resending. No copy-paste needed.
  • Persona stack for deep work: /effort high + /personality architect before a design session. Switch to /personality reviewer when you want a critical eye.
  • /personality hacker for prototypes: Get the simplest code that works. Switch to /personality reviewer to audit it before shipping.
  • Enable Dream Mode early: Turn on Settings → AI Intelligence → Dream Mode on day one. The profile compounds — the longer you use CatClaw, the more personalized every session becomes.
  • /dream now after big sessions: After a long coding session, run /dream now to capture fresh patterns before you close the app. The overnight cycle runs at ~2 AM, but you can force it anytime.
  • /dream show to check what Claude knows: Before starting a new conversation branch or handing off to an agent, check your profile. It shows exactly what context is being injected automatically.
  • /dream reset when context drifts: If you switch projects or the profile no longer reflects what you're working on, reset it and let Dream Mode re-learn from scratch.
  • Dream + /personality stack: Dream Mode sets the baseline (your actual skill level, style, and focus). /personality layers a role on top. Together, they make every session feel like a teammate who knows you and knows their job.

Keep Your Mac Awake for SSH

Your Mac must stay awake for SSH connections to work. In Mac System Settings, search for "Prevent automatic sleeping when the display is off" and toggle it ON. This keeps your Mac accessible even with the lid closed, as long as it's plugged into power.


14. Troubleshooting

"Connection timed out" or connection keeps spinning

  • Confirm Remote Login is enabled on your Mac (System Settings → General → Sharing)
  • Run ping YourMac.local on another device to confirm the hostname resolves
  • Make sure your iPhone and Mac are on the same Wi-Fi network
  • If outside your home network, set up Tailscale (§3)
  • Check your Mac's firewall isn't blocking port 22

"Connection failed" during My Mac setup wizard

This can happen if your Mac is only reachable via an IPv6 link-local address on your current network. ClawTerminal automatically falls back to the .local mDNS hostname — if you see this error, tap Try Again. If it persists, try entering your Mac's hostname manually (e.g. Liquns-MacBook-Pro.local) or use its IPv4 address from System Settings → Wi-Fi → Details.

SSH key authentication fails

  • Confirm the public key was appended to ~/.ssh/authorized_keys on the Mac

  • Check permissions:

    chmod 600 ~/.ssh/authorized_keys
    chmod 700 ~/.ssh
  • Restart sshd on your Mac:

    sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
    sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist

Claude chatroom shows no response (CLI mode)

  • Ensure tmux is installed on your Mac: which tmux (if missing, install with brew install tmux)
  • Ensure claude CLI is installed on your Mac: which claude
  • The CLI chatroom requires an active SSH connection to your Mac
  • Check running sessions: tmux ls on your Mac
  • If you see "⚠️ Rate limit reached" — Claude's API has temporarily throttled your account. Wait 30–60 seconds and send again. ClawTerminal detects the timeout automatically and stops waiting instead of hanging
  • If the chatroom was open while your phone slept, the connection is restored automatically on wake — you don't need to disconnect and reconnect manually

"Claude is not logged in" or auth error in chatroom

ClawTerminal detects when the Claude CLI reports that you are not authenticated and shows a step-by-step recovery prompt inline. To fix it:

  1. Tap the Terminal tab to open a raw SSH session to your Mac
  2. Run claude to start the Claude CLI interactively
  3. Type /login and follow the browser OAuth flow
  4. Return to the chatroom — it will work on the next message

This only needs to be done once per Mac. The session token is stored in Claude CLI's local config and survives restarts.

Port forwarding not working

  • Confirm the service is actually running and bound to the expected port on the remote host
  • Ensure no firewall is blocking the local port on your device
  • Each local port can only be used by one tunnel at a time

App feels slow or unresponsive after connection

  • Close unused terminal tabs (swipe left on the tab label)
  • Heavy terminal output (e.g. cat of large files) is batched — give it a moment
  • Restart the SSH connection from the Connections tab if the session hangs

Chatroom lost my project directory or context after reconnect

  • This should no longer happen — ClawTerminal locks the project directory to the active Claude session ID when the first message is sent, and persists it across reconnects and app restarts
  • If it does happen, open the chatroom's Info tab, verify the Project Directory path is set correctly, then send a new message to relock it

15. Feature Tutorials

See the tutorials/ directory for in-depth guides on individual features:


Version History

Version Date Highlights
v1.9.3 May 2026 Apple Intelligence on-device LLM tier for skill extraction, /standup, and /whatif (free / instant / private when no Anthropic API key is set on iOS 26 + supported hardware). iOS 26 Writing Tools in the chatroom input and skill editor. iOS 26 SpeechAnalyzer powers /voice and Speak with Search.
v1.9.0 April 2026 Dream Mode (autonomous overnight preference learning), agent soul and identity persistence, explicit reasoning with /think and /trace, enhanced hooks with pause/resume and conditionals, smart memory auto-categorization, countdown ring on long-press send with haptic patterns.
v1.8.0 April 2026 Session recap, context window meter, effort control, quick side questions, retry last message, agent personas.
v1.7.0 April 2026 Smart suggestions, gesture shortcuts, split-screen terminal, conversation branching, JSON tables, auto-context from errors, implicit learning, cat mascot animations, haptic feedback.
v1.6.0 April 2026 /changelog, /gentest, /security, /tribal, /spec, /graph, /hooks -- seven new analysis and automation commands.
v1.5.0 April 2026 /dashboard analytics, /workflow pipelines with visual DAG, auto-recovery for failed jobs, auth error auto-recovery.
v1.4.0 April 2026 /conflicts merge resolver, /notify smart notifications, enhanced /plan mode, @web URL injection, /pin file pinning.
v1.3.0 April 2026 /git visual branch graph, /health dashboard, /monitor live stats, /search semantic code search, /voice input.
v1.2.0 April 2026 /race multi-model comparison, /pr GitHub workflow, /handoff session handoff, /preview live web preview, --vcs worktree mode, --routing model routing, agent reasoning, cost tracking.
v1.1.1 April 2, 2026 iPhone drawer sidebar, adaptive polling, Agent Teams polish, SSH robustness. Now in 80+ countries.
v1.1.0 March 25, 2026 /team agent teams, /batch multi-agent orchestration, smart commands, welcome tour.
v1.0 March 16, 2026 Initial release. SSH terminal, Claude chatroom, SFTP, background jobs, iPad multi-window, watchOS.

Advanced Features Reference

Progressive Skill Disclosure

By default, every enabled skill's full content is injected into every message — which consumes tokens even when the skill isn't relevant. Progressive disclosure lets you mark a skill as keyword-triggered: the skill's name and description always appear in the index, but the full content only loads when your message contains a matching keyword.

To configure a skill for progressive disclosure:

  1. Open the Skills toolbar button in any chatroom
  2. Tap the blue pencil icon on any installed skill row to open the editor
  3. In the Progressive Disclosure section, toggle Always inject off
  4. Add comma-separated keywords that trigger the full content, e.g. deploy, staging, rollout, release

Example: a "Deploy Staging" skill with keywords deploy, staging, rollout stays dormant on every normal coding turn. The moment you write "deploy to staging", the full instructions load automatically. For users with many skills, this can cut preamble token usage by roughly 50%.


Auto-Skill Suggestions

After a standalone /submit job completes with 3 or more tool uses, a yellow banner appears above the input bar offering to save that job pattern as a reusable slash command. Tap Save to open the command editor with the name and template pre-filled — then add parameters and customize as needed.

The suggestion fires only for standalone jobs (not /batch or /team children), and only once per unique request pattern. If you dismiss it, the same job pattern won't prompt again.


Per-Job Cost Tracking

Every /submit, /batch, and /team job tracks token usage and estimates USD cost in real time.

  • The Jobs tab shows a green cost chip next to each job's status pill
  • The job detail view has a Cost & Usage card with input tokens, output tokens, estimated USD, and model ID
  • Settings → Cost & Budget lets you set an optional soft cap (No Limit / $0.50 / $2.00 / $5.00 / $10.00). Jobs over the cap are flagged with a red "Over Budget" badge — the cap is informational and does not pause or cancel jobs

Pricing is based on public list prices as of April 2026 for Claude Opus/Sonnet/Haiku, GPT-4o, o3/o4-mini, and Gemini 2.5 Pro / 2.0 Flash.


Trajectory Timeline

Every background job captures a step-by-step record of what the agent did during execution. Open any job's detail view and scroll to the Trajectory card to see a color-coded timeline:

Color Icon Event type
Blue Wrench Tool call (Read, Bash, Edit, Grep, etc.)
Cyan Return Tool result
Purple Bubble Assistant text
Indigo Brain Thinking block
Orange Flag Checkpoint marker

Each step shows a one-line summary and a monospaced detail snippet. The trajectory is capped at 200 steps per job and persists across app restarts. For failed multi-agent runs, this lets you scroll back and see exactly what each agent was doing at any point in time.


Per-Project Skill Variants

Skills can be customized for individual projects without modifying the global version. When a skill is injected into Claude's context, the app checks whether a variant exists for the current project — if yes, the variant is used instead of the global content.

Manual customization: Open any skill in the editor (tap the blue pencil icon), scroll to Project Variants, and tap Customize for [project-name]. A nested editor opens pre-filled with the global content. Edit to reflect project-specific conventions, tool versions, or file layouts. The global content is never modified.

Auto-customization (opt-in): Enable Settings → Smart Skills → Auto-customize skills per project. After each assistant response, the app checks whether the conversation reveals project-specific facts that would improve an enabled skill. If so, it runs a lightweight background analysis and — if a useful customization is found — shows a green banner offering to review the proposed variant. Every proposed variant requires explicit approval before it is saved. The global content is never touched automatically.


Memory Management

The Memories button (brain icon) in any chatroom toolbar opens the Memory Library. Use the filter tabs at the top to browse by scope:

Tab What it shows
This Session Project-specific memories plus all globals — what Claude actually sees
Global Memories that apply across all sessions and projects
All Every memory, with folder badges showing which project each belongs to

Tap any memory to edit its content, category, keywords, or scope (Global vs. This Project Only). The search bar runs a ranked full-text search: exact matches score highest, followed by prefix and substring matches, with recency and frequency bonuses. Results appear under a "Smart Search" header instead of the normal category-grouped view.

To create a memory without a slash command, tap the + button in the toolbar. To remove a memory, open it and tap Delete.


Background Notifications

When ClawTerminal is backgrounded with running jobs, the system checks periodically for completions. When a job finishes while you are away, you receive a "Job Complete" notification with a result preview and View / Copy action buttons — the same notification you would see in the foreground. Notifications for still-running jobs are sent only when they are new, preventing repeated "N jobs running" reminders for the same jobs.


Contributing

Found a typo? Want to share a workflow tip? Pull requests are welcome. For app bugs or feature requests, open an issue on the main app repo.


CatClaw -- Your Mac's best friend on mobile. Download on the App Store

About

OpenClaw Terminal — Guides & Tutorials

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors