Hacker News Viewer

Claude Code Unpacked : A visual guide

by autocracy101 on 4/1/2026, 5:15:37 AM

Related ongoing threads:<p><i>The Claude Code Source Leak: fake tools, frustration regexes, undercover mode</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47586778">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47586778</a> - March 2026 (406 comments)<p><i>Claude Code&#x27;s source code has been leaked via a map file in their NPM registry</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47584540">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47584540</a> - March 2026 (956 comments)<p>Also related: <a href="https:&#x2F;&#x2F;www.ccleaks.com" rel="nofollow">https:&#x2F;&#x2F;www.ccleaks.com</a>

https://ccunpacked.dev/

Comments

by: autocracy101

Author here. I built this in a few hours after the Claude Code leak.<p>I&#x27;ve been working on my own coding agent setup for a while. I mostly use pi [0] because it&#x27;s minimal and easy to extend. When the leak happened, I wanted to study how Anthropic structured things: the tool system, how the agent loop flows, A 500K line codebase is a lot to navigate, so I mapped it visually to give myself a quick reference I could come back to while adapting ideas into my own harness and workflow.<p>I&#x27;m actively updating the site based on feedback from this thread. If anything looks off, or you find something I missed, lmk.<p>[0] <a href="https:&#x2F;&#x2F;pi.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pi.dev&#x2F;</a>

4/1/2026, 9:47:04 AM


by: ernst_klim

&gt; 500k lines of code<p>It&#x27;s it a simple REPL with some tools and integrations, written in a very high level language? How the hell is it so big? Is it because it&#x27;s vibecoded and LLMs strive for bloat, or is it meaningful complexity?

4/1/2026, 10:11:57 AM


by: Andebugulin

If it was 2020, it would be hard to imagine that after some hours&#x2F;days you getting a visual representation of the leak with such detailed stats lol

4/1/2026, 7:35:43 AM


by: brauhaus

Even today, I&#x27;m still astounded that there are people capable of building a gorgeous and interesting site like this in less than 2 days...

4/1/2026, 8:45:29 AM


by: WaterRun

Thanks to Claude Code, we got such a beautifully polished and dazzling website that gives a complete introduction to itself the very moment the leak happened :)

4/1/2026, 9:57:01 AM


by: stingraycharles

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

4/1/2026, 6:12:25 AM


by: dheerajmp

Feel free to add this to Awesome Claude code. <a href="https:&#x2F;&#x2F;github.com&#x2F;rosaboyle&#x2F;awesome-cc-oss" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rosaboyle&#x2F;awesome-cc-oss</a>

4/1/2026, 6:21:19 AM


by: sourcecodeplz

Nice presentation. The reality is there is nothing really special about the claude code harness?

4/1/2026, 10:05:10 AM


by: restlessforge

Okay those &quot;hidden features&quot; are amazing, especially the cross-session referencing. I hope we can look forward to that in the future<p>Also I definitely want a Claude Code spirit animal

4/1/2026, 5:36:39 AM


by: swyx

&gt; also related: <a href="https:&#x2F;&#x2F;www.ccleaks.com" rel="nofollow">https:&#x2F;&#x2F;www.ccleaks.com</a><p>This deployment is temporarily paused

4/1/2026, 7:25:52 AM


by: chrz

nice example: Find all TODO spin the AI machine<p>i do shift ctrl F

4/1/2026, 10:08:28 AM


by: jatins

There&#x27;s this weird thing about AI generated content where it has the perfect presentation but conveys very little.<p>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?

4/1/2026, 5:55:37 AM


by: sibtain1997

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

4/1/2026, 6:35:16 AM


by: jen729w

Is it just me or do I not find the Claude Code application <i>that</i> fascinating?<p>I use it all day and love it. Don&#x27;t get me wrong. But it&#x27;s a terminal-based app that talks to an LLM and calls local functions. <i>Ooookay…</i>

4/1/2026, 6:15:04 AM


by: vivzkestrel

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

4/1/2026, 6:17:39 AM


by: lanbin

However, excellent development practices involve modularizing code based on functional domains or responsibilities.<p>The utils directory should only contain truly generic, business-agnostic utilities (such as date retrieval, simple string manipulation, etc.).<p>We can see that the code produced by Vibe is not what a professional engineer would write. This may be due to the engineers using the Vibe tool.

4/1/2026, 8:40:51 AM


by: AJRF

This is AI slop.<p>First command I looked at:<p><pre><code> &#x2F;stickers: Displays earned achievement stickers for milestones like first commit, 100 tool calls, or marathon sessions. Stickers are stored in the user profile and rendered as ASCII art in the terminal. </code></pre> That is not what it does at all - it takes you to a stickermule website.<p>What is the motivation for someone to put out junk like this?

4/1/2026, 9:04:01 AM


by: fersarr

why do people care so much? it&#x27;s just an agentic loop

4/1/2026, 9:02:14 AM


by: nitnelave

Ah, good well-architected code, finally... With most of the code in utils&#x2F;other :D

4/1/2026, 8:27:13 AM


by: rhofield

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.

4/1/2026, 6:50:02 AM


by: cjlm

I prefer this mapping from Nikita @ CosmoGraph: <a href="https:&#x2F;&#x2F;run.cosmograph.app&#x2F;public&#x2F;dfb673fc-bdb9-4713-a6d6-208f32f42d31" rel="nofollow">https:&#x2F;&#x2F;run.cosmograph.app&#x2F;public&#x2F;dfb673fc-bdb9-4713-a6d6-20...</a>

4/1/2026, 8:37:32 AM


by: p2detar

So it does use ripgrep and not unix grep. [0] I knew it from some other commenters here on HN, but it&#x27;s nice to see it in the source as well.<p>0 - <a href="https:&#x2F;&#x2F;github.com&#x2F;zackautocracy&#x2F;claude-code&#x2F;blob&#x2F;main&#x2F;src&#x2F;utils&#x2F;ripgrep.ts" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zackautocracy&#x2F;claude-code&#x2F;blob&#x2F;main&#x2F;src&#x2F;u...</a>

4/1/2026, 7:15:52 AM


by: simonreiff

Nice site. I might suggest moving SendMessage to the Hidden Features as they don&#x27;t appear to have implemented a ReadMessage or ListMessages tools.

4/1/2026, 6:08:34 AM


by: lastdong

I hope &#x2F;Buddy is ported across to OpenCode.

4/1/2026, 6:25:31 AM


by: techpression

519K lines of code for something that is using the baseline *nix tools for pretty much everything important, how do they even manage to bloat it this much? I mean I know how technically, but it&#x27;s still depressing. Can&#x27;t they ask CC to make it good, instead of asking it to make it bigger?

4/1/2026, 9:38:34 AM


by: m132

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&#x27;t glitch out with elements randomly disappearing in Firefox...<p>How is this on the front page?

4/1/2026, 6:35:10 AM


by: fsniper

Source leak or free code review? I can say that there is no bad publicity.

4/1/2026, 8:31:38 AM


by: ramon156

I expect dozens more &quot;research articles&quot; that<p>- find nothing - still manage to fill entire lages - somehow have a similar structure - are boring as fuck<p>At least this one is 3&#x2F;4, the previous one had BINGO.

4/1/2026, 6:13:55 AM


by: spirelab

I got a goose<p>War flashbacks to genshin

4/1/2026, 8:46:05 AM


by: mdavid626

How the hell is it 500k lines?

4/1/2026, 5:51:53 AM


by: fartfeatures

Ccleaks is down?

4/1/2026, 6:52:03 AM


by: inside_story

cool Archaeologization Collection Output

4/1/2026, 5:48:35 AM


by: Vektorceraptor

Hey, nice job! Next time tell calude to add some explosions, car crashes and stuntment into the design! Who cares about content anyway ... <a href="https:&#x2F;&#x2F;speculumx.at&#x2F;blogpost&#x2F;getting-sick-of-ai-slop" rel="nofollow">https:&#x2F;&#x2F;speculumx.at&#x2F;blogpost&#x2F;getting-sick-of-ai-slop</a>

4/1/2026, 9:43:50 AM


by: jruohonen

Thanks, I&#x27;ll use this for teaching next week (on what not to do). <i>BashTool.ts</i> :D But, in general, I guess it just shows yet again that the emperor has no clothes.

4/1/2026, 5:46:43 AM


by: kevinbaiv

[dead]

4/1/2026, 9:56:05 AM


by: neuzhou

[dead]

4/1/2026, 8:28:45 AM


by: delineato

[dead]

4/1/2026, 8:47:45 AM


by: pmakhija3

[dead]

4/1/2026, 9:09:58 AM


by: treysu

[dead]

4/1/2026, 6:53:14 AM


by: tiveriny

[dead]

4/1/2026, 6:18:34 AM


by: hahhhha500012

[dead]

4/1/2026, 6:46:14 AM


by: tontinton

[flagged]

4/1/2026, 6:00:52 AM


by: robonot

[flagged]

4/1/2026, 6:16:16 AM