The art of
claude code
Every slash command, keyboard shortcut, and special syntax that makes Claude Code feel less like a tool and more like an instrument. Organised by how often you'll actually reach for it.
Slash commands
Type / inside an active session to see them all. The most-used commands sit at the top — these are the muscle memory you want to build first. Hover any card for emphasis.
/./compact keep the auth refactor./plan or cycle modes with Shift+Tab: Normal → Auto-accept → Plan.opus for deep reasoning, sonnet for general work, haiku for quick edits.Opt+P opens the picker instantly.claude -c from the shell to leap straight back into the most recent one./rename so sessions are findable later./review 42 — to review a specific GitHub PR./cost and /stats are aliases..claude/agents/. A "security reviewer" agent triggered proactively is gold.Shift+Enter gives a newline instead of submitting the message..claude/settings.local.json.Bash(pnpm *) permits any pnpm command without per-call approval./branch.~/.claude/keybindings.json and take effect immediately.Keyboard shortcuts
These are the keystrokes that separate a slow session from a flowing one. Most users never learn them. Memorise the first four — they pay back every single session you'll ever run.
/terminal-setup first.$EDITOR. Built for long, careful prompts.Special syntax
Four prefix characters that unlock most of Claude Code's interactive power. Learning these is the difference between describing your context and just dropping it in.
@file.ts · reference# · remember# to append the rest to CLAUDE.md as a durable project memory. Skips the conversation entirely.!cmd · bash passthrough!git status, !npm test. No approval prompt, no interpretation./cmd · slash command/ alone to discover everything available.Hidden gems
The features most users never find — pulled from Boris Cherny's (Claude Code's creator) own tip threads, the bundled-skills directory, and the small print of recent changelogs. The "I didn't know it could do that" pile.
/btw by the waySpace to dictate/loop until green/batch 50 agents at once/simplify strip the cruft/simplify trims it back. Run it before your human code review and the diff is often half the size with no behaviour lost./effort set the gearlow, medium, high, xhigh, max. The grown-up way to control reasoning depth without sprinkling magic words into every prompt. The modern replacement for ultrathink./teleport across devices/config pick a voiceExplanatory walks you through reasoning step-by-step, Concise is action-focused, Technical stays precise and jargon-friendly. Custom styles live in ~/.claude/output-styles/ as markdown files you can commit and share.The thinking ladder
Drop one of these phrases anywhere in your prompt and Claude Code cranks up the reasoning budget. No slash command. No flag. Just words — read straight out of the message and mapped to a token budget before the model even sees the prompt.
thinkthink hard think deeply megathinkthink harder ultrathinkultrathink./effort xhigh or /effort max sets the thinking budget for the whole session — persistent, predictable, no magic words required. Combine /effort max with /plan (or Shift+Tab) for the deepest planning intelligence Claude Code can offer.What to reach for
Three places where two or more features overlap enough to confuse — and the small differences that decide which one to pull. Look for the ★ daily driver tag when in doubt.
When you want Claude to think harder
Magic words, persistent settings, and modes — each suited to a different shape of problem. The classic confusion: ultrathink vs /effort max.
| Option | Reach for it when | Cost / turn | Catch |
|---|---|---|---|
say "think"Magic word | You want a quick sanity check before Claude commits to an answer. | 4K tokens | One-off — applies only to this prompt, won't carry over. |
ultrathinkMagic word | One-off high-stakes prompt: tricky bug, architecture decision, ambiguous spec. | 32K tokens | Easy to forget you typed it. Re-type every prompt that needs it. |
/effort maxSlash command Daily driver | Whole session needs deep work — a big refactor, a long debug, a hard design. | 32K / turn | Persistent — lower it back with /effort medium when you switch tasks. |
/planSlash command · Shift+Tab | You want a plan reviewed before any files get touched. | Variable | Orthogonal to /effort — combine them for the deepest planning. |
When the session is getting heavy
Four ways to free up context, each loses something different. The most-used button is /compact, but it's not always the right one.
| Option | Reach for it when | Cost | Catch |
|---|---|---|---|
/compactSlash command Daily driver | Long session, you want to keep working in the same thread. | Runs a summary | Fine detail is lost. Pass focus: /compact keep the auth refactor. |
/clearSlash command | Switching to a completely different task with no shared context needed. | Instant | Total reset. Previous thread is gone from this session. |
Rewind Esc · Esc | Claude went the wrong direction and you want to back up to a checkpoint. | Instant | Only file edits are tracked. Bash side effects (migrations, DB) aren't reversed. |
/forkSlash command | You want to try an alternate approach without losing the current one. | Instant | Now you have two threads to keep straight in your head. |
When you need a quick aside
Side questions, exploratory branches, parallel work — picking the right gear for "wait, one more thing" without derailing the main task.
| Option | Reach for it when | Cost | Catch |
|---|---|---|---|
/btwSlash command Daily driver | Quick side question — "what does this flag do?" — while Claude is mid-task. | Light | Answer lives in the overlay only. Doesn't persist to the main thread. |
/forkSlash command | Exploring a real alternative path you might genuinely come back to. | Light | Two threads to manage. Use /rename so you can tell them apart later. |
New session Different task | Truly separate task. No shared context needed at all. | Free | CLAUDE.md re-loads but recent conversation context doesn't carry. |
Parallel session Second terminal | Long-running task (/loop, /batch) + you want to keep coding in another window. | 2× tokens | Two sessions burning tokens at once. Watch your /usage. |