Update — June 25, 2026 (v2.1.191):/rewind can now restore conversation context from before /clear ran — not just generic checkpoints. Background agent stops from the tasks panel are permanent. Registry: /slash-commands/claude-code-rewind. Full changelog: Claude Code 2.1.191 guide.
Claude Code is Anthropic's agentic CLI for reading, editing, and running code in your repo. Beyond natural-language prompts, it exposes 90+ slash commands—typed at the start of a message—that switch models, manage permissions, spawn subagents, review diffs, compact context, and orchestrate long-running work.
This article is a complete command reference, organized the way Anthropic documents them in the Commands reference. It is not a replacement for upstream docs: command availability, version gates, and plan restrictions change frequently. Use this as a map of the surface area and a workflow guide; verify behavior against code.claude.com/docs before you ship team runbooks.
Scan transcripts and add prioritized allowlist to .claude/settings.json
/sandbox
Toggle sandbox mode (supported platforms only)
/install-github-app
Set up Claude GitHub Actions for a repository
/install-slack-app
Install Claude Slack app via OAuth
/web-setup
Connect GitHub to Claude Code on the web via local gh CLI
/team-onboarding
Generate team onboarding guide from 30-day usage history
/run-skill-generator
Write project skill so /run and /verify know how to launch your app (v2.1.145+)
/cd vs /add-dir:/cdrelocates the session (resume finds it from the new directory). /add-dirgrants access without moving—useful for monorepos and cross-repo work. Restrict /cd targets with Cd permission rules.
Session, context, and conversation commands
Command
Purpose
/clear [name]
Empty context; label previous session for /resume (aliases: /reset, /new)
Context usage grid; pass all to expand per-item breakdown
/btw <question>
Quick aside without adding to conversation history
/copy [N]
Copy last (or Nth-latest) assistant response; interactive code-block picker
/export [filename]
Export conversation as plain text
/recap
One-line session summary on demand
/rename [name]
Rename current session (shown on prompt bar)
/resume [session]
Resume by ID, name, or picker; background sessions marked bg (alias: /continue)
/branch [name]
Branch conversation at this point; return to original via /resume
/fork <directive>
Background subagent with full conversation inheritance (v2.1.161+)
/rewind
Rewind code and/or conversation to checkpoint; v2.1.191+ restores context from before /clear (aliases: /checkpoint, /undo)
/goal [condition|clear]
Work until condition met; clear stops early (/goal guide)
/stop
Stop attached background session (keeps transcript and worktree)
/exit
Exit CLI; in background attach, detaches without stopping (alias: /quit)
/branch vs /fork:/branch is you exploring a forked copy. /fork is Claude working in the background while you continue. Before v2.1.161, /fork was an alias for /branch.
Model, effort, and performance commands
Command
Purpose
/model [model]
Switch model; picker supports session-only switch with s
/effort [level|auto]
Set effort: low, medium, high, xhigh, max, ultracode, or auto
/advisor [model|off]
Enable/disable advisor tool (second model consults at key moments, v2.1.98+)
/fast [on|off]
Toggle fast mode
/usage
Session cost, plan limits, activity stats (aliases: /cost, /stats)
/usage-credits
Configure extra usage when limits hit (formerly /extra-usage)
/heapdump
Write JS heap snapshot to Desktop for memory diagnosis
/effort levels:max and ultracode are session-only. ultracode combines xhigh reasoning with automatic workflow orchestration. Changes apply immediately without waiting for the current response to finish.
/loop 5m check if the deploy finished
/loop babysit all my PRs
/loop 30m /your-skill-name
Pair /loop with /goal for self-correction loops that run until a validator passes.
Scheduling: /loop vs /schedule vs Managed Agents
Anthropic shipped scheduled deployments and vault environment variables for Claude Managed Agents in public beta at Code with Claude Tokyo (June 2026), confirmed again by @ClaudeDevs on June 11. These are platform-level features—you configure them from the Claude API or via onboarding in Claude Code, not as a single new slash command.
Mechanism
Where it runs
Best for
/loop
Local session (laptop must stay open)
CI polling, PR babysitting, in-session maintenance
/schedule / /routines
Anthropic cloud routines from CLI
Simple recurring cloud tasks without full Managed Agent setup
Scheduled deployments
Claude Managed Agents (API / dashboard)
Production cron—daily reports, compliance scans, monitoring with vault credentialed CLIs
/autofix-pr
Cloud session on current branch
Watch one PR until CI and review comments pass
Onboard Managed Agents from the CLI:
bash
/claude-api managed-agents-onboard
Or ask: "Start onboarding for managed agents in Claude API."
That flow covers:
Scheduled deployments — cron expression + timezone; each fire starts a new agent session (no external scheduler to host)
Vault environment variables — register API keys by secret name and allowed domains; keys inject at network egress only; compatible CLIs include Browserbase, KERNEL, Notion, Ramp, and Sentry
/remote-env — set the default cloud environment for agents spawned from Claude Code
Claude Code's slash commands are the control plane for agentic development: they set trust (/permissions), memory (/memory), model and effort (/model, /effort), parallelism (/batch, /fork, /background), and quality gates (/code-review, /security-review) without leaving the terminal.
Type / to discover what your build exposes—availability varies by version, plan, and platform. Treat the official Commands page as source of truth; use this reference as a workflow map and complete index you can bookmark.
Command names, version gates, and plan availability reflect Anthropic's documentation as of June 12, 2026, including Managed Agents scheduled deployments and vault environment variables (@ClaudeDevs, June 11). Re-check code.claude.com/docs/en/commands and /release-notes before documenting internal runbooks—Anthropic ships CLI updates frequently.