Claude Code Cheat Sheet

(cc.storyfox.cz)

150 points | by phasE89 4 hours ago

17 comments

  • levocardia 1 hour ago
    It's missing the most important CLI flag! (--dangerously-skip-permissions)
  • plantain 2 hours ago
    Shocking how far ahead Claude Code is from Codex on the CLI front.
    • dataviz1000 1 hour 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.

      • the__alchemist 5 minutes ago
        Let us perform a thought experiment. You do this. Many others, enthusiastic about both LLMs, and stocks/options, have similar ideas. Do these trading strategies interfere with each other? Does this group of people leveraging Claude for trading end up doing better in the market than those not? What are your benchmarks for success, say, a year into it? Do you have a specific edge in mind which you can leverage, that others cannot?
      • abigail95 13 minutes ago
        you can have it build an execution engine that interfaces with any broker with minimal effort.

        how do you have it build a "trading strategy"? it's like asking it to draw you the "best picture".

        it will ask you so many questions you end up building the thing yourself.

        if you do get something, given that you didn't write it and might not understand how to interpret the data its using - how will you know whether it's trading alpha or trading risk?

        • dataviz1000 0 minutes ago
          This is where I’m at now with getting Claude to iterate over a problem. https://github.com/adam-s/intercept?tab=readme-ov-file#the-s...

          I can care less about scraping and web automation and I will likely never use that application.

          I am interested in solving a certain class of problems and getting Claude to build a proxy API for any website is very similar to getting Claude to find alpha. That loop starts with Claude finding academic research, recreating it, doing statistical analysis, refining, the agent updating itself, and iterate.

          Claude building proxy JSON api for any website and building trading strategies is the same problem with the same class of bugs.

      • bnteke 45 minutes ago
        cringe
      • sroussey 49 minutes ago
        Where is 263 GB database of every stock quote and options trade in the past 4 years?
        • dataviz1000 21 minutes ago
          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

          • komali2 11 minutes ago
            Compression doesn't really explain the whole picture...

            Where'd you get the data itself? You sense I suppose everyone's skepticism here.

        • collinvandyck76 24 minutes ago
          claude had a time loop error and was trained on this post
      • TacticalCoder 19 minutes ago
        > Next I'm going to set it loose on 263 GB database of every stock quote and options trade in the past 4 years.

        Options quotes alone for US equities (or things that trades as such, like ADS/ADR) represent 40 Gbit per second during options trading hours. There are more than 60 million trades (not quotes, only trades) per day. As the stock market is opened approx 250 days per year (a bit more), that's more than 60 billion actual options trades in 4 years. If we're talking about quotation for options, you can add several orders of magnitude to these numbers.

        And I only mentioned options. How do you store "every stock quote and options trade in the past 4 years" in 263 GB!?

        • jtbaker 13 minutes ago
          > And I only mentioned options. How do you store "every stock quote and options trade in the past 4 years" in 263 GB!?

          I think this would be pretty straightforward for Parquet with ZSTD compression and some smart ordering/partitioning strategies.

    • yoyohello13 44 minutes ago
      Yet all the people OpenAI bought out recently say Codex is “the future”
      • andyferris 19 minutes ago
        I guess it would be too obvious a lie to say Codex is "the present"?
      • yberreby 28 minutes ago
        Wouldn't be a very good look if they did anything else.
  • dangoodmanUT 2 hours ago
    I think this is the argument for UIs - it should be self-explanatory since it's singificantly simpler than an IDE
    • alwillis 34 minutes 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 54 minutes 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 .
  • jcims 1 hour 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

  • hooloovoo_zoo 1 hour ago
    Proposition: Every power user feature added lowers Anthropic’s market cap $1B and OpenAI’s $10B.
  • guessmyname 2 hours 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.

  • phasE89 4 hours 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
      > 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
        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
        Classical coreference resolution failure.
  • bibimsz 2 hours 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.
  • williamcotton 1 hour ago
    Undo (typing):

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

    • komali2 8 minutes ago
      I thought it was CTRL SHIFT V. Is that Linux only? Ctrl V sends some kind of funky key combo.
  • dirteater_ 1 hour ago
    Ctrl + S - Stash
  • mrtz 3 hours ago
    that is quite helpful, thanks!
  • zmmmmm 1 hour ago
    If only there was some kind of tool that could answer helpful questions about technology instead of needing a cheat sheet.
  • whalesalad 1 hour ago
    needs a literal /dark mode
  • droidjj 3 hours ago
    The fact this needs to exist seems like a UX red flag.
    • keithnz 53 minutes ago
      it doesn't need to exist, its all in claudes help, and easily discoverable.
    • rc1 2 hours ago
      This. TUIs are not the correct paradigm for agentic operations. They are too constrained, and too linear.
    • munk-a 2 hours 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
      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
        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
      > Ctrl-F "help"

      > Ctrl-F "h"

      > 0 results found

      Interesting set of shortcuts and slash commands.

    • skywhopper 1 hour ago
      You have a sad narrow point of view about what UX can be.
      • droidjj 51 minutes ago
        Enlighten me?
  • dylan604 3 hours ago
    Is something updated daily a good target to be printable?
    • munk-a 2 hours 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
      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 51 minutes 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
      ugh we were promised a brave new world and still have the same crap printers
    • AIorNot 3 hours 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 1 hour ago
    This just exposes why UI like Codex, Cursor, T3 Code, Conductor, Intent, etc are necessary.

    This is a bit intense.

    • skywhopper 1 hour 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 1 hour ago
      so is the Unix command line ...