Commands

Clew ships with 80+ built-in slash commands plus dynamically loaded skills and plugin commands. Commands can be local (terminal execution), prompt (text expanded to the model), or local-jsx (Ink UI panels).

Discovery Type / in the REPL to see all available commands in your build. Commands are registered in src/commands.ts and loaded from built-in, plugin, skill, bundled, and workflow sources.

Session & Context

CommandDescription
/clearClear conversation history and free up context
/compactCompress session context — log/trace snipping, consolidation, pruning
/contextVisualize current context usage as a colored grid
/resumeResume a previous conversation
/renameRename the current conversation
/rewindRestore code and/or conversation to a previous point
/copyCopy Claude's last response to clipboard (or /copy N for Nth-latest)
/exportExport the current conversation to a file or clipboard
/sessionShow remote session URL and QR code
/branchCreate a branch of the current conversation at this point
/filesList all files currently in context

Model & Provider

CommandDescription
/modelSwitch model or provider — shows all models grouped by provider (Enter=save default, s=session-only)
/provider-selectShow or change the active AI provider and model
/tasteOpen taste preference-learning interactive menu (learn, forget, profile, events, decay, eval, on/off)
/effortSet effort level for model usage (low, medium, high, max)
/costShow the total cost and duration of the current session
/usageShow plan usage limits
/usage-creditsConfigure usage credits to keep working when limits are hit
/statsShow your Clew usage statistics and activity
/rate-limit-optionsShow options when rate limit is reached
/upgradeUpgrade to Max for higher rate limits and more Opus

Tools & Permissions

CommandDescription
/toolsList all tools with usage stats and estimated token cost
/permissionsManage allow & deny tool permission rules
/planEnable plan mode or view the current session plan
/privacy-settingsView and update your privacy settings
/datadogManage individual telemetry and analytics settings (Datadog, Anthropic, Global)
/capabilitiesShow available system capabilities (git, tmux, browser, network, shells)
/hooksView hook configurations for tool events (PreToolUse, PostToolUse, MessageDisplay, SessionStart)
/sandbox-toggleToggle sandbox mode for tool execution

Extensions (Plugins, MCP, Skills)

CommandDescription
/pluginManage plugins — list, install, remove
/plugin-detailsShow plugin component inventory, hooks, MCP servers, and per-session token cost
/reload-pluginsActivate pending plugin changes in the current session
/mcpManage MCP servers (list shows pending approval for unapproved .mcp.json servers)
/code-reviewReview changed code for correctness bugs (low/medium/high effort; --fix applies changes, --comment posts PR comments)
/simplifyCleanup-only code review (reuse, efficiency, altitude) with auto-fix
/skillList available skills or show skill details
/skillsList available skills

Agents

CommandDescription
/agentManage Clew AI Agents execution, state checkpoints, and approvals
/agentsOpen interactive agent dashboard with grouped sessions, PR columns, dispatch autocomplete, AI summaries, and keyboard shortcuts
!bg <command>Run a shell command as a persistent background agent task, visible in the agents dashboard with live status tracking
/tasksList and manage background tasks
/daemonOpen an interactive 24/7 autonomous daemon control panel; subcommands still support start/stop/status/restart
/taskCreate scheduled tasks with an interactive form; subcommands still manage the autonomous task queue
/loopRun a prompt or slash command on a recurring interval (e.g. /loop 5m /check-deploy)
/autofix-prFix CI errors and address review comments on a PR using Clew on the web

System & Diagnostics

CommandDescription
/helpShow help and available commands
/statusShow Clew status including version, model, account, API connectivity, and tool statuses
/doctorDiagnose and verify your Clew installation and settings
/exitExit the REPL
/versionShow version
/release-notesView release notes
/upgradeUpgrade to Max for higher rate limits

Configuration

CommandDescription
/configOpen config panel
/themeChange the theme
/colorSet the prompt bar color for this session
/keybindingsOpen or create your keybindings configuration file
/scroll-speedSet mouse wheel scroll speed multiplier (1-20)
/output-styleDeprecated: use /config to change output style
/remote-envConfigure the default remote environment for teleport sessions
/setting-sourcesConfigure setting sources
/initRun Setup hooks with init trigger

Git & Code Review

CommandDescription
/diffView uncommitted changes and per-turn diffs
/commitStage and commit changes
/commit-push-prCommit, push, and create a PR
/reviewReview code changes
/security-reviewRun a security review
/pr-commentsGet comments from a GitHub pull request
/install-github-appSet up Claude GitHub Actions for a repository

Research & Search

CommandDescription
/researchDeep source-grounded research across local files, wiki, and memory
/memoryEdit Claude memory files
/memory-searchSearch memories using semantic search (cross-lingual)
/searxngStart, stop, or check status of the local SearXNG Docker container
/explorerToggle file explorer sidebar

Evaluation

CommandDescription
/evalEvaluate AI agent performance with the verification harness

Utilities

CommandDescription
/btwAsk a quick side question without interrupting the main conversation
/buddyConfigure your AI companion (Buddy)
/desktopContinue the current session in Claude Desktop
/mobileShow QR code to download the Claude mobile app
/powerupInteractive lessons teaching Clew features with animated demos
/feedbackSubmit feedback about Clew
/onboardingRun the interactive onboarding wizard
/team-onboardingGenerate a teammate ramp-up guide from your local usage
/add-dirAdd a new working directory
/goalSet a session goal
/heapdumpDump the JS heap to ~/Desktop
/stickersOrder Clew stickers
/thinkbackYour 2025 Clew Year in Review

Feature-Gated Commands

These commands require specific environment variables to be enabled:

CommandFlagDescription
/bridgeBRIDGE_MODE=1Connect this terminal for remote-control sessions
/voiceVOICE_MODE=1Toggle voice mode
/briefKAIROS=1Brief command
/assistantKAIROS=1Assistant mode
/antUSER_TYPE=antToggle ant-only beta features
/ultraplanInternalExtended plan mode
/bughunterInternalBug hunting workflow

Interactive Autocomplete

Clew features an inline ghost text system that predicts the next argument as you type commands:

  • Type /goal followed by a space inline ghost text shows [condition] in dim text after the cursor
  • Press Tab or (Right Arrow) to accept the ghost text and fill the placeholder
  • Supports progressive hints: /goal fix [name] [priority] reveals remaining args as you fill each one
  • Commands with argumentHint (e.g. /plugin-details <plugin-name>) show static placeholder hints

For mid-input command completion, the same ghost text engine fills in partial command names:

  • Type /com ghost text shows mit for /commit
  • Press Tab or to complete the command name

Command Loading

Commands are loaded from multiple sources at startup:

  • Built-in — Core commands from src/commands/ (always available)
  • Bundled skills — Skills shipped with the application
  • Built-in plugin skills — From enabled built-in plugins
  • Skill directory~/.claude/skills/ and project .claude/skills/
  • Plugin commands — From installed plugins
  • Plugin skills — From plugin skill directories
  • MCP skills — From MCP servers (when MCP_SKILLS feature is enabled)
  • Dynamic skills — Discovered during file operations

Use /reload-plugins to reload plugin-provided commands without restarting. Remote-safe and bridge-safe commands have explicit allowlists in src/commands.ts.