Claude Code Cheat Sheet

(cc.storyfox.cz)

135 points | by phasE89 4 hours ago ago

42 comments

  • levocardia an hour ago ago

    It's missing the most important CLI flag! (--dangerously-skip-permissions)

  • plantain 2 hours ago ago

    Shocking how far ahead Claude Code is from Codex on the CLI front.

    • dataviz1000 42 minutes ago 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.

      • bnteke 13 minutes ago ago

        cringe

      • sroussey 17 minutes ago ago

        Where is 263 GB database of every stock quote and options trade in the past 4 years?

    • yoyohello13 12 minutes ago ago

      Yet all the people OpenAI bought out recently say Codex is “the future”

  • hooloovoo_zoo 37 minutes ago ago

    Proposition: Every power user feature added lowers Anthropic’s market cap $1B and OpenAI’s $10B.

  • jcims an hour ago 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

  • guessmyname 2 hours ago 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.

  • bibimsz 2 hours ago 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.

  • phasE89 4 hours ago 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 2 hours ago 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 2 hours ago 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.

      • mynegation 2 hours ago ago

        Classical coreference resolution failure.

  • dangoodmanUT 2 hours ago ago

    I think this is the argument for UIs - it should be self-explanatory since it's singificantly simpler than an IDE

    • alwillis 2 minutes ago 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.

    • keithnz 23 minutes ago ago

      not 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 .

  • williamcotton an hour ago ago

    Undo (typing):

      Ctrl + _ (Ctrl + underscore)
    
    Applies to the line editor outside of CC as well.
  • kxrm 2 hours ago 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.

  • dirteater_ an hour ago ago

    Ctrl + S - Stash

  • mrtz 3 hours ago ago

    that is quite helpful, thanks!

  • whalesalad an hour ago ago

    needs a literal /dark mode

  • zmmmmm an hour ago ago

    If only there was some kind of tool that could answer helpful questions about technology instead of needing a cheat sheet.

  • droidjj 3 hours ago ago

    The fact this needs to exist seems like a UX red flag.

    • keithnz 21 minutes ago ago

      it doesn't need to exist, its all in claudes help, and easily discoverable.

    • rc1 2 hours ago ago

      This. TUIs are not the correct paradigm for agentic operations. They are too constrained, and too linear.

    • munk-a 2 hours ago ago

      Similar 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.

    • rtaylorgarlock 2 hours ago ago

      Reminds 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 2 hours ago ago

        This 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.

    • sunrunner 3 hours ago ago

      > Ctrl-F "help"

      > Ctrl-F "h"

      > 0 results found

      Interesting set of shortcuts and slash commands.

    • skywhopper 31 minutes ago ago

      You have a sad narrow point of view about what UX can be.

      • droidjj 20 minutes ago ago

        Enlighten me?

  • dylan604 3 hours ago ago

    Is something updated daily a good target to be printable?

    • munk-a 2 hours ago ago

      Yeah, 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.

    • erksa 3 hours ago ago

      If you align your printer and desk just right, youll have the new cheatsheet sliding onto your desk before Claude's even done updating itself.

    • keithnz 19 minutes ago ago

      just use claudes help, if you want to know keybinds, just do /keybinds (which is not in the cheat sheet)

    • kylehotchkiss 3 hours ago ago

      ugh we were promised a brave new world and still have the same crap printers

    • AIorNot 3 hours ago ago

      just 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 :)

  • ninininino an hour ago ago

    This just exposes why UI like Codex, Cursor, T3 Code, Conductor, Intent, etc are necessary.

    This is a bit intense.

    • skywhopper 32 minutes ago ago

      It’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.

    • Upvoter33 32 minutes ago ago

      so is the Unix command line ...