Most Claude Code shortcut lists rank commands alphabetically. That's how you end up reading about /color before you've heard of Esc Esc. The bar that matters isn't "does it exist." It's "does it earn the keystroke." On most days, eight commands and four keyboard moves cover everything. The other twenty don't.
Below: a four-tier ranking of every command worth knowing about, plus the keyboard shortcuts most listicles forget exist. Daily-drivers, the on-purpose layer, one-time setup, and the ones that don't deserve a click.
1. The eight you'll hit every session
Naming a shortcut "Tier 1" is cheap. The honest test: did you reach for it in the last 24 hours? These earn it.
| Shortcut | What it does | Why it's daily |
|---|---|---|
Esc |
Interrupt the current generation | The single most-pressed key. Cheaper than waiting for a wrong direction to finish. |
Esc Esc |
Edit a previous message and re-fork from that point | Beats "let me clarify" rounds — you go back, change the prompt, branch fresh. |
Shift+Tab |
Toggle plan mode / auto-accept | Plan mode for "think before touching files." Auto-accept for "I trust this loop." |
@ (in input) |
Reference a file by path | Faster than pasting paths, and the agent gets the actual file, not a paraphrase. |
# (start of input) |
Save the line to CLAUDE.md |
Memory edits without leaving the prompt. |
! (start of input) |
Run the rest as a shell command in this session | Login flows, env checks, anything interactive without dropping out of the conversation. |
/clear |
Wipe context and start the session over | When the conversation has drifted and /compact won't save it. |
/compact [instructions] |
Summarize old turns; keep what you tell it to keep | The middle ground between /clear and "let it auto-compact whenever." |
Notice the split: half keyboard, half slash. Lists that only count slash commands miss the actual leverage.
2. The dozen you reach for on purpose
These don't fire every hour, but when you need one, the substitutes are awful.
| Shortcut | When it pays for itself |
|---|---|
/model |
Switching mid-session — Opus for architecture, Haiku for mechanical edits. |
/cost |
Mid-session sanity check. Pairs with /model when a task has slid into the wrong tier. |
/context |
"Why is the agent forgetting things?" — usually a pruned context window, and this tells you. |
/resume |
Continuing a session you closed; the only sane way back into a long-running task. |
/rewind |
Revert files plus conversation to an earlier turn. The "undo my last 20 minutes" button. |
/agents |
Configure subagents — the parallel-execution layer most users never enable. |
/add-dir |
Multi-repo work: pull a sibling repo into the session without restarting. |
/mcp |
Manage external MCP server connections (Notion, Linear, GitHub, Postgres). |
/permissions |
Tighten or loosen tool access; useful when you've been auto-confirming "yes" for an hour. |
/hooks |
Wire automated behavior into events (pre-commit, post-tool-call). Anything "from now on, every time" lives here. |
/skills |
List installed skills — the discovery surface for what the project actually supports. |
/security-review |
Run the security pass on pending changes before opening the PR. |
/vim |
Vim editing in the input box. One-time toggle; the keystroke savings compound. |
3. The ones you touch once and forget
Set-and-forget territory. Run them on day one of a project; never again.
/init— generate the firstCLAUDE.md. Once per project./memory— open the sameCLAUDE.mdin your editor. Once per major shift./config— model defaults, theme, environment switches. Once per machine./ide— link to VS Code or JetBrains. Once./login,/logout,/doctor,/release-notes— account and tooling housekeeping. Run when something breaks; not part of the loop.
If you're typing /init more than once a week, something else is wrong.
4. The ones that don't earn the keystroke
The honest cut. These exist; that doesn't mean you should use them.
| Command | Why to skip |
|---|---|
/diff |
Your editor and git diff already do this, with syntax highlighting and word-wrap. |
/export |
git log -p produces a more useful transcript than a flat dump of conversation. |
/theme |
Buried in /config already; one less surface to remember. |
/rename |
Sessions aren't chat threads. Naming them is overhead with no payoff at the CLI. |
| Any command you can't recall the syntax of by Wednesday | If you have to look it up every time, the time saved is negative. |
The principle: a shortcut that needs a man-page lookup costs more than the click it replaces.
5. The shortcuts the listicles miss
Three keystrokes that don't appear on most "26 shortcuts" charts and earn their place anyway:
Ctrl+R— toggle verbose mode. When the agent's behavior surprises you, this exposes the tool calls so you can see why. Pair with debugging.Backslash + Enter(orOption+Enter) — multi-line input. The difference between writing a real prompt and a one-line gesture.- Up arrow, then
Esc Esc— the actual "edit a previous message" workflow. Up arrow recalls the prompt;Esc Escrewinds the conversation to that point so the edit re-forks cleanly.
Then there's the CLAUDE.md and AGENTS.md files themselves. Not shortcuts in the strict sense, but the highest-leverage "shortcut" available — they replace re-explaining your stack at the top of every session. The # prefix from Tier 1 is the maintenance interface for them.
Where this maps to the actual workflow
The tier list collapses into a smaller daily checklist:
| Moment | Reach for |
|---|---|
| Agent went the wrong direction | Esc, then Esc Esc to rewrite the prompt that started it. |
| Context window feels full | /compact <what to keep>, fall back to /clear. |
| Bill creeping up | /cost, then /model haiku for the mechanical work. |
| Need to think before files change | Shift+Tab into plan mode. |
| Picking back up tomorrow | /resume, not "open a new session." |
| About to merge | /security-review first, then a code review pass on the diff. |
Six moves cover most days.
When this ranking goes wrong
This is opinionated, not universal. The rankings shift if:
- You're auditing prompts more than building.
/exportand/diffmove up; the conversation itself is the artifact. - You run a single project for months. The one-time-setup tier collapses to never; the daily list shrinks further.
- You work across many sandboxes a day.
/add-dir,/mcp, and/permissionsmove to Tier 1 because the ceremony resets every session. - You're on a regulated or locked-down machine.
/permissionsand/hooksare daily, not monthly, because the policy edits are constant.
Most "26 shortcuts" lists are scaffolding. The actual leverage sits in eight commands and four keystrokes. Knowing which twenty don't earn the click is more useful than memorizing the full set.