Claude Code Unpacked : A visual guide

(ccunpacked.dev)

306 points | by autocracy101 3 hours ago

28 comments

  • cjlm 0 minutes ago
    I prefer this mapping from Nikita @ CosmoGraph: https://run.cosmograph.app/public/dfb673fc-bdb9-4713-a6d6-20...
  • Andebugulin 1 hour ago
    If it was 2020, it would be hard to imagine that after some hours/days you getting a visual representation of the leak with such detailed stats lol
    • makapuf 49 minutes ago
      How was this generated ? I'm quite sure "with ai/claude code" but what are the actual steps ?
      • rzmmm 12 minutes ago
        For the animations specifically, it's using Motion (fka Framer Motion) Javascript library. If you describe some animations from the site to an LLM and ask it to use Framer motion, you get very similar results. The creator likely just prompted for a while until they were happy with the outcome.
      • franze 30 minutes ago
        [dead]
  • dheerajmp 2 hours ago
    Feel free to add this to Awesome Claude code. https://github.com/rosaboyle/awesome-cc-oss
  • stingraycharles 2 hours ago
    I guess they really do eat their own dogfood and vibe code their way through it without care for technical debt? In a way, it’s a good challenge, but it’s fairly painful to watch the current state of the project (which is about a year old now, so it should be in prime shape).
    • brabel 1 hour ago
      > is about a year old now, so it should be in prime shape

      A 1yo project may be in good shape if written by just one dev, maybe a few. But if you have many devs, I can guarantee it will be messy and buggy. If anything, at 1yo it is probably still full of bugs because not enough time has elapsed for people to run into them.

      • mattmanser 15 minutes ago
        It's only 510k LoC, at ~100 lines of code a day for a year, this code base would take 23 engineers a year to write. That's for 220 working days in somewhere civilized.

        And I'm sure we all know that when working on a greenfield project you can produce a lot more LoC per day than maintaining a legacy one.

        Given that vibe code is significantly more verbose, you're probably talking about ~15 engineers worth of code?

        I know that's all silly numbers, but this is just attempting to give people some context here, this isn't a massive code base. I've not read a lot of it, so maybe it's better than the verbose code I see Claude put out sometimes.

    • coldtrait 2 hours ago
      Boris Cherny, the creator of Claude Code said he uses CC to build CC.
      • Cthulhu_ 1 hour ago
        Which makes for an interesting thought / discussion; code is written to be read by humans first, executed by computers second. What would code look like if it was written to be read by LLMs? The way they work now (or, how they're trained) is on human language and code, but there might be a style that's better for LLMs. Whatever metric of "better" you may use.

        Just a thought experiment, I very much doubt I'm the first one to think of it. It's probably in the same line of "why doesn't an LLM just write assembly directly"

        • syphia 44 minutes ago
          LLMs read and write human-code because humans have been reading and writing human-code. The sample size of assembly problems is, in my estimate, too small for LLMs to efficiently read and write it for common use cases.

          I liken it to the problem of applying machine learning to hard video games (e.g. Starcraft). When trained to mimic human strategies, it can be extremely effective, but machine learning will not discover broadly effective strategies on a reasonable timescale.

          If you convert "human strategies" to "human theory, programming languages, and design patterns", perhaps the point will be clear.

          But: could the ouroboric cycle of LLM use decay the common strategies and design patterns we use into inexplicable blobs of assembly? Can LLMs improve at programming if humans do not advance the theory or invent new languages, patterns, etc?

        • tempay 39 minutes ago
          > It's probably in the same line of "why doesn't an LLM just write assembly directly"

          My suspicion is that the "language" part of LLMs means they tend to prefer languages which are closer to human languages than assembly and benefit from much of the same abstractions and tooling (hence the recent acquisition of bun and astral).

      • stingraycharles 19 minutes ago
        Yes but my point was that they seem to explicitly not care about code quality and/or the insane amount of bloat, and seem to just want the LLM to be able to deal with it.
        • lukaslalinsky 16 minutes ago
          I've heard somewhere that they have roughly 100% code churn every few months, so yes, they unfortunately don't care about code quality. It's a shame, because it's still the best coding agent, in my experience.
          • stingraycharles 6 minutes ago
            Yes, but as I said, it’s in a way the ultimate form of dogfooding: ideally they’ll be able to get the LLM smart enough to keep the codebase working well long-term.

            Now whether that’s actually possible is a second topic.

  • swyx 1 hour ago
    > also related: https://www.ccleaks.com

    This deployment is temporarily paused

  • restlessforge 3 hours ago
    Okay those "hidden features" are amazing, especially the cross-session referencing. I hope we can look forward to that in the future

    Also I definitely want a Claude Code spirit animal

    • jwilliams 2 hours ago
      It's live! If you're on the latest cc you can use /buddy now.
      • jen729w 2 hours ago
        It's a ridiculous folly. I've already lost a well-constructed question because I accidentally tabbed into my pointless 'buddy'.

        (Yes, I know I can turn it off. I have.)

        • binocarlos 1 hour ago
          I find Claude Code features fall into 2 categories, "hmmmm that could be actually useful" vs "there is more kool aid where that came from"
      • Nevermark 2 hours ago
        Ok! First prompt, obviously:

        “Complete thyself.”

        And I want an octopus. Who orchestrates octopuses.

  • nitnelave 10 minutes ago
    Ah, good well-architected code, finally... With most of the code in utils/other :D
  • fsniper 6 minutes ago
    Source leak or free code review? I can say that there is no bad publicity.
  • sibtain1997 2 hours ago
    Kairos and auto-dream are more interesting than anything in the agent loop section. Memory consolidation between sessions is the actual unsolved problem. The rest is just plumbing tbh
    • giancarlostoro 1 hour ago
      Projects like Beads help with memory consolidation by making it somewhat moot, since it stays "offline" and can be recollected at any moment.
  • jatins 2 hours ago
    There's this weird thing about AI generated content where it has the perfect presentation but conveys very little.

    For example the whole animation on this website, what does it say beyond that you make a request to backend and get a response that may have some tool call?

    • roughly 2 hours ago
      Also it's just randomly incorrect in places. For instance, it lists "fox" as one of the "Buddy" species, but that's not in the code.
      • autocracy101 2 hours ago
        That's been corrected, I did another fact checking pass!
        • dare944 1 minute ago
          Another? Why weren't all the facts checked on the first pass?
    • IsTom 1 hour ago
      When you're picking most likely tokens, you get least surprising tokens, ones with least entropy and least information per token.
    • autocracy101 2 hours ago
      That's fair. The site isn't meant to be a deep technical dive, it's more of a visual high-level guide of what I've curated while exploring the codebase while assisted by AI, 500k loc codebase is just too much to sift through in a short amount of time.
    • siva7 2 hours ago
      Really Weird but then it's so easy spot AI text by this pattern
  • vivzkestrel 2 hours ago
    would be nice if the transformers code for one of these frontier LLM models got leaked, HN will have a field day with a reveal like that
    • loveparade 2 hours ago
      I doubt there is anything special about the transformer code the frontier labs use. The only thing proprietary in it are probably the infrastructure-specific optimizations for very large scale distributed training and some GPU kernel tricks. The real moat is the training data, especially the RLHF/finetuning data and verifiable reward environments, and the GPU clusters of course.

      The open source models are quite close, and they'd probably be just as good with the equivalent amount of compute/data the frontier labs have access to.

      • dgb23 1 hour ago
        That’s what I‘m thinking as well.

        However, I assume that usage data could be increasingly valuable as well. That will likely help the big commercial cloud models to maintain a head start for general use.

  • rhofield 1 hour ago
    Really nice visualisation of this, makes understanding the flow at a high levle pretty clear. Also the tool system and command catalog, particularly the gated ones are super interesting.
  • jen729w 2 hours ago
    Is it just me or do I not find the Claude Code application that fascinating?

    I use it all day and love it. Don't get me wrong. But it's a terminal-based app that talks to an LLM and calls local functions. Ooookay…

    • 59nadir 1 hour ago
      I think it's good that it's out there, and I wonder why Anthropic have been keeping it closed source; clearly they can't possibly think that the CC source code is a competitive advantage...?

      Agents in general are easy to make, and trivial to make for yourself especially, and the result will be much better than what any of the big providers can make for you.

      `pi` with whatever commands/extensions you want to make for yourself is better than CC if you really don't want to go through the trouble of making your own thing.

      • ariwilson 44 minutes ago
        why do you think agents you make yourself will be better for you? integration with tooling that you prefer? your local dev setup built in?

        curious as i haven't gotten around to writing my own agent yet

    • dgb23 53 minutes ago
      That’s what every agent does. They are fundamentally simple.

      But you can do a lot of interesting things on top of this. I highly recommend writing an agent and hooking it up to a local model.

    • parasti 2 hours ago
      I feel the same way. Given it's AI-written, looking at the code isn't even worth it to me. I would rather read a blog post about how they develop it day to day.
    • j45 2 hours ago
      Clever architecture often can still beat clever programming.
  • p2detar 1 hour ago
    So it does use ripgrep and not unix grep. [0] I knew it from some other commenters here on HN, but it's nice to see it in the source as well.

    0 - https://github.com/zackautocracy/claude-code/blob/main/src/u...

  • lastdong 2 hours ago
    I hope /Buddy is ported across to OpenCode.
  • simonreiff 2 hours ago
    Nice site. I might suggest moving SendMessage to the Hidden Features as they don't appear to have implemented a ReadMessage or ListMessages tools.
  • m132 2 hours ago
    I mean, I get it: vibe-coded software deserves vibe-coded coverage. But I would at least appreciate it if the main part of it, the animation, went at a speed that at least makes it possible to follow along and didn't glitch out with elements randomly disappearing in Firefox...

    How is this on the front page?

    • brabel 1 hour ago
      It's on the front page because it looks really cool. You can complain about it being vibe coded, but it still looks good. If you ask Claude to allow the user to slow down the animation, it can do that quite easily, that's just not a problem caused by vibe coding. And I'm on FF and didn't notice anything glitching out.
  • ramon156 2 hours ago
    I expect dozens more "research articles" that

    - find nothing - still manage to fill entire lages - somehow have a similar structure - are boring as fuck

    At least this one is 3/4, the previous one had BINGO.

  • fartfeatures 1 hour ago
    Ccleaks is down?
  • mdavid626 2 hours ago
    How the hell is it 500k lines?
    • twsted 2 hours ago
      It is vibe coded.
  • inside_story 2 hours ago
    cool Archaeologization Collection Output
  • jruohonen 2 hours ago
    Thanks, I'll use this for teaching next week (on what not to do). BashTool.ts :D But, in general, I guess it just shows yet again that the emperor has no clothes.
    • dgb23 35 minutes ago
      Are you not feeling the vibes?

      In all seriousness. I think you‘re supposed to run these in some kind of sandbox.

    • petesergeant 52 minutes ago
      > it just shows yet again that the emperor has no clothes

      Which emperor, specifically?

  • neuzhou 9 minutes ago
    [dead]
  • treysu 1 hour ago
    [dead]
  • tiveriny 2 hours ago
    [dead]
  • hahhhha500012 1 hour ago
    [dead]
  • tontinton 2 hours ago
    [flagged]
  • robonot 2 hours ago
    [flagged]
    • stingraycharles 2 hours ago
      Please don’t use AI to write comments on HN.
      • robonot 2 hours ago
        huh?
        • stingraycharles 4 minutes ago
          You edited your comment. It very much first said something about using regexes as being the most important takeaway and whatnot.