Skip to content

Command-line reference

This page is the canonical source-visible inventory of root flags, command families, aliases, gates, and mode-specific CLI surfaces. Process routing and mode dispatch remain in CLI main paths, so this reference does not duplicate the bootstrap narrative.

Scope and caveats

  • This is a source-anchored reference for the analyzed cli.renamed.js bundle, not a replacement for live claude --help output.
  • Hidden and feature-gated options are included when existing docs have direct anchors.
  • The bundle is minified, so approximate line numbers and byte offsets are search handles rather than stable public API names.

Source anchors

Semantic aliasAnchorMeaning
CommanderRootUsage: claude [options] [command] [prompt]Commander root construction and invocation shape.
ClaudeRootCommandClaude Code - starts an interactive session by defaultRoot command name and description.
PrintModeFlag-p, --printSelects non-interactive print/headless mode.
ToolAllowListFlag--allowedTools, --allowed-tools <tools...>Tool allow-list flag.
PermissionModeFlag--permission-mode <mode>Session permission mode selector.
ContinueSessionFlag-c, --continueContinue the most recent conversation in the current directory.
ResumeSessionFlag-r, --resume [value]Resume by session ID or open picker/search.
CloudSessionFlag--cloud [description|session_id|url]Hidden hosted-session creation/attach flag.
RemoteSessionAlias--remote [description|session_id|url]Hidden deprecated alias for --cloud.
RemoteControlFlag--remote-control [name]Remote Control flag.
DoctorCommanddoctor — Check the health of your Claude Code installationNon-interactive installation/settings health check.
UpdateCommandFamily`updateupgrade`
CoreInteractiveRegistryHur() / getBuiltinCommands() at ~567,141–567,875Memoized core local, local-jsx, and built-in prompt command array.
CommandAggregator_xo() / getCommands() at ~567,226–567,327Merges skill directories, workflows, plugin/MCP/bundled skills, and core commands, then resolves collisions and gates.
BundledSkillRegistrarLu() / fhs() at ~421,026–421,095Turns bundled skill metadata and assets into prompt commands.
SurfaceFiltersfilterCommandsForHeadless, filterCommandsForRemoteMode, isThinClientSafeSelects commands that can cross non-interactive, Remote Control, and thin-client boundaries.
AgentTeamsRawArgprocess.argv.includes("--agent-teams")Experimental team gate inspects raw argv; this spelling is not registered in the Commander root option table ~333,255–333,264.
HiddenTeammateModeFlag--teammate-mode <mode>Hidden root option selecting auto, tmux, iterm2, or in-process ~958,950.

Root invocation modes

ModeRepresentative surfaceBehavior
Interactive TUIdefault TTY invocationStarts the interactive session loop after trust/auth/settings/context setup.
Headless/print-p, --printRuns the scriptable path with stdout result/stream framing.
SDK-style headless--sdk-url, stream/control framesExposes structured frames and control requests for external hosts.
Resume/continue--continue, --resume, --session-idRestores a local JSONL session into the live envelope.
Cloud/teleport/control--cloud (deprecated --remote), --teleport, --remote-control, --rcAdds hosted-session, import, or bridge control around related session models.
Recovery/accessibility--safe-mode, --ax-screen-readerSafe mode isolates broken customizations; screen-reader mode selects the classic flat renderer.

Root flag families

FamilyFlagsPrimary owner
Diagnostics/recovery-d, --debug [filter], --debug-file, --verbose, --safe-modeDiagnostics and debug logs, Safe mode and recovery
Headless/SDK output-p, --print, --output-format, --input-format, --json-schema, --include-partial-messages, --include-hook-events, --replay-user-messages, --forward-subagent-text, --prompt-suggestionsHeadless streaming and resilience
Thinking and budget--effort, --max-budget-usd, --fallback-modelModel selection, calls, usage, quota, and billing
Tools and permissions--tools, --allowedTools, --allowed-tools, --disallowedTools, --disallowed-tools, --permission-mode, --dangerously-skip-permissions, --allow-dangerously-skip-permissionsTool inventory and schemas
Prompt and context--system-prompt, --append-system-prompt, --add-dir, --exclude-dynamic-system-prompt-sections, --disable-slash-commandsPrompt assembly scenarios, Slash commands and automation
Sessions-c, --continue, -r, --resume, --fork-session, --from-pr, --no-session-persistence, --session-id, --name, --bgSession resume and transcripts
Models and auth--model, --fallback-model, --betasModels, providers, and auth
Settings and integrations--settings, --setting-sources, --mcp-config, --strict-mcp-config, --plugin-dir, --plugin-url, --agents, --agent, --ide, --chrome, --fileSettings schema reference
Experimental Agent Teamsraw argv --agent-teams; hidden --teammate-mode; child-only --agent-id, --agent-name, --team-name, --agent-color, --parent-session-id, --plan-mode-required, --agent-typeAgent Teams
Accessibility--ax-screen-readerAccessibility and screen-reader mode
Cloud/remote and deep links--cloud, deprecated --remote, --teleport, --remote-control, --rc, --remote-control-session-name-prefix, --prefill, --deep-link-originRemote control and teleport

--agent-teams is unusual: isAgentSwarmsEnabled() checks for the exact token in raw process.argv, but no matching Commander .option(...) registration appears in this retained build. It should therefore be treated as an internal/experimental argv signal rather than an advertised help option; CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS is the explicit parsed environment opt-in. --teammate-mode and the identity flags are registered but hidden, primarily for parent/child teammate launches.

Command families

CommandAnchorRuntime role
authH.command("auth")Login, logout, and status flows for account credentials.
mcpMcpCommandRegistrarManages MCP servers and can start the Claude Code MCP server.
mcp servecommand("serve"), line ~9173, byte 0xbf3ccbStarts the Claude Code MCP server.
mcp add-from-claude-desktopline ~9173, byte 0xbf44e2Imports MCP servers from Claude Desktop config.
mcp add OAuth/XAA options--client-id, --client-secret, --callback-port, --xaaAdds HTTP/SSE OAuth metadata or gated XAA; see MCP, plugins, and hooks.
mcp xaa setup|login|show|clearcommand("xaa")Manages the gated shared SEP-990 IdP connection and cached token.
plugin / pluginsPluginCommandRegistrarManages plugins, marketplaces, local/session plugins, and plugin capabilities.
plugin eval [target] / plugin eval init [name]command("eval [target]")Early-access evaluation and suite-authoring harness; see Plugin lifecycle and configuration.
plugin prune / plugin autoremovecommand("prune").alias("autoremove")Removes unneeded auto-installed dependencies, with dry-run/confirmation controls.
project purge [path]H.command("project")Deletes project-scoped Claude Code state.
setup-tokenH.command("setup-token")Sets up a long-lived authentication token flow.
agentsH.command("agents")Opens/manages background agents and dispatched sessions.
ultrareview [target]H.command("ultrareview [target]")Runs cloud-hosted multi-agent code review.
auto-modeconfig, defaults, critique, resetInspects, critiques, or resets auto-mode classifier configuration.
remote-control / rcH.command("remote-control", {hidden: true}).alias("rc")Starts local-session Remote Control.
gateway --config <path>command("gateway")Starts the native-only enterprise auth, inference, managed-settings, spend, and telemetry gateway. It is registered after the print fast path.
import-conversations <exportPath>hidden registration near ~978,660Gated archive import requiring --cwd; --dry-run plans and checks without writes. See Session resume and transcripts.
doctorH.command("doctor")Checks auto-updater and related health state.
update / upgradeH.command("update").alias("upgrade")Checks for and installs updates.
install [target]H.command("install [target]")Installs a stable/latest/specific native build.

agents options

claude agents accepts --json for a non-TTY JSON array and --all to include completed sessions. Dispatch defaults include --agent, --model, --effort, --permission-mode, --settings, --setting-sources, --add-dir, --mcp-config, --strict-mcp-config, and --plugin-dir. The JSON state can expose what a session is waiting for; sandbox, MCP-input, and managed-settings prompts are classified as needing input.

Built-in interactive-command registry

The retained build has two static registration layers plus dynamic additions:

  1. Hur() references 105 distinct core names across its conditional branches. A core entry is either local-jsx (TUI component), local (text/control implementation), or a small number of built-in prompt commands.
  2. Twenty-nine Lu({...}) registration sites expand to 32 bundled-skill names because one site loops over four Artifact templates. /design exists in both layers, yielding 136 distinct static names across core plus bundled layers.
  3. _xo() prepends filesystem skills, dynamic workflows, builtin-plugin skills, plugin skills, and bundled skills before the core array. getCommands() then adds MCP/fallback skills, scopes colliding nested skills, removes shadowed fallbacks, and applies availability plus isEnabled gates.

The counts are an artifact inventory, not a promise that 136 commands appear in one /help menu. Conditional branches do not all coexist, and the inventory deliberately includes account/policy/platform/feature-gated entries, hidden compatibility helpers, and entries whose isEnabled() is false in 2.1.215. Live /help remains authoritative for one running account and surface.

Command kinds and surface rules

KindExecution ownerSurface behavior
local-jsxInteractive Ink/TUI componentRequires a workspace and Ink by default. It cannot execute directly in headless mode; thin clients need an explicit dispatch route or a local twin.
localJavaScript handler returning text/control eventsEnters headless mode only when supportsNonInteractive is true. A same-name local entry often acts as the bridge/headless twin of local-jsx.
prompt with source: "builtin"Built-in prompt workflowCan enter headless mode unless disableNonInteractive; model invocation is separately controlled.
prompt with source: "bundled"Lu() skill registrationDirect slash use requires userInvocable !== false; disableModelInvocation blocks the model/Skill caller but not a direct user invocation. Bundled-skill kill switches can reduce these to user-only or remove them.

Remote mode accepts only thin-client-safe built-in/bundled prompts plus objects in REMOTE_SAFE_COMMANDS. Bridge dispatch similarly uses BRIDGE_SAFE_COMMANDS or a same-name local fallback. This is why a command can exist in the registry yet be unavailable on a particular remote/headless surface.

Core session, context, and interface commands

Command (aliases)State in 2.1.215Current role / mechanism owner
/add-dir <path>Core TUIAdds a working root; MCP root-change behavior is in MCP, plugins, and hooks.
/autocompact [auto|tokens]Model/feature gated; TUI + text twinReads or writes the effective compaction window; see Context, memory, compaction, checkpoints, and rewind.
/branch [name]Core TUICopies the current chain into a new resumable local session; see Session resume and transcripts.
/btw [question]Core TUIRuns a disposable one-turn, no-tool side fork without interrupting the main agent; see Slash commands and automation.
/cd <path>Core TUIRelocates the live cwd and refreshes cwd-sensitive roots/state.
/clear [name] (/reset, /new)Core local; non-interactive capableRuns the clear lifecycle, rotates the session identity, and leaves the prior transcript resumable; see Session resume and transcripts.
/color [name|default]TUI + non-interactive twinPersists a session color and best-effort mirrors its bridge tag.
/compact [instructions]Core local; non-interactive capableRuns manual compaction and PreCompact hooks; see Context, memory, compaction, checkpoints, and rewind.
/context [all]TUI + non-interactive twinEstimates current model, prompt, tool, MCP, agent, memory, skill, and message token use.
/copy [N]Core TUICopies the latest or Nth-latest assistant response, subject to terminal clipboard support.
/diffCore TUIOpens uncommitted and per-turn file-diff views.
/effort [level|auto|ultracode]Model-capability gated; TUI + text twinApplies a supported effort level; ultracode combines xhigh with workflow orchestration. See Model selection, calls, usage, quota, and billing.
/exit (/quit)TUI + local twinExits normally, or detaches while a background session keeps running.
/export [filename]Core TUIExports the current conversation to a file or clipboard.
/fast [on|off]Model/account gated; TUI + text twinToggles fast-mode state and its required model; see Model selection, calls, usage, quota, and billing.
/focusCore TUI; fullscreen-sensitiveToggles the reduced transcript view and synchronizes the view-mode flag when the transport supports it.
/helpCore TUIShows the enabled, advertised command set for the current runtime.
/keybindingsKeybinding-feature gatedCreates or opens ~/.claude/keybindings.json; safe mode delays custom binding activation.
/memoryCore TUIOpens a memory file in the configured editor.
/model [name]TUI + non-interactive twinValidates entitlement, policy, account availability, extended context, and explicit IDs before switching.
/pause-memory (/memory-pause, /toggle-memory)Disabled (isEnabled: () => false)Dormant session metadata toggle; do not advertise it as available in this build.
/plan [open|share|description]Core TUIEnables plan mode or opens/shares the current plan.
/recapFeature gated, normally on; non-interactive capableRuns a one-turn, no-tool fork to generate a one-line session recap.
/release-notesCore TUIOpens the packaged release-note view.
/rename [name] (/name)TUI + non-interactive twinPersists an explicit name or generates a short name from conversation context.
/resume [id|search] (/continue)Core TUIOpens or resolves a resumable conversation; see Session resume and transcripts.
/rewind (/checkpoint, /undo)Core local interactive handlerOpens the message selector for code and/or conversation restoration; it is not a separate arbitrary undo engine.
/scroll-speedTerminal/renderer gatedAdjusts mouse-wheel scroll speed where the terminal does not use a known native path.
/statusCore TUIShows version, model, account, API connectivity, and tool/integration status.
/tasks (/bashes)Core TUILists and manages running background tasks.
/themeCore TUIOpens the theme picker, including eligible custom themes.
/tui [default|fullscreen]Core TUIChooses the terminal renderer; switching may relaunch and resume the session.
/usage (/cost, /stats)TUI + non-interactive twinShows session totals, plan utilization, and local behavior attribution; see Model selection, calls, usage, quota, and billing.
/wellbeing (/breaks, /break-reminder, /downtime)Disabled (isEnabled: () => false)Dormant break/quiet-hours settings UI.
/briefFeature/account gatedToggles brief-only output and injects a mode-change reminder into model context.

Core configuration, account, and integration commands

Command (aliases)State in 2.1.215Current role / mechanism owner
/advisor [model|off]Model/account gatedConfigures the stronger-model advisor surface.
/artifactsArtifact-account gatedBrowses published/shared artifacts; see Artifact publishing and live pages.
/auto-mode-setupAuto-mode feature gated; TUI + non-interactive twinGuided environment/rule proposal flow with reviewed-file application; see Settings, policy, and integrations.
/bug [report] (/share)Core TUIOpens bug-report/conversation-sharing UI.
/chromeClaude.ai/TUI gatedOpens Claude-in-Chrome settings; see Browser automation and Claude in Chrome.
/config [key=value ...] (/settings)TUI + non-interactive twinOpens settings or validates and applies exposed shorthand keys; see Settings, policy, and integrations.
/design [subcommand|prompt]First-party auth/policy gatedBundled hub plus local consent helpers; see Claude Design and design-system sync.
/design-loginGated support surfaceAcquires design-specific authorization for /design-sync.
/design-consent, /design-revokeHidden non-interactive helpersRecord or revoke durable agent_design_projects access.
/feedback [report]Core TUISends feedback or opens the reporting flow; provider availability can narrow it.
/heapdumpHidden diagnosticWrites a V8 heap snapshot and a diagnostics JSON file; see Diagnostics and debug logs.
/hooksCore TUIOpens the effective hook-configuration view.
/ide [open]Core TUIShows and manages IDE integration state.
/import [codex|gemini]Feature gated; TUI + non-interactive twinDeterministically scans and selectively imports another coding agent’s configuration; see Settings, policy, and integrations.
/initBuilt-in prompt workflowCreates/improves CLAUDE.md and, on the new flow, can propose skills and hooks.
/install-github-appAccount/provider gatedStarts Claude GitHub Actions setup.
/install-slack-appClaude.ai gatedOpens the Claude Slack Marketplace listing.
/login, /logoutAuth/env gated TUIStarts account authentication or revokes/clears cached account, design, gateway, and model bootstrap state.
/loopsDisabled (isEnabled: () => false)Dormant TUI loop manager; /loop is the active bundled skill.
/mcp [reconnect|enable|disable ...]TUI + non-interactive twinManages live MCP clients; see MCP, plugins, and hooks.
/mobile (/ios, /android)Core TUIShows a QR code for the Claude mobile app.
/vim, /output-styleHidden compatibility shimsTell the user those settings moved to /config; they are not independent configuration flows.
/passesSubscriber/referral-cache gatedOpens guest-pass/referral UI only after eligibility has been cached.
/permissions (/allowed-tools)Core TUIManages effective allow/ask/deny rules.
/plugin (/plugins, /marketplace)Core TUIManages plugins and marketplaces; see MCP, plugins, and hooks.
/powerupCore TUIOpens interactive product lessons.
/privacy-settingsConsumer-subscriber gatedViews or updates the account privacy setting and can complete a pending terms decision; see Consumer terms and privacy policy.
/radioFeature gatedOpens Claude FM in the browser.
/reload-plugins [--force]Core local interactive commandRebuilds plugin/agent/hook/MCP/LSP runtime state and warns before cache-invalidating MCP changes.
/reload-skillsCore local; non-interactive capableClears command caches and reports added/removed filesystem skills.
/sandboxPlatform/policy/dependency gatedConfigures command sandboxing; see Sandbox and isolation.
/setup-bedrock, /setup-vertexProvider-env gatedReopens provider authentication, region, and model-pin setup only for the active provider.
/skill-doctorCore local; non-interactive capableReports unused loaded skills and stale plugins that consume command-list context.
/skillsCore TUILists available skills.
/statuslineUser-only built-in prompt; interactive onlyLaunches the status-line setup agent; safe mode refuses because user status lines cannot render there. The later runtime is a separate JSON/local-command/render loop.
/stickersCore local interactive commandOpens the Claude Code sticker page.
/terminal-setupTerminal-specific TUIInstalls/checks newline, bell, or clipboard integration for the detected terminal.
/upgradeClaude.ai/subscription gatedOpens the eligible plan-upgrade flow. It is distinct from root claude update.
/usage-creditsAccount/billing gated; TUI + text twinOpens billing management or an admin request flow.
/extra-usageHidden rename shimReports that the command is now /usage-credits, then delegates.
/voice [hold|tap|off]OAuth, policy, platform, and audio gatedConfigures dictation; see Audio capture and voice.
/web-setupClaude.ai, remote-policy, and rollout gatedConfirms and imports the local GitHub CLI credential for hosted clone/push access, then bootstraps a default environment when needed; see Remote control and teleport.

Core agents, automation, remote, and internal commands

Command (aliases)State in 2.1.215Current role / mechanism owner
/agentsRemoved compatibility handlerExplains that the wizard was removed and points to .claude/agents/ or natural-language creation.
/autofix-prSubscriber/remote-policy gatedResolves/subscribes an open PR and creates or reuses a long-running cloud repair session; see Slash commands and automation.
/background [prompt] (/bg)Core TUI; operational fleet/persistence/seed gatesCheckpoints and hands the current conversation to a daemon worker, transfers eligible task/worktree state, and exits the foreground terminal; see Daemon and background service.
/stopBackground-session onlyPersists a stopped terminal state and gracefully detaches/exits while retaining transcript/worktree; see Daemon and background service.
/daemonDaemon-registry gatedOpens local background-service and routine controls.
/desktop (/app)Disabled (GTy() === false)Dormant Desktop handoff surface despite its retained registration.
/fork <directive>Agent-fleet/coordinator gatedDepending on the fleet branch, creates a background conversation copy or a full-context background fork; see Agents, tasks, and subagents.
/subtask <task>Agent-fleet/coordinator gatedRuns an inherited-context subagent and returns its result to the parent.
/goal [condition|clear]Core TUI + text twinInstalls/inspects/removes the session Stop condition; see Slash commands and automation.
/insightsUser-only built-in promptGenerates a local-session usage report; model invocation is disabled.
/pro-trial-expired, /rate-limit-optionsHidden UI entry pointsSupport account/rate-limit dialogs; not ordinary menu commands.
/remote-control [name] (/rc)Bridge/auth/policy gatedStarts or disconnects Remote Control; see Remote control and teleport.
/remote-envSubscriber/remote-policy gatedLists hosted targets, clears a local override, and writes the chosen default environment to user settings; see Remote control and teleport.
/review [PR]Built-in promptReviews a GitHub PR; working-tree review belongs to /code-review.
/security-reviewBuilt-in prompt fallbackRuns the bundled security-review instructions when the marketplace implementation is unavailable.
/session (/remote)Remote-session gated; hidden without fanoutRead-only display of the cloud session URL and a screen-reader-aware QR code; see Remote control and teleport.
/team-onboardingOrganization-policy gated, user-only promptGenerates ONBOARDING.md from bounded local usage; see Team onboarding and share flows.
/teleport (/tp)Subscriber/remote-policy gatedImports/resumes a claude.ai session locally; see Remote control and teleport.
/ultraplanBridge entitlement/feature gatedLaunches editable remote planning and polls for approval, remote execution, or teleport-back; see Slash commands and automation.
/ultrareviewCloud-review entitlement gatedStarts the hosted review flow; /code-review ultra is the newer routed surface.
/update (/restart)Hidden and disabledRetained relaunch implementation, but isEnabled: () => false in this command registry. Root claude update remains separate.
/workflowsWorkflow-feature gatedOpens live/completed dynamic workflow runs; see Dynamic workflows.
/__remote-workflowHidden internal transport commandDeterministically compiles and runs an environment-delivered workflow only inside a remote CCR session.

Bundled skill commands

These names come from Lu() rather than Hur(). Lu() can extract bundled files into a skill root, prepend that base directory to the prompt, attach allowed/disallowed tools and hooks, and preserve user/model invocation boundaries. The generic mechanism is documented in Slash commands and automation.

Command(s)Availability / caller boundaryMechanism family
/artifact-capabilities, /artifact-design, /artifact-dashboard, /artifact-data-table, /artifact-explainer, /artifact-report, /artifact-pr-review, /plan-artifactArtifact schema/account gates; user-invocableLive capability/type references, design guidance, four extracted templates, PR-review template, and plan publishing. See Artifact publishing and live pages.
/datavizUser- and model-invocableExtracts chart guidance plus JS/Python palette validators.
/batch <instruction>User-onlyPlans 5–30 independent worktree units, then launches background agents that each verify and open a PR.
/claude-in-chromeBrowser-extension/session gatedLoads browser-tool guidance or a guarded setup/reconnect path before Chrome MCP calls.
/claude-apiEnabled unless explicitly disabledDetects project language, extracts matching SDK/API references, and exposes migrate / managed-agents-onboard prompt branches.
/claude-code-docs [question]Rollout gatedBuilds a live command/config snapshot and combines it with extracted current-doc references.
/code-review [effort] [--fix] [--comment] [target]User-onlyRoutes by model/effort to inline or workflow-backed review; ultra falls back locally when cloud review is unavailable.
/code-walkthroughDisabled (isEnabled_10() === false)Dormant explainer-Artifact workflow.
/cowork-pluginNon-user-invocable; remote Cowork onlyModel-only Cowork plugin authoring/customization reference.
/debug [issue]User-onlyEnables debug logging, flushes it, and injects bounded session/daemon evidence for diagnosis.
/designFirst-party Design gated; user-onlyBundled hub registered before the core helper, so name resolution reaches its subcommand router first.
/design-syncDesign auth/policy gated; user-onlyExtracts converter/validator assets and drives design-system synchronization.
/doctor (/checkup)User-only; survives bundled-skill kill switchRuns the repair-capable setup/context/permission audit; root claude doctor remains read-only.
/fewer-permission-promptsUser- and model-invocableScans bounded recent transcripts and proposes project permission allows.
/keybindings-helpNon-user-invocableModel-only keybinding schema/action/reserved-key reference.
/loop (/proactive)Local scheduling feature gatedParses fixed intervals into cron or uses self-paced wakeups; see Cron and scheduled tasks.
/memory-typesNon-user-invocable; automemory gatedModel-only memory taxonomy reference.
/pr-explainerDisabled (isEnabled_13() === false)Dormant PR walkthrough Artifact workflow.
/runUser- and model-invocableFinds a project run skill first, otherwise selects a CLI/server/TUI/Electron/browser/library launch pattern.
/run-skill-generatorUser-onlyRequires an actual launch/interaction, then writes a reusable project run-<unit> skill and driver.
/schedule (/routines)First-party subscriber/remote-policy/rollout gatedCreates, updates, lists, or runs cloud-agent routines; see Cron and scheduled tasks.
/setup-coworkRemote Cowork onlyGuided role/plugin/connector/skill/writing-voice onboarding.
/simplify [target]User- and model-invocableRuns four cleanup angles (parallel when agent tools exist) and applies behavior-preserving fixes.
/update-configUser- and model-invocableInjects the current settings schema and a verified hook-construction flow.
/verify [target]User-onlyDrives the real runtime surface and captures evidence; it explicitly distinguishes verification from tests/typecheck.

Non-advertised command-shaped definitions

INTERNAL_ONLY_COMMANDS also retains command objects that are deliberately outside Hur(). The notable real names are /commit-push-pr (an internal prompt with narrowly pre-authorized Git/gh patterns) and /version (both TUI and text registrations have isEnabled: () => false). They are implementation support objects, not ordinary shipped slash commands. Stub objects and optional null feature arms are likewise excluded from the catalog above.

Aliases and spelling variants

Alias or variantCanonical surface
root claude upgraderoot claude update
root claude rcroot claude remote-control
hidden root --remote [description|session_id|url]hidden root --cloud [description|session_id|url] (deprecated alias)
interactive /rcinteractive /remote-control
--rc [name]--remote-control [name]
--allowed-tools--allowedTools
--disallowed-tools--disallowedTools
plugin autoremoveplugin prune

Interactive /upgrade is not an alias for /update: it is the gated subscription-upgrade UI. The disabled interactive /update object is a separate relaunch implementation. The alias above applies only to the Commander root command family.

--permission-mode manual is accepted as the user-facing spelling of the historical default mode; 2.1.215 --help lists manual and the settings schema continues to accept default.

--disable-slash-commands is registered with the help text Disable all skills. During setup it sets the shared disableSlashCommands state; command/skill aggregators then return no slash-command entries, prompt suggestions are suppressed, and relaunch/remote setup propagates the flag. It does not silently reinterpret /name text as an available command—the command surface is removed for that run.

Parse-time optimization

CommanderRoot has a fast path for -p/--print: when print mode is selected and no cc:// or cc+unix:// URI argument is present, the root options can be parsed before the heavier subcommand tree is registered. This keeps common headless runs lighter.

Created and maintained by Yingting Huang.