Coral

Claude Code cheat sheet

The shortcuts, slash commands and terminal flags you actually use, checked against Anthropic’s docs. Search, pick Mac or Windows keys, click a command to copy it.

Keyboard

Keyboard shortcuts

Pressed in the prompt while Claude Code is running.

Do thisPressGood to know
Stop Claude mid-turn, or close a dialogEscKeeps the work done so far. On a permission prompt, Esc says No.
Clear the draft, or open rewindEscthenEscWith an empty prompt it opens the rewind menu.
Cycle permission modes⇧ Shift+TabManual, acceptEdits, plan, then auto and bypassPermissions where available. Alt+M on some Windows setups.
Interrupt, or clear the inputCtrl+CWith nothing running, a second press exits.
Exit Claude CodeCtrl+DthenCtrl+DThe second press must come within 800 ms.
Edit the prompt in your text editorCtrl+GCtrl+X Ctrl+E does the same.
Open the transcript viewerCtrl+OShows every tool call in full.
Search your prompt historyCtrl+R
Paste an imageCtrl+VCmd+V in iTerm2. Alt+V on Windows and WSL.
Send a running command or agent to the backgroundCtrl+BInside tmux, press it twice.
Show or hide Claude’s task checklistCtrl+T
Stash the prompt, or bring it backCtrl+S
Switch model without losing the prompt⌥ Option+P
Turn extended thinking on or off⌥ Option+TNo effect on models that always think.
Turn fast mode on or off⌥ Option+O
Send queued messages nowCtrl+ReturnCtrl+X Ctrl+S works in any terminal. Needs v2.1.275 or later.
Stop every background subagentCtrl+XthenCtrl+KPress twice within 3 seconds to confirm.
Redraw a garbled screenCtrl+L
Suspend Claude CodeCtrl+ZmacOS and Linux. Run fg to come back.
Show the shortcut help?On an empty prompt.

Editing the prompt

Readline keys. On a Mac, the Option ones need Option set as Meta in your terminal.

Do thisPressGood to know
New line without sending\thenReturnShift+Enter works once /terminal-setup installs it, or natively in some terminals.
Jump to the start of the lineCtrl+A
Jump to the end of the lineCtrl+E
Delete back to the last spaceCtrl+WRemoves a whole path or --flag=value at once.
Delete to the start of the lineCtrl+U
Delete to the end of the lineCtrl+K
Paste what you just deletedCtrl+Y
Move back or forward one word⌥ Option+Bor⌥ Option+F
Undo the last editCtrl+_

Prompt prefixes

Typed as the first character of a message.

Do thisTypeGood to know
Run a command or skillType letters after it to filter the list.
Run a shell command yourselfThe output goes into the conversation.
Mention a fileAutocompletes paths.

Commands: the session

Do thisTypeGood to know
Start over with an empty contextAlso: /reset /new
Summarize the chat to free up contextAdd instructions on what to keep.
See what fills the context window
Go back to an earlier sessionAlso: /continue
Undo code and chat to an earlier pointAlso: /checkpoint /undo
Name this sessionThen claude -r <name> resumes it.
Branch the conversation from here
Ask a side question without adding it to the chat
See cost, plan limits and statsAlso: /cost /stats
Save the conversation as text
Copy Claude’s last answer
QuitAlso: /quit

Commands: getting work done

Do thisTypeGood to know
Plan before editing anythingSame as plan mode in the Shift+Tab cycle.
Keep working until a condition is met
Repeat a prompt on an interval
Review the current diff for bugsAlso: /review
Check the branch for security issues
See every change in the working tree
See background shells and subagentsAlso: /bashes
Move this session to the backgroundAlso: /bg
Copy the chat into a new background session
Continue from claude.ai or your phoneAlso: /rc
Turn fast mode on or off
List every command you have

Commands: setup

Do thisTypeGood to know
Write a CLAUDE.md for this project
Edit CLAUDE.md files and auto memory
Edit allow, ask and deny rulesAlso: /allowed-tools
Turn your common approvals into allow rules
Switch model (and save it as default)
Set the effort level
Open settingsAlso: /settings
See your hooks
Manage MCP servers and their logins
Create or manage subagents
List your skills
Set up the status line
Make Shift+Enter add a new line
Change keyboard shortcuts
Let Claude work in another folder
Diagnose install and settings problems

Terminal commands

Run from your shell, not inside a session.

Do thisTypeGood to know
Start a session
Start with a first prompt
Answer once and exit (scripts, CI)
Continue the last session here
Resume a session by name or ID
Name a new session
Start in its own git worktree
Start a background agent and return
See and dispatch background sessions
Pick the model for one session
Start in a permission mode
Allow tools without prompts
Give it another folder
Start with Remote Control on
Add or list MCP servers
Update Claude Code
Check the install without starting
Show the version

Permission modes

Shift+Tab cycles them; claude --permission-mode starts in one.

ModeRuns without askingGood for
default (Manual)Reads only; asks for edits and commandsReviewing each step
acceptEditsReads, file edits, mkdir, touch, mv, cpIterating while you watch the diff
planReads; no edits until you approve the planExploring before a big change
autoEverything, with a classifier checking each actionLong tasks, fewer prompts
dontAskOnly pre-approved tools; the rest is deniedCI and scripts
bypassPermissionsEverything, no promptsIsolated containers and VMs only

What each mode lets through, and how to stop the prompts that keep coming back, is in Claude Code permission prompts.

The one key you can’t press from another window

Shortcuts only help when you’re looking at the terminal. When Claude Code stops for a permission prompt or a question while you’re in another app, Coral shows it in your Mac’s notch and on your iPhone, with the command it wants to run, so you answer with one key. Get Coral for free

Questions

How do I see all Claude Code commands?

Type / in the prompt. The menu lists built-in commands, your skills, and commands from plugins and MCP servers; type letters after the / to filter it. Some commands depend on your plan or platform, so your list can differ from someone else’s.

What are the most useful Claude Code slash commands?

/clear to start fresh, /compact to free up context, /resume to go back to a session, /rewind to undo changes, /plan to plan before editing, /permissions to stop repeat prompts, and /usage to see how much of your plan’s limit you’ve used.

How do I switch permission modes in Claude Code?

Press Shift+Tab to cycle through Manual (default), acceptEdits and plan, then auto and bypassPermissions where they’re available. To start in a mode, run claude --permission-mode plan (or acceptEdits, auto, dontAsk).

How do I add a new line in the Claude Code prompt?

Type \ and then Enter. Run /terminal-setup once to make Shift+Enter add a new line too.

How do I stop Claude Code mid-task?

Press Esc. Claude stops the current response or tool call and keeps the work done so far, so you can redirect it. Press Esc twice on an empty prompt to rewind to an earlier point.

How do I resume a Claude Code session?

claude -c continues the most recent session in the current folder. claude -r opens a picker, or claude -r <name> resumes one you named with /rename or claude -n. Inside a session, /resume does the same.

Checked against Anthropic’s interactive mode, commands, CLI reference and permission modes pages, November 24, 2026. This sheet picks the common ones; type / in Claude Code for every command your version has.

Coral isn’t affiliated with Anthropic.