← Back to all posts

This Week in AI: Claude's Source Code Hits the Streets, JavaScript Gets Backdoored, and GitHub Puts Ads in Your PRs

Week 14, 2026 — April 4th | Covering content from Matt Wolfe, Fireship, ThePrimeagen, Two Minute Papers, and freeCodeCamp

🎙️ Podcast version generating — check back shortly for the audio overview.

What a week. If you blinked, you missed Anthropic accidentally open-sourcing their crown jewels, a supply chain attack hitting one of npm's most popular packages, Microsoft shoving ads into your pull requests, and Google dropping a paper that moved semiconductor stock prices. Oh, and it was April Fools' week, which meant separating actual news from elaborate jokes was its own full-time job.

Let's break it all down.

The Anthropic Leak: When "Safety First" Meets "Oops, We Published Everything"

The biggest story of the week — by a mile — was Anthropic accidentally leaking the entire source code of Claude Code onto the internet. And honestly, the irony writes itself: the company that has built its entire brand around AI safety and closed-source-for-your-protection accidentally shipped a 57-megabyte source map file in their npm package.

As Fireship broke down, security researcher Chiao Fan Sha discovered that version 2.1.88 of the Claude Code npm package contained the full readable source — over 500,000 lines of TypeScript. By the time Anthropic's legal team started firing off DMCA takedowns, the code had been mirrored everywhere. Someone even used OpenAI's Codex to rewrite the entire thing in Python and published it as "Claw Code," which racked up 50,000 GitHub stars in record time. Another fork called "OpenClaw" made it work with any model.

ThePrimeagen traced the root cause to a deliciously ironic chain of events: Anthropic had acquired Bun.js, and three weeks before the leak, someone opened a GitHub issue about Bun serving source maps in production. The issue was marked as a duplicate and largely ignored. Then boom — Anthropic's entire codebase shipped to npm for the world to see.

But the leak itself was just the beginning. What people found inside the code was far more interesting.

Chyros: Claude's Always-On Daemon Mode

Matt Wolfe's deep dive highlighted the most significant discovery: a feature called Chyros, described in the code as an "autonomous daemon mode." This would allow Claude Code to operate as an always-on background agent that receives a "heartbeat" every few seconds — essentially a prompt that asks "anything worth doing right now?"

If Chyros decides to act, it can fix code errors, respond to messages, update files, and run tasks — all without you asking. It also gets three exclusive tools that regular Claude Code doesn't have: push notifications (reaching you on your phone even when you're not in the terminal), file delivery (sending you things it created proactively), and pull request subscriptions (watching your GitHub and reacting to code changes autonomously).

The code also revealed a sophisticated three-layer memory architecture that moves away from the "store everything" approach. At its core is a memory.md file — a lightweight index of pointers that's always loaded into context. It doesn't store data; it stores locations. Raw transcripts are never fully loaded back into context but are searched (grepped) for specific identifiers when needed. Think of it as Claude maintaining a personal index card system rather than trying to remember every conversation verbatim.

Anti-Distillation and the Frustration Detector

Fireship's code review also uncovered some spicy internal mechanisms: anti-distillation poison pills designed to prevent competitors from training on Claude's outputs, an "undercover mode" (purpose unclear), and — my personal favorite — a regular expression-based frustration detector that presumably adjusts Claude's behavior when it detects you're getting annoyed. We've all been there.

The Axios Supply Chain Attack: 100 Million Downloads, One Compromised Maintainer

In what might be the most sophisticated npm attack we've seen, Fireship reported that Axios — a library with over 100 million weekly downloads — was compromised through a supply chain attack. Two malicious versions were published to npm containing a remote access Trojan (RAT) that could exfiltrate AWS credentials, API keys, and everything else in your environment files.

The attack was elegant in its simplicity: rather than modifying Axios's source code directly, the attacker slipped a rogue dependency called plain-crypto-js into the release. This dependency's post-install script silently downloaded a RAT from a command-and-control server, then wiped its own traces. The compromised versions were published from a Proton Mail address — a clear departure from the project's normal GitHub Actions-based release process.

The extra kicker? The leaked Claude Code source revealed that Anthropic themselves were using Axios, meaning their systems were theoretically vulnerable to the same attack. As ThePrimeagen noted, the timing of these two stories overlapping was almost too perfect.

GitHub's Ad-Gate: When "Product Tips" Look Suspiciously Like Sponsored Content

ThePrimeagen's incredulous coverage of Microsoft injecting ads into GitHub pull requests was the kind of story that sounded like an April Fools' joke but absolutely wasn't. After Copilot touched a PR, it would add a "tip" at the bottom suggesting users try Raycast — complete with a third-party link. Within hours, 11,400+ PRs had this "definitely not an advertisement" appended to them.

Microsoft's defense was that these were "product tips" meant to highlight novel ways to use Copilot, but as Prime pointed out, linking to a third-party product in a PR description is not a "tip" — it's an ad. The feature was pulled quickly, but the damage was done: yet another trust erosion for a platform that has already had 90 incidents in 90 days, dropping to 90.84% uptime.

The broader concern here isn't just about ads. It's about GitHub — the platform that hosts the world's source code — slowly becoming less reliable and more commercially aggressive at the same time. That's a combination that makes developers start looking for alternatives.

Google's TurboQuant: Old Math, New Tricks, Real Results

Not all the news was doom and gloom. Two Minute Papers covered Google's TurboQuant paper, which claims 4-6x less memory usage and 8x faster computation for the attention mechanism in large language models — with no meaningful loss in quality. The technique compresses the KV cache (the short-term memory of LLMs) using a clever combination of three existing mathematical techniques.

The key insight: before quantizing (chopping off precision from numbers), you rotate the vectors in a random direction using a Johnson-Lindenstrauss transform. This spreads energy evenly across dimensions, so when you round things off, you lose a little from everywhere instead of everything from one direction. None of these individual techniques are new — quantization, rotation, and JL transforms are decades-old ideas — but the combination is proving remarkably effective.

Independent benchmarks show 30-40% KV cache memory reduction in practice, with some configurations approaching 50%. Not the 4-6x claimed in the paper, but still significant enough to move semiconductor stock prices. The controversy? Some researchers feel the claims were overhyped relative to real-world results. But even the conservative numbers matter in a world facing a GPU memory shortage.

The State of JavaScript (and Whether It Has a Future)

ThePrimeagen kicked off a fascinating retrospective on "The End of JS", revisiting Gary Bernhardt's legendary 2014 conference talk "The Birth and Death of JavaScript" — which, coincidentally, predicted 2026 as a pivotal year. The talk's core prediction revolved around asm.js evolving into a universal compile target for the browser, which essentially became reality through WebAssembly.

The irony is that while WASM exists and works, JavaScript didn't die. It adapted. But the conversation has shifted: with frameworks like Cloudflare's V-Next (covered in Prime's standup episode with Cloudflare's CTO), we're seeing companies build Next.js-compatible alternatives specifically because deploying Node-based frameworks on edge infrastructure remains painful.

Meanwhile, Fireship spotlighted pretext, a new text measurement library by former React core team member Chang Lu that bypasses the browser's layout engine entirely. By using the Canvas API for width measurement and a custom line-break algorithm (painstakingly refined with AI assistance), pretext achieves within-1-pixel accuracy for text dimensions without triggering browser reflows. It's the kind of deep infrastructure work that makes virtualized lists, masonry layouts, and text-heavy UIs dramatically more performant.

The Slop PR Epidemic (and How to Attract More of Them)

In one of the funnier segments of the week, ThePrimeagen riffed on the growing problem of AI-generated garbage pull requests flooding open-source repositories. After TL;DR, a popular open-source library, closed their PRs due to the influx of low-quality AI submissions, someone put together a satirical "10 principles" guide for maximizing slop PRs on your repos.

The tips included writing vague issues ("performance could be better"), opening up contributing.md to welcome "all sources," disabling branch protection, and using the "good first issue" label liberally. It's funny because it's true — and it points to a real tension in the open-source ecosystem where AI tools are making it trivially easy to generate pull requests that look plausible but add zero value.

AI-Assisted Development: The Tools Are Getting Real

On the more constructive end, freeCodeCamp published a comprehensive 90-minute tutorial covering the current state of AI-assisted coding tools, including OpenClaw, GitHub Copilot, Claude Code, CodeRabbit, and Gemini CLI. The tutorial takes a practical approach, walking through real workflows rather than just feature lists.

Meanwhile, freeCodeCamp also covered how non-technical founders are using Claude Code for marketing automation — building virtual teams of AI "collaborators" that handle lead generation, cold outreach, and sales pipeline management. It's a fascinating example of AI tools being used far outside their intended dev-tools context.

And in podcast form, freeCodeCamp interviewed Chris Griffing, who has live-streamed over 15,000 hours of coding on Twitch. His perspective on AI tools is grounded in experience: they're useful, but the fundamentals of understanding your codebase and writing code manually haven't become less important — they've become more important, because you need to be able to evaluate what AI produces.

The Big Picture

If there's a thread connecting all of this week's stories, it's this: the AI-assisted future of development is arriving fast, but the guardrails aren't keeping up.

Anthropic's leak showed us that even the "safety-first" companies can ship their entire source code by accident. The Axios attack demonstrated that our dependency chains are still frighteningly vulnerable. GitHub's ad injection revealed how commercial pressure can erode developer trust. And the slop PR epidemic shows that making AI tools accessible to everyone means everyone uses them — including people who probably shouldn't be submitting pull requests in the first place.

But there's genuine progress too. TurboQuant could meaningfully reduce the hardware costs of running LLMs. Libraries like pretext are solving real, decade-old problems in web rendering. And the AI coding tools landscape — messy as it is — is giving developers genuinely useful capabilities that didn't exist a year ago.

The developers who'll thrive aren't the ones blindly adopting every AI tool or the ones rejecting them entirely. They're the ones who understand the fundamentals deeply enough to know when AI output is good and when it's slop. As Chris Griffing's 15,000 hours of live-coding suggest: there's no shortcut for actually knowing what you're doing.

See you next week. Try not to leak any source code in the meantime.


Sources: Matt Wolfe, Fireship, ThePrimeagen, Two Minute Papers, freeCodeCamp

This Week in AI: Claude's Source Code Hits the Streets, JavaScript Gets Backdoored, and GitHub Puts Ads in Your PRs · Matt Rowe