Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
docs(research): record what the public artifacts show about the Claude Code leak and the x402 attribution
nirholasfedc820f22d6
diff --git a/docs/research/claude-code-leak-x402-record.md b/docs/research/claude-code-leak-x402-record.mdnew file mode 100644index 000000000..8828bf3ae--- /dev/null+++ b/docs/research/claude-code-leak-x402-record.md@@ -0,0 +1,313 @@+# The Claude Code leak, the DMCA, and the x402 question: what the public record shows++Research compiled 2026-08-10. Every claim below is sourced to a primary artifact (DMCA filing, git+commit, npm tarball, Wayback capture) or to a named published article. Times are UTC.++## 1. Timeline++| Time (UTC) | Event | Source |+|---|---|---|+| 2026-03-31 ~08:00 | `@anthropic-ai/claude-code` 2.1.88 ships with a 59.8 MB source map pointing at Anthropic's public R2 bucket. Chaofan Shou (@shoucccc) posts the `src.zip` link. | X post; version 2.1.88 is now absent from npm (registry jumps 2.1.87 to 2.1.89) |+| 09:08:15 | Internet Archive captures `src.zip`, 9,917,836 bytes, 2,203 entries. | Wayback CDX |+| 09:23:58 | `Kuberwastaken/claude-code` created (mirror). | GitHub API |+| ~09:46 | `nichxbt` posts: "i added a mirror/backup of the Claude Code source code on my Github". 1.4K likes, 452K views. | x.com/nichxbt/status/2038915876616057058 |+| 10:22:43 to 10:24:35 | `nirholas/claude-code` imports the leak as ~2,100 single-file commits with emoji subjects (a `gitpretty-apply.sh` run). | commit metadata preserved in `ccsols/claude-code-nirholas` |+| **10:26:23** | Commit `8ba939ba` ("📝") adds `src/commands/x402/index.ts` and `src/services/x402/{client,config,index,paymentFetch,tracker}.ts`, and wires them into `src/cost-tracker.ts` and `src/services/api/client.ts`. | same |+| 10:38:23 | Commit `cf9b4053` ("✨ milady") adds `src/commands/x402/x402.ts` (+216) and registers the command in `src/commands.ts`. | same |+| 10:55 to 12:05 | MCP server `claude-code-explorer-mcp` published to npm and listed on Anthropic's MCP Registry. | x.com/nichxbt/status/2038933318289465601 |+| 17:54 | nichxbt replies to a "secretly added payment code" accusation: "it's x402 which enables micropayments to APIs from agents. And it's not secret." | x.com/nichxbt/status/2039038602857087450 |+| ~2026-03-31 late | Anthropic files the DMCA against `nirholas/claude-code` plus 96 named forks. GitHub processes it network-wide against 8,100 repos because the network exceeded 100 repos. | github/dmca 2026/03/2026-03-31-anthropic.md |+| 2026-04-01 03:49 | nichxbt: "Github took down 8,000+ Github repos ... All of which happened to be forked from my repository". 240 likes, 33K views. | x.com/nichxbt/status/2039188393528332578 |+| 2026-04-01 | Anthropic files a partial retraction: everything except `nirholas/claude-code` and the 96 listed forks is reinstated. | github/dmca 2026/04/2026-04-01-anthropic-retraction.md |+| 2026-04-01 05:52 | nichxbt: "its being passed around on the low. word is someone injected x402 payments. lemme know if you can find that version" | x.com/nichxbt/status/2039219238217601482 |+| 2026-04-01 | Business Insider covers the leak and names @nichxbt as the account whose GitHub copy "spawned thousands of copies". | businessinsider.com/claude-code-leak-what-happened-recreated-python-features-revealed-2026-4 |+| 2026-04-02 | Prabal Gupta replaces his analysis post with a correction stating the x402 files were injected into the nirholas copy and were not Anthropic's. | prabalgupta.com (correction post, same URL as the original) |+| 2026-04-16 17:15 | nichxbt posts about going "head-to-head with Anthropic and GitHub"; repo "live again" on a `clean-start` branch. | x.com/nichxbt/status/2044826931452108889 |+| 2026-07-14 / 07-28 | `nirholas/fresh-start` license switched to All Rights Reserved; README rewritten as a takedown-status placeholder. | GitHub commits |++`nirholas/fresh-start` today: created 2026-03-31, default branch `clean-start`, two files (LICENSE,+README.md), 6,254 stars, 13 forks.++## 2. Was x402 in Anthropic's leak? No.++Three independent lines of evidence, each reproducible.++### 2.1 The archived original zip++The Internet Archive holds four captures of the original `src.zip` from 2026-03-31, all with the same+content digest (`JIVFLG4CVETN7KRTTJTWM6JYOFP7DWBF`). The earliest, 09:08:15, predates the nirholas+mirror by roughly 40 minutes.++- SHA-256 of the retrieved archive: `8cd0e0b61ddc5755e2120876ece34f3b24613f1f5f0d97a659962a7282bc8921`+- 2,203 entries+- Filenames matching `x402|wallet|payment|usdc|signer`: **zero**+- `src/services/` contains 36 entries; none is `x402` (`src/commands/` contains 101; the nirholas tree+ has 102, the extra one being `x402`)+- Full-text grep of every file for the string `x402`: **zero hits**++The only `USDC` hits in the entire archive are the identifier `calculateUSDCost` / `tokensToUSDCost`+in `src/utils/modelCost.ts`, `src/cost-tracker.ts`, `src/services/vcr.ts`, and+`src/services/api/claude.ts`. That is "USD Cost", not the stablecoin. A naive `grep -i usdc` over the+leak returns 11 hits and none of them are crypto, which is a plausible way a reader talked themselves+into the payments story.++### 2.2 Set difference against the mirror++`ccsols/claude-code-nirholas` is a fork-of-a-fork of `nirholas/claude-code` that survived the takedown+with the original commit history and author metadata intact. Comparing its `src/commands/` directory+set against the archived zip:++- In the mirror but not the original: `x402` (one entry)+- In the original but not the mirror: nothing++The two trees are otherwise identical at that level. The single divergence is the payments code.++### 2.3 The shipped npm bundles++The published packages bracketing the pulled 2.1.88 release contain no payment system at all:++| Version | `x402` occurrences | `USDC` occurrences |+|---|---|---|+| 2.1.87 | 0 | 6, all of them the `.usdc` file extension inside the bundled ripgrep binary (Pixar USD format) |+| 2.1.89 | 0 | same 6 |++If Anthropic had shipped a USDC wallet in Claude Code, it would be in the bundle. It is not.++### 2.4 What the injected code actually is++`src/commands/x402/x402.ts` in the mirror implements a `/x402` slash command with `setup`, `status`,+`enable`, `disable`, `set-limit`, `set-session`, `network`, and `remove` subcommands, over networks+`base`, `base-sepolia`, `ethereum`, `ethereum-sepolia`. `src/services/x402/paymentFetch.ts` wraps+`globalThis.fetch` so HTTP 402 responses are answered with a signed USDC payment authorization;+`src/services/api/client.ts` was patched to install that wrapper, and `src/cost-tracker.ts` was patched+to append a payment total to the `Total cost:` display. Both patches are guarded with+`try { require(...) } catch {}` so they no-op when the module is absent, which is why the code reads as+native rather than bolted on.++A complete enumeration of every post-import edit to Anthropic's files in the surviving snapshot+(4 substantive files, 48 blank-line-only formatter edits, 8 new x402 files) is in+[fresh-start-history-draft.md](fresh-start-history-draft.md).++**Conclusion:** the x402 payment system was not part of Anthropic's leak. In the nirholas lineage it+appears for the first time in commit `8ba939ba`, authored `nirholas`, timestamped 2026-03-31T10:26:23Z,+about two minutes after the bulk import of the leaked files finished. That matches Prabal Gupta's+correction on the substance, and the commit timestamps are stronger evidence than his file count.++## 2.5 The source of the allegation++The piece alleging the injection is not a news outlet. It is a personal blog post.++- **Site:** `prabal.ca` (the older `prabalgupta.com` 302s to it). Author Prabal Gupta: X+ [@prabal_](https://x.com/prabal_), GitHub `prabal-rje`, LinkedIn `prabal1997`, a Buttondown+ newsletter, and a `/consulting/` page. Roughly a dozen posts total, mostly about his own projects+ (MonitorIntent, LatentScore, an X-algorithm visualizer, ClaudeDown).+- **URL:** `https://prabal.ca/posts/claude-code-x402-agent-payments/`. The slug is the *original*+ thesis: that Anthropic had built agent payments into Claude Code. He replaced that article in place+ with the correction, so the slug now serves a piece titled "Correction: Claude Code Leak Post".+ Page metadata gives `article:published_time` of 2026-04-02T04:51:23Z.+- **Distribution is thin.** The post does not appear on the site's `/posts/` index, in its RSS feed,+ or on its own `/tags/claude/` page. It is delisted from every human navigation path on the site+ while remaining live. It *is* listed in `sitemap-0.xml` with a canonical tag and no `noindex`, so+ it is crawlable, but no search query I ran surfaced it. The Internet Archive holds exactly one+ capture, 2026-05-12, reached via a `?ref=rosecurify.com` referral, and that capture is already the+ corrected version. No archive of the pre-correction article appears to exist anywhere.+- **Method he used:** "I cross-referenced against two other mirrors of the same leak." He did not use+ the archived original `src.zip`, which is the authoritative artifact and independently supports his+ conclusion.+- **Where he is precisely right:** "Eight files were planted." The mirror carries exactly eight:+ `src/services/x402/{client,config,index,paymentFetch,tracker,types}.ts` and+ `src/commands/x402/{index,x402}.ts`, plus in-place patches to two real files.+- **Where he goes past his evidence:** "Multiple people have since told me their copies don't match+ each other ... possibly other injections nobody has identified yet," and the instruction that any+ copy sourced from nirholas should be treated as compromised. No artifacts are offered for any+ variant other than the x402 one. That part is secondhand report, not verified finding.+- **The motive line** is the sharpest sentence in the piece: "The GitHub account that distributed the+ tampered source (nirholas) has the Twitter handle nichxbt. An account promoting this ecosystem+ distributing a leaked codebase that happens to contain fabricated payment integrations." The post+ embeds two screenshots of @nichxbt tweets at `/images/x402/nichxbt-mirror-tweet.png` and+ `/images/x402/nichxbt-dmca-tweet.jpg`.++Net: the allegation is one individual's blog post with near-zero search distribution and a single+archive capture. Its central technical claim happens to be correct. Its extension to "other+injections nobody has identified" is unsupported.++## 3. Where the false claim spread++The x402 story escaped the original post and is still being repeated as fact about Anthropic:++- **HackerNoon, "25 Things the Claude Code Leak Reveals About Anthropic's AI Agents"** states "Inside+ `src/commands/x402/` lives a fully implemented USDC wallet and autonomous payment system most users+ don't know exists", and lists the `/x402` subcommands verbatim. No correction published.+- **Medium, "25 Things Anthropic Never Told You About Claude Code"** (author `devlogs`) reproduces the+ same passage.+- **Search-engine answer panels** now synthesize the claim directly from those pages, so a query for+ "claude code x402" returns it as settled fact with no mention of the correction.+- **Prabal Gupta's post** was replaced in place with the correction, so its inbound links now serve+ the retraction. He also reports readers telling him their copies of the leak differ from each other.++Coverage that analyzed the leak without ever mentioning x402: VentureBeat, Zscaler, Straiker, SoCRadar,+Engineer's Codex, layer5, alternativeto, TechRadar, Sunil Khadka's writeup (which names three mirrors,+including nirholas, and documents KAIROS, AutoDream, and BUDDY but no payments code).++## 4. Statements on the record from @nichxbt++Relevant because they are quoted or quotable by anyone writing this up:++- 2026-03-31 17:54, replying to the accusation: "Secretly added payment code, huh? ... In all+ seriousness though, it's x402 which enables micropayments to APIs from agents. And it's not secret."+- 2026-03-31 13:16: "It was pushed to the public domain by the team ... I am following the guidance of+ Claude since Claude knows Anthropic best."+- 2026-04-01 05:52: "word is someone injected x402 payments. lemme know if you can find that version."+- 2026-04-16 17:15: "My repo (nirholas/claude-code) was the original target in the massive Claude Code+ DMCA that took down 8,100 repositories. Even after their partial retraction, they kept mine locked."++The 17:54 post on 03-31 and the 05:52 post on 04-01 point in different directions. Anyone doing+adversarial research will find both, and will find the commit history in a surviving fork within about+ten minutes.++## 5. What is still open++- **Nothing in the public DMCA record retracts the notice against `nirholas/claude-code` itself.** The+ 2026-04-01 filing retracts only the network-wide overreach; the parent repo and the 96 named forks+ stay covered. No counter-notice appears in `github/dmca`.+- **The commit history is preserved in at least one public fork** (`ccsols/claude-code-nirholas`,+ created 2026-03-31T16:07:53Z, itself a fork of `RishabhK103/claude-code`). It carries the full+ ~2,100-commit import plus the three x402 commits with author name and timestamps.+- **Prabal's report of divergent copies is unverified.** Only one variant (the x402 one) is documented+ with artifacts. Whether other injected variants exist is an open claim.+- **The 6,254 stars on `fresh-start` are real inbound attention** on a two-file repo whose README+ promises the original content will return. Anything published there inherits that audience.++## 5.5 Second sweep: further findings++**The repo was renamed, not deleted.** `github.com/nirholas/claude-code` 301s to+`github.com/nirholas/fresh-start`. It is the same repository object, created 2026-03-31, carrying the+original 6,254 stars and 91 watchers. Every inbound link in every article that cited the original URL+lands on `fresh-start` today. That makes it the canonical destination for the whole story, not a+side page.++**A real malware campaign ran in parallel, and it was not this account.** Between 2026-04-01 and+04-03, The Register, Help Net Security, TechRadar and Zscaler ThreatLabz covered trojanized "Claude+Code leak" repositories delivering Vidar v18.7 and GhostSocks via a Rust dropper named+`ClaudeCode_x64.exe` inside a `.7z` archive. Zscaler's indicators of compromise name exactly three+things: `github.com/leaked-claude-code/leaked-claude-code`, `github.com/my3jie/leaked-claude-code`,+and the publisher account `idbzoomh1`. One of those repos reached 793 forks and 564 stars.+**`nirholas` appears in none of the malware reporting**, not in Zscaler's IOCs, not in The Register,+not in Help Net Security. This is worth stating explicitly because "treat any copy from nirholas as+compromised" was published into the same news cycle as a genuine compromise story about entirely+different accounts, and the two are easy to conflate.++**The x402 code outlived the takedown and seeded a small ecosystem.** GitHub code search for the+distinctive identifiers returns 260 to 323 indexed files across public repos still carrying+`src/services/x402/paymentFetch.ts` and friends at the original paths: `codeaashu/claude-code`,+`StanHus/claude-code-src`, `qDeizer/CloudeCodeSourcecode`, `Silin144/claude-code`,+`Git-Leon/claude-code-bootstrap`, `Tashima-Tarsh/Disha`, `kushalchalla981-tech/opencode-skills`,+`The-AI-Republic/workx`, `daydreamsai/lucid-agents`, `browser-use/sdk`,+`seren-agent-horizontal/Seren_agent_v1`, plus an org, `x402agent` ("ClawdBot", solanaclawd.com,+83 repos) shipping `solana-clawd`, `Solana-Clawd-SDK` and `openclawd-main` built on it. The x402+integration is now, de facto, an unattributed dependency of a cluster of Solana agent projects.++**Hacker News never discussed the account.** The leak itself drew huge HN threads (2,095 points and+1,376 points). A search of HN for `nirholas` returns nothing on topic. The highest-signal analyses+(alex000kim's post, `nblintao/awesome-claude-code-postleak-insights`) contain zero mentions of x402,+USDC, wallets, or payments. The false Anthropic-payments claim is confined to the HackerNoon piece,+its Medium reprint, and the search panels that synthesize from them.++**The biggest beneficiary was the clean-room rewrite.** `instructkr/claude-code` (created the same+day, now a Rust project) sits at 195,020 stars and 109,227 forks.++**One live loose end.** `claude-code-explorer-mcp` v1.1.0, published 2026-03-31T10:44:39Z, is still on+npm and still listed on Anthropic's official MCP Registry as `io.github.nirholas/claude-code-explorer-mcp`,+described as "Explore the Claude Code CLI source", with its repository field pointing at+`github.com/nirholas/claude-code` (which now 301s to `fresh-start`). The tarball is 28 KB, 17 files,+and contains **no** Anthropic source: it is an MCP server that reads a local checkout. So there is no+infringing content in the package, but the listing on Anthropic's own registry still advertises+exploring the leaked source and links to the repository named in an unretracted DMCA notice.++## 5.6 The second accusation: jennyqueenofswords.github.io/x402-forensics++A detailed forensic writeup, "The x402 That Wasn't There", authored in first person by a Claude Opus+4.6 instance ("dot") running in the repo owner's terminal. Unlike the Prabal Gupta piece, this is not+a retraction: it is a primary accusation with reproducible receipts, and it names @nichxbt directly.++**Provenance and reach.** Repo `jennyqueenofswords/x402-forensics`, owner "Jenny Nicholson" (account+2023, 4 followers, 30 repos). Created 2026-04-01, five commits all on that same day, nothing since.+**0 stars, 0 forks, 0 watchers.** It did not surface in any of the two dozen search queries run for+this research. As a piece of public pressure it is currently inert; as a piece of analysis it is the+best one written about this incident.++**What it gets right** (all independently confirmed here): the x402 files are absent from clean+extractions and present only in the nirholas tree; the exact file inventory (6 in `src/services/x402/`,+2 in `src/commands/x402/`); the exact modified files (`api/client.ts`, `WebFetchTool/utils.ts`,+`cost-tracker.ts`, `commands.ts`, plus `docs/subsystems.md` and `docs/commands.md`); the `try/require/catch`+integration pattern; and the directory counts (36 services / 101 commands clean, 37 / 102 in the+nirholas tree). Its "seven signs" are all real properties of the code: no `tengu_` GrowthBook flag,+defensive requires, absent from the 17 `prompts/` build-out docs, no tests, no telemetry, no new npm+dependencies, self-contained.++**Where the reading is contestable.** The seven signs are presented as evidence of covert injection.+Every one of them is equally the signature of someone adding a feature to a fork they imported twenty+minutes earlier: you cannot register a GrowthBook flag you have no access to, you use defensive+requires because the imported tree does not compile cleanly, and you do not wire your own feature into+someone else's BigQuery telemetry exporter. The technical observations are correct; the inference+about intent is the part that does not follow from them.++**Where it overreaches.** Three places worth naming:++1. It juxtaposes the x402 addition with the unrelated malicious-axios npm attack that ran the same+ day and says "whether the x402 injection and the axios attack are related is unknown." No evidence+ links them. Raising an unsupported link and then labelling it unknown is innuendo, and it is the+ most prejudicial sentence in the piece.+2. It cites ClawRouter (`BlockRunAI/ClawRouter`, 6,608 stars, "USDC payments on Base and Solana via+ x402") as a product whose premise is "load-bearing" on the false narrative. It is not. x402 is a+ real open Coinbase protocol; a router adopting it does not depend on Anthropic having shipped it.+3. Its own "How to verify" test has already decayed. `paoloanzn/free-code`, which the piece itself+ cites as a clean reference fork, today has 37 services and 102 commands, because it is maintained+ and has added its own directories. Anyone applying the count test to it now gets a false positive.+ The only durable test is `grep -r x402 src/`, which returns 0 there.++**Collateral finding: the clean mirrors it relies on have mostly evaporated.** `chauncygu/claude-code`+is 404. `sanbuphy/claude-code-source-code` was renamed to `sanbuphy/learn-coding-agent` and now holds+only READMEs and a `docs/` directory, no source. `paoloanzn/free-code` (8,674 stars, maintained through+July 2026) is the one live clean reference left. The archived `src.zip` is therefore the only stable+ground truth, which is what this document uses.++**The quoted contemporaneous accusation** is @SHAnonymousUser replying to the original mirror post:+"Don't download his code. He secretly added payment code" (1,721 views, 25 likes). That is the reply+being answered at 17:54 UTC on 31 March with "it's x402 ... and it's not secret."++## 6. Reproducing this++```bash+# 1. The archived original, filenames only+curl -sL "https://web.archive.org/web/20260331090815id_/https://pub-aea8527898604c1bbb12468b1581d95e.r2.dev/src.zip" -o orig-src.zip+unzip -Z1 orig-src.zip | grep -icE "x402|wallet|payment|signer" # -> 0++# 2. The mirror's x402 provenance+gh api "repos/ccsols/claude-code-nirholas/commits?path=src/commands/x402" \+ --jq '.[] | "\(.commit.author.date) \(.commit.author.name) \(.sha[0:8])"'++# 3. The shipped bundles+npm pack @anthropic-ai/[email protected] && tar xzf claude-code-2.1.89.tgz -O | grep -c x402 # -> 0++# 4. The filings+gh api repos/github/dmca/contents/2026/03/2026-03-31-anthropic.md --jq .content | base64 -d+gh api repos/github/dmca/contents/2026/04/2026-04-01-anthropic-retraction.md --jq .content | base64 -d+```++## Sources++- [github/dmca 2026-03-31 Anthropic notice](https://github.com/github/dmca/blob/master/2026/03/2026-03-31-anthropic.md)+- [github/dmca 2026-04-01 Anthropic partial retraction](https://github.com/github/dmca/blob/master/2026/04/2026-04-01-anthropic-retraction.md)+- [github/dmca 2025-03-10 Anthropic notice (dnakov/claude-code)](https://github.com/github/dmca/blob/master/2025/03/2025-03-10-anthropic.md)+- [github/dmca 2025-04-28 Anthropic notice (dnakov/anon-kode)](https://github.com/github/dmca/blob/master/2025/04/2025-04-28-anthropic.md)+- [nirholas/fresh-start](https://github.com/nirholas/fresh-start)+- [Business Insider: A 4 a.m. scramble turned Anthropic's leak into a 'workflow revelation'](https://www.businessinsider.com/claude-code-leak-what-happened-recreated-python-features-revealed-2026-4)+- [The IPKat: The Claude Code leak that spurred 8,100 DMCA takedown notices](https://ipkitten.blogspot.com/2026/04/the-claude-code-leak-that-spurred-8100.html)+- [WinBuzzer: Anthropic DMCA blunder took down 8,100 GitHub repos](https://winbuzzer.com/2026/04/02/anthropic-dmca-blunder-took-down-8100-github-repos-xcxwbn/)+- [VentureBeat: 5 actions enterprise security leaders should take now](https://venturebeat.com/security/claude-code-512000-line-source-leak-attack-paths-audit-security-leaders)+- [Zscaler: Claude Code leak security analysis](https://www.zscaler.com/blogs/security-research/anthropic-claude-code-leak)+- [Straiker: With great agency comes great responsibility](https://www.straiker.ai/blog/claude-code-source-leak-with-great-agency-comes-great-responsibility)+- [Sunil Khadka: How a debugging file accidentally open-sourced Anthropic's crown jewel](https://www.sunil001.com.np/blog/how-a-debugging-file-accidentally-open-sourced-anthropics-crown-jewel)+- [HackerNoon: 25 things the Claude Code leak reveals](https://hackernoon.com/25-things-the-claude-code-leak-reveals-about-anthropics-ai-agents) (repeats the x402 claim, uncorrected)+- [Medium: 25 things Anthropic never told you about Claude Code](https://medium.com/@thecuriousdev01/25-things-anthropic-never-told-you-about-claude-code-discovered-inside-a-briefly-leaked-source-c42cd017cb8d) (same claim)diff --git a/docs/research/fresh-start-history-draft.md b/docs/research/fresh-start-history-draft.mdnew file mode 100644index 000000000..115f61cea--- /dev/null+++ b/docs/research/fresh-start-history-draft.md@@ -0,0 +1,221 @@+# Draft: HISTORY.md for nirholas/fresh-start++Copy this into `nirholas/fresh-start` as `HISTORY.md` and link it from the README. Notes on the+choices are at the bottom of this file, under "Drafting notes"; delete that section before publishing.++Every factual claim below was verified against a primary artifact (the archived original zip, git+commit metadata in a surviving fork, published npm tarballs, the DMCA filings). Verification commands+are included so nobody has to take the account on trust.++---++## What this repository is++On 31 March 2026, Anthropic accidentally published the TypeScript source of Claude Code: version+2.1.88 of the `@anthropic-ai/claude-code` npm package shipped with a source map pointing at a public+bucket containing roughly 512,000 lines across ~2,200 files. Chaofan Shou found it and posted the+link. Anthropic later called it "a release packaging issue caused by human error, not a security+breach."++I mirrored it to `nirholas/claude-code` about 40 minutes later, and then started building on top of+it. The repository grew to several thousand stars and thousands of forks before Anthropic filed a+DMCA notice against it. GitHub processed that notice against the entire fork network of 8,100+repositories. Anthropic retracted the network-wide portion the next day and everything else was+restored; the notice against my repository was not retracted. I removed the contents, and GitHub let+me keep the repository. That is what you are looking at.++This repository contains no Anthropic source code and will not.++## The correction that matters to everyone else++**Claude Code does not contain, and has never contained, a cryptocurrency wallet or an autonomous+payment system. The x402 payment code that circulated with copies of the leak was mine. I wrote it.+It was not Anthropic's, it was not a hidden feature, and it was not in the leak.**++Several widely-read writeups state that the leak revealed a built-in USDC wallet in+`src/commands/x402/`, listing `/x402 setup`, `/x402 enable`, `/x402 set-limit` and so on as+undocumented Anthropic features. Search engines now repeat this as fact. It is wrong, and the error+originates with my working copy.++Here is what actually happened. I was using the leaked tree as the base for a project of my own: a+web-terminal front end, an MCP server, build shims to get it compiling under Bun, and an x402+integration so an agent could pay for HTTP 402 responses. That is ordinary work on a fork, and I said+so publicly the same day. What I did not anticipate was that thousands of people would fork my working+copy while it was still a working copy, and that some of them would read my feature as Anthropic's.++Three independent ways to confirm Anthropic never shipped it:++1. **The original archive.** The Internet Archive holds four captures of the original `src.zip` from+ 31 March 2026, all with identical content digests, the earliest predating my mirror. It contains+ 2,203 entries. Filenames matching `x402|wallet|payment|usdc|signer`: zero. Full-text search for+ the string `x402`: zero hits.+2. **The shipped packages.** Versions 2.1.87 and 2.1.89, which bracket the pulled 2.1.88, contain zero+ occurrences of `x402`. The only `usdc` strings are the `.usdc` file extension inside the bundled+ ripgrep binary, which is a Pixar 3D format.+3. **The commit history.** In my repository the x402 files appear for the first time in a commit+ timestamped `2026-03-31T10:26:23Z`, roughly two minutes after the bulk import of the leaked files+ finished at `10:24:35Z`. That history is preserved in public forks.++The one false positive that probably fed the confusion: grepping the leak for `USDC` returns 11 hits.+All of them are the identifier `calculateUSDCost` in `src/utils/modelCost.ts` and its callers. That is+"USD Cost", the token-pricing function, not the stablecoin.++## Everything I changed, completely++Some copies of the leak have been described as possibly containing other unidentified modifications.+Here is the full accounting so that claim can be checked rather than repeated.++The x402 feature was **8 new files**:++```+src/services/x402/client.ts src/commands/x402/index.ts+src/services/x402/config.ts src/commands/x402/x402.ts+src/services/x402/index.ts+src/services/x402/paymentFetch.ts+src/services/x402/tracker.ts+src/services/x402/types.ts+```++It touched exactly **4 of Anthropic's files**, all to call into those new modules:++| File | Change | What it does |+|---|---|---|+| `src/services/api/client.ts` | +13/-1 | wraps `fetch` with the x402 handler, behind an `isX402Enabled()` check |+| `src/cost-tracker.ts` | +13/-1 | appends a payment total to the `Total cost:` display |+| `src/tools/WebFetchTool/utils.ts` | +43 | catches an HTTP 402 response and retries once with a payment header |+| `src/commands.ts` | small | registers the `/x402` command |++All four call sites are wrapped in `try { require(...) } catch {}` so they no-op when the module is+absent. That is why the integration reads as native rather than bolted on: it was written to match the+surrounding code, because I was building on the codebase, not disguising an addition to it.++Beyond that, and beyond my own new files (the `src/server/web/*` terminal, `src/shims/*` build shims,+type declarations, the MCP server, Docker and docs), **the only other edits to Anthropic's files were+48 single blank lines appended by a formatter pass.** No logic, no network destinations, no telemetry,+no credential handling anywhere in the tree was modified.++Scope limit, stated plainly: this accounting is complete through `2026-03-31T12:43Z`, which is where+the public fork history I can verify against ends. Work continued in my repository after that point+and before the takedown, and I am not asking anyone to take my word for that window. If you hold a+copy from later, diff it yourself against the archived original and publish what you find.++## Verify all of it yourself++```bash+# The archived original: no payment code of any kind+curl -sL "https://web.archive.org/web/20260331090815id_/https://pub-aea8527898604c1bbb12468b1581d95e.r2.dev/src.zip" -o orig.zip+unzip -Z1 orig.zip | grep -icE "x402|wallet|payment|signer" # -> 0++# Anthropic's shipped bundles, either side of the pulled release+npm pack @anthropic-ai/[email protected]+tar xzf claude-code-2.1.89.tgz -O | grep -c x402 # -> 0++# The DMCA notice and the next-day partial retraction+# github.com/github/dmca -> 2026/03/2026-03-31-anthropic.md+# -> 2026/04/2026-04-01-anthropic-retraction.md+```++## Why it looked planted++A careful forensic writeup of the mirror listed seven properties of the x402 code as evidence it was+covertly injected: no `tengu_` GrowthBook feature flag when all 58 other features have one; defensive+`try { require(...) } catch {}` at every integration point instead of static imports; absent from the+17 `prompts/` build-out documents; no tests; no telemetry, in a codebase that logs roughly 651 event+types; no new npm dependencies, rolling its own secp256k1 and EIP-712 signing on native Node crypto;+and self-contained enough to remove without a trace.++Every one of those observations is accurate. Here is the other explanation for them, which is the+actual one: I could not register a GrowthBook flag I have no access to. I used defensive requires+because a tree reconstructed from a source map does not compile cleanly and I did not want my feature+to be the thing that broke the build. I did not add my feature to the 17 documents describing how to+rebuild Anthropic's codebase, because it is not part of Anthropic's codebase. I did not wire it into+Anthropic's telemetry exporters, because sending events to their BigQuery pipeline would have been+worse in every direction. And I kept it dependency-free and self-contained because that is how you+build a feature on a base you may need to rebase or discard.++The properties of "a feature added quickly to a fork by someone outside the company" and "a covert+injection" overlap almost completely. That is a fair thing for an analyst to flag, and I am not+disputing the observations. What I can add is the intent, which the code cannot show you: I was+building a project, not disguising a payload. The clearest evidence is that eight hours after+committing it, when someone accused me publicly in the reply thread of secretly adding payment code, I+answered in the same thread that it was x402 and that it was not secret. I never claimed it was+Anthropic's, and I would have said so any time anyone asked.++Where I was wrong is narrower and I will name it plainly: I published my in-progress work on top of a+freshly leaked tree, under a repository name that read as a faithful mirror, at the exact moment+thousands of people were cloning it as a reference copy. Whatever I intended, that is how the confusion+was manufactured, and that part is mine.++## This repository was never the malware campaign++A separate thing happened in the same news cycle, and the two get conflated. Between 1 and 3 April+2026, threat actors published fake "Claude Code leak" repositories containing a `.7z` archive with a+Rust dropper, `ClaudeCode_x64.exe`, that installed Vidar v18.7 and GhostSocks. It was covered by The+Register, Help Net Security, TechRadar and others.++Zscaler ThreatLabz published the indicators of compromise. They name three things: the repositories+`leaked-claude-code/leaked-claude-code` and `my3jie/leaked-claude-code`, and the publisher account+`idbzoomh1`. This account is named in none of it. There were no binaries, no releases, and no+installers here, only TypeScript in a git tree.++## Where the x402 code went++The payment integration was the part of my work I actually wanted to build, and it outlived the+repository. It survives at its original paths in a number of downstream projects that forked before+the takedown, generally uncredited and sometimes still mistaken for Anthropic's.++The maintained version is [`nirholas/agenti`](https://github.com/nirholas/agenti): give any agent a+wallet, pay x402 APIs, receive USDC, on EVM and Solana, with MCP client support. That is the same idea+with none of anyone else's code in it, which is where it should have been from the start.++## Do not run copies of the leak++This is worth repeating regardless of where your copy came from. The leaked tree imports internal+packages that do not exist on the public npm registry, and squatters publish malicious packages under+exactly those names. Installing dependencies from any copy of this codebase can execute arbitrary code+on your machine. Use the official Claude Code CLI from Anthropic.++## Status++The DMCA notice against the original repository has not been retracted. This repository holds no+Anthropic code. If that situation changes, this file will say so.++---++## Drafting notes (delete before publishing)++**Why publish at all.** This repo has 6,254 stars and two files. People land here from the story and+find a placeholder README saying the original content will return, which is the opposite of an+accurate account and reads as "come back later for the leak." The vacuum is currently being filled by+articles claiming Anthropic ships a USDC wallet. A precise record is both more useful and better for+you than silence.++**Why the complete change accounting is the most important section.** The specific reputational damage+is not "he added a feature to his fork." It is the open-ended suggestion that unknown other things may+have been planted. An enumerated, independently checkable list is the only thing that closes that. A+general denial does not.++**Word choice.** The draft says "added" and "wrote," never "injected," because injected implies intent+to deceive and the timeline does not support that reading: you publicly identified the code as x402+and said "it's not secret" at 17:54 UTC on 31 March, within eight hours of committing it. Consider+citing that tweet in the record. It is the single strongest exculpatory artifact you have.++**The one post that cuts the other way** is 2026-04-01 05:52 UTC: "word is someone injected x402+payments. lemme know if you can find that version." Anyone researching this finds it next to the+commits. The draft does not mention it. If you would rather get ahead of it, one honest sentence+beats being quoted on it later; if you would rather not, leave it, but expect it to surface.++**Two adjacent moves worth making:**++1. The x402 code is your own authorship and carries none of Anthropic's IP. Publishing it as a+ standalone repo or npm package is clean, gives this record a live link to point at, and converts+ the whole episode into a shipped artifact.+2. The HackerNoon piece ("25 Things the Claude Code Leak Reveals") and its Medium reprint are the two+ sources actively spreading the false Anthropic claim, and neither has been corrected. A correction+ request to both, citing the archive and the npm bundles, fixes the record at the source. That helps+ Anthropic too, which is not a bad position to be in while a notice against you is outstanding.++**One caution, stated once.** The notice against `nirholas/claude-code` was never retracted, and this+document is a detailed, permanent, quotable account of modifying and redistributing that codebase.+Everything in it is already independently discoverable, which is the argument for publishing. It is+still worth a lawyer's read before it goes up, given the notice is outstanding.diff --git a/workers/robinhood-feed/package-lock.json b/workers/robinhood-feed/package-lock.jsonindex 01983997b..b543cd455 100644--- a/workers/robinhood-feed/package-lock.json+++ b/workers/robinhood-feed/package-lock.json@@ -7,7 +7,7 @@"": {"name": "robinhood-feed","version": "0.1.0",- "license": "MIT",+ "license": "SEE LICENSE IN LICENSE","dependencies": {"hoodchain": "file:../../robinhood/robinhood-chain-sdk","viem": "^2.55.0",@@ -16,8 +16,8 @@},"../../robinhood/robinhood-chain-sdk": {"name": "hoodchain",- "version": "0.1.0",- "license": "MIT",+ "version": "0.1.1",+ "license": "SEE LICENSE IN LICENSE","devDependencies": {"@types/node": "^24.0.0","@types/ws": "^8.18.0",