11 ms·
Claude Code Cheat Sheet
- phasE89 7mo agoI use Claude Code daily but kept forgetting commands, so I had Claude research every feature from the docs and GitHub, then generate a printable A4 landscape HTML page covering keyboard shortcuts, slash commands, workflows, skills system, memory/CLAUDE.md, MCP setup, CLI flags, and config files. It's a single HTML file - Claude wrote it and I iterated on the layout. A daily cron job checks the changelog and updates the sheet automatically, tagging new features with a "NEW" badge. Auto-detects Mac/Windows for the right shortcuts. Shows current Claude Code version and a dismissable changelog of recent changes at the top. It will always be lightweight, free, no signup required: https://cc.storyfox.cz https://cc.storyfox.cz Ctrl+P to print. Works on mobile too.
- ltheanine 7mo ago> Ctrl+P to print. Works on mobile too. There’s something funny about this statement on a description of a key bind cheat sheet. I can’t seem to find ctrl on my phone and I think it may be cmd+p on mac.
- mynegation 7mo agoClassical coreference resolution failure.
- sen 7mo agoTechnically you could use a keyboard with any modern phone, so it’s not “wrong”, it’s just… extremely unlikely anyone would ever do it.
- qingcharles 7mo agoTrue. I had an iPhone with a broken digitizer so I just plugged a USB keyboard and mouse into it and it worked great.
- TeMPOraL 7mo agoIf your workstation setup is built around a screen with USB ports, to which you attach peripherals and optionally daisy-chain with other monitors, and then expose a single USB-C cable to plug your laptop in, there are very good chances this will work out-of-the-box with any Samsung flagship released in the last ~decade or so. (Yes, I occasionally do it on the go, whether at home or at work; typing on mobile sucks.)
- enedil 7mo agoYou can install "Hacker's Keyboard" on Android, it does have ctrl key.
- PufPufPuf 7mo agoPrinting is possible on mobile, but I wouldn't go as far to say that it "works": https://ctrlv.link/8CWy https://ctrlv.link/8CWy
- airstrike 7mo agoFYI in US Letter Size it fits into a perfect 1 page...and a blank 2nd page. at least here on macOS firefox
- StingyJelly 7mo agoTry with headers and footers turned off
- Brajeshwar 7mo agoAre you OK opening up the source?
- winternewt 7mo agoWhat version of Claude Code is this? I don't have the /cost command mentioned here.
- shric 7mo agoIt exists on my work enterprise account but not my personal account which is a monthly flat rate. I assume if I exceed my quota and I choose pay as I go then it will become available.
- alex_duf 7mo agoI use claude code with an API key and pay per token, and the /cost command is very helpful. And before people ask, it's because I have a very low usage and it's cheaper to pay per token. I'll have the odd month at $30, then nothing for a few months
- mohsen1 7mo ago`^` is the symbol for the Control key not `⌘`
- tietjens 7mo agoWow nice! Thank you.
- qezz 7mo agoNicely looking page, but has too many errors. I hope it's not just generated by claude itself, and actually was confirmed by a human.
- phasE89 7mo agoI double checked the end product, but I should have triple checked :) Fair enough. I am taking all the feedback into account and I am working on it today so all the issues are fixed and audited better for the future.
- dinkumthinkum 7mo agoSo, we replace everyone with a thing that doesn't even know itself? Nice!
- mrtz 7mo agothat is quite helpful, thanks!
- dylan604 7mo agoIs something updated daily a good target to be printable?
- deleted 7mo ago[deleted]
- erksa 7mo agoIf you align your printer and desk just right, youll have the new cheatsheet sliding onto your desk before Claude's even done updating itself.
- AIorNot 7mo agojust buy a mac mini, septup an openclaw instance to track changes on this and call your printer, also order new paper when it runs out :)
- kylehotchkiss 7mo agough we were promised a brave new world and still have the same crap printers
- munk-a 7mo agoYeah, I think it is. It's printable if you want to have a hard copy and it's up to you when to check for a new version. Since it's auto-updated (ideally) no matter when you visit the site you'll get the most up to date version as of that day. The issues (which I don't think this suffers from) would be if formatting it nice for printing made it less accurate or if updating it regularly made it worse for printing - these feel like two problems you can generally solve with one fix, they aren't opposed.
- keithnz 7mo agojust use claudes help, if you want to know keybinds, just do /keybinds (which is not in the cheat sheet)
- taejavu 7mo agoAsk Claude to set up a cron job to print it daily
- droidjj 7mo agoThe fact this needs to exist seems like a UX red flag.
- sunrunner 7mo ago> Ctrl-F "help" > Ctrl-F "h" > 0 results found Interesting set of shortcuts and slash commands.
- rtaylorgarlock 7mo agoReminds me of Vercel's Rauch talking about his aggressive 'any UX mistake is our fault, never the user's' model for evaluating UIX. (It is/was Guillermo who says that, right?)
- conception 7mo agoThis should be all of Information Technology’s take. Your computers get hacked - IT’s fault. Users complain about how hard your software is or that it breaks all the time - IT’s fault. The fact users deal with almost everything being objectively not very good if not outright bad is a testament to people adapting to bad circumstances more than anything.
- munk-a 7mo agoSimilar to prompting hacks to produce better results. If the machine we built for taking dumb input that will transform it into an answer needs special structuring around the input then it's not doing a good job at taking dumb input.
- rc1 7mo agoThis. TUIs are not the correct paradigm for agentic operations. They are too constrained, and too linear.
- skywhopper 7mo agoYou have a sad narrow point of view about what UX can be.
- 7mo ago
- kxrm 7mo agoCMD + V to paste an image is wrong. On Mac it's the same as Windows, CTRL + V. You use CMD + V to paste text.
- komali2 7mo agoI thought it was CTRL SHIFT V. Is that Linux only? Ctrl V sends some kind of funky key combo.
- antiframe 7mo agoMight depend on your terminal. On Konsole, I use C-v to paste images and C-S-v to paste text from my clipboard.
- zyz 7mo agoYes, this also applies to some other commands as well: CTRL+G opens the external editor, not CMD+G on Mac.
- sumedh 7mo agoWarp Terminal supports CMD + V on Mac to paste an image
- bibimsz 7mo agoThanks for putting this together! It's really nice to have a quick reference of all the features at a glance — especially since new features are being added all the time. Saves a lot of digging through docs.
- plantain 7mo agoShocking how far ahead Claude Code is from Codex on the CLI front.
- dataviz1000 7mo agoWith Claude Code I created an agent that spawns 5 copies of itself branching git worktrees from main branch using subagents so no context leaks into their instructions. The agent will every 60 seconds analyze the performance of each of the copies which run for about 40 minutes answering the question "what would you do different?". After they finish the task, the parent will update the .claude/ files enhancing itself reverting if the copies performed worse or enhancing if they performed better. Then it creates 5 copies of itself branching git worktrees from main branch .......... After 43 iterations, it can turn any website using any transport (WebSocket, GraphQL, gRPC-Web, SSE, JSON API (XHR), Encoded API (base64, protobuf, msgpack, binary), Embedded JSON, SSR, HLS/Media, Hybrid) into a typed JSON API in about 10 - 30 minutes. Next I'm going to set it loose on 263 GB database of every stock quote and options trade in the past 4 years. I bet it achieves successful trading strategies. Claude Code will be the first to AGI.
- sroussey 7mo agoWhere is 263 GB database of every stock quote and options trade in the past 4 years?
- collinvandyck76 7mo agoclaude had a time loop error and was trained on this post
- dataviz1000 7mo agohttps://massive.com/docs/flat-files/quickstart https://massive.com/docs/flat-files/quickstart I use TimescaleDB which is fast with the compression. People say there are better but I don’t think I can fit another year of data on my disk drive either or
- dangoodmanUT 7mo agoI think this is the argument for UIs - it should be self-explanatory since it's singificantly simpler than an IDE
- keithnz 7mo agonot really, mostly its self explanatory, it has poweruser things that are discoverable within a few minutes of reading the help. Weirdly the cheat sheet is actually missing things that you can find inside claudes help like /keybinds .
- alwillis 7mo ago> I think this is the argument for UIs To quote The Godfather II, "This is the business we have chosen." The most popular and important command line tools for developers don't have the consistency that Claude Code's command line interface does. One reason Claude Code became so popular is because it worked in the terminal, where many developers spend most of their time. But using tools like Claude Code's CLI is a daily occurrence for many developers. Some IDE's can be just as difficult to use. For people who don’t use the terminal, Claude Code is available in the Claude desktop app, web browsers and mobile phones. There are trade-offs, but to Anthropic’s credit, they provide these options.
- joegibbs 7mo agoI used to think UIs would be better for agents, but I changed my mind: UIs suit traditional software very well because there are only X actions that can be performed - it makes sense that if you have an image converter that can take X, Y and Z formats and convert them to A, B and C then you should have a UI that limits what the user can do, preventing them from making mistakes and making it obvious what's possible. But for something like Claude Code there are unlimited things you can do with it, so it's better for them to accept a free-form input.
- therealdrag0 7mo agoHuh? Did you see the cheat sheet? Most of it is a UI of the terminal and shortcut variety, and much of it is exposed in other IDEs as a traditional UI.
- guessmyname 7mo agoThere’s actually a lot more environment variables: edit: removed obnoxious list in favor of the link that @thehamkercat shared below. My favorite is IS_DEMO=1 to remove a little bit of the unnecessary welcome banner.
- thehamkercat 7mo agohttps://code.claude.com/docs/en/env-vars https://code.claude.com/docs/en/env-vars
- PufPufPuf 7mo agoCuriously this is missing IS_SANDBOX=1 (allows running as root)
- zmmmmm 7mo agoIf only there was some kind of tool that could answer helpful questions about technology instead of needing a cheat sheet.
- levocardia 7mo agoIt's missing the most important CLI flag! (--dangerously-skip-permissions)
- kstenerud 7mo agoIf you're gonna do that, make sure you're sandboxing it with something like https://github.com/kstenerud/yoloai https://github.com/kstenerud/yoloai or eventually you'll have a bad time!
- ffsm8 7mo agoPersonally I usually just create a devcontainer.json, the vscode support for that is great and I don't really mind if it fucked up the ephemeral container. Which for the record : hasn't actually happened since I started using it like that.
- kstenerud 7mo agoHey thanks for this! I hadn't thought about leveraging devcontainer.json, but it's a damn good idea. I'm building yoloAI for exactly this use case so I hope you don't mind if I steal it ;-) One thing to be aware of with the pure devcontainer approach: your workspace is typically bind-mounted from the host, so the agent can still destroy your real files. Network access is also unrestricted by default. The container gives you process isolation but not file or network safety. I'm paranoid about rogue AIs, so I try to make everything safe-by-default: the agent works on a copy of your workdir, you review a unified diff when it's done, and you apply only what you want. So your originals are NEVER touched until you explicitly say so, and network can be isolated to just the agent's required domains. Anyway, here's what I think will work as my next yoloAI feature: a --devcontainer flag that reads your existing devcontainer.json directly and uses it to set up the sandbox environment. Your image, ports, env vars, and setup commands come from the file you already have. yoloAI just wraps it with the copy/diff/apply safety layer. For devcontainer users it would be zero new configuration :)
- anotheryou 7mo agoAny actual reports of big fuckups?
- ninininino 7mo agoThis just exposes why UI like Codex, Cursor, T3 Code, Conductor, Intent, etc are necessary. This is a bit intense.
- Upvoter33 7mo agoso is the Unix command line ...
- agos 7mo agoNot exactly the pinnacle of usability, to be fair
- skywhopper 7mo agoIt’s not as if you need to know every keystroke and command to use the tool. Nor are all the config files and options not a thing in a GUI. There’s lots of inline help and tips in the CLI interface, and you can learn new features as you go.
- jcims 7mo agoThe link to the changelog on the page got me wondering what the change history looks like (as best we can see). I asked chatgpt to chart the number of new bullet points in the CHANGELOG.md file committed by day. I did nothing to verify accuracy, but a cursory glance doesn't disagree: https://imgur.com/a/tky9Pkz https://imgur.com/a/tky9Pkz
- whalesalad 7mo agoneeds a literal /dark mode
- williamcotton 7mo agoUndo (typing): Ctrl + _ (Ctrl + underscore) Applies to the line editor outside of CC as well.
- dirteater_ 7mo agoCtrl + S - Stash
- hooloovoo_zoo 7mo agoProposition: Every power user feature added lowers Anthropic’s market cap $1B and OpenAI’s $10B.
- artyom 7mo agoWait, why do we need chat sheets for this like it's (gasp!) a programming language, tool or IDE? it's almost like if the thing is not intelligent at all and just another abstraction on top of what we already had.
- taejavu 7mo agoC is "just another abstraction on top of what we already had" (Assembly). Doesn't mean it's not useful
- qingcharles 7mo agoThis is your new programming language in 2026.
- thienannguyencv 6mo ago[dead]
- vasco 7mo agoJust ask it, this is not needed
- SOLAR_FIELDS 7mo agoClaude is actually hilariously bad at knowing about itself. But if you have the secret knowledge that there is a skill on how to use Claude baked into Claude code you can invoke it. Then it’s really pretty decent
- airstrike 7mo agopersonally I'm a fan of "ultrathink squared"
- system2 7mo agoI don't think ultrathink works anymore.
- rpastuszak 7mo agoI thought it came back in a recent release, just before/around the time we got Opus with a longer context window by default.
- airstrike 7mo agoit came back
- bingemaker 7mo agoNice work. Under "MCP" section, "Local" shouldn't be prepended with "~". It should just be `.claude.json (per project)`
- phasE89 7mo agoThanks, fixed.
- jerrygoyal 7mo agoI recently switched from the CC terminal to the CC VS Code extension, and I like it better.
- kaizenb 7mo agoSame here. Work through UI, navigating, reviewing and editing repo files easily.
- consumer451 7mo agoIt seems like it’s chronically behind though. One example, last I checked /btw only worked via CLI.
- nl 7mo agoI agree it is behind - but usually only a few days. I'm a big fan of the VS Code add-in. Despite the current narrative that IDEs are dead, I find the ability to look at multiple things at once is works much better in some kind of.. GUI editing tool.. than just using a terminal.
- jaytxng 6mo agothat's why I ultimately ended with CC terminal in VSCode. best of both worlds for me
- SilentM68 7mo agoVery useful :)
- jee599 7mo ago[dead]
- pugchat 7mo ago[dead]
- apoorvdarshan 7mo agodangerously skip permission is all u need
- rk3000 7mo agocan you add a dark mode? its so bright.
- maxbeech 7mo ago[dead]
- BANRONFANTHE 7mo ago[dead]
- amai 7mo agoWhy do we still need cryptic commands for an AI?
- wongarsu 7mo agoMany of those you don't need. For example Claude can switch to plan mode itself, either because you tell it to or because the model thinks it's useful. I still prefer using shift+tab to set my preferred mode before sending the message. It's a mix of token/time-efficiency and control. Some others like permissions or mcp servers are things you don't want the model to be able to edit. Allowing the model to change its own security settings would make those settings moot.
- steve-atx-7600 7mo agoI think Claude strikes the right balance in that it works well by default - default models, now default agent delegation, planning. But, obviously for power users, you can tweak settings as needed. Worst case if you have a problem, you can just ask Claude. Also, by default, you see tips when starting up Claude.
- AugustoCAS 7mo agoAre 'project rules' a thing? > .claude/rules/.md Project rules > ~/.claude/rules/.md User rules or is it just a way to organise files to be imported from other prompts?
- theshrike79 7mo agoYes, they're even documented on the official site: https://code.claude.com/docs/en/memory#organize-rules-with-claude/rules/ https://code.claude.com/docs/en/memory#organize-rules-with-c...
- michaelmoreira 7mo ago[dead]
- winsonaibuilder 7mo ago[dead]
- jvillasante 7mo agoIsn't this going to be stale in a week? Can you just tell Calude Code to generate a cheat sheet of itself?
- jpcompartir 7mo agoThis looks like a Claude-generated SVG to me, is it not?
- anhner 7mo agoIt's 100% claude-generated html. I asked it to create some other cheat sheet for me and the template was identical. Edit: https://news.ycombinator.com/item?id=47495528 https://news.ycombinator.com/item?id=47495528
- deleted 7mo ago[deleted]
- phasE89 7mo agoIt's automatically updated every day.
- comboy 7mo agoWow /insights is genuinely useful, perhaps CLI should be pushing that as a tip, if one has enough sessions, instead of keep nagging me about the frontend developer skill which I already have installed In general CLI could be more reliable and responsive though, it's a text based env yet sometimes feel like running windows 95 on 386dx It seems clear from the insights that some model is marking failure cases when things went wrong and likely reporting home, so that should be extremely valuable to Anthropic
- heap_perms 7mo ago> it's a text based env yet sometimes feel like running windows 95 on 386dx They use nodejs and React. Yes, for real. https://xcancel.com/trq212/status/2014051501786931427 https://xcancel.com/trq212/status/2014051501786931427
- comboy 7mo agolol, yeah > We’ve rewritten Claude Code’s terminal rendering system to reduce flickering by roughly 85%. tells you all you need to know and I keep running it remotely through tmux, that explains so many things edit: if they are writing it in react anyway (sic!) maybe we could at least get a web interface, skipping mapping it to terminal output part ..
- pacoWebConsult 7mo agoClaude Code uses Bun. Anthropic acquired Bun in December. Bun is an alternative node runtime.
- heap_perms 6mo agoApologies, the nodejs comment above therefore is wrong. I don't seem to be able to edit it anymore.
- JulianPembroke 7mo ago[dead]
- bobjordan 7mo agoSurprised that my most used flag `--dangerously-skip-permissions` is not on it
- dr_dshiv 7mo agoI’m literally wearing that tshirt right now…
- embedding-shape 7mo agoCalling something "dangerous" (or even "illegal") is a great way to get LLMs to ignore it, they bend over backwards to avoid anything that could be potentially "dangerous" even when you acknowledge the risks. I'm guessing it's the "safety alignment" or whatever being done in a very extreme way.
- throwaw12 7mo agosorry, have you used Claude Code or are you a bot? "--dangerously-skip-permissions" - is a flag, irrelevant to LLM
- nl 7mo agoHow to tell if someone has never used Claude Code...
- deleted 7mo ago[deleted]
- rdevilla 7mo ago[flagged]
- unholiness 7mo agoThe relevance is that Claude made this cheat sheet.
- ticulatedspline 7mo ago
- BitsAndObjects 7mo agoAh yes, the AGI will have many toggle switches, just like intelligent humans :,-)
- bamwor 7mo ago[dead]
- nizsle 7mo agoI was told the hot new programming language was English
- Kim_Bruning 7mo agoI tell people that too! It really is. You can actually program in english now, and you can run it interpreted and compiled. Most recent LLMs are almost reliable enough to just have them go at it. (Though I'd recommend sandboxing or ask-for-permissions just to be sure yet :-P )
- trio8453 7mo agoNot quite - English might be the interface but knowing English isn't enough to understand what's happening, what to ask for, how to verify and guide the output.
- buzarchitect 6mo ago[dead]
- buzarchitect 6mo ago[dead]
- Kim_Bruning 6mo agoExactly, it's still programming.
- Gravityloss 7mo agoYou can also program in other human languages.
- deleted 6mo ago[deleted]
- deep_noz 7mo agothis is a new vim cheatsheet
- philbitt 7mo ago[dead]
- AndyNemmity 7mo agoThis is why I created the /do router. I don't want to have to think about what options there are, I want everything automatically routed so I can be blissfully unaware. https://github.com/notque/claude-code-toolkit https://github.com/notque/claude-code-toolkit
- starburst 7mo agoMissing ctrl + s which stash your prompt so you can do slash command while being midway into writing a prompt
- edwardsrobbie 7mo ago[flagged]
- prideout 6mo agoWhat does the "Session Picker" section refer to? Claude Code does not have a session picker, as far as I can tell.
- joombaga 6mo agoThey mean `/resume`. But the shortcuts are Ctrl+B to toggle branch, Ctrl+V to preview, and Ctrl+R to rename, at least on my machine.
- spranab 6mo ago[dead]
- thoughtpeddler 6mo agoWould be useful to know which of these overlap with the Claude Cowork desktop app.
- deleted 6mo ago[deleted]
- chris_treqs_ai 6mo agothank you! - this is great
- drebosio 6mo agocool. thank you
- deleted 6mo ago[deleted]
- pllbnk 6mo agoHonestly, what's the purpose of things like this when anyone can open Claude Code and ask it to create a cheat sheet of itself and even present it in any way you deem best for them?