this post was submitted on 01 Apr 2026
78 points (96.4% liked)

Technology

83251 readers
3574 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
 

Anthropic, the flagship AI company, has inadvertently exposed the source code for its major CLI tool Claude Code. It has already been extracted with mirrors published on GitHub.

Chaofan Shou announced the discovery on X.

“Claude Code source code has been leaked via a map file in their npm registry!” the user posted.

The post immediately stirred the AI community, attracting nearly 10 million views and 1.5 thousand comments.

Claude Code is a massively popular agentic AI coding assistant that runs in terminal. It can edit files and manage entire projects locally. Anthropic’s tool is closed-sourced and distributed as an obfuscated npm package.

However, Anthropic's published npm package containing Claude Code v2.1.88 allegedly exposed the source map file cli.js.map, which contained the full and unobfuscated TypeScript source code.

It appears that Anthropic scrambled to remove the npm package. However, it was too late. Multiple GitHub users already exposed copies of the project.

One of the GitHub repositories has already amassed nearly 30,000 stars and 40,200 forks.

Another one has 425 stars and 520 forks, with many developers dissecting the inner workings of the tool.

The author claims that the leaked Anthropic’s .map file’s size was 57MB, mapping 1,900 files and 512,000 lines of code.

The leaked code includes the core engine for LLM API calls, handling streaming responses, tool-call loops, thinking mode, retry logic, token counting, permission models, tools, etc. Some Hacker News users noted the extensive regex filter containing many swear words for detecting negative sentiment in users' prompts. This leak doesn’t expose the AI models themselves or user data.

Exposed internal logic makes it very easy to reverse-engineer the tool, identify security risks, or steal intellectual property. Users already noted that Claude Code is using axios as its dependency, a tool that was just hacked.

Many GitHub users now advertise their own build of Claude Code. However, they’re risking legal action.

“Just because the source is now 'available' *DOES NOT MEAN IT IS OPEN SOURCE*. You are violating a license if you copy or redistribute the source code, or use their prompts in your next project! Don’t do that,” posted full-stack developer Justin Schroeder on X.

The .map files are typically used by developers fixing programs in software. These plain text files act like a mini map of the original code, helping developers trace where the errors or problems occur. However, .map files usually don’t include the full source code.

Anthropic hasn’t yet released an official statement. Cybernews reached out to the company and will include its response.

you are viewing a single comment's thread
view the rest of the comments
[–] muntedcrocodile@hilariouschaos.com 4 points 4 hours ago (1 children)

Cc is shit compared to opencode the only reason people use it is cos they give u a shitonne of credits with Claude models (they are trying to create an apple style ecosystem for Claude models by pricing our any completion and running a loss leader on their own tools. Plus the open models such as minimax m2.5 are almost as smart for a fraction the price

[–] LedgeDrop@lemmy.zip 1 points 3 hours ago (1 children)

Would you have a recommendation where I could use minimax m2.5 for cheap (I don't have the hardware to host it myself)?

I was experimenting with Kiro-cli (not to be confused with kiro-ide) and I really enjoyed the work flow: changes being communicated and reiterated as in memory diffs. Plus it really worked nicely from within neovim (so no ide or tui to get in the way). But I really want an OSS solution, maybe opencode is that solution.

Open code is great (note the 2 different incompatible competing forks and the drama around that) it's a full tui tho. It has free minimax m2.5 and open routers offers it on a per token price. I find that if mimax is struggling then glm5 is also great although a bit more pricy (still infinitely cheaper than any of the mainstream frontier labs).