2026-11-18 · Can I Reverse Engineer It?

Has anyone reverse engineered Claude Code? What is publicly known

Terminal window with a glowing node graph unfolding out of an open package box

Short answer: yes, people have studied Claude Code's internals in public, and the best-documented event is an accident on Anthropic's side. This article sticks to what reputable sources reported, links each claim, and leaves out anything we could not verify.

Last reviewed: 2026-11-18. News about this topic moves fast. Check the linked sources for updates before you rely on a detail.

What Claude Code is

Claude Code is Anthropic's coding assistant that runs in a terminal. It is distributed as an npm package, and Anthropic does not publish its source. BleepingComputer described it as closed source. Anthropic does maintain a public Claude Code repository, which TechCrunch mentions in its coverage. That repository is separate from the application's source.

Event 1: the March 31, 2026 npm source map exposure

According to BleepingComputer, Anthropic briefly published version 2.1.88 of the package on npm, and that version included a roughly 60 MB file named cli.js.map. The outlet reported that the file held the full source for the latest version, around 1,900 files and 500,000 lines of code. It credits researcher Chaofan Shou with spotting it first.

Anthropic's statement to BleepingComputer, as quoted there, called it a release packaging issue caused by human error rather than a security breach, and said no sensitive customer data or credentials were involved.

Why a source map can expose so much

A source map links compiled JavaScript back to the code it came from. BleepingComputer explains that when a map includes a sourcesContent field, which embeds the original files as text, the whole source tree can be rebuilt from the map. That is why shipping a large .map file in a public package can disclose a project's code. No decompiler is needed for that step, because the original text is already inside the file.

The takedown

BleepingComputer reported that Anthropic began issuing DMCA notices to remove copies. TechCrunch reported that one notice reached more repositories than intended because the named repository sat in a fork network connected to Anthropic's own public repo. Per an Anthropic spokesperson quoted there, the company retracted the notice for everything except the one repository it named, and GitHub restored access to the affected forks. A report in Ars Technica covers the same episode. The exact number of repositories affected varies by outlet, so we do not quote one here.

What people said they found

Developers began reading the code right away. BleepingComputer relayed claims, attributed to a developer named Alex Finn, about unreleased modes it called "Proactive" and "Dream". We cannot confirm what shipped or what stayed experimental, so treat such lists as the reporters' account, not product documentation.

Event 2: analysis of the public, minified package

Separately from the leak, people have studied the package that Anthropic ships normally. The npm package contains a single bundled JavaScript file, and several GitHub projects document how to read it. For example, one repository describes a repeatable process: get the published code, make it readable with webcrack and Prettier, search for known strings, extract the relevant section, rename identifiers and write down the findings. Another, memaxo/claude_code_re, states that its analysis is based only on the publicly distributed, minified bundle.

This is the usual route for any JavaScript tool you run locally. Minification shortens names and removes whitespace, but the logic stays. It makes code hard to read, not hidden. Whether you may do this, and what you may do with the result, depends on the licence and terms that came with the software (see below).

What the analysis tells you, and what it does not

Reading how an agent is built can teach general design ideas: how a loop calls tools, how permissions are modelled, how context is managed. It does not show you the model itself, which runs on Anthropic's servers and is not in the package. Anyone studying the client sees the harness, not the part that makes the answers good.

That matters if you ask whether a clone is realistic. A terminal client is a small part of the product. The hard parts sit behind the API. For a structured way to think about that split, use the clone difficulty tool, and compare how we assess comparable AI products in the ChatGPT teardown and the Lovable teardown.

How to judge what you read about it

Posts about this topic range from careful to speculative. A few habits help:

  • Prefer the primary statement. Anthropic's own words, as quoted by BleepingComputer and TechCrunch, are the reliable part. Commentary about motives, such as whether it was a marketing stunt, is opinion.
  • Separate "found in the code" from "launched". Code in a package can be a feature flag, a prototype or dead code. Its presence says little about a product plan.
  • Check the version. The exposure involved version 2.1.88. Later versions may differ, and the minified-bundle analyses on GitHub are tied to the versions their authors studied.
  • Be wary of mirrors. Repositories that claim to host "the source" mix leaked, reconstructed and rewritten material. Their descriptions are the authors' claims, and some copies were the subject of takedowns.

A short timeline

  • Separately, and not tied to a date we could verify: community write-ups analyse the minified npm bundle, as in the repositories linked above.
  • March 31, 2026: version 2.1.88 is published with a source map, and the exposure is reported (BleepingComputer).
  • March 31 to April 1, 2026: DMCA notices go out, and one is later narrowed after reaching unrelated forks (TechCrunch).

We have no verified account of what happened after that, so we stop there.

The legal side, kept neutral

A source map leak does not change who owns the code. Anthropic's DMCA notices, covered above, show that the company treated the leaked text as protected. Seeing code is different from having a licence to reuse it. Separately, using Claude Code and its API is governed by Anthropic's terms, so read them before you do anything beyond ordinary use.

Reverse engineering law varies by country and by purpose. Interoperability, security research and study are treated differently from copying and redistribution. Our guide to the legality of reverse engineering explains the main ideas in plain language. It is general information, not legal advice. If your plans involve leaked material, talk to a lawyer first.

Lessons for people who ship software

  • Check what your package contains before you publish. Running npm pack --dry-run lists the files that would be included.
  • Treat source maps as a deliberate choice. If you publish them, decide whether sourcesContent should be in them.
  • Assume anything delivered to a user's machine can be read, even when minified. Keep secrets and sensitive logic on the server.

Bottom line

Has anyone reverse engineered Claude Code? People have analysed the published bundle, and for a short time a source map exposed the original code. Anthropic confirmed the packaging error and moved to remove copies. Beyond that, be careful with anything you read about "hidden features", because most of it comes second-hand. To see how we rate other products on the same scale, browse the teardown directory.

#claude code#reverse engineering#source maps#ai coding tools#legal