The most important Claude Code & Codex shortcuts and slash commands

Last updated June 9, 2026 · bookmark with Cmd/Ctrl+D

Tool
Show

General

Ctrl+C interrupt; clear or exit
Ctrl+D send EOF to exit
Esc interrupt mid-turn; vim NORMAL
Ctrl+L redraw terminal; double to clear
Ctrl+X Ctrl+K kill background subagents
Space (voice) hold to dictate
Ctrl+B background bash or agent

Modes & permissions

Shift+Tab cycle permission modes
Option+P switch model, keep prompt
Option+T toggle extended thinking
Option+O toggle fast mode

Editing & input

Enter submit prompt
\ + Enter insert newline
Shift+Enter insert newline
Ctrl+J insert newline without submitting
Ctrl+G edit prompt in external editor
Tab accept suggestion / autocomplete
/ open command/skill menu
! run shell command
@ mention a file
i / I / a / A / o / O vim enter INSERT mode

History & navigation

Ctrl+R reverse-search command history
Ctrl+S cycle search scope / stash prompt
Up/Down arrows move cursor / browse history
Esc Esc clear prompt or open rewind

Display & transcript

Ctrl+O toggle transcript viewer
Ctrl+T toggle task list
Left/Right arrows cycle dialog tabs

Images & media

Ctrl+V paste image from clipboard

Session & conversation

/clear start fresh conversation
/branch branch the conversation
/fork fork subagent inheriting conversation
/btw quick side question
/recap one-line session summary
/resume resume a conversation
/rename rename current session
/rewind rewind to checkpoint
/exit exit the CLI
/copy copy last response
/export export conversation to file
/focus toggle focus view
/diff open diff viewer
/tasks manage background tasks
/stop stop background session
/background detach as background agent
/goal set persistent goal

Context & memory

/add-dir add working directory
/cd change working directory
/compact summarize to free context
/context visualize context usage
/memory edit CLAUDE.md memory
/init create CLAUDE.md guide

Code, review & testing

/code-review review diff for bugs/cleanups
/ultrareview cloud multi-agent review
/review review PR locally
/security-review scan changes for vulnerabilities
/simplify apply cleanup fixes to diff
/autofix-pr auto-fix PR on CI/review
/run launch and drive your app
/run-skill-generator write per-project run skill
/verify run app to confirm change
/debug enable debug logging, troubleshoot
/plan enter plan mode
/ultraplan draft plan, review, execute
/batch orchestrate large-scale codebase changes
/workflows view workflow progress
/deep-research research and synthesize cited report

Setup & config

/config open settings
/model switch model
/effort set model effort level
/fast toggle fast mode
/theme change color theme
/tui set terminal renderer
/statusline configure status line
/keybindings open keybindings file
/sandbox toggle sandbox mode
/terminal-setup configure terminal keybindings
/voice toggle voice dictation
/doctor diagnose installation and settings
/status show version, model, account
/remote-env choose cloud agent environment
/setup-bedrock configure Bedrock auth
/setup-vertex configure Vertex AI
/permissions manage tool permissions
/hooks view hook configurations
/fewer-permission-prompts add read-only tool allowlist

Account, plan & usage

/login sign in
/logout sign out
/usage show cost and usage
/cost show cost and usage
/stats open usage stats tab
/usage-credits configure usage credits
/upgrade upgrade plan tier
/privacy-settings manage privacy settings
/insights analyze your sessions
/team-onboarding generate team onboarding guide

Integrations & extensibility

/mcp manage MCP servers
/mcp__<server>__<prompt> invoke MCP server prompt
/agents manage subagents
/skills list available skills
/plugin manage plugins
/reload-plugins reload active plugins
/reload-skills rescan skills and commands
/install-github-app set up GitHub Actions app
/install-slack-app install Slack app
/web-setup connect GitHub for web
/ide manage IDE integrations
/chrome configure Chrome settings
/desktop continue in desktop app
/mobile QR code for mobile app
/teleport pull web session local
/remote-control enable remote control
/schedule manage cron routines
/loop run prompt repeatedly
/claude-api load Claude API reference

Help & misc

/help show help
/feedback submit feedback or bug
/release-notes view changelog
/powerup interactive feature lessons

General

Enter submit prompt / inject mid-turn
Ctrl+C close session / overlay
Esc interrupt turn / cancel
Ctrl+D exit on empty / delete forward

Modes & permissions

Alt+. raise reasoning effort
Alt+, lower reasoning effort
y approve once
a approve for session
d deny action
n / Esc decline action
Enter / Esc accept / cancel selection

Editing & input

Ctrl+J insert newline
Shift+Enter insert newline
Alt+Enter insert newline
Ctrl+G open external editor
Tab queue follow-up / insert path
@ fuzzy file search
! run shell command
Paste image attach image to composer

History & navigation

Esc Esc edit / fork previous message
Ctrl+R reverse-search prompt history
Up / Down navigate draft history

Display & transcript

Ctrl+L clear terminal view
Ctrl+O copy latest output
Ctrl+T open transcript overlay
Alt+R toggle raw scrollback
? / Shift+? toggle shortcuts help

Session & conversation

/clear clear screen, fresh chat
/new new conversation, same session
/resume resume saved conversation
/fork fork conversation to new thread
/side start ephemeral side conversation
/archive archive current session
/exit exit CLI
/agent switch agent thread
/goal set persistent task goal
/plan switch to plan mode

Context & memory

/compact summarize to free tokens
/memories configure memory use
/mention attach file to conversation
/ide include open IDE context
/copy copy latest output

Code, review & testing

/review review working tree
/diff show git diff
/approve approve one review retry

Setup & config

/permissions set auto-approval permissions
/model choose model and effort
/fast toggle fast service tier
/personality choose response style
/experimental toggle experimental features
/keymap remap keyboard shortcuts
/vim toggle vim mode
/raw toggle raw scrollback
/theme choose syntax theme
/init scaffold AGENTS.md

Account, plan & usage

/status show session config, token usage
/logout sign out, clear auth

Integrations & extensibility

/mcp list MCP tools
/apps browse connectors, insert in prompt
/plugins browse plugins
/hooks review lifecycle hooks
/skills browse and use skills
/app hand off to Codex Desktop

Background tasks & help

/ps show background terminals
/stop stop background terminals