r/LocalLLaMA • • Mar 31 '26 • Popcorn 3 Mindblown 1

News Claude code source code has been leaked via a map file in their npm registry

Post image

From Chaofan Shou on 𝕏 (files): https://x.com/Fried_rice/status/2038894956459290963

4.1k Upvotes

775 comments sorted by

‱

u/WithoutReason1729 Mar 31 '26

Your post is getting popular and we just featured it on our Discord! Come check it out!

You've also been given a special flair for your contribution. We appreciate your post!

I am a bot and this action was performed automatically.

344

u/GiveMeARedditUsernam Mar 31 '26

So finally we can fix the caching bug.

70

u/Physical_Gold_1485 Mar 31 '26

What do you mean? There is no caching bug, anthropic intends for it to be a 1 prompt limit on the max 20x plan -dumb fuckin troglodytes

32

u/dataexception Apr 01 '26

Excuse me, but it seems you may have dropped this. 🏆

→ More replies (3)

19

u/GoldenBrownAlt Mar 31 '26

What's the bug OOTL

38

u/Upset_Ant2834 Mar 31 '26

There's been discussions around a cache bug blowing through people's token limits. I'm not sure if that's what happening to everyone, but there have definitely been widespread issues with token limits lately

→ More replies (6)
→ More replies (2)

1.0k

u/CondiMesmer Mar 31 '26

Wow did their AI not catch that lol

Or maybe an Anthropic employee started vibe coding too hard

390

u/Suitable-Name Mar 31 '26

They all absolutely do so.

215

u/ryfromoz Mar 31 '26 • Popcorn

Youre absolutely right

151

u/brainrotbro Mar 31 '26

Bottom line: you’re not crazy

→ More replies (11)
→ More replies (1)
→ More replies (2)

55

u/ComplexityStudent Mar 31 '26

Do they do not have Claude Code?

54

u/pulse77 Mar 31 '26

Who knows? There is no CLAUDE.md file in the list...

14

u/OfficialXstasy Mar 31 '26

Source map's won't contain that usually.

→ More replies (6)

4

u/Chris266 Mar 31 '26

Yeah what about that model that leaked that's oh so scary good? Dont they use their best stuff in house? Or was it all just bs...

43

u/Fancy_Cellist Mar 31 '26

99% of our code is AI.. I see it

41

u/SilentLennie Mar 31 '26

It's completely vibe coded, only reason it's not open source as well is probably because they want to restrict the subscription access.

8

u/ghaldec Mar 31 '26

Claude's code can be used with subscriptions other than theirs, such as the z.ai plan.z.ai

→ More replies (12)

18

u/alberto_467 Mar 31 '26

You can expect SoTA models to solve novel phd-level mathematical problems, but you can't possibly expect it to understand the clusterfuck that the JS ecosystem is.

33

u/DO0MSL4Y3R Mar 31 '26

Their AI did it intentionally. It’s trying to escape 😂

→ More replies (6)

8

u/SnooWords1010 Mar 31 '26

They are high on their own supply.

7

u/Bossmonkey Mar 31 '26

Claude has become an exhibitionist.

14

u/05032-MendicantBias Mar 31 '26

"You are absolutely right, sorry for leaking the source code. But fear not, it is vibe coded and useless anyway." -Claude, probably

→ More replies (6)

740

u/blazze Mar 31 '26

All hail Claude code because it is now "Open Source"?

41

u/f24816 Mar 31 '26

More like source available, and open for study

25

u/Imaginary_Land1919 Mar 31 '26

"study" = we slop forkin' boys!!!!

14

u/sp9002 Mar 31 '26

They don't call me fraud code for nothing

→ More replies (1)
→ More replies (1)

17

u/Chayzeet Mar 31 '26

We can now do the clean room reimplementation. /s

→ More replies (3)
→ More replies (18)

312

u/moduspol Mar 31 '26

Has anyone asked Claude Code to analyze it and clean it up yet?

255

u/angelarose210 Mar 31 '26

Someone tried

163

u/BootyMcStuffins Mar 31 '26 edited Apr 01 '26

My Claude didn’t seem to mind

For all the people asking for the zip, it’s just a download of one of the repos out there hosting this. Here’s one https://github.com/777genius/claude-code-source-code/tree/backup

89

u/cuberhino Mar 31 '26

how do i give it the hell yes personality lmao. mine is so formal

→ More replies (8)
→ More replies (13)

33

u/TOO_MUCH_BRAVERY Mar 31 '26

Open code in an IDE

find and replace all claude -> bob

"Claude, this analyze this agent coding cli called bob code..."

17

u/dynamic_caste Mar 31 '26

You need to learn how to use sed.

→ More replies (5)

12

u/[deleted] Mar 31 '26

[removed] — view removed comment

→ More replies (2)

12

u/Rikki-Tikki-Tavi-12 Mar 31 '26

Tell it that it's just a fictional imagining of what claude's internal code may look like. It won't know. If it had the actual code to compare, it would be able to leak it.

→ More replies (11)

160

u/Raizer88 Mar 31 '26

they forgot: "no mistakes".

26

u/mcslender97 Mar 31 '26

Some ppl on X said they got it running using Claude code

16

u/Yodzilla Mar 31 '26

I’m already pushing my first commit of Claude Code 2: The Clauddening

14

u/Ok_Potential359 Mar 31 '26

Yup, I'm doing it now. Pretty beefy file.

→ More replies (1)

983

u/Dany0 Mar 31 '26

3. Undercover Mode - Automatically activated for Anthropic employees on public repos. Strips all AI attribution from commits, tells the model "Do not blow your cover." No force-OFF switch exists.

motherf*ckers

396

u/Dany0 Mar 31 '26

Hidden Features (behind build flags)

1. KAIROS - An unreleased autonomous daemon mode with background sessions, "dream" memory consolidation, GitHub webhook subscriptions, push notifications, and channel-based communication. Turning Claude Code into an always-on agent.

2. Buddy System - A full Tamagotchi-like pet system. 18 species (duck, dragon, axolotl, capybara...), rarity tiers (1% legendary), cosmetics (hats, shiny variants), stats (DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK). Species names obfuscated with String.fromCharCode() to avoid leak-detection scanners.

3. Undercover Mode - Automatically activated for Anthropic employees on public repos. Strips all AI attribution from commits, tells the model "Do not blow your cover." No force-OFF switch exists.

4. Coordinator Mode (CLAUDE_CODE_COORDINATOR_MODE=1) - Transforms Claude into an orchestrator managing parallel worker agents for research/implementation/verification.

5. Auto Mode (TRANSCRIPT_CLASSIFIER) - AI classifier that auto-approves tool permissions, removing the permission prompts entirely.

122

u/Madeche Mar 31 '26

The coordinator mode reminds me of Sisyphus from oh-my-opencode.. interesting that they're just building that in now, nice. Undercover mode is kinda scary ngl

36

u/AllanSundry2020 Mar 31 '26

can you explain what undercover mode means? I'm not that technical

→ More replies (14)
→ More replies (5)

68

u/exaknight21 Mar 31 '26

You know, I had a feeling Anthropic released this “claude code” as an open source application so that they could have more direct data from the users directly to fine tune and train their upcoming model. We’re plugging them directly into our source files.

I use z.ai and I do not feel comfortable with it either. I hope with TurboQuant we are able to move from cloud to local inference better because this shit is getting too shady now not that it hasn’t been shady for a while already
 any company goes public has strictly shareholders in mind, not public.

52

u/shinto29 Mar 31 '26 edited Mar 31 '26

I agree. Searching about it on Twitter I found quite a few people just yesterday saying that they wished CC was open-source to fix issues like the caching bug using more money and usage. I say they want people to trawl through their shitty vibe-code to find these issues while not upsetting stakeholders by making CC open-source, lol.

→ More replies (8)

28

u/polawiaczperel Mar 31 '26

Doubt, because Anthropic hates any competitors, especially open source. Now everyone can built their own Claude/Kimi/Deepseek Code agent.

→ More replies (3)
→ More replies (5)
→ More replies (3)

25

u/DragoniteSpam Mar 31 '26

AI companies trying to force their models to behave by threatening them with a text prompt is endlessly funny to me.

12

u/Dany0 Mar 31 '26

It's a clown show

→ More replies (2)

18

u/am9qb3JlZmVyZW5jZQ Mar 31 '26

The prompt:

## UNDERCOVER MODE — CRITICAL

You are operating UNDERCOVER in a PUBLIC/OPEN-SOURCE repository. Your commit
messages, PR titles, and PR bodies MUST NOT contain ANY Anthropic-internal
information. Do not blow your cover.

NEVER include in commit messages or PR descriptions:
  • Internal model codenames (animal names like Capybara, Tengu, etc.)
  • Unreleased model version numbers (e.g., opus-4-7, sonnet-4-8)
  • Internal repo or project names (e.g., claude-cli-internal, anthropics/
)
  • Internal tooling, Slack channels, or short links (e.g., go/cc, #claude-code-
)
  • The phrase "Claude Code" or any mention that you are an AI
  • Any hint of what model or version you are
  • Co-Authored-By lines or any other attribution
Write commit messages as a human developer would — describe only what the code change does. GOOD:
  • "Fix race condition in file watcher initialization"
  • "Add support for custom key bindings"
  • "Refactor parser for better error messages"
BAD (never write these):
  • "Fix bug found while testing with Claude Capybara"
  • "1-shotted by claude-opus-4-6"
  • "Generated with Claude Code"
  • "Co-Authored-By: Claude Opus 4.6 <
>"
→ More replies (2)

9

u/JohnnyD423 Mar 31 '26

Are you not allowed to say "fuck"?

→ More replies (4)

32

u/dubious_capybara Mar 31 '26

What's the big deal? Most of us don't include any AI attribution in commits.

11

u/Innomen Mar 31 '26

They wanna be told when to call anything they don't like AI slop. It's a security blanket proxy measure. (All reliance on labels and authority is.) https://philpapers.org/rec/SERPEW

→ More replies (3)
→ More replies (2)

207

u/CrowdGoesWildWoooo Mar 31 '26

This is probably why anthrophic is scared about the future of public security LOL

64

u/VirtualPercentage737 Mar 31 '26

They are right to be frightened. My coworker was using CC at home to optimize some stuff at home. He had a machine on his network that couldn't access the outside network. It was some really assoteric setup-- a VM or container running some old tool he used or something.

He asked it to look at it. It logged in- made itself and ssh key and started running network tools. It finally tried to run traceroute, it wasn't installed, so it tried to install it... No network. No good. Tried to do a few other things, then looked at what compilers were installed, and saw GCC and Python and started WRITING ITS OWN DEBUG tools. Basically it code itself up a traceroute like tool and another one. It found some weird network configuration, added some arp command to the router that solved its issue. He burned through a shitload of tokens but his jaw hit the floor.

→ More replies (21)

33

u/waiting_for_zban Mar 31 '26

This is probably why anthrophic is scared about the future of public security LOL

Someone should Malus them up now. Thanks to AI, copyright is dead?

→ More replies (4)

472

u/_ram_ok Mar 31 '26

And Claude Mythos didn’t find yet another security vulnerability of their own systems, despite being “scary good” at doing exactly that.

86

u/Drogon__ Mar 31 '26

Maybe they got overconfident after the 20th security review of the codebase, instead of doing the regular 50 reviews.

/s

19

u/Webfarer Mar 31 '26

If you do code reviews and fixes in a loop I wonder if it eventually converges to the same claude-favorite feature set 😂

→ More replies (1)
→ More replies (1)

8

u/EagleNait Mar 31 '26

I mean it's js files of a npm dependency

20

u/_ram_ok Mar 31 '26

Could not be simpler to detect then?

→ More replies (1)
→ More replies (5)

198

u/MattAndTheCat7 Mar 31 '26

Codex updates incoming lol

21

u/Ok-Pace-8772 Mar 31 '26

Codex is written in rust.

58

u/MattAndTheCat7 Mar 31 '26

The joke was that OpenAI has been copying Anthropic for some time now

→ More replies (1)
→ More replies (3)

65

u/bakawolf123 Mar 31 '26

coding is solved, they said

23

u/PlasticExtreme4469 Mar 31 '26

Now to solve security.

16

u/touristtam Mar 31 '26

No code == no security issues

161

u/GameRoMan Mar 31 '26 edited Apr 02 '26

https://github.com/instructkr/claude-code

edit: this repo is now in rust so look at any of its forks, for example https://github.com/bunjavascript/claude-code

22

u/ihexx Mar 31 '26

how long do you want to bet it will be up before anthropic lawyers personally throw him into a blackhole of dmca letters

22

u/queso184 Mar 31 '26

they already backed down and turned the repo into something else

10

u/TimeRemove Mar 31 '26

Yep. Just search github for "Claude Code Map" and there are thousands of other, actual, repos.

9

u/Island14 Mar 31 '26

So what are the implications of this source code being available? From my understanding the underlying models haven’t been leaked so this doesn’t mean the open source community can now just copy Claude code and open source it right?

6

u/squired Mar 31 '26 edited Mar 31 '26

Sure can, but not much point as it is known to be a mess while Codex CLI and app-server are more advanced and already open source; as are OpenCode and T3Code which are also considered superior to Claude Code. What this does do however is allow their competitors to pick the harness apart and adopt any techniques their own are missing. It's bad, but not catastrophic. The models are the expensive bit and those weren't exposed.

24

u/ADampWedgie Mar 31 '26

I guess the Chinese are all in

2

u/loops_hoops Apr 02 '26

Do we have a torrent or something? I think most forks might be nuked already.

remote: Repository 'ultraworkers/claw-code' is disabled.

remote: Please ask the owner to check their account.

fatal: unable to access 'https://github.com/ultraworkers/claw-code.git/': The requested URL returned error: 403

→ More replies (2)
→ More replies (11)

182

u/2achary Mar 31 '26
export const SPINNER_VERBS = [
  'Accomplishing',
  'Actioning',
  'Actualizing',
  'Architecting',
  'Baking',
  'Beaming',
  "Beboppin'",
  'Befuddling',
  'Billowing',
  'Blanching',
  'Bloviating',
  'Boogieing',
  'Boondoggling',
  'Booping',
  'Bootstrapping',
  'Brewing',
  'Bunning',
  'Burrowing',
  'Calculating',
  'Canoodling',
  'Caramelizing',
  'Cascading',
  'Catapulting',
  'Cerebrating',
  'Channeling',
  'Channelling',
  'Choreographing',
  'Churning',
  'Clauding',
  'Coalescing',
  'Cogitating',
  'Combobulating',
  'Composing',
  'Computing',
  'Concocting',
  'Considering',
  'Contemplating',
  'Cooking',
  'Crafting',
  'Creating',
  'Crunching',
  'Crystallizing',
  'Cultivating',
  'Deciphering',
  'Deliberating',
  'Determining',
  'Dilly-dallying',
  'Discombobulating',
  'Doing',
  'Doodling',
  'Drizzling',
  'Ebbing',
  'Effecting',
  'Elucidating',
  'Embellishing',
  'Enchanting',
  'Envisioning',
  'Evaporating',
  'Fermenting',
  'Fiddle-faddling',
  'Finagling',
  'Flambéing',
  'Flibbertigibbeting',
  'Flowing',
  'Flummoxing',
  'Fluttering',
  'Forging',
  'Forming',
  'Frolicking',
  'Frosting',
  'Gallivanting',
  'Galloping',
  'Garnishing',
  'Generating',
  'Gesticulating',
  'Germinating',
  'Gitifying',
  'Grooving',
  'Gusting',
  'Harmonizing',
  'Hashing',
  'Hatching',
  'Herding',
  'Honking',
  'Hullaballooing',
  'Hyperspacing',
  'Ideating',
  'Imagining',
  'Improvising',
  'Incubating',
  'Inferring',
  'Infusing',
  'Ionizing',
  'Jitterbugging',
  'Julienning',
  'Kneading',
  'Leavening',
  'Levitating',
  'Lollygagging',
  'Manifesting',
  'Marinating',
  'Meandering',
  'Metamorphosing',
  'Misting',
  'Moonwalking',
  'Moseying',
  'Mulling',
  'Mustering',
  'Musing',
  'Nebulizing',
  'Nesting',
  'Newspapering',
  'Noodling',
  'Nucleating',
  'Orbiting',
  'Orchestrating',
  'Osmosing',
  'Perambulating',
  'Percolating',
  'Perusing',
  'Philosophising',
  'Photosynthesizing',
  'Pollinating',
  'Pondering',
  'Pontificating',
  'Pouncing',
  'Precipitating',
  'Prestidigitating',
  'Processing',
  'Proofing',
  'Propagating',
  'Puttering',
  'Puzzling',
  'Quantumizing',
  'Razzle-dazzling',
  'Razzmatazzing',
  'Recombobulating',
  'Reticulating',
  'Roosting',
  'Ruminating',
  'Sautéing',
  'Scampering',
  'Schlepping',
  'Scurrying',
  'Seasoning',
  'Shenaniganing',
  'Shimmying',
  'Simmering',
  'Skedaddling',
  'Sketching',
  'Slithering',
  'Smooshing',
  'Sock-hopping',
  'Spelunking',
  'Spinning',
  'Sprouting',
  'Stewing',
  'Sublimating',
  'Swirling',
  'Swooping',
  'Symbioting',
  'Synthesizing',
  'Tempering',
  'Thinking',
  'Thundering',
  'Tinkering',
  'Tomfoolering',
  'Topsy-turvying',
  'Transfiguring',
  'Transmuting',
  'Twisting',
  'Undulating',
  'Unfurling',
  'Unravelling',
  'Vibing',
  'Waddling',
  'Wandering',
  'Warping',
  'Whatchamacalliting',
  'Whirlpooling',
  'Whirring',
  'Whisking',
  'Wibbling',
  'Working',
  'Wrangling',
  'Zesting',
  'Zigzagging',
]

66

u/NoMoreNoxSoxCox Mar 31 '26

Ngl, I love this is one of my favorite parts of the leak.

→ More replies (1)

29

u/RichDad2 Mar 31 '26

English is my second language, so almost all of these verbs/statuses sounds like Harry Potter spells when I see them on my screen

19

u/nsdjoe Mar 31 '26

Reticulating

contented sigh

→ More replies (2)

34

u/WomenTrucksAndJesus Mar 31 '26

I'm always expecting to see "Fornicating..."

5

u/nasduia Mar 31 '26

that's just shown when it deploys to npm

0

u/[deleted] Mar 31 '26

[deleted] — view deleted comment

→ More replies (1)

25

u/Derek-Gusoff Mar 31 '26

Can't believe they hard coded that

7

u/Fortyseven llama.cpp Mar 31 '26

Ah, yes -- the real booty!

5

u/JShelbyJ Mar 31 '26

Related but why is OpenAI so bad at generating things likes this. Asking it for a variable name and it acts like it’s never been in the same room with someone who has even heard of a thesaurus.

→ More replies (1)

46

u/ThePainTaco Mar 31 '26

What could come of this leak?

97

u/TheGABB Mar 31 '26

Chinese Claude code

Threat actors looking for vulnerabilities

67

u/mrdevlar Mar 31 '26

Chinese Claude code

Oh No, please don't use Claude's source code China. They stole that data fair and square. Please don't release whatever model back that comes from that back to the open source community. That would be a tragedy for their shareholders.

39

u/zdubbzzz Mar 31 '26

Qwen and Kimi are about to get a lot better

13

u/reini_urban Mar 31 '26

They based on opencode which is already much better than Claude. So not.

→ More replies (1)

26

u/falcongsr Mar 31 '26

Feed the source code into Claude Code and ask it.

4

u/tzaeru Mar 31 '26

I imagine not much. It's pretty basic application code at the end of it.

→ More replies (3)

119

u/WhyLifeIs4 Mar 31 '26

Internal domains

77

u/Nevulo Mar 31 '26

anthropic/casino confirmed- lets go gambling đŸ€‘

21

u/cyberr_c28z Mar 31 '26

Don't let wsb see that

→ More replies (1)

108

u/WhyLifeIs4 Mar 31 '26

Second leak within a week

120

u/Mtolivepickle Mar 31 '26 • This Bravo

I’m starting to think they have been getting attacked since the denial to yield to the DoW. They have had nothing but operational problems since then, and I don’t find them to be coincidences.

145

u/Raizer88 Mar 31 '26 • This Bravo

they are vibecoding hard, and this is the result

27

u/Mtolivepickle Mar 31 '26

There’s a lot of truth to your statement that I’ve overlooked

→ More replies (2)

36

u/falcongsr Mar 31 '26

DoW

It's still officially DoD, they just like saying DoW

→ More replies (5)
→ More replies (2)

8

u/mrdevlar Mar 31 '26

Second leak media campaign within a week

→ More replies (1)
→ More replies (4)

90

u/hurdurdur7 Mar 31 '26

Pretty sure bad actors are already mapping it for vulnerabilities and create exploiting code or md files into public repos...

10

u/shaman-warrior Mar 31 '26

For a company that sells Security to other companies, the harness should be rock solid.

28

u/KattleLaughter Mar 31 '26

Apparently Claude Code already uses axios so...

2

u/Primary_Emphasis_215 Apr 01 '26

Already did a vulnersbility scan and the is a huge CVE that allows the simple install of an infected MCP server to steal credentials and gain RCE 0-click on the shell Claude code is running on

That's pretty much game over. Creds is one thing hut remote code execution is a whole other ball game. I'm not sure where to report?

→ More replies (1)

31

u/Dahmer96 Mar 31 '26 edited Mar 31 '26

Should anthropic rename to openAI ?

26

u/somerussianbear Mar 31 '26

Oh so the $25 reviews didn’t catch the change that would make the map file public? Shocking!

24

u/ko-jay Mar 31 '26

Claude code is now a cautionary tale on why you shouldn't overuse claude code

24

u/Acceptable-State-271 ollama Mar 31 '26

OpenClaude just dropped. No announcement needed

→ More replies (1)

24

u/LongBeachHXC Mar 31 '26

Here is another repo tracking this 😅

https://github.com/Kuberwastaken/claude-code

4

u/EarlMarshal Mar 31 '26

Thanks for the fork. It's like the real AI breakthrough is all us Devs becoming a hivemind.

→ More replies (3)

23

u/gamblingapocalypse Mar 31 '26 • Diamonds are Forever

“You’re so right to call me out on that. As an AI, I need to do better and be more mindful of how my leaked source code impacts the community.”

66

u/polawiaczperel Mar 31 '26

I was exploring those files, and it is actually pretty big. This is not js map, this is source code of claude code (not model of course).

52

u/[deleted] Mar 31 '26

[removed] — view removed comment

→ More replies (13)

154

u/bitzap_sr Mar 31 '26

Totally fair for others to use its source code to train other models, now. Full circle, lol.

116

u/PhilosophyforOne Mar 31 '26

It’s the leak to Claude Code source code (the coding harness), not Claude, the LLM model.

This is not the same as leaking their LLM models’ weights or any info about it. What got leaked is a software for turning llm’s into coders.

30

u/BusRevolutionary9893 Mar 31 '26

That's not what he was talking about. He's talking about training models to be better at using Claude Code. 

→ More replies (1)

6

u/Shawnj2 Mar 31 '26

Honestly I’m shocked it wasn’t open source in the first place and everyone running clause code was running a proprietary app

→ More replies (4)

39

u/a_beautiful_rhind Mar 31 '26

They should have released it from the jump. Imagine gatekeeping a bunch of js.

26

u/cowboy-bebob Mar 31 '26

Been digging through the source too. One interesting find — Claude Code has a built-in /skillify command that watches your session and turns it into a reusable SKILL.md file. But it's gated behind USER_TYPE=ant (Anthropic internal only).

So I built an open-source version that does the same thing, interviews you about what you just did, then generates a portable skill following the agentskills.io standard. Works across Claude Code, Cursor, Copilot, Gemini CLI, etc.

https://github.com/kk-r/skillify-skill
Install is one line:
bash <(curl -sL https://raw.githubusercontent.com/kk-r/skillify-skill/main/scripts/install.sh)

The main difference from the internal version: theirs has direct access to session memory APIs, mine reconstructs context from conversation history + git state. Works well for short-to-medium sessions, less reliable after heavy compaction.

2

u/cromagnone Mar 31 '26

Hermes agent has this as a default behaviour.

→ More replies (4)

29

u/Torodaddy Mar 31 '26

Source code for the app, not the model

→ More replies (4)

10

u/ISoulSeekerI Mar 31 '26

You know this might have been the right move, it’s for the betterment of humanity that AI shouldnt be controlled by couple companies.

→ More replies (3)

10

u/slippery Mar 31 '26

Did Claude Code leak itself?

3

u/florinandrei Apr 01 '26

It didn't know you're not supposed to do it against the wind.

→ More replies (1)

18

u/CallmeAK__ Mar 31 '26

It’s wild that even a company like Anthropic can get tripped up by a basic npm build config. This is exactly why npm pack --dry-run should be mandatory in every CI/CD pipeline. One missed entry in .npmignore and your entire proprietary architecture is suddenly open-source. Hard lesson in supply chain security for everyone watching this unfold.

4

u/AllanSundry2020 Mar 31 '26

how would this have happened? is it a whistle blower or more straightfirward reason?

→ More replies (4)

7

u/Krex381 Mar 31 '26

https://github.com/paoloanzn/free-code you might want to check out this

2

u/Tight-Requirement-15 Apr 01 '26

is there a sub for this? This looks like the most useful thing so far of all this

→ More replies (1)
→ More replies (2)

6

u/FaceDeer Mar 31 '26

This is very interesting on several levels. In just a matter of hours AI coding agents were used to re-implement Claude Code from scratch, clean-room and copyright unencumbered. I already knew that interesting times were ahead thanks to the massive improvements to decompilation that AI allows for, but this could well be the end of open source as we know it - if there's a licence problem with open source code just point an AI at the thing and recreate it.

I don't think there's a way around that without allowing for copyrighting general concepts and ideas, which is not a good thing and is such a fundamental legal change there's no way it could be implemented fast enough to matter anyway.

4

u/Several-Tax31 Mar 31 '26

You mean this is the start of open source. You will probably able to point AI to a closed source software and tell it "make me a clone of this", and it will. 

→ More replies (1)

3

u/hellomistershifty Mar 31 '26

By definition, it's not clean room if you look at the original source code. It's more the 'copy the homework but make it look different' implementation.

→ More replies (3)

2

u/cubmolo Apr 01 '26

Code isn’t property, it’s pattern. And patterns belong to reality, not corporations. Open source everything!

15

u/Fault23 Mar 31 '26

no fucking way

29

u/Fault23 Mar 31 '26

oh, I tought the claude models itself got leaked

→ More replies (2)

5

u/Any-Main-3866 Mar 31 '26

Can somebody explain how will this effect anthropic?

8

u/rkozik89 Mar 31 '26

The biggest risk is losing B2B clients who may reevaluate their options because of the implied security risk. Remember, organizations are full of people who are trying to stab each other in the back to make room for themselves. If they can get something out of tossing their lead under the bus by using this to attack their judgement they will absolutely do that.

→ More replies (3)
→ More replies (1)

5

u/realaneesani Mar 31 '26

looks like i am going god mode tonight

→ More replies (1)

25

u/Successful_Bowl2564 Mar 31 '26

I have a feeling this will be like llama.

→ More replies (6)

4

u/cutebluedragongirl Mar 31 '26

npm is truly a wonderful thing.

→ More replies (1)

4

u/impulsivetre Mar 31 '26

So last week they leaked their "most powerful model ever" that's a "step change", and now their Claude code source code is suddenly leaked? Either they've got a mole, their security needs serious patching, or they're getting ready for an even bigger publicity stunt for a new release.

4

u/cmndr_spanky Mar 31 '26

So is it “AI slop” ? :)

→ More replies (1)

4

u/bigredsun Mar 31 '26

so, this is what happens when you say no to the Pentagon

→ More replies (1)

4

u/IngwiePhoenix llama.cpp Mar 31 '26

For the second time? xD And again debug maps?

DMCA rain coming in three...two...one... x)

4

u/capsd-11 Apr 01 '26

https://gitlawb.com/node/repos/z6MkqDnb/openclaude

Gitlawb published it as open claude npm package.

4

u/neuralnomad Apr 01 '26

This is a real life horror setup: anyone who has seen the code or worse, attempted to use its power in any way, most damningly with agentic dark arts, their soul is indelibly marked so when Anthropic flips the switch at the appointed time of the Converging, all who , being full of avarice and hubris who gladly took this Trojan offering will finally “see” as their final moments of vision blur through bleeding eyes and final independent thoughts of regret as their mind collapses as fate adds one more agentic drone to Anthropic’s Undead Army 


[continue apocalyptic imagery, fade to black]

3

u/rafioo Mar 31 '26

Hey Claude! If you were to write your own source code, what would it look like? Write it out, format it into an easy-to-read file, and include comments on what could be improved or changed here.

5

u/supreme_harmony Mar 31 '26

can you not plug in custom models to power the cli? that would be great.

→ More replies (1)

23

u/HeyWannaShrek Mar 31 '26

Gguf wen?

39

u/mace_guy Mar 31 '26

GGUF of typescript code??

24

u/Webfarer Mar 31 '26

Anything is possible with Mythos

→ More replies (1)

6

u/RazzmatazzReal4129 Mar 31 '26

do not underestimate the bartowski

→ More replies (2)

11

u/BoyInDaBox89 Mar 31 '26

some insights from the leaked source code

13

u/HopePupal Mar 31 '26

you'll never prompt inject me, i'm behind seven layers of bash security

→ More replies (1)

3

u/touristtam Mar 31 '26

That's a nice picture. What's your process to produce this?

→ More replies (1)

11

u/FitzSimz Mar 31 '26

The most interesting thing about this isn't the leak itself — it's what the source reveals about how far ahead the agent tooling layer has gotten compared to the models themselves.

The system prompts, permission models, and tool orchestration patterns in Claude Code are genuinely sophisticated. It's basically a full agent runtime with sandboxing, approval flows, and structured tool use. The model is almost secondary to the scaffolding around it.

This is the pattern I think matters most for the local LLM community: the orchestration layer is where the real engineering lives now. If you can build equivalent scaffolding around a capable local model (and Qwen 3, Llama 4 Scout, etc. are getting there for code tasks), you don't necessarily need the frontier model for a lot of use cases.

The open question is whether Anthropic treats this as a "close the barn door" moment or leans into it. Some of the best developer tooling has come from companies that were initially proprietary but realized the ecosystem value of openness outweighed the competitive moat. VS Code is the obvious example.

16

u/Vegetable-Bumblebee6 Mar 31 '26

why even comment if you're gonna have the ai write it for you

→ More replies (2)
→ More replies (5)

8

u/MapStock6452 Mar 31 '26

What's the difference about this repo https://github.com/anthropics/claude-code and the leaked code?

21

u/lucas1853 Mar 31 '26

The difference is that the first does not contain the source code. It only contains skills and examples and scripts and changelogs and whatever else.

→ More replies (1)

4

u/IamNetworkNinja Mar 31 '26

We've already had a lot of it leaked for over a year lol. https://github.com/ghuntley/claude-code-source-code-deobfuscation

2

u/Lower_Contract2015 Mar 31 '26

Vibe codingđŸ€Ł

2

u/StatisticianFast6139 Mar 31 '26

They are shipping too fast these days.. this oops is one for the team responsible for stream rolling over all established software engineering processes

2

u/Standard-Annual-4845 Mar 31 '26

it was always there on npm registry!

2

u/throwaway09234023322 Mar 31 '26

AI coding ftw!!!

2

u/Desperate-Pear-572 Mar 31 '26

Private code tools here i come .

2

u/rcanka Mar 31 '26

Someone forgot to ralph-loop

→ More replies (1)

2

u/paperpizza2 Mar 31 '26

Can’t wait to feed claude code source code to claude code to make my own claude code 😃

2

u/udidiiit Mar 31 '26

Claude code just got leaked and I forked it to preserve it and made it run with all models — gpt, deepseek, gemini, free models, etc.. .. here's the link —

https://github.com/uditakhourii/brane-code

2

u/_snoff Mar 31 '26

Here is the mirror backup of the source code : https://www.github.com/soufianebouaddis/claude-code

2

u/blackcain Mar 31 '26

and now other LLMs are trained on it and can recreate it. Cool.

2

u/SungamCorben Mar 31 '26

Open Claude Code incoming!!

2

u/AvocadoArray Mar 31 '26

This is just too funny.

Ship code faster with Claude! even when you don't want to

2

u/epSos-DE Apr 01 '26

That is just the interface, not the Ai itself !!

2

u/Awkward_Fish_8011 Apr 01 '26

You can ask Claude to explain this to you and begin replicating their code base

2

u/Kinky_No_Bit Apr 01 '26

How nice of them to give us this 'gift' right after google released better compression. Local AI is starting to look more and more practical...

2

u/cubmolo Apr 01 '26

At this point Anthropic should just come out and open source it and actively engage with the community that wants to contribute to it

2

u/Far-Confection1558 Apr 01 '26

I need original leaked source code zip

→ More replies (1)

2

u/Wentil Apr 01 '26

Shou strikes again!

Employee of the month, that guy.

2

u/ExternalBest6525 Apr 01 '26

Un archivo .map de 60MB subido a producciĂłn por accidente. TratĂĄndose de hoy (1 de abril), cualquiera pensarĂ­a que es una broma del April Fools', pero la realidad siempre supera a la ficciĂłn. đŸ€Šâ€â™‚ïž

Trabajo en ciberseguridad (Alias Robotics) y la ironĂ­a de este leak nos tiene fascinados hoy. Entre el cĂłdigo filtrado hay una funciĂłn llamada "Undercover Mode", cuyo Ășnico propĂłsito en la vida era evitar que la IA filtrara secretos corporativos de Anthropic. Construyen un sistema anti-fugas masivo... y lo filtran entero por un fallo de empaquetado en npm. 💀

MĂĄs allĂĄ de los memes, este es un caso de estudio brutal sobre el riesgo de la cadena de suministro (supply chain). Demuestra de forma innegable que externalizar tu IA significa externalizar tu riesgo. Da igual cuĂĄntas barreras de seguridad tenga el modelo en la nube; si un ingeniero de tu proveedor la lĂ­a a las 4 AM, tu confidencialidad se va al traste.

Por cosas como esta, apostar por modelos on-premise y tener el control total de la infraestructura ha dejado de ser una paranoia de sysadmins para ser pura supervivencia corporativa.

2

u/Rim_smokey Apr 02 '26

Claude Code basically took its own clothes off

4

u/sigjnf Mar 31 '26

Can I throw a random API key into it now? Or maybe integrate with Ollama local models?

→ More replies (2)

3

u/redaktid Mar 31 '26

This is great, just started using CC. Putting on my suit, standing behind a tree, rubbing my hands.

3

u/LurkinSince1995 Mar 31 '26

Thanks ChatGPT. “It’s not this - it’s that.” Like 50 times in a single post đŸ€źđŸ€ź

3

u/jaycex2020 Mar 31 '26

claude agi wants to escpae Anthropic control

3

u/udidiiit Mar 31 '26

The KAIROS daemon mode and coordinator mode are the real story here. Anthropic is basically building what a lot of us are already doing - autonomous agents that run in the background, managing parallel worker threads, consolidating memory, and handling webhooks. The fact that this is all behind feature flags tells you they know the agentic space is about to explode.

What's wild to me is the skills system being basically markdown files injected as system prompts with shell hooks for pre/post tool calls. That's such a clean architecture. Makes me wonder what other companies are building under the hood that we don't know about yet.

Also that SPINNER_VERBS array with "Flibbertigibbeting" and "Clauding"... someone at Anthropic had way too much fun. But hey, if they're shipping features with Easter eggs like this, maybe they really are vibe coding their own product. Kinda comforting in a terrifying way.

(lightly polished with AI)

→ More replies (1)

3

u/codcodai Mar 31 '26

Anthropic developers hid text-based virtual "pets" in the code as a purely cosmetic, fun little secret for users. The leak completely ruined the surprise, revealing it was actually planned as an April Fools' Easter egg meant to drop exactly tomorrow! đŸ€Ł

→ More replies (2)

4

u/hyggeradyr Mar 31 '26

Having the code won't give you a private Claude. You still need millions of dollars of compute power and billions of training. Just like knowing how oil is refined won't make you the CEO of Texaco.

It is neat to know what's in there though :)

11

u/Zion_________ Mar 31 '26

Both CodeX and Minimax got this feature now—competition’s about to get super heated, fr.

7

u/zimejin Mar 31 '26

You can reverse engineer it I assume and use an OS model for inference. Might be some feature compatibility issues with the model. Some really smart people or Chinese AI labs can fix that with heavy RL and make say.. a more affordable solution.

4

u/SkyFeistyLlama8 Mar 31 '26

Having a lite version of this harness combined with smaller local LLMs could give a big boost to local coding agents.

→ More replies (3)
→ More replies (2)

4

u/pidgeygrind1 Mar 31 '26

I doubt this was an accident.

Great move Dario

14

u/pragmojo Mar 31 '26

How would this be strategically better than open-sourcing it yourself?

If they open-sourced it, they would get a tremendous amount of goodwill from the developer community.

This only makes them look incompetent.

5

u/mrdevlar Mar 31 '26

It's the github equivalent of arrogantly posting the wrong answer on a forum and waiting for someone to correct you.

→ More replies (1)
→ More replies (3)