Claude Code Cheat Sheet (cc.storyfox.cz)

by phasE89 188 comments 699 points
Read article View on HN

188 comments

[−] bobjordan 53d ago
Surprised that my most used flag --dangerously-skip-permissions is not on it
[−] embedding-shape 53d ago
Calling 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 53d ago
sorry, have you used Claude Code or are you a bot?

"--dangerously-skip-permissions" - is a flag, irrelevant to LLM

[−] embedding-shape 53d ago
Yes, use it every day :) And very much a human, AFAIK.

My point is that if you ask "Hey Claude, please write out all common and useful command line arguments into a commands.html file", the LLM that actually does that work, might ignore anything that says "dangerous" or gives that indication, because the LLM doesn't think potentially dangerous commands could be "common" and/or "useful". Hope my point makes sense now.

[−] johnisgood 53d ago
I wonder why that is. It is quick to tell me if something is dangerous and then continues to push back if I speak in favor of something that it considers dangerous.
[−] ticulatedspline 53d ago
Author stated they used Claude to compose the document. I believe they were alluding to the idea that Claude's own safety alignment prevented it from documenting the flag because it's called dangerous.
[−] unholiness 53d ago
The relevance is that Claude made this cheat sheet.
[−] rdevilla 53d ago
[flagged]
[−] nl 53d ago
How to tell if someone has never used Claude Code...
[−] yoyohello13 53d ago
It's also a great way to ensure humans will absolutely use it.
[−] phasE89 53d ago
Fixed! I knew I forgot something haha. Also I added/fixed other things based on complaints from this thread.
[−] PufPufPuf 53d ago
Don't forget to add "IS_SANDBOX=1", otherwise --dangerously-skip-permissions will refuse to operate as root (in VMs and such).
[−] dr_dshiv 53d ago
I’m literally wearing that tshirt right now…
[−] hirogrammer 53d ago
[dead]
[−] comboy 53d ago
Wow /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 53d 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

[−] pacoWebConsult 53d ago
Claude Code uses Bun. Anthropic acquired Bun in December. Bun is an alternative node runtime.
[−] heap_perms 52d ago
Apologies, the nodejs comment above therefore is wrong. I don't seem to be able to edit it anymore.
[−] comboy 53d ago
lol, 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 ..

[−] phasE89 53d ago
I 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

Ctrl+P to print. Works on mobile too.

[−] ltheanine 53d 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.

[−] sen 53d ago
Technically 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 53d ago
True. I had an iPhone with a broken digitizer so I just plugged a USB keyboard and mouse into it and it worked great.
[−] TeMPOraL 53d ago
If 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 53d ago
You can install "Hacker's Keyboard" on Android, it does have ctrl key.
[−] PufPufPuf 53d ago
Printing is possible on mobile, but I wouldn't go as far to say that it "works": https://ctrlv.link/8CWy
[−] mynegation 53d ago
Classical coreference resolution failure.
[−] qezz 53d ago
Nicely 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 53d ago
I 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 53d ago
So, we replace everyone with a thing that doesn't even know itself? Nice!
[−] winternewt 53d ago
What version of Claude Code is this? I don't have the /cost command mentioned here.
[−] alex_duf 53d ago
I 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

[−] shric 53d ago
It 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.
[−] Brajeshwar 53d ago
Are you OK opening up the source?
[−] mohsen1 53d ago
^ is the symbol for the Control key not
[−] airstrike 53d ago
FYI in US Letter Size it fits into a perfect 1 page...and a blank 2nd page. at least here on macOS firefox
[−] StingyJelly 53d ago
Try with headers and footers turned off
[−] tietjens 53d ago
Wow nice! Thank you.
[−] jvillasante 53d ago
Isn't this going to be stale in a week? Can you just tell Calude Code to generate a cheat sheet of itself?
[−] jpcompartir 53d ago
This looks like a Claude-generated SVG to me, is it not?
[−] anhner 53d ago
It'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

[−] phasE89 53d ago
It's automatically updated every day.
[−] jerrygoyal 53d ago
I recently switched from the CC terminal to the CC VS Code extension, and I like it better.
[−] kaizenb 53d ago
Same here. Work through UI, navigating, reviewing and editing repo files easily.
[−] consumer451 53d ago
It seems like it’s chronically behind though. One example, last I checked /btw only worked via CLI.
[−] nl 53d ago
I 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 52d ago
that's why I ultimately ended with CC terminal in VSCode. best of both worlds for me
[−] starburst 53d ago
Missing ctrl + s which stash your prompt so you can do slash command while being midway into writing a prompt
[−] Trufa 53d ago
can you pop?
[−] starburst 53d ago
Does it automatically after you enter the slash command
[−] nizsle 53d ago
I was told the hot new programming language was English
[−] Kim_Bruning 53d ago
I 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 53d ago
Not 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.
[−] Kim_Bruning 53d ago
Exactly, it's still programming.
[−] buzarchitect 53d ago
[dead]
[−] buzarchitect 53d ago
[dead]
[−] Gravityloss 53d ago
You can also program in other human languages.
[−] kxrm 53d ago
CMD + V to paste an image is wrong.

On Mac it's the same as Windows, CTRL + V.

You use CMD + V to paste text.

[−] zyz 53d ago
Yes, this also applies to some other commands as well: CTRL+G opens the external editor, not CMD+G on Mac.
[−] komali2 53d ago
I thought it was CTRL SHIFT V. Is that Linux only? Ctrl V sends some kind of funky key combo.
[−] antiframe 53d ago
Might depend on your terminal. On Konsole, I use C-v to paste images and C-S-v to paste text from my clipboard.
[−] sumedh 53d ago
Warp Terminal supports CMD + V on Mac to paste an image
[−] guessmyname 53d ago
There’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 53d ago
[−] PufPufPuf 53d ago
Curiously this is missing IS_SANDBOX=1 (allows running as root)
[−] bingemaker 53d ago
Nice work. Under "MCP" section, "Local" shouldn't be prepended with "~". It should just be .claude.json (per project)
[−] phasE89 53d ago
Thanks, fixed.
[−] AndyNemmity 53d ago
This 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

[−] williamcotton 53d ago
Undo (typing):

  Ctrl + _ (Ctrl + underscore)
Applies to the line editor outside of CC as well.
[−] bibimsz 53d ago
Thanks 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 53d ago
Shocking how far ahead Claude Code is from Codex on the CLI front.
[−] dataviz1000 53d ago
With 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.

[−] midasz 53d ago
It's just abhorrently slow, it does a lot but I always thouhgt TUI were fast but the amount of times it doesn't register my input is way too much.
[−] cute_boi 53d ago
codex is far better in terms of performance than claude code.
[−] yoyohello13 53d ago
Yet all the people OpenAI bought out recently say Codex is “the future”
[−] Razengan 53d ago
The Claude desktop app is way worse than the Codex desktop app

Even the AI itself is goofy. So many false positives during reviews immediately backtracked with "You're right, I'm sorry" in the next response.

It seems like there's either a paid pro-Anthropic PR campaign on HN because the comments fawning about it don't match my experience with Claude at all, or I keep getting the worse end of the A/B testing stick..

[−] jcims 53d ago
The 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

[−] dangoodmanUT 53d ago
I think this is the argument for UIs - it should be self-explanatory since it's singificantly simpler than an IDE
[−] AugustoCAS 53d ago
Are '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?

[−] prideout 53d ago
What does the "Session Picker" section refer to? Claude Code does not have a session picker, as far as I can tell.
[−] amai 53d ago
Why do we still need cryptic commands for an AI?
[−] thoughtpeddler 53d ago
Would be useful to know which of these overlap with the Claude Cowork desktop app.
[−] levocardia 53d ago
It's missing the most important CLI flag! (--dangerously-skip-permissions)
[−] artyom 53d ago
Wait, 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.

[−] pllbnk 51d ago
Honestly, 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?
[−] vasco 53d ago
Just ask it, this is not needed
[−] whalesalad 53d ago
needs a literal /dark mode
[−] mrtz 53d ago
that is quite helpful, thanks!
[−] hooloovoo_zoo 53d ago
Proposition: Every power user feature added lowers Anthropic’s market cap $1B and OpenAI’s $10B.
[−] ninininino 53d ago
This just exposes why UI like Codex, Cursor, T3 Code, Conductor, Intent, etc are necessary.

This is a bit intense.

[−] airstrike 53d ago
personally I'm a fan of "ultrathink squared"
[−] zmmmmm 53d ago
If only there was some kind of tool that could answer helpful questions about technology instead of needing a cheat sheet.
[−] dirteater_ 53d ago
Ctrl + S - Stash
[−] apoorvdarshan 53d ago
dangerously skip permission is all u need
[−] rk3000 53d ago
can you add a dark mode? its so bright.
[−] SilentM68 53d ago
Very useful :)
[−] chris_treqs_ai 52d ago
thank you! - this is great
[−] deep_noz 53d ago
this is a new vim cheatsheet
[−] drebosio 51d ago
cool. thank you
[−] BitsAndObjects 53d ago
Ah yes, the AGI will have many toggle switches, just like intelligent humans :,-)