Skip to content

Keyboard

Shortcuts

Everyone learns Esc. These are the rest — all checked against Claude Code itself, not copied off a blog.

The three to learn first

If you remember nothing else.

  • Esc Esc
    Stop Claude mid-action The moment Claude starts doing something you did not intend.
  • Esc thenEsc Esc thenEsc
    Clear the input box Your half-written prompt has turned into a mess and you want a clean line.
  • Shift +Tab Shift +Tab
    Cycle permission mode Starting an exploration (plan) or letting an agreed plan run (accept edits). On older Windows setups without VT mode, this is Meta+M instead.

Writing the prompt

Composing, searching, pasting.

  • Ctrl +J Ctrl +J
    Start a new line without sending Any prompt longer than one sentence.
  • Ctrl +R Ctrl +R
    Search your prompt history "What did I type last week that worked?" Inside the search, Ctrl+S cycles the scope: this session → this project → everywhere.
  • Ctrl +S Ctrl +S
    Park the half-written prompt You are three sentences into a prompt and need to go check something.
  • Ctrl +G Ctrl +G
    Edit the prompt in your real editor Writing anything long or carefully structured.
  • Ctrl +V Alt +V
    Paste an image Anything visual. Annotate the screenshot first and it works even better. Ctrl+V, not Cmd+V — macOS keeps Cmd+V for its own paste. Windows and WSL use Alt+V. On WSL both Ctrl+V and Alt+V work.
  • Option +T Alt +T
    Toggle thinking for the next turn One hard question in the middle of otherwise simple work.
  • Ctrl +_ Ctrl +_
    Undo in the input box You deleted half a prompt by accident.

Seeing what happened

What Claude did and what it plans to do.

  • Ctrl +O Ctrl +O
    Toggle the full transcript You want to know what it actually did, not the summary.
  • Ctrl +T Ctrl +T
    Toggle the task checklist Any multi-step task, before it gets far.

Running the session

Long jobs, models, the terminal.

  • Ctrl +B Ctrl +B
    Send the running job to the background A long build, test run, or search you do not want to sit and watch.
  • Option +P Alt +P
    Switch model Between tasks — rarely a good idea mid-task.
  • Option +O Alt +O
    Toggle fast mode Straightforward work where you would rather have speed than depth.
  • Ctrl +Z Ctrl +Z
    Step out to the shell without quitting You need the terminal for one command and do not want to lose the session. Terminal-level shortcut (Unix SIGTSTP), not a Claude Code binding. Windows has no direct equivalent.

The keys are the same on both systems — only the modifier's name changes (macOS calls Alt Option). Run /keybindings in any session to see exactly what is bound on your machine.

Tips

Patterns I keep reaching for

, gotchas, and workflow recipes — clustered by theme so you can skim the area you need. Opinionated and plainspoken.

Show
Topic

Prompting

How to ask — phrasing, structure, what to include.

  • Tip · Prompting

    "Report and stop" — tell Claude where the work ends

    Claude will happily turn a question into a . Add an explicit boundary — "report findings and stop" for questions, "go ahead and implement" for work — and you stop getting changes you didn't ask for.

    beginner
  • Tip · Prompting

    Claude will agree with you — ask it not to

    Claude leans towards agreeing with whatever you propose. Ask "is this a good idea?" and you'll usually hear yes. Ask it to argue the other side, or to find the three biggest problems, and you get the judgement you were actually after.

    beginner
  • Tip · Prompting

    Drop the persona — "You are a senior engineer…" adds nothing

    Role-play preambles were useful for older, weaker and are now dead weight. Replace the persona with three things that actually help — where to look, what "done" means, and how Claude should check itself.

    beginner
  • Tip · Prompting

    Say what you want, not what you don't — and stop shouting

    Two phrasing habits that quietly damage — framing instructions as prohibitions ("do NOT use tables") and emphatic shouting ("CRITICAL - you must ALWAYS"). Both work less well than plainly describing the outcome you want.

    beginner
  • Tip · Prompting

    Any output can level up into an interactive page — one sentence does it

    The upgrade that works on every report, CSV, or checklist Claude produces — "turn this into a single self-contained interactive HTML file I can open by double-clicking." No server, no installs, no IT ticket; the file travels by email and opens in any browser.

    beginner
  • Tip · Prompting

    "think harder" and `/effort` — turn up the reasoning when it matters

    Drop "think harder" or "ultrathink" into a and Claude reasons longer before answering. Use `/effort max` for hard debugging, architecture decisions, or anything where speed matters less than getting it right.

    both
  • Tip · Prompting

    Prompt in Greek (or any language) — Claude understands

    Claude is multilingual. in Greek when it's the language you can think in most clearly. The replies in the language you wrote — and code/identifiers stay in English, which is exactly what you want.

    beginner
  • Tip · Prompting

    Brief Claude like a colleague (the 5-line template)

    A one-line gets one-line-quality work. Brief Claude with Role + Goal + Task + Constraints + Context — the same shape you'd hand a colleague who's helping with the task.

    beginner
  • Tip · Prompting

    Bad vs. good openers

    A useful names the file, the symptom, the repro, and the desired action. Vague prompts get vague results. The five-part shape gives Claude what it needs on the first try.

    beginner
  • Tip · Prompting

    Correct with 'No, what I meant was…'

    When Claude misunderstood, lead the correction with 'No, what I meant was…' — it's shorter than re-explaining everything and Claude takes the cue cleanly.

    beginner
  • Tip · Prompting

    Describe the business value, not the steps

    Tell Claude what you want the outcome to be, not which functions to call. Claude is better at finding the right code path than you are at prescribing it.

    beginner
  • Tip · Prompting

    Iterate, don't restart

    When Claude's answer is wrong, don't `/clear` and start over. Tell it what's wrong and let it adjust — you keep all the context you've already built up.

    beginner
  • Tip · Prompting

    One thing per prompt

    A with five asks gets five mediocre answers. Break work into one focused step at a time, accept it, then move to the next.

    beginner
  • Tip · Prompting

    Pin the constraints, not the method

    When you really do need to constrain Claude, pin the *requirements* (must run in under 200ms, must work offline, must not break the public ) — not the implementation choices Claude can pick freely.

    both
  • Tip · Prompting

    Show, don't describe

    A screenshot of a broken UI beats four paragraphs of describing it. Drag the image into the — Claude will see what you see.

    both

Shortcuts

The keys and modes that put you back in the driver seat — stop, rewind, stash, and switch what Claude is allowed to do. Claude Code calls these Shortcuts too.

  • Tip · Shortcuts

    Seven keys that make Claude Code feel like a tool, not a chat box

    Beyond Esc there are about seven shortcuts that change how the feels — search your own history, park a half-written , open the editor, see what Claude actually did, and background a long task. All verified against 2.1.

    beginner
  • Tip · Shortcuts

    Stop the permission prompts properly — allow rules and deny rules

    Permission fatigue has a better cure than skipping entirely. /fewer-permission- pre-approves the safe read-only commands you already use, and /permissions lets you write deny rules that block things you never want touched — deny always wins.

    beginner
  • Tip · Shortcuts

    When Claude goes wrong, rewind — don't try to talk it out of the hole

    /rewind restores the code and conversation to an earlier point. It beats arguing with a that has gone off the rails. Critical caveat - rewind does not undo files deleted by ; that needs .

    beginner
  • Tip · Shortcuts

    `--dangerously-skip-permissions` — what it actually does

    The flag the team uses as its default Day-1 launch command. Skips read/ permission but does NOT skip code-edit reviews. Knowing the precise boundary defuses the "wait, isn't this dangerous?" anxiety.

    beginner
  • Tip · Shortcuts

    Permission modes — what Shift+Tab toggles

    Press Shift+Tab in the to cycle Claude's . Auto mode is now the default — Claude vets each action itself and only asks about the risky ones. is read-only; accept-edits lets edits through while still pause.

    beginner
  • Tip · Shortcuts

    Esc to stop Claude mid-action (the control key)

    When Claude is going down the wrong path, press Esc to halt it immediately. This single key prevents most "Claude just deleted everything" horror stories.

    beginner

Workflow & commands

How to drive Claude Code — plan-first, slash commands, sessions, subagents, hooks. The shortcuts that compound.

  • Tip · Workflow & commands

    `/powerup` — the built-in tour nobody tells you about

    ships with an interactive tour of its own features. Type /powerup in any and it walks you through the things most people never find. It is the single highest-value five minutes a newcomer can spend.

    beginner
  • Tip · Workflow & commands

    Don't swap models in the middle of a conversation

    Switching mid- is the standard move when you're stuck, and it's usually the wrong one — it costs you the cached context and carries the same wrong assumptions into the new model. Pick the model at the start; hand off to a fresh session if you need to change.

    both
  • Tip · Workflow & commands

    End a session with a handoff, not a summary

    A summary is written for a human and is nearly useless to the next . A handoff is written for Claude — it points at files, names what was already tried and failed, and says where to start. Ask for a handoff instead and the next morning starts warm.

    both
  • Tip · Workflow & commands

    Never let the session that wrote the code review the code

    Asking the that just built something to check its own work gets you a confident pass. The session carries every assumption it made while building. Open a fresh session, give it the diff and no history, and ask it to find what's wrong.

    beginner
  • Tip · Workflow & commands

    Six slash commands that solve problems you've been living with

    /btw asks a side question without derailing the , / forks the conversation, /recap tells you where you were, /context shows where your went, /doctor cleans up your setup, and /cost answers "what is this costing me".

    beginner
  • Tip · Workflow & commands

    The alt-tab test — find what Claude is missing in one workday

    For one day, note every time you switch away from to look something up. Each switch is a piece of context Claude didn't have. The list you end up with is a ranked to-do list for making it more useful — and you don't need to write any code to produce it.

    beginner
  • Tip · Workflow & commands

    You can revise too many times — keep the version that was working

    After a few rounds of "not quite, try again", quality often goes down rather than up — each pass makes cosmetic changes to satisfy the feedback. Recognise the plateau, go back to the best version, and switch tactics instead of iterating.

    beginner
  • Tip · Workflow & commands

    Don't check Claude's work by hand — make it prove it

    The strongest verification habit in the hub — after Claude produces an output, ask it to verify its own work with real commands (grep the quotes, recompute the sums, re-run the logic) and show you the output. Commands either pass or fail; assurances always pass.

    beginner
  • Tip · Workflow & commands

    Two skills worth knowing — `/team` for one sitting, `gsd-*` for the long haul

    Once you're past the plain- basics, the next decision is which orchestrator to reach for. /team runs a feature end-to-end in one sitting. -* manages a multi-week with persistent state. Pick by horizon, not by ambition.

    both
  • Tip · Workflow & commands

    `@file` and `!command` — two prompt shortcuts every newcomer misses

    Type `@` to reference a file by path (autocompletes), `!` to run a and embed its output. Both go straight into the . They cut the "let me copy this in" loop entirely.

    beginner
  • Tip · Workflow & commands

    Custom slash commands — turn repeated workflows into one keystroke

    If you find yourself typing the same three times, write it as a custom . Drop a file in `.claude/commands/`, invoke with `/yourname`. it and the whole team gets the shortcut.

    both
  • Tip · Workflow & commands

    Hooks for the non-negotiables — CLAUDE.md only asks nicely

    is advisory — Claude follows it about 80% of the time. are deterministic — they run every time, no exceptions. If something must happen 100% of the time (lint, security check, format), make it a hook.

    advanced
  • Tip · Workflow & commands

    Install `gh` (and other CLIs) — Claude knows how to use them

    Claude is fluent with tools like ``, `az`, `aws`, `jq`, ``. Install them, log in once, and Claude can read , query Azure resources, inspect — without a single server.

    both
  • Tip · Workflow & commands

    One session, one task — don't pile work into a long conversation

    Long mixed-topic confuse Claude and burn context. Finish the auth refactor, then `/clear` and start the cart bug fresh. Sessions are cheap; misremembering isn't.

    beginner
  • Tip · Workflow & commands

    Plan first, then execute — the workflow that pays for itself

    The single biggest mistake newcomers make is letting Claude jump straight into coding. Use to align on the approach first; the code you don't have to undo is the cheapest code you'll ever write.

    both
  • Tip · Workflow & commands

    Resume yesterday's session instead of starting from scratch

    You don't have to lose context overnight. `claude --continue` picks up your last ; `claude --resume` opens a session picker. The codebase knowledge Claude built up is worth more than the 30 seconds of re-grounding.

    beginner
  • Tip · Workflow & commands

    Subagents — delegate the file-reading so your main session stays clean

    A runs in its own , does its exploration, and reports a summary. Your main never loads the 40 files it had to read. Best for research-heavy tasks where the input is large and the answer is small.

    advanced
  • Tip · Workflow & commands

    When Claude does something wrong, add a line to CLAUDE.md

    Boris Cherny's ('s creator) golden rule — every time Claude makes the same mistake twice, add a one-liner to so it doesn't make it a third time. The file grows as your 's tribal knowledge gets written down.

    beginner

Context discipline

Keeping Claude focused — what stays in the conversation, what should be cleared.

  • Tip · Context discipline

    Editing CLAUDE.md mid-session does nothing — you have to restart

    is read once, when the starts. Adding a rule to it in the middle of a conversation has no effect until you start a new session — which is why people conclude CLAUDE.md "doesn't work" when it does.

    beginner
  • Tip · Context discipline

    Write CLAUDE.md rules for the agent, not for a human

    A rule like 'keep the code organised sensibly' means nothing to Claude; 'all SQL lives in database/' is actionable. The difference between a that works and one that gets ignored is almost always specificity — plus pruning the rules that have quietly gone stale.

    beginner
  • Tip · Context discipline

    Keep CLAUDE.md clean and your project tidy — why Claude hallucinates without project hygiene

    When Claude starts making things up, the bug is almost always in your , not the . Stale sections, leftover scratch files, orphaned READMEs — Claude reads everything and the noise leaks into its answers.

    beginner
  • Tip · Context discipline

    What a real CLAUDE.md looks like (worked example)

    A worked example of a -level , distilled from 's official guidance, Karpathy's viral behavioral rules, HumanLayer's "under 60 lines" guide, and the awesome-claude- curated index. Each section is annotated with why it earns its slot.

    beginner
  • Tip · Context discipline

    /compact and /clear — context-window discipline

    Don't carry irrelevant history. Use `/` to summarise the conversation when staying on-task, `/clear` to wipe and start fresh when switching tasks. Know that compacting trades detail for room — for work you care about, a handoff to a fresh preserves more.

    both

Compliance & safety

Working with bank data and external services — what is allowed and what is not.

  • Tip · Compliance & safety

    Always look at the diff before you accept

    Claude is fast and capable — treat it like a brilliant junior. Read what it's about to change before saying yes. Skipping the diff review is the most expensive habit a newcomer can pick up.

    beginner
  • Tip · Compliance & safety

    Real bank data at runtime: Azure OpenAI only

    If a tool will process real bank data at runtime, its calls MUST go through Azure OpenAI. The public and Gemini are off-limits for real customer data. This is data-residency, not a preference.

    advanced