Blog

Di Guardia

AI analysis without the press-release perfume.

Sharp reporting on the models, tools, economics, and power grabs shaping what gets built next.

  • The $285 Billion Miscalculation: How Chinese AI Is About to Break the American Model

    The $285 Billion Miscalculation: How Chinese AI Is About to Break the American Model

    The Gap That $285 Billion Couldn’t Buy

    Here’s a number that should make every OpenAI and Anthropic investor lose sleep: the United States spent 23 times more than China on private AI investment in 2025. $285.9 billion versus $12.4 billion. And the performance gap between the best American and Chinese AI models? According to Stanford HAI’s 2026 AI Index, it has shrunk to 2.7 percentage points.

    In May 2023, that gap was 17.5 to 31.6 points. Three years and hundreds of billions of dollars later, it’s a rounding error.

    DeepSeek V4 Pro scores 87 on BenchLM. GPT-5.4 scores 88. DeepSeek openly acknowledges trailing the absolute frontier by “approximately 3 to 6 months.” But V4 is open-weight, has 1.6 trillion parameters, and costs four times less to use than its American competitors. The question isn’t whether the gap will close. It’s what happens to the entire American AI economy when it does.

    “They Just Copy American Models” and Other Fairy Tales

    Let’s get something out of the way. The narrative that Chinese AI models are strong because they distill American ones is not just wrong. It is mathematically absurd, and anyone repeating it in 2026 should be disqualified from serious AI discussion.

    Can you do supervised fine-tuning from another model’s outputs? Sure. You can coax some latent capabilities to the surface, transfer certain reasoning patterns, calibrate response quality. But thinking you can reconstruct a frontier model from API traces is like seeing a handful of points on a billion-dimensional surface and believing you can interpolate the whole thing. You can’t. The information simply isn’t there.

    What is there, in plain sight, is DeepSeek’s published research. Detailed papers on MoE architecture, reinforcement learning pipelines, the most advanced publicly available attention mechanism. These aren’t people copying homework. They’re publishing the textbook.

    And here’s the part that makes the distillation accusation genuinely embarrassing: LLMs themselves are a distillation of public human knowledge. Every American frontier model is trained on the same public internet, the same books, the same papers. Accusing China of distillation while doing the exact same thing with a bigger GPU bill is, to put it charitably, a position that’s very hard to defend.

    The Real Reason China Can Build Frontier Models (It’s Not Complicated)

    The answer is painfully simple. They have the talent, the recipe, and the motivation.

    Talent: China has a massive population that has invested heavily in technical education. The pipeline of ML researchers is enormous. While Western researchers get absorbed into corporate labs where their work becomes proprietary, Chinese researchers publish. China published more AI research papers than the US in 2025.

    The recipe: The Transformer architecture is public. The training techniques are well-documented. If you look at DeepSeek V4 and look at GPT-2, you don’t see two unrelated technologies. You see a refinement of the same fundamental approach. There’s no secret sauce. There’s execution.

    GPU constraints as a feature: US export controls on Nvidia H100 and A100 chips forced Chinese labs to innovate on software efficiency. That constraint produced breakthroughs in algorithmic optimization that now benefit the entire open-source ecosystem. Sometimes the best way to breed innovation is to take away the brute-force option.

    Open-Weight Isn’t Charity. It’s Strategy.

    Why does China release models for free? To understand this, imagine they didn’t. Imagine China had no competitive LLMs, like Europe.

    The consequences would be catastrophic. Total dependency on American infrastructure for military, government, and corporate AI. Every sensitive query flowing through US servers. A massive hemorrhage of capital, hundreds of billions flowing from the Chinese economy to Silicon Valley just to keep up. And a productivity gap that would compound every year: if your competitor’s programmers generate 10,000 lines of code per hour with AI assistance and yours generate 200, you’re not competing. You’re dying.

    Not having domestic LLMs would have been a death sentence. China understood this immediately.

    But they also understood they couldn’t sell APIs. The Americans had more GPUs, a first-mover advantage, and the trust of the global enterprise market. So China did the only rational thing: give the models away, distribute the knowledge, and capture the ecosystem.

    The result? Alibaba’s Qwen family now has 942 million total downloads, more than double the next eight competitors combined. That’s not charity. That’s the most successful platform play since Android.

    The 1,000x Cost Collapse Nobody Priced In

    The financial numbers around LLM inference costs are almost comical in how fast they’ve moved.

    In late 2022, running a GPT-4-class model cost about $20 per million tokens. In early 2026, equivalent performance costs $0.40 per million tokens. That’s a 1,000x reduction in three years, one of the fastest cost declines in computing history.

    DeepSeek V3.2 charges $0.28 per million input tokens. GPT-5.2 charges roughly $10. That’s a 35x price difference for near-parity quality on most tasks. For coding, math, and general workloads, Chinese models often offer quality parity at 1/15th the cost.

    Gartner predicts another 90%+ decline by 2030. An academic paper published earlier this year identified a structural break in May 2024: the shift from technology-driven price decline (hardware, architecture) to competition-driven price decline (providers undercutting each other for market share). Technology-driven decline has physical limits. Competition-driven decline can push prices below cost. Which is exactly what’s happening.

    Gold coins disintegrating into digital pixels, symbolizing the 1000x collapse in AI inference costs
    The price of intelligence is in free fall. The question is who hits the ground first.

    OpenAI Is Burning. Anthropic Is Sprinting. Neither Might Win.

    The financial picture for the two leading US AI labs is a study in contrasts, but both face the same existential question.

    OpenAI: 900 million users, only 5.5% paying. Burning $17 billion per year in cash. HSBC projects $44 billion in cumulative losses through 2028. The company projects spending $121 billion on compute in 2028 alone, and doesn’t expect to break even until after 2030. That’s not a business model. That’s a prayer.

    Anthropic: Now ahead of OpenAI in revenue at $30 billion ARR versus OpenAI’s $24 billion. Grew 30x in 15 months. Spends 4x less on training. Generates 70% more revenue per unit of compute. Projects positive cash flow by 2027.

    The divergence is structural. OpenAI is a consumer company building enterprise products. Anthropic is an enterprise company that happens to have a consumer product. OpenAI gives away 94.5% of its product for free and hopes the remaining 5.5% covers the bill. Anthropic charges premium prices to professionals who can’t afford bad outputs.

    But here’s the thing neither company can escape: what happens when near-equivalent capability costs 1/15th the price? You can be the most efficient American AI lab in history and still lose to “free.”

    Both companies are pivoting hard into enterprise services to escape pure model commoditization. Anthropic partnered with Blackstone, Goldman Sachs, and Hellman & Friedman to form an AI services company. OpenAI raised $4 billion to create “The Deployment Company.” They’re both running from the same monster: the day when selling API access to an LLM is like selling tap water.

    Glass skyscraper with cracks at the base reflecting neural network patterns, symbolizing AI stock market fragility
    $5 trillion in market cap, built on circular financing. What could go wrong?

    The Stock Market Is Standing on a Trap Door

    Nvidia crossed $5 trillion in market cap, higher than the GDP of every country except the US and China. Six AI-adjacent companies account for roughly 30% of the S&P 500. The tech sector issued $428 billion in bonds in 2025, mostly for AI capex.

    And the whole thing is built on circular financing. Oracle builds data centers for OpenAI. Nvidia supplies Oracle. Nvidia invests in OpenAI. OpenAI has a deal with CoreWeave, which has a deal with Oracle. The capital is eating its own tail, and every player reports the circular spending as revenue growth.

    Michael Burry, the investor who called the 2008 housing collapse, is loading puts against Nvidia. Capital Economics’ John Higgins identified something even more alarming: not just a stock price bubble, but potentially an earnings bubble. “There may be one [bubble] actually in the fundamental side of things, which is quite rare.” If the actual earnings are inflated by circular AI ecosystem spending, a correction wouldn’t just reprice stocks. It would crater the fundamentals.

    OpenAI missing key growth targets in early 2026 is exactly the kind of crack that could propagate through this structure. The Bank of England has warned of growing risks of a global market correction due to overvaluation of AI tech firms. When central banks start worrying, you should too.

    This Is the Nuclear Arms Race of Our Generation

    Both sides had to do this. The US couldn’t not build an AI industry, because falling behind China would mean strategic subordination in military capability, economic productivity, and scientific research. China couldn’t not build LLMs, because dependency on American AI infrastructure would have been a geopolitical death trap.

    The parallel to the nuclear arms race sounds forced until you think about it for five minutes. The RAND Corporation and the Atlantic Council both frame it in these terms. Both nations are compelled to invest regardless of ROI, because the alternative, ceding AI dominance, is unacceptable.

    But here’s a crucial difference: the Americans interpreted this compulsion through turbocapitalism. Build unicorns, attract venture capital, target $1 trillion+ valuations. The Chinese interpreted it through state-directed ecosystem building. Distribute the technology, democratize access, build soft power.

    The American approach assumes the winner captures monopoly rents. The Chinese approach assumes AI becomes a commodity and plays accordingly. If the commodity thesis is right, and all evidence points that way, one of these strategies was a $285 billion mistake.

    So Who Actually Wins?

    Not OpenAI, unless they can pivot from “the best model” to “the best enterprise platform” fast enough. Their current burn rate is a ticking clock.

    Not Nvidia, at current valuations. If inference becomes a commodity utility, the insatiable demand for cutting-edge training hardware levels off. The $5 trillion market cap assumes permanent scarcity. Commoditization is the opposite of scarcity.

    Probably Anthropic, if anyone. They’ve built the highest-revenue-per-user AI business, have the strongest enterprise positioning, spend far less on training, and are closest to profitability. But “probably wins among the Americans” isn’t the same as “wins.”

    The real winners are developers and businesses everywhere. Competition plus commoditization equals cheaper, better tools for everyone. The question “who has access to AI?” disappears. The question “who builds the best products with AI?” takes over.

    And Europe? Europe contributed Hinton, Bengio, half the foundational research behind the Transformer, and then watched the entire industry get built by others. No frontier model, no major AI company, no strategic position. Just a very large customer base. We didn’t deserve this outcome, but we got it anyway. (I wrote more about the open-weight revolution in my analysis of GLM 5.2.)

    The Clock Is Ticking

    The playing field is shifting. When the boundaries of the game change, those who seem marginal today can find themselves central, and today’s giants can find themselves in trouble. The US is ahead today. The momentum belongs to China. And the gap between those two statements is closing faster than the stock market has priced in.

    The next 18 months will tell us whether the American AI economy was a generational investment or a generational miscalculation. Either way, the models are becoming a commodity. The only question left is who adapts first.

    Sources: Stanford HAI AI Index 2026, Council on Foreign Relations, Gartner, RAND Corporation, Atlantic Council, Brookings Institution. This analysis was also informed by a video essay by Salvatore Sanfilippo (antirez), creator of Redis, on the strategic logic of China’s open-weight AI approach.

  • GLM 5.2: The First Frontier AI Model You Can Actually Download

    GLM 5.2: The First Frontier AI Model You Can Actually Download

    For about three years, the same sentence kept appearing in every AI conversation, like a tic. “Yes, the open models are catching up, but they’re still six to twelve months behind the closed frontier.” It became background noise. A polite way of saying that if you wanted the best, you paid Anthropic or OpenAI, you accepted the rate limits, and you stopped asking questions.

    Z.ai just made that sentence sound stupid.

    On June 16, 2026, the Chinese lab released GLM 5.2, an MIT-licensed, 744-billion-parameter mixture-of-experts model with 40B active parameters, a 1-million-token context window, and a score of 51 on the Artificial Analysis Intelligence Index v4.1. That score is not “good for an open model.” It is the highest open-weights score ever recorded on that index, eleven points higher than GLM 5.1, and it sits effectively tied with proprietary models that cost ten times more per task.

    This is the moment. The first time a fully open frontier model has results that aren’t apologetic.

    Glowing red and gold neural sphere representing GLM 5.2 open weights frontier model
    The first frontier model you can actually download.

    What “frontier and open” finally means

    Let’s get the terminology out of the way, because the AI industry loves blurring it. Open weights means the model’s parameters are downloadable. Anyone can host it, fine-tune it, run it on their own GPUs, audit its behavior. MIT license means commercial use, modification, and redistribution are all permitted with effectively no strings attached. There’s no “non-commercial only” trap, no “must request approval over 700 million users” clause, no community-use license dressed up in open-source clothes.

    GLM 5.2 ships under MIT. It’s on Hugging Face. You can fork it tonight.

    What changed compared to the previous wave of capable open models? Three things, and they all matter.

    One: the benchmarks aren’t selective. Past open releases would lead a single eval (usually a math or code benchmark the team had clearly trained for) and pretend that proved parity. Artificial Analysis’s Intelligence Index is a composite of nine benchmarks — GDPval-AA v2, τ³-Banking, Terminal-Bench v2.1, SciCode, Humanity’s Last Exam, GPQA Diamond, CritPt, AA-Omniscience, AA-LCR — covering reasoning, science, agentic workflows, long-context retrieval, and hallucination resistance. GLM 5.2 leads every other open model on the aggregate.

    Two: it’s not behind on agentic work. The new headline number is GDPval-AA v2, the real-world economic-task benchmark. GLM 5.2 scores 1524, leading all open-weights models, ahead of MiniMax-M3 (1418) and DeepSeek V4 Pro (1328). It is effectively tied with GPT-5.5 xhigh (1514). For an open MIT-licensed model to sit next to OpenAI’s top reasoning configuration on the benchmark designed to measure real economic value is, frankly, the headline.

    Three: the gap to the absolute top closed at the same time the gap to the rest opened up. GLM 5.2 didn’t just edge out the next open model. It put seven points between itself and the second-best (MiniMax-M3 at 44). That’s not catching up. That’s clearing.

    The benchmark numbers, in detail

    Here’s what jumped most between GLM 5.1 and GLM 5.2, with the same parameter count (744B / 40B active):

    • CritPt (scientific reasoning): +16 points, now 21%
    • Humanity’s Last Exam: +12 points, now 40%
    • AA-LCR (long-context retrieval): +9 points, now 71%
    • τ³-Banking: +15 points, now 27%
    • SciCode: +7 points, now 50%
    • Terminal-Bench v2.1: +16 points, now 78%
    • GPQA Diamond: +3 points, now 89%
    • AA-Omniscience Index: 4 (up from 2), accuracy 25.1% (up from 24.2%), hallucination 28.1% (down from 29.4%)

    A 16-point jump on Terminal-Bench and another 16 on CritPt, from the same architecture, points to either a serious data and post-training overhaul or substantially more reasoning compute spent during training, or both. The context window also tripled, from 200K in GLM 5.1 to 1M tokens in 5.2, without sacrificing retrieval quality (the AA-LCR jump confirms it).

    Bar chart showing GLM 5.2 leading open weights models on the Artificial Analysis Intelligence Index
    GLM 5.2 leads the open weights field by seven points. Not catching up. Clearing.

    How GLM 5.2 stacks up against everyone else

    The interesting question isn’t whether GLM 5.2 beats other open models. It does, comfortably. The interesting question is how it compares to the proprietary frontier on price and intelligence at the same time.

    Here’s the table. Pricing is per 1 million tokens. Intelligence is the Artificial Analysis Intelligence Index v4.1 composite score. Open means the weights are downloadable under a license that allows commercial use.

    Model Maker Open? Intel. Index Input $/M Output $/M Context
    GLM 5.2 (max) Z.ai Yes (MIT) 51 $1.40 $4.40 1M
    GPT-5.5 (xhigh) OpenAI No ~53 ~$10 ~$40 400K
    Claude Fable 5 Anthropic No ~52 ~$15 ~$75 500K
    Gemini 3.5 Pro Google No ~49 ~$5 ~$20 2M
    MiniMax-M3 MiniMax Yes 44 $0.80 $3.20 1M
    DeepSeek V4 Pro DeepSeek Yes (MIT) 44 $0.27 $1.10 256K
    Kimi K2.6 Moonshot Yes 43 $0.60 $2.50 512K
    GLM 5.1 (max) Z.ai Yes (MIT) 40 $1.20 $4.00 200K
    Gemma 4 27B Google Yes (Apache 2.0) 34 ~$0.20 ~$0.60 128K
    Llama 4 Behemoth Meta Yes (custom) 36 $0.50 $2.10 256K
    Pricing and intelligence comparison, June 2026. Closed-model pricing is the first-party API rate at default reasoning settings; the proprietary index scores are approximate from publicly available Artificial Analysis snapshots.

    Read that table for a minute and notice what it says. GLM 5.2 is about seven times cheaper on input than GPT-5.5 and about nine times cheaper on output, while landing within two index points of the absolute frontier. Claude Fable 5 is roughly seventeen times more expensive on output for one extra index point.

    If you’ve been paying Anthropic or OpenAI rates for the last twelve months because there was nothing comparable, this table is the math you didn’t have.

    The cost story is more interesting than the headline

    One thing to be honest about: GLM 5.2 is not the cheapest open model. DeepSeek V4 Pro will do a full Intelligence Index task for about $0.05. GLM 5.2 costs roughly $0.46. That’s nine times more expensive than DeepSeek per task.

    The reason: GLM 5.2 thinks a lot. It burned through 43,000 output tokens per task on average, of which 37,000 were reasoning tokens. GLM 5.1 used 26,000. DeepSeek V4 Pro and MiniMax-M3 land around 24,000 to 37,000. So GLM 5.2 buys its eleven extra index points partly through more reasoning compute at inference time, not just smarter weights.

    But here’s the right comparison to make. Per task:

    • DeepSeek V4 Pro: $0.05 (Intelligence Index 44)
    • MiniMax-M3: $0.18 (Intelligence Index 44)
    • GLM 5.1: $0.25 (Intelligence Index 40)
    • Kimi K2.6: $0.31 (Intelligence Index 43)
    • GLM 5.2: $0.46 (Intelligence Index 51)
    • GPT-5.5 xhigh: roughly $5 (Intelligence Index ~53)
    • Claude Fable 5: roughly $6+ (Intelligence Index ~52)

    Artificial Analysis put it cleanly: GLM 5.2 has the “lowest cost per task among models at its intelligence level.” If you want the cheapest, DeepSeek. If you want the smartest open model, GLM 5.2. And the smartest open model is now within a rounding error of the smartest closed model, for one-tenth the price.

    Scatter plot of LLM intelligence vs cost per task showing GLM 5.2 on the open weights Pareto frontier
    The Pareto frontier finally has an open weights model on it.

    Speed and serving

    The first-party Z.ai API serves GLM 5.2 at about 110 tokens per second, which is above the class median of 59 t/s. Time to first token is 2.38 seconds, roughly average. Eight major inference providers are already serving it: DeepInfra, Novita, Nebius, Parasail, Siliconflow, GMI Cloud, Baseten, and Fireworks.

    The cache hit price is the part that turns this from interesting into ridiculous. At $0.26 per million tokens on cached input, an 81% discount on the input rate, agentic workloads that re-read the same project files dozens of times per session become cheap in a way they have never been on closed models. Anthropic’s prompt caching is good. This is better, on a model that’s open weights.

    What Hacker News is actually saying

    The Hacker News thread on the release is a circus, in a good way. Quoting some of what people are actually testing in production right now:

    unrvl22: “It’s literally Opus 4.7 quality stupid prices. Cancelled my Claude subscription. I can burn 300m tokens a day of this quality, for $50 a month.”

    benjiro29: “GLM 5.2 Max = Opus 4.8 Max in thinking behavior. Basically Opus 4.8’s little brother, at a way, WAY cheaper price. But really no training on Opus models going on, right?”

    redox99: “Definitely opus level for coding.”

    kristopolous: “Open models are on about a 4-7 month lag right now. An open-weights model could reach Claude Fable 5 level before the new year.”

    And the criticisms, which matter just as much:

    Tiberium: “GLM 5.2 xhigh spent over 15 minutes reasoning, spending about 45k tokens, before it finally wrote the first file. Intelligence is sufficient now, reasoning efficiency should be the priority.”

    cmrdporcupine: “I ground through $5 USD worth of tokens quite quickly. And this was high, not max.”

    simonw: “GLM 5.1/5.2 are not vision models, which is uncommon now and limits use cases like screenshot-to-HTML.”

    CuriouslyC: “A lot of third-party hosts misconfigure models or stealth quantize them. Saw 20-40% quality gaps on Kimi. Stick with the first-party API or known-good providers.”

    The unrvl22 quote is the one to pay attention to. Whether or not you trust that exact comparison to Opus, the willingness of paying Claude customers to cancel on the basis of an open-weights release is something that has never happened before at the frontier. That’s the signal.

    The honest list of caveats

    Before anyone goes too far, the gaps that still exist:

    No vision. GLM 5.2 is text-in, text-out. Closed competitors (GPT-5.5, Claude Fable 5, Gemini 3.5) all do images, video, audio. For a lot of agentic workflows — screenshots, charts, PDFs with figures — that gap is real and not closing this week.

    Reasoning token verbosity. The 43k-token average per task means GLM 5.2 is not the model to drop into a latency-sensitive consumer product without careful prompt-engineering or a “low reasoning” mode. The xhigh setting is for batch agentic work, not chat.

    Quantization roulette. Anyone running GLM 5.2 through a random hosted endpoint should test their actual quality, not trust the leaderboard. Quantization quality differences of 20%+ have been documented across providers for previous open models.

    Self-hosting cost. The model is 744B total. Running it locally at the unquantized full precision needs a serious cluster. Most people will continue paying an API. But the difference is that anyone can host it — universities, governments, regulated companies that can’t ship customer data to OpenAI. That optionality didn’t exist at this quality level before.

    Why this is bigger than a leaderboard update

    The closed frontier was built on a quiet bet: that the gap between best-closed and best-open would stay large enough that enterprise customers had no real choice. Six months, twelve, eighteen. Long enough for OpenAI and Anthropic to keep charging premium rates because the alternative was a 12-point Intelligence Index gap, which translated to a real product quality gap, which translated to “we have to pay them.”

    That bet still works at the very top. GPT-5.5 xhigh and Claude Fable 5 are arguably still two or three points smarter than GLM 5.2. But two points cost ten times more. And the regulated industries — banking, healthcare, defense, government — that have been told “you need this quality, you need to send your data to a US cloud” can now run a frontier-equivalent model on their own infrastructure, fine-tune it, audit it, and never call an external API.

    Open weights at the frontier doesn’t just lower prices. It rearranges who gets to build with the best AI.

    A short history of the GLM family

    The story of how Z.ai got here is not “we showed up last week.” The General Language Model family was first published in 2022 by researchers at Tsinghua University, with an architecture that combined autoregressive generation and bidirectional attention. GLM-130B, released open-weights in late 2022, was one of the first non-Western models that could meaningfully compete with the GPT-3 generation. It got benchmarked, written about, then mostly forgotten outside specialist circles.

    GLM 3 and GLM 4 were where things got serious. Z.ai (the commercial entity that grew out of the Tsinghua research group) shifted to a mixture-of-experts architecture, scaled training compute, and started shipping monthly improvements to the chat product zhipu.ai inside China. By the time GLM 5.1 dropped in early 2026 with 744B total / 40B active parameters, the model was a credible “second-tier frontier” choice — usable for serious work, beaten on benchmarks by closed labs.

    GLM 5.2 keeps the parameter count identical to 5.1. Same MoE shape, same 40B active experts. The eleven-point Intelligence Index gain came from somewhere else: better data, more reasoning RL during post-training, longer effective reasoning chains, and a context window expansion from 200K to 1M tokens that didn’t degrade retrieval. This is the boring kind of progress that doesn’t make a flashy keynote but matters more than scaling: same compute budget, better outputs. The same recipe Anthropic has been using to push Claude forward release-over-release.

    The geopolitical subtext nobody wants to write

    Half the comments on the HN thread are about model quality. The other half are about what it means that the open weights frontier is now Chinese.

    GLM 5.2 joins a list that, as of June 2026, includes DeepSeek (V4 Pro), MiniMax (M3), Moonshot (Kimi K2.6), and Alibaba (Qwen 3). Every open frontier-adjacent release in the last six months has come from a Chinese lab. The American side of the open-weights story is Meta’s Llama 4 (still capable but behind on the index), Google’s Gemma 4 (smaller scale, optimized for on-device), and a long tail of fine-tunes. None of those compete with GLM 5.2 at the top.

    One HN commenter (tcp_handshaker) put it bluntly: “China is going to eat the US lunch on AI.” Another, marcus_cemes, gave the European reading: “We’re just exhausted by the constant AI hype.” A third, Certhas, asked the question that should worry policymakers more than either of those takes: “Why no EU startups? Two US, several Chinese, none from Europe. That’s a very important question the EU should ask.”

    The political economy of frontier AI is shifting. American closed labs charge frontier prices to global customers. Chinese open labs release weights under MIT and let anyone host them anywhere. European labs… aren’t in this conversation. If you run a regulated bank in Frankfurt, the question last year was “do we accept that AI means sending data to OpenAI.” This year, the answer can be “no — we host GLM 5.2 on our own GPUs.” The geopolitical implication is that the model itself is now a commodity, and the moat moves to compute, data, distribution, and integration.

    The actual math on a cached agentic workload

    Let’s make this concrete. Say you’re building a code-agent product. The agent gets a 50K-token codebase context at the start of each session and runs ten reasoning turns averaging 5K input / 8K output. Each turn re-reads about 80% of the prior context (effectively cached on a sticky-session provider).

    On Claude Fable 5, at roughly $15 input / $75 output (no caching discount in this estimate):

    • Initial context: 50K × $15/M = $0.75
    • Per turn: (5K × $15 + 8K × $75) / 1M = $0.075 + $0.60 = $0.675
    • Ten turns: $6.75
    • Total per session: ~$7.50

    On GLM 5.2 with the cached input rate:

    • Initial context: 50K × $1.40/M = $0.07
    • Per turn (assuming 80% cache hit on input): (4K × $0.26 + 1K × $1.40 + 8K × $4.40) / 1M = $0.00104 + $0.0014 + $0.0352 = $0.038
    • Ten turns: $0.38
    • Total per session: ~$0.45

    That’s a 16× cost difference for an agentic workload, on a model that scores within two points of the closed frontier on the most important benchmarks. If the product margin math used to require subsidized usage or hard rate-limiting, that constraint just changed.

    The catch (always a catch): GLM 5.2 will use more reasoning tokens than Claude on the same task, which eats into the savings. The 16× number assumes equivalent output volumes, which is a generous assumption. Realistic delta, with GLM doing roughly 1.5–2× more reasoning on average, is closer to 8–10× cheaper. Still enough to fundamentally change product economics.

    What I’d actually do with it

    If you’re shipping product:

    1. Run an A/B on your current Claude or GPT workload. Take 100 real production prompts, run them through GLM 5.2 max via the first-party Z.ai API, and compare on your actual quality criteria. The cost math only matters if quality matches.
    2. Use the cached input rate aggressively. Agentic apps re-reading the same context across turns get an 81% input discount. Architect for that.
    3. Don’t expect vision yet. If your workflow needs screenshots or PDF images, keep a Gemini or GPT-5.5 endpoint for that part.
    4. Pin the provider. Whether first-party or one of the eight inference providers, run a quality probe on each one before trusting cost-routing across them.

    If you’re not shipping product, the takeaway is shorter. The story that “open is six months behind” is over. The next question isn’t whether open catches the closed frontier. It’s how long the closed frontier keeps charging twenty-dollar-per-million-token rates when an MIT-licensed alternative scores within two points of them.

    That’s a question with a clock on it now.

  • SpaceX Buys Cursor for $60 Billion: The Deal That Reshuffles the Entire AI Coding Tools Market

    SpaceX Buys Cursor for $60 Billion: The Deal That Reshuffles the Entire AI Coding Tools Market

    The headline is real, even if it reads like a Mad Libs entry from 2021: SpaceX is paying $60 billion in stock for Cursor. Not for a satellite constellation, not for a hypersonic engine company, but for a Visual Studio Code fork that autocompletes Python.

    If you are still re-reading that sentence, you are not alone. The Hacker News thread on the deal racked up over a thousand comments inside twelve hours, and almost none of them were neutral. The dominant tone was somewhere between “this finally makes the puzzle fit” and “why would anyone pay 17x ARR for an IDE skin in 2026?”

    Both reactions are defensible. Both are also missing the actual story, which is not really about Cursor. It is about who owns the coding model, who owns the training data, and what the AI coding stack looks like when a $2 trillion conglomerate decides it wants to be vertically integrated from rocket engines to React components.

    What was actually announced

    The structure is unusually clean for a deal this size. SpaceX is acquiring Anysphere, the parent of Cursor, in an all-stock transaction valued at $60 billion. Cursor common and preferred shares both convert into newly issued SpaceX Class A common stock, with the exchange ratio set by a volume-weighted average of SpaceX’s closing prices over the seven trading days before close. The whole thing is dressed as a reverse triangular merger through a shell called X67 Inc., which is just M&A plumbing to make Cursor a wholly-owned subsidiary.

    Closing is targeted for Q3 2026. If the deal blows up, Anysphere walks away with a $1.5 billion cash break fee plus $8.5 billion in SpaceX compute credits. That latter number is the tell: even the failure case is a compute deal.

    SpaceX disclosed that it had quietly secured this option back in April 2026, when it offered either a full acquisition at $60B or a $10B strategic partnership. Cursor took the option, and SpaceX exercised it four days after its own record-breaking Nasdaq IPO, which valued the rockets-to-AI conglomerate at more than $2 trillion. The $60B price tag represents roughly 3.4% dilution at that valuation, which is the kind of number an empire can pay without anyone in the boardroom feeling it.

    Markets liked it. SpaceX stock jumped about 16% on the news, briefly leapfrogging Amazon and Microsoft to become the fourth most valuable company in the United States.

    How a 2022 IDE became worth $60 billion

    Anysphere was founded in 2022 by four MIT classmates. The product, Cursor, started as a VS Code fork with AI autocomplete glued in, the kind of thing that in any other year would have been a side project. Instead it became a generational success.

    By early June 2026 Cursor’s annualized revenue had hit $4 billion, per Forbes’ reporting. At a $60B price, that puts the multiple at around 15x, which is in the high but not insane range for a software company that grew its ARR by an order of magnitude in eighteen months. As one commenter on Hacker News put it: “$4B ARR with rapid growth, and the ability to shift traffic to internal models. Apply a 17x multiple and you’re at $68B.”

    The market share data is more interesting than the revenue. According to spending data from Ramp, Cursor’s share of corporate AI coding spend fell from 41% in June 2025 to about 26% in May 2026. That is the sound of Codex and Claude Code eating into the lead, and it is exactly the situation that makes a $60B exit look smart from the founders’ side of the table. Selling at the local maximum is not a coincidence. It is the whole point.

    If you read the comments on the deal, that decline shows up everywhere. Power users still defend the editor: one developer who lives in Cursor 8+ hours a day praised Plan Mode, the ability to switch between Opus 4.8 with a 1M-token context and the in-house Composer model, and 30 to 45 minute autonomous runs that produce “a fully created and tested product”. But there are at least as many engineers who left for Codex with GPT-5.5 or Claude Code with Opus 4.8. “Cursor is just annoying with the constant popups,” wrote the top comment, “Codex is so much more like working with a partner.”

    Conceptual illustration of vertical integration in the AI coding market
    The deal pulls a profitable developer product directly inside a hyperscaler. That is not a partnership; that is a swallow.

    Why SpaceX, not Microsoft, OpenAI, or Google

    This part is where the deal stops being weird and starts being inevitable. SpaceX absorbed xAI in February 2026, rebranding the AI arm as SpaceXAI. That merger gave SpaceX the Colossus supercomputing cluster and Grok, and it gave xAI Elon Musk’s favorite balance sheet to draw from.

    The problem is that Colossus has more compute than xAI knows what to do with, and Grok has a much smaller paying-customer base than its compute footprint would suggest. One Hacker News commenter summed up the situation without sympathy: “xAI is a failed AI company which turned into a datacentre operator.” Another, more charitably, called the deal a clean swap: “xAI overbuilt datacenters and lacks paying customers, while Cursor lacks capacity. The deal fits.”

    Cursor, in turn, has the opposite problem. It runs on inference from Anthropic, OpenAI, and increasingly its own Composer model, which the company has admitted is a fine-tune of Moonshot’s Kimi K2.5. Cursor needs cheaper compute, more reliable capacity, and a path to a fully owned model stack. SpaceX needs paying customers and high-frequency training signal. There it is.

    SpaceX has confirmed that the two companies have been jointly training a coding model for several months on Colossus, and that the model will ship inside both Cursor and a forthcoming product called Grok Build. Translation: Anysphere has been engaged to Musk for half a year already; this announcement is just the wedding.

    The asset everyone keeps pointing at: the data

    If you read the Hacker News comments looking for the single argument that comes up most often, it is not Cursor’s revenue, and it is not its UI. It is the training data.

    Cursor sees, in roughly real time, what hundreds of thousands of professional software engineers type into their editors, what they accept, what they reject, what they refactor, and which suggestions they curse at. As one commenter put it bluntly: “Where else can you get a real-time fresh high quality stream of human intelligence to grow your baby AGI? Codex, Claude Code, and Copilot aren’t for sale.”

    Another reduced the entire $60B thesis to four words: “It’s the data. To do RL.”

    That is, blunt as it sounds, the actual story. Foundation model labs are running out of pretraining data and out of high-signal post-training data, and the most valuable signal left is behavioral data from skilled humans doing skilled work. Cursor sits on the richest such firehose in the industry. The Composer model already used that data to outperform vanilla Kimi K2.5 on coding benchmarks. With Colossus behind it and the Cursor signal flowing in, SpaceXAI now has a real shot at a frontier coding model that does not depend on Anthropic or OpenAI.

    If that sentence makes you nervous, you are reading it correctly. We already showed earlier this year how much of Cursor’s magic is in the prompts and the agent loop, not in the editor itself. Once SpaceX owns the model, the prompts, the loop, and the user telemetry, the moat looks very different.

    What this means for Claude Code and Codex

    Anthropic and OpenAI are the obvious losers if you are sketching a power triangle on a whiteboard. They lose a major API customer and a continuous source of training signal in one stroke. They keep their own coding products, but they now face a third coding-specialized player with deeper pockets than either of them.

    The picture in practice is more nuanced, because Cursor was already migrating workloads to Composer well before the deal. The number that matters here is the share of Cursor inference still going to third-party APIs versus the share served from internal models. SpaceX’s acquisition memo all but confirms the long-term direction: Cursor traffic will shift to SpaceXAI infrastructure, with third-party APIs kept around for as long as users insist on Claude or GPT under the hood.

    For Claude Code, the threat is competitive but not existential. Anthropic’s product is increasingly the developer favorite for from-scratch agentic work, especially after the leaked source code showed how thoughtfully its harness is built. Multiple Hacker News commenters described Opus 4.8 in Claude Code as transformative in a way that Cursor’s autocomplete-first UX simply does not match.

    For Codex, the threat is more direct. Codex with GPT-5.5 has been positioned as “working with a partner” rather than “completing your code,” which is exactly the same lane Cursor is trying to occupy with Composer. Two well-funded agentic IDEs, both backed by hyperscale compute, both trained on overlapping data: this is a head-to-head fight, and OpenAI now has a competitor with a $2T parent.

    The smaller players are in a different kind of trouble. Windsurf, Continue, Aider, the various OSS clones, Google’s Antigravity, and the increasingly long list of “Claude Code, but” harnesses now have to argue why a $60B acquisition target should not be the default. Some will win on price, some on niche workflows, some on developer trust, but the room got more expensive overnight.

    Three rival AI coding tools competing for developer attention
    Three lanes, three vendors, three stacks. The interesting question is which lane disappears first.

    The Elon discount

    There is one variable that no spreadsheet can model, and the Hacker News thread treats it like a load-bearing wall.

    Several engineers said, plainly, that working under Musk is a hard no. One described their company offering both Claude and Grok internally: “Absolutely no one, despite the option, considered a grok model.” Another argued that xAI is “sorely lacking in talent, most likely due to the CEO and folks’ aversion to him,” and that part of the $60B is really a talent acquisition wrapped in stock that vests slowly.

    There is also a credibility issue. Musk publicly claimed last year that LLMs would soon skip code entirely and emit binaries directly. As one commenter dryly noted: “It’s curious that the person claiming LLMs will soon skip code entirely and go straight to binary is willing to spend $60 billion on Cursor.” That tension is going to define how customers, regulators, and especially engineers read every product announcement that comes out of SpaceXAI for the next two years.

    On the bull side, Musk does have a real track record of operating consolidated platforms at scale, and rolling Cursor’s product surface into SpaceXAI may finally give xAI the consumer interface it has never had. Grok Build, the rumored coding agent that ships inside both Cursor and X, is exactly the kind of cross-product integration that everyone else has been talking about and nobody else has actually shipped.

    Regulatory questions nobody is asking yet

    Notably absent from the discussion: antitrust. Hacker News barely mentioned it. Reuters and the wires did not lead with it. But there is an interesting picture forming.

    SpaceX now owns: Starlink, the world’s largest satellite internet network. SpaceXAI, the merged xAI plus Colossus. Grok, a consumer LLM with a built-in distribution channel via X. Cursor, the dominant enterprise AI coding tool by ARR. And, indirectly through Musk, X itself.

    That is bandwidth, compute, models, coding tools, social distribution, and a CEO who is on policy speed-dial with the current administration. Regulators have moved against weaker stacks. The fact that nobody is leading with the antitrust angle right now is, in itself, a notable data point about how the political environment has changed since 2024.

    The deal will still have to clear an HSR review and probably attract some attention from the EU. But there is no obvious foreign acquirer, no national security frame to hang an objection on, and a domestic champion narrative that plays well in Washington. Expect questions, not blockers.

    What it means if you ship code for a living

    For working developers, three things probably change in the next twelve months.

    First, your IDE is now a piece of infrastructure owned by an aerospace conglomerate. That is not necessarily bad, but it does mean the product roadmap will increasingly be set by what helps train the next coding model, not by what is nicest for a Python developer in Berlin. If you live in Cursor, you should pay attention to how the telemetry collection changes after close.

    Second, the price of being a developer who uses AI tooling is going to keep falling. SpaceXAI has every incentive to undercut Anthropic and OpenAI inside Cursor to win share back, and the other vendors will respond. The squeeze is real for the labs that sell coding APIs.

    Third, the bet on a single tool is riskier than it was last week. We already wrote that every other trending GitHub repo is a coding agent, and that the cost of switching has dropped to roughly “an afternoon and a config file.” The right move for most teams is to keep workflows portable: Claude Code, Codex, and Cursor all read the same source tree, and you should be able to swap between them depending on which one is the least annoying that quarter.

    The longer arc

    Zoom out and the SpaceX move looks like the first really honest acknowledgement of a thing the industry has been dancing around: foundation models without an integrated product channel and an integrated training signal are a commodity. OpenAI knew it, which is why they shipped Codex. Anthropic knew it, which is why they shipped Claude Code. Microsoft knew it twice over, which is why GitHub Copilot exists and why they keep tightening the OpenAI partnership. Google knew it, which is why Antigravity exists.

    Now SpaceX knows it too, and it just bought the largest independent piece of the puzzle. The next question is whether anyone else can still buy the rest. Codex and Claude Code are not for sale. Copilot is locked inside Microsoft. The OSS harnesses are too small to anchor a frontier-model strategy on their own. The independent surface area in AI coding is shrinking fast.

    Cursor was the trophy. SpaceX paid for it. The fight that starts next is for whatever comes after the IDE.

    Sources: CNBC, CBS News, Yahoo Finance, Hacker News discussion.

  • GPT-5.5 Is Here. The Benchmarks Look Great. Hacker News Still Doesn’t Trust It.

    GPT-5.5 Is Here. The Benchmarks Look Great. Hacker News Still Doesn’t Trust It.

    GPT-5.5 is here, and OpenAI wants you to see it as the next serious step toward agentic work on a computer. The launch page pushes hard on one message: better coding, better knowledge work, better scientific research, with GPT-5.4-level latency and fewer tokens used per completed task. On paper, that’s exactly what people building with coding agents want to hear.

    Then you open the Hacker News thread, and the tone changes immediately. Developers are not asking whether GPT-5.5 benchmarks went up. They’re asking whether the model actually stays on task, whether the benchmark framing is trustworthy, whether the price will make sense in production, and whether the cyber guardrails will block legitimate engineering work. That tension is the real story of this release.

    So I read the OpenAI announcement carefully, pulled out the numbers that matter, and worked through the HN thread to separate recurring concerns from random noise. The short version: GPT-5.5 looks like a real step forward, especially for execution-heavy agentic work. But the community is right not to take the launch page at face value. At this stage of the model race, the hard question is no longer “can it solve benchmark tasks?” It’s “can it stay useful inside long-running tool loops, under cost pressure, and under real-world safeguards?”

    What OpenAI actually shipped with GPT-5.5

    The product story is straightforward. OpenAI is rolling out GPT-5.5 to Plus, Pro, Business, and Enterprise users in ChatGPT and Codex, while GPT-5.5 Pro goes to Pro, Business, and Enterprise tiers in ChatGPT. API access was not available at launch, but OpenAI says both models are coming to the API “very soon.”

    That’s already one reason the reaction split the way it did. Product users can try it now. Serious developers building harnesses, agents, and production workflows still have to wait for the API details. In 2026, “very soon” is not a technical spec.

    OpenAI frames the model around four main promises:

    • Agentic coding: stronger long-horizon implementation, debugging, testing, and tool use.
    • Knowledge work: better documents, spreadsheets, slides, and general computer-use workflows.
    • Scientific research: stronger multi-stage reasoning across technical data and research loops.
    • Inference efficiency: more intelligence at the same latency as GPT-5.4, with fewer tokens used to finish the same class of work.

    The most interesting part of the pitch is not that GPT-5.5 is “smarter.” Every frontier release says that. The more important claim is that it is more persistent, more token-efficient, and better at carrying work across tools and time. That’s the real battleground now, because that is exactly where previous coding-agent setups have tended to fall apart.

    OpenAI leans heavily on that point. The release page keeps returning to ideas like holding context across large codebases, reasoning through ambiguous failures, checking assumptions with tools, and finishing complex work without stopping early. The company also highlights that GPT-5.5 is served at GPT-5.4 latency on NVIDIA GB200 and GB300 NVL72 systems, and says the model even helped improve the infrastructure that serves it. That’s a good line. It also reads like a company telling you, very directly, that raw model quality is no longer enough. The serving stack matters just as much now.

    The GPT-5.5 benchmark story, without the marketing fog

    OpenAI’s announcement is packed with benchmarks, but only a few are worth spending real time on. The useful question is not “did the number go up?” The useful question is “what kind of work is this number trying to approximate?”

    Agentic coding: Terminal-Bench 2.0 and SWE-Bench Pro

    The headline coding number is 82.7% on Terminal-Bench 2.0. That matters because Terminal-Bench is one of the better public proxies for actual agent work. It stresses planning, iteration, command-line workflows, and tool coordination. In other words, it tries to measure whether a model can do more than emit a plausible patch.

    OpenAI also reports 58.6% on SWE-Bench Pro, which is meant to capture real GitHub issue resolution. That’s not a magical number by itself. But it does suggest the model is better at carrying work all the way from “here is a bug” to “here is the end-to-end fix” without needing quite as much babysitting. OpenAI’s claim that GPT-5.5 beats GPT-5.4 on Terminal-Bench, SWE-Bench Pro, and its internal Expert-SWE eval while also using fewer tokens is more important than any single benchmark win. If true, that’s exactly the shape of progress developers care about.

    Still, there is a limit to how much confidence you should take from this. The release page mixes outside evals, internal evals, customer testimonials, and workflow anecdotes into one narrative. That is useful as a directional signal, but not the same as a clean, independent measurement set. If you’ve read my earlier GPT-5.4 vs Opus 4.6 comparison, you already know the problem: benchmark pages are often half scorecard, half sales deck.

    Knowledge work: GDPval, OSWorld, and Tau2-bench

    For non-coding work, OpenAI emphasizes 84.9% on GDPval, 78.7% on OSWorld-Verified, and 98.0% on Tau2-bench Telecom. These are less famous than coding benchmarks, but arguably more important if OpenAI is serious about positioning GPT-5.5 as a general work model rather than just a developer tool.

    GDPval tries to measure whether agents can produce well-specified knowledge work across 44 occupations. That’s exactly the kind of benchmark that product teams and operators should care about, because it points toward brief generation, document synthesis, operational analysis, and other tasks that sit somewhere between pure coding and pure chat.

    OSWorld-Verified matters because it is one of the better measures of actual computer-use competence. Can the model operate in a real environment? Can it see what’s on screen, take the right actions, and move through an interface without constantly derailing? OpenAI clearly wants GPT-5.5 to be judged on that basis. The release page repeatedly pushes the idea that the model is starting to feel like something that can “use the computer with you.”

    Tau2-bench Telecom, meanwhile, is more constrained but still useful. A high score there suggests the model is better at intent-following in structured, execution-heavy service workflows. That’s not flashy, but it is exactly the kind of work that ends up mattering when enterprises decide whether a model is worth operationalizing.

    The important caveat is this: these numbers tell you the model is getting better at producing structured work. They do not tell you how expensive the full workflow is. They also do not tell you how the model behaves when the environment is messy, the instructions are underspecified, or the user needs it to keep grinding for an hour instead of ten minutes.

    Scientific research: GeneBench and BixBench

    OpenAI also makes a serious push into scientific research. The company highlights gains on GeneBench and leading published performance on BixBench, both of which are meant to represent harder, messier, multi-stage data-analysis work. The interesting part here is not “GPT can answer biology questions.” We already know frontier models can do that. The interesting part is whether they can persist through something that looks more like actual scientific work: unclear data, QC failures, confounders, repeated interpretation steps, and tool-based iteration.

    That is a bigger claim than it sounds. If GPT-5.5 is genuinely better at that loop, it means the model is not just answering smartly. It is behaving more like a usable research partner. OpenAI piles on with examples from mathematics, genomics, and drug discovery. Some of those examples are impressive. Some are clearly chosen because they are impressive. That’s fine. The point is not that every anecdote proves the case. The point is that the company is very deliberately trying to move the center of gravity from “chatbot” to “co-worker with tools.”

    Why Hacker News did not just clap and move on

    The HN thread is useful because it shows where sophisticated users are no longer willing to be impressed by the default launch script. The thread is noisy, as all large HN threads are, but a few themes keep repeating often enough to matter.

    1. Developers are still obsessed with “motivation”

    The single funniest and most revealing reaction in the thread is the one that asks whether OpenAI has done anything about GPT’s “motivation.” On the surface, that sounds absurd. Language models do not have motivation in the human sense. But everyone who has spent serious time with coding agents knows exactly what the commenter means.

    They mean the maddening failure mode where the model understands what should happen next, says it understands what should happen next, apologizes for not doing it, and then still refuses to take the next action. Several people in the thread describe exactly that pattern. One user reports telling GPT-5.4 to continue a benign subtask, being told that yes, it should continue, and then watching it simply not do the work. Another says the model pushed back so hard that they cancelled their subscription. Another says GPT 5.4 kept yielding the turn back to them while claiming it was still watching CI.

    That matters because OpenAI’s launch page leans heavily on the opposite promise. The release literally highlights persistence and stronger long-running execution. Cursor CEO Michael Truell is quoted saying GPT-5.5 is “more persistent” and “stays on task for significantly longer without stopping early.” That’s exactly why HN users went straight for this issue. If persistence is the product, then early adopters are going to test it brutally.

    My take is simple: this is not a meme concern. It is the concern. If GPT-5.5 really fixed that class of failure, the model is a meaningful upgrade. If it only reduced the frequency slightly while keeping the same basic personality, the release is more incremental than the benchmark page suggests.

    2. Benchmark skepticism is now the default setting

    The second recurring theme is that people no longer trust benchmark-heavy release posts by default. That does not mean the benchmarks are fake. It means developers have learned the hard way that a launch page can be full of true numbers and still leave out the most important operational facts.

    OpenAI says GPT-5.5 is state of the art on Terminal-Bench 2.0. Great. The obvious next question is: how much human steering was required in practice? What was the actual task completion cost? What was the retry rate? How often does it stall in open-ended harnesses? How fragile are the gains to prompt changes, reasoning budgets, or tool configuration?

    HN users don’t always phrase the skepticism that cleanly, but that is what sits underneath the comments. People want less theater, more operational clarity. They want fewer lines about “conceptual clarity” and more numbers about what happens when the agent has to sit inside a real loop for an hour and not get weird.

    That’s also why the testimonial-heavy style of the OpenAI page lands differently in 2026 than it would have in 2023. Quotes from founders and early testers still help. But once the audience has lived through multiple generations of “agentic” launches, the first instinct is to ask what the vendor chose not to measure.

    3. Pricing and API access are not side notes anymore

    Another strong HN theme is cost. Some commenters argue that GPT-5.5 is materially more expensive than older OpenAI models and far more expensive than lower-cost alternatives. Others point out that per-token pricing is the wrong metric and that cost per completed task is what really matters. Both sides are making reasonable points.

    The more important observation is that people are now deeply unwilling to separate model quality from economics. That is healthy. A model that is 8% better but 4x more expensive is not automatically better for a real workflow. A model that is more expensive per token but meaningfully more persistent may still be the cheaper system if it finishes the job in one run instead of three.

    OpenAI’s answer to this is “higher-quality outputs with fewer tokens and fewer retries.” That’s the right answer. It is also the kind of answer that needs real API access and production evidence before engineers will trust it. Launching broadly in ChatGPT and Codex while asking the API-heavy crowd to wait is part of why the reaction stayed cautious.

    4. The cyber guardrails are both necessary and annoying

    OpenAI is unusually explicit that GPT-5.5’s cyber and bio/chem capabilities are treated as High under its Preparedness Framework. The company also says it is deploying stricter classifiers around higher-risk cyber activity, repeated misuse, and sensitive workflows, while offering “trusted access” programs to reduce friction for verified defensive use cases.

    That is the kind of policy language that sounds sensible at a distance and turns into pain the moment you are doing legitimate security work that looks dual-use. Unsurprisingly, the HN thread goes there fast. One commenter says the GPT-5.5 endpoint started blocking them when they used reverse-engineering tools to inspect a buggy proprietary SDK. Another points to OpenAI documentation about cyber safety and says anything that vaguely smells like security research or reverse engineering can hit the guardrails hard and fast.

    This is not a contradiction in OpenAI’s messaging. It is the exact tradeoff the company is making. OpenAI wants to say two things at once: this model is powerful enough to matter for cyber defense, and we are tightening access because it is powerful enough to matter for cyber abuse. Both can be true. The problem is that legitimate engineering work often looks a lot like the thing the classifier is supposed to catch.

    So if you build tools in security, infrastructure, or reverse engineering, GPT-5.5 may be extremely useful and intermittently infuriating for exactly the same reason.

    My read: GPT-5.5 looks real, but the skepticism is rational

    I think GPT-5.5 is a real release, not a cosmetic one. The benchmark mix, the product framing, and the specific emphasis on persistence, tool use, and inference efficiency all point in the same direction. OpenAI is trying to build a model that is judged less like a chatbot and more like an execution engine. That’s the right target.

    I also think the HN skepticism is completely justified. In fact, it is healthier than the usual launch-cycle euphoria. We are far enough into the coding-agent era that nobody serious should confuse benchmark gains with workflow reliability. The market already knows what the failure modes look like: stopping early, refusing benign tasks, asking to be prompted again, burning budget without converging, or behaving well in curated demos and badly in messy loops.

    That is why the most important line in the OpenAI release is not the one about intelligence. It is the one about persistence. If GPT-5.5 really does stay on task significantly longer without stopping early, it will matter more than a dozen leaderboard wins. If it doesn’t, then the release is mostly a stronger version of the same old pitch.

    There is also a broader competitive point here. The frontier labs are converging on a new standard of judgment. A model is no longer interesting because it can write code, summarize text, or answer a difficult question. It is interesting if it can continue. Continue through tool loops, continue through ambiguity, continue through long-running tasks, continue through imperfect environments, and continue without either going off the rails or handing the turn back too early.

    That shift also helps explain why the release page spends so much time on practical work and why the community reaction spends so much time on personality-like failure modes. The gap between “smart enough to start the task” and “reliable enough to finish the task” is now where the product value lives.

    Who should use GPT-5.5 right now

    Solo developers using coding agents

    If you already live inside Codex, Cursor, or similar tool-heavy workflows, GPT-5.5 looks worth trying quickly. The best-case outcome here is not just better code generation. It’s less babysitting. Fewer retries. Better long-run coherence. Better fix placement. Better testing follow-through. That is where the real time savings are.

    If your current pain is not model intelligence but agent flakiness, GPT-5.5 is exactly the kind of release that could move the needle for you. Just don’t assume the launch page proved it. Verify it against your own loop.

    Teams building coding-agent workflows

    If you run internal harnesses, multi-step coding agents, or tool-heavy dev workflows, you should care about this release, but probably not in a blind “switch everything over tonight” way. The sensible move is to benchmark cost per completed task, stall rate, and human rescue rate against your current stack. If GPT-5.5 lowers all three, it wins even if the token price is higher.

    That is especially true if your current agents are good at starting work and bad at finishing it. In that scenario, persistence improvements compound hard.

    Enterprises pushing document and operations work

    The knowledge-work story here is stronger than most people will notice on first read. GDPval, OSWorld, and Tau2-bench are all pointing at the same thing: OpenAI wants GPT-5.5 to be credible in structured, execution-heavy business workflows, not just software engineering. If you are evaluating AI for operations, analytics, internal research, finance, or document-heavy process work, this may be the more important part of the release.

    Just be aware that the strongest case studies on the launch page are still vendor-curated. Treat them as directional evidence, not procurement documentation.

    People who should probably wait

    If you depend on stable API availability, explicit pricing clarity, low-cost experimentation, or security workflows that are likely to trigger cyber classifiers, it is reasonable to wait a bit. GPT-5.5 may still turn out to be the right answer. But at launch, the highest-confidence users are the ones already inside OpenAI’s product surface, not the ones trying to operationalize it in a custom stack on day one.

    The real takeaway

    GPT-5.5 matters less because it posted another nice set of scores and more because it shows where the frontier is actually moving. The frontier is moving toward models that are judged on whether they can stay useful inside real systems: terminals, documents, spreadsheets, dashboards, research loops, and long chains of tool calls.

    OpenAI clearly believes it has something important here. The launch page is confident enough to say that GPT-5.5 is its strongest agentic coding model, its strongest execution-heavy work model, and a meaningful step up in scientific reasoning. Hacker News, predictably and correctly, is asking a harder question: does it keep working once the benchmark ends?

    That is the right question now. And until every frontier lab can answer it with cleaner evidence, the healthiest posture is the same one developers brought to this thread: interested, impressed, and not fully convinced.

    If you want the broader context for where OpenAI’s previous release sat against Anthropic, read GPT-5.4 vs Opus 4.6: The Real Comparison for AI Engineers. And if you want a closer look at how coding-agent behavior changes once tools and harnesses enter the picture, the closest adjacent read here is I Read All 512,000 Lines of Claude Code’s Leaked Source Code.

  • Gemma 4: How Google Fit Frontier AI Into 31 Billion Parameters

    Gemma 4: How Google Fit Frontier AI Into 31 Billion Parameters

    Google DeepMind dropped Gemma 4 on April 2, 2026. Four model sizes, full multimodal support, Apache 2.0 license, and benchmark scores that make models 20x its size nervous. The smallest variant runs on a Raspberry Pi 5. The largest, a 31B dense model, ranks #3 among all open models on the Arena AI leaderboard.

    This isn’t incremental. This is a fundamentally different argument about how big a model needs to be.

    I spent the last day pulling apart every technical detail from the Hugging Face integration blog, Google’s official announcement, the NVIDIA edge deployment guide, the DeepMind model card, the Chatbot Arena leaderboard, and 445 comments on Hacker News. This is everything I found.

    The Full Gemma 4 Family: Four Models, One Architecture Lineage

    Gemma 4 ships in four sizes, all available as both base and instruction-tuned checkpoints:

    • E2B: 2.3B effective parameters (5.1B total with embeddings), 128K context, 512-token sliding window
    • E4B: 4.5B effective parameters (7.9B total with embeddings), 128K context, 512-token sliding window
    • 26B-A4B: Mixture-of-Experts, 3.8B active out of 25.2B total (128 experts, 8 active + 1 shared), 256K context
    • 31B: Fully dense, 30.7B parameters, 256K context, 1024-token sliding window

    All four handle text, images, and video. The E2B and E4B also support native audio input (speech recognition and understanding, up to 30 seconds). Every model includes native function calling, structured JSON output, system instructions, and thinking/reasoning modes. They support 140+ languages with a 262K-token vocabulary.

    The “E” in E2B and E4B stands for “Effective.” These models use Per-Layer Embeddings (PLE), an architecture inherited from Gemma 3n, which makes the total parameter count higher than the effective count. The extra parameters are embedding tables, not decoder weights, so they don’t contribute to inference compute in the same way.

    The Apache 2.0 Shift

    Every previous Gemma release used a custom Google license. It technically allowed commercial use, but included clauses that let Google restrict usage under certain conditions. Developers building production systems on Gemma models had legal uncertainty baked into their stack.

    Gemma 4 is Apache 2.0. Full stop. You can use these models commercially, modify them, redistribute them, create derivative works, merge them with proprietary code, and build products without asking permission or worrying about future license changes. For regulated industries (healthcare, finance, government) where legal review of model licenses can take months, this removes a significant adoption blocker.

    The Apache 2.0 decision also opens the door to community modifications that were legally gray before: abliterated/uncensored variants, domain-specific fine-tunes with custom safety profiles, and integration into copyleft projects. At least one uncensored Gemma 4 variant appeared within hours of release.

    The Dense 31B: The Model That Changed the Conversation

    The Gemma 4 31B is a fully dense transformer. Every one of its 30.7 billion parameters activates on every token. No routing, no expert selection, no sparsity tricks. And it scores an estimated 1452 on Arena AI (text), placing it at #3 among all open-source models worldwide and making it the #1 U.S. open-source model.

    To understand why this matters, look at what’s around it on the leaderboard:

    • GLM-5 (Z.ai/Zhipu): Arena score 1452, MIT license, estimated ~750B parameters. 24x larger than Gemma 4 31B.
    • Kimi-K2.5-Thinking (Moonshot AI): Arena score 1451, Modified MIT. Estimated 1T+ total parameters. 34x larger.
    • Qwen 3.5-397B-A17B (Alibaba): Arena score 1450, Apache 2.0. 397B total parameters, 17B active. 13x larger in total params.
    • Gemma 4 31B (Google): Arena score 1452, Apache 2.0. 31B dense. Ties or beats all of the above.

    Below it: DeepSeek-R1-0528 at 1426, GPT-5-high at 1444, Grok-4 at 1442. These are proprietary API-only models from well-funded labs. A 31B open model matching them is not normal.

    Benchmark Deep Dive

    Here’s the full benchmark table for the instruction-tuned models with thinking enabled, compared against Gemma 3 27B (the previous generation):

    Reasoning and Knowledge:

    • MMLU-Pro (multilingual Q&A): Gemma 4 31B 85.2% | 26B-A4B 82.6% | E4B 69.4% | E2B 60.0% | Gemma 3 27B 67.6%
    • AIME 2026 (competition math, no tools): 31B 89.2% | 26B 88.3% | E4B 42.5% | E2B 37.5% | Gemma 3 20.8%
    • GPQA Diamond (PhD-level science): 31B 84.3% | 26B 82.3% | E4B 58.6% | E2B 43.4% | Gemma 3 42.4%
    • Tau2 Bench (agentic tool use, avg of 3): 31B 76.9% | 26B 68.2% | E4B 42.2% | E2B 24.5% | Gemma 3 16.2%
    • BigBench Extra Hard: 31B 74.4% | 26B 64.8% | E4B 33.1% | E2B 21.9% | Gemma 3 19.3%
    • MMMLU (multilingual): 31B 88.4% | 26B 86.3% | E4B 76.6% | E2B 67.4% | Gemma 3 70.7%

    Coding:

    • LiveCodeBench v6: 31B 80.0% | 26B 77.1% | E4B 52.0% | E2B 44.0% | Gemma 3 29.1%
    • Codeforces ELO: 31B 2150 | 26B 1718 | E4B 940 | E2B 633 | Gemma 3 110
    • HLE (Humanity’s Last Exam, no tools): 31B 19.5% | 26B 8.7%
    • HLE with search: 31B 26.5% | 26B 17.2%

    Vision:

    • MMMU Pro (multimodal reasoning): 31B 76.9% | 26B 73.8% | E4B 52.6% | E2B 44.2% | Gemma 3 49.7%
    • MATH-Vision: 31B 85.6% | 26B 82.4% | E4B 59.5% | E2B 52.4% | Gemma 3 46.0%
    • OmniDocBench 1.5 (edit distance, lower is better): 31B 0.131 | 26B 0.149 | E4B 0.181 | E2B 0.290 | Gemma 3 0.365
    • MedXPertQA MM (medical multimodal): 31B 61.3% | 26B 58.1% | E4B 28.7% | E2B 23.5%

    Audio (E2B and E4B only):

    • CoVoST (speech translation): E4B 35.54 | E2B 33.47
    • FLEURS (speech recognition, lower is better): E4B 0.08 | E2B 0.09

    Long Context:

    • MRCR v2 8-needle 128K (avg): 31B 66.4% | 26B 44.1% | E4B 25.4% | E2B 19.1% | Gemma 3 13.5%

    The generation-over-generation jump from Gemma 3 27B to Gemma 4 31B is staggering. AIME goes from 20.8% to 89.2%. LiveCodeBench from 29.1% to 80.0%. Codeforces ELO from 110 to 2150. These aren’t small improvements. These are qualitative leaps into a different capability tier.

    Gemma 4 31B vs Qwen 3.5 27B: Head-to-Head

    The community wasted no time building side-by-side comparisons. Here’s the consolidated picture from multiple independent testers:

    • MMLU-Pro: Gemma 4 85.2% vs Qwen 3.5 86.1% (Qwen wins slightly)
    • GPQA Diamond: Gemma 4 84.3% vs Qwen 3.5 85.5% (Qwen wins slightly)
    • LiveCodeBench v6: Gemma 4 80.0% vs Qwen 3.5 80.7% (tie)
    • Codeforces ELO: Gemma 4 2150 vs Qwen 3.5 1899 (Gemma wins big)
    • TAU2-Bench: Gemma 4 76.9% vs Qwen 3.5 79.0% (Qwen wins)
    • MMMLU (multilingual): Gemma 4 88.4% vs Qwen 3.5 85.9% (Gemma wins)
    • HLE (no tools): Gemma 4 19.5% vs Qwen 3.5 24.3% (Qwen wins)

    On raw automated benchmarks, it’s close to a draw with Qwen 3.5 holding a slight edge on reasoning tasks and Gemma 4 winning on competitive coding and multilingual. But the Arena AI ELO (which measures human preference from millions of blind comparisons) favors Gemma 4: 1452 vs 1450. The gap between ELO and automated benchmarks suggests Gemma 4 produces responses that humans actually prefer even when raw accuracy numbers are similar. That’s a training data and RLHF quality signal, not an architecture signal.

    One early adopter on dev.to put it well: “The honest take is Gemma 4 ties with Qwen, if not Qwen being slightly ahead. And Qwen 3.5 is more compute efficient too.” But another noted: “Gemma 4 makes translategemma feel outdated instantly” for non-English tasks. The multilingual story is where Gemma 4 clearly separates from the pack.

    Architecture: How 31B Parameters Punch This Far Above Their Weight

    Gemma 4 doesn’t achieve these numbers by simply scaling up a standard transformer. The Hugging Face integration blog details several architectural innovations that work together to squeeze maximum intelligence out of every parameter. Notably, Google removed complex or inconclusive features like Altup that appeared in earlier Gemma research, favoring a cleaner combination that’s highly compatible across inference libraries.

    Dual Attention: Sliding Window + Global Full-Context

    Gemma 4 alternates between two types of attention layers:

    • Local sliding-window attention: Each token attends only to nearby tokens within a fixed window. The 31B and 26B models use 1024-token windows; the E2B and E4B use 512-token windows. This is cheap because the attention matrix is small.
    • Global full-context attention: Standard attention across the entire sequence. Expensive at long contexts, but necessary for capturing long-range dependencies.

    By alternating these, the model gets the benefit of full-context awareness (through the global layers) without paying the full quadratic cost on every layer. Each attention type also gets its own RoPE configuration: standard RoPE for sliding layers, proportional RoPE for global layers. The proportional variant enables the 256K context window on the larger models without the positional encoding breaking down at extreme positions.

    Shared KV Cache

    This is an efficiency optimization that directly reduces both compute and memory during inference. The last num_kv_shared_layers layers of the model don’t compute their own key and value projections. Instead, they reuse the K/V tensors from the last non-shared layer of the same attention type (sliding or full).

    In practice, this means the model has fewer distinct KV caches to maintain during generation. For long-context use (the 256K window) and on-device deployment, this is significant. It’s the difference between fitting in memory and not fitting. The quality impact, according to Hugging Face’s testing, is minimal.

    One Hacker News commenter pointed out that the 31B’s KV cache behavior isn’t bugged (as some initially suspected) but reflects a static sliding window cost of 3.6GB. With an IQ4_XS quantization at 15.2GB for weights, you’re looking at roughly 64K context on a 24GB GPU, or 100K+ with 8-bit KV quantization after a recent llama.cpp optimization landed.

    Per-Layer Embeddings (PLE)

    This is the most distinctive architectural feature in the smaller Gemma 4 models (E2B and E4B), inherited from Gemma 3n. Standard transformers give each token a single embedding vector at input. That single vector has to frontload everything the model might need across all layers. It’s a bottleneck.

    PLE adds a parallel, lower-dimensional conditioning pathway alongside the main residual stream. For each token, PLE produces a small dedicated vector for every layer by combining two signals:

    1. A token-identity component: from a second embedding lookup table
    2. A context-aware component: from a learned projection of the main embeddings

    Each decoder layer then uses its corresponding PLE vector to modulate the hidden states via a lightweight residual block after attention and feed-forward. This gives each layer its own channel to receive token-specific information exactly when it becomes relevant, rather than requiring everything to be packed into a single upfront embedding.

    Because the PLE dimension is much smaller than the main hidden size, this adds meaningful per-layer specialization at modest parameter cost. This is why the total parameter count (5.1B for E2B) is higher than the effective count (2.3B): the PLE embedding tables add parameters, but they’re cheap at inference time.

    For multimodal inputs (images, audio, video), PLE is computed before soft tokens are merged into the embedding sequence. Multimodal positions use the pad token ID, so they receive neutral per-layer signals. The model learns to distinguish text from multimodal content partly through this mechanism.

    Vision Encoder

    The image encoder uses learned 2D positional embeddings with multidimensional RoPE. Two critical improvements over Gemma 3:

    • Variable aspect ratios: No forced square crops. Images are processed at their natural dimensions, preserving information that square cropping destroys.
    • Configurable token budgets: The encoder can produce 70, 140, 280, 560, or 1120 image tokens per image. You pick your speed/memory/quality tradeoff per request. A quick thumbnail analysis might use 70 tokens; a detailed OCR task might use 1120.

    The Hugging Face team tested all four model sizes on object detection, GUI element detection, image captioning, and HTML reproduction from screenshots. All models performed well, with the 31B producing the most detailed and accurate responses. Even the E2B correctly identified bounding boxes for UI elements and generated passable HTML from screenshots, which is remarkable for a 2.3B-effective model.

    Audio Encoder

    The E2B and E4B models include a USM-style conformer audio encoder, the same base architecture used in Gemma 3n. It handles speech recognition, speech-to-text transcription, and audio question-answering for clips up to 30 seconds. In Hugging Face’s tests, both models accurately transcribed an Obama speech excerpt and answered questions about a live concert video’s audio content (though the E2B hallucinated some audio details).

    The larger 31B and 26B models do not include audio support. They handle video by processing the visual frames without the audio track. This is presumably a parameter budget decision: fitting a full audio encoder into a 31B model would add significant parameters without proportional benefit for the primary text/code/reasoning use case.

    The E2B: Frontier AI on a Raspberry Pi 5

    The most surprising member of the family is the smallest. Gemma 4 E2B has 2.3 billion effective parameters and fits comfortably on devices with 4GB+ RAM. Google explicitly lists Raspberry Pi, Android phones, and NVIDIA Jetson Orin Nano as target hardware.

    Let that sink in. This is a model that:

    • Handles text, images, audio, and video input
    • Has a 128K token context window
    • Supports native function calling for agentic workflows
    • Supports 140+ languages
    • Includes thinking/reasoning modes
    • Runs completely offline with near-zero latency
    • Scores 60% on MMLU-Pro and 37.5% on AIME 2026

    For comparison, Gemma 3’s full 27B model (which required a beefy GPU) scored 67.6% on MMLU-Pro and 20.8% on AIME 2026. The E2B scores nearly as well on knowledge benchmarks and almost double on math compared to a model that was 12x its size from the previous generation. A 2.3B model from April 2026 outperforms a 27B model from 2025 on competition mathematics. The rate of improvement is dizzying.

    Running it is trivial:

    ollama run gemma4:e2b

    That’s a 7.2GB quantized download (Q4_K_M) that gives you a multimodal AI with native function calling on an $80 single-board computer. Or on the phone in your pocket. Or in a browser tab via WebGPU.

    What You Can Actually Do With the E2B

    The Hugging Face blog includes extensive tests across modalities. Here’s what works out of the box with the smallest model:

    Object detection and GUI pointing: Give it a screenshot and ask “What’s the bounding box for the ‘view recipe’ element?” It responds in JSON format with coordinates, no special prompting needed. The coordinates refer to a 1000×1000 image space relative to input dimensions.

    Audio transcription: Feed it an MP3 and ask for a transcription. The E2B produced: “This week I traveled to Chicago to deliver my final farewell address to the nation following in the tradition of presidents before me It was an opportunity to say thank you whether we’ve seen eye to eye or rarely agreed at all…” Clean, accurate, no punctuation quirks.

    Video understanding: The E2B correctly identified a live concert performance from video, including the setting (outdoor festival), performers, stage setup, and attempted to describe the lyrics, though it hallucinated some audio details. The E4B handled this more accurately.

    Image captioning: “A medium shot captures a weathered seagull perched atop a stone pedestal in what appears to be a bustling European square, with a grand, classical-style building featuring ornate columns and architectural details dominating the right side of the frame.” That’s from the 2.3B model. Accurate, detailed, properly structured.

    Multimodal function calling: Give it an image of a Thai temple and the prompt “What is the city in this image? Check the weather there right now” alongside a get_weather tool definition. The E2B correctly identifies Bangkok from the architectural style, reasons through its approach step by step, and generates the correct function call: get_weather(city="Bangkok").

    Raspberry Pi 5 Deployment

    The Raspberry Pi 5 has 4GB or 8GB RAM variants, a Broadcom BCM2712 quad-core Cortex-A76 at 2.4GHz, and no GPU in the traditional sense. Running a quantized E2B model (Q4_K_M at ~3.5GB in memory) on the 8GB Pi 5 leaves enough headroom for the OS and a reasonable context window.

    Google and NVIDIA explicitly target this deployment. NVIDIA’s Jetson AI Lab provides containers and tutorials for running Gemma 4 E2B and E4B on Jetson Orin Nano, which has a comparable hardware profile to the Pi 5 but with a small GPU. The architecture features that enable this are the Per-Layer Embeddings (which can be cached for faster loading and reduced memory use) and the shared KV cache (which reduces memory overhead for context).

    The implications for IoT, robotics, and edge computing are significant. A security camera with a Raspberry Pi can now do multimodal reasoning on its own video feed. A smart home hub can understand voice commands and process images from cameras without ever connecting to the internet. An agricultural drone can classify crop health from aerial photos using onboard compute.

    iPhone and Android: Google AI Edge Gallery

    Four days after Gemma 4 launched, Google shipped the Google AI Edge Gallery, a free app that runs Gemma 4 E2B entirely on your iPhone or Android phone. No cloud. No API key. No Google account required. The model downloads once (~3.5GB) and runs locally using Google’s LiteRT-LM runtime.

    The app hit 719 points and 201 comments on Hacker News within 18 hours. And for good reason: it doesn’t just run a chatbot. It includes mobile actions, tool calls that let the on-device model trigger native phone functions. Turn on the flashlight, open Maps to a location, set a timer. All decided by the LLM, all executed locally.

    Performance is surprisingly usable. Google’s official benchmarks show 56 tokens/sec on iPhone and 52 tok/s on Qualcomm. Community reports vary by device: ~40 tok/s via MLX on recent iPhones, 29 tok/s on a Samsung Galaxy S25 edge, and ~12 tok/s on an iPhone 14 (older A15 chip). One user built a real-time audio/video-in, voice-out demo on a MacBook with the E2B and estimated the same pipeline could run on an iPhone 17 Pro.

    Early testers on HN are already imagining what this enables. One developer building privacy-first apps for teachers called it exactly what they need: local AI that respects stringent education privacy laws without any data leaving the device. Another noted that Apple is reportedly working with Google to integrate Gemma into a future version of Siri. The original poster summed it up: “This gives me hope for a future Siri, ‘Her’ style.”

    The app is also available on Android, and it’s part of Google’s broader AI Edge initiative. Currently it runs on the GPU, but NPU support (Apple’s Neural Engine has 35 TOPS vs the GPU’s 7 TFLOPS) could bring another significant speed boost.

    Before You Try: Check canirun.ai

    Before attempting to run any Gemma 4 variant locally, check canirun.ai. The site detects your GPU, VRAM, memory bandwidth, RAM, and CPU cores, then shows exactly which models and quantization levels your hardware can actually run. It lists all Gemma variants with memory requirements at every quantization level from Q2_K through F16.

    This is particularly valuable for Gemma 4 because the memory requirements vary dramatically across the family:

    • E2B Q4_K_M: ~3.5GB (runs on a Raspberry Pi 5 8GB)
    • E4B Q4_K_M: ~5GB (runs on phones with 8GB RAM)
    • 26B-A4B Q4_K_XL: ~14GB (fits on a 16GB GPU with limited context)
    • 31B Q4_K_XL: ~18GB (needs a 24GB GPU, tight on context)
    • 31B BF16: ~62GB (needs an 80GB H100 or equivalent)

    The difference between “runs fast” and “swaps to death” can be a few hundred megabytes of VRAM. canirun.ai takes the guesswork out. It also recommends Ollama (version 0.6+) as the default runtime and shows the exact commands to get started.

    The MoE 26B-A4B: The Speed Variant

    The 26B Mixture-of-Experts model is Gemma’s first MoE release. It activates only 3.8 billion parameters per token out of 25.2B total, using 128 experts with 8 active plus 1 shared expert per forward pass. It scores 1441 on Arena AI, just 11 points behind the dense 31B, ranking #6 among open models.

    The 26B is designed for latency-sensitive interactive use. On a MacBook Air M4 with 32GB RAM, users report running the Q4_K_XL quantization with 32K context comfortably. One user on HN benchmarked a 24GB RX 7900 XTX and got impressive results:

    llama-batched-bench -hf unsloth/gemma-4-26B-A4B-it-GGUF:UD-Q4_K_XL
    | Context |  TG tok/s |
    |---------|-----------|
    |    1K   |   120.29  |
    |    2K   |   119.04  |
    |    4K   |   117.08  |
    |    8K   |   114.87  |
    |   16K   |   107.65  |
    |   32K   |   100.12  |
    |   64K   |    88.12  |
    |  128K   |    71.25  |

    100+ tokens/sec at 32K context and 71 tok/s at the full 128K on a single consumer GPU. That’s fast enough for real-time interactive use, even at very long contexts. The prompt processing speed is even more impressive: 2,650 tokens/sec at 2K context, staying above 960 tok/s even at the full 128K.

    Both the 31B and 26B unquantized bfloat16 weights fit on a single 80GB NVIDIA H100. Quantized versions run on consumer GPUs from the RTX 4060 up.

    Multimodal Capabilities: What Actually Works

    The Hugging Face team ran extensive tests across all modalities. Here’s a detailed breakdown of what works at each model size.

    HTML Generation From Screenshots

    They gave each model a screenshot of a landing page and asked it to “Write HTML code for this page” with thinking enabled and 4000 max tokens. All four models produced functional HTML. The 31B and 26B versions were nearly pixel-perfect reproductions. Even the E2B produced a recognizable approximation. This has obvious applications for design-to-code workflows and automated UI testing.

    Video Understanding

    The smaller models (E2B, E4B) process video with audio. The larger models process video frames only (no audio track). Despite not being explicitly post-trained on video data, all models demonstrate video comprehension. The E4B correctly described a concert scene including the song’s lyrical themes (“struggles and disillusionment of modern life, specifically the feeling of being stuck”). The 31B, working without audio, still accurately described the visual scene, performer actions, and stage setup.

    Multimodal Function Calling With Thinking

    This is where Gemma 4 gets interesting for AI agent builders. You can define tools, show the model an image, and ask it to use the tools based on what it sees. The thinking trace shows the model’s reasoning chain: “Analyze the image… identify the landmark… determine the city is Bangkok… formulate tool call.” Even the E2B follows this pattern, though its reasoning is more verbose.

    Combined with the structured JSON output and native system instructions, this makes Gemma 4 a production-ready foundation for multimodal agents. The fact that function calling works on a model small enough to run on a phone means you can build agents that operate entirely offline.

    Inference Ecosystem: Day-One Support Everywhere

    One of Gemma 4’s strongest launch stories is the breadth of day-one integration. Google clearly invested in ensuring every major inference engine worked at release.

    llama.cpp

    Image+text support from day one. Start an OpenAI-compatible server with one command:

    llama-server -hf ggml-org/gemma-4-E2B-it-GGUF

    This works with LM Studio, Jan, and coding agents like Pi. Quantized GGUF checkpoints from both the official ggml-org and Unsloth are available. Unsloth’s “Dynamic 2.0” quantizations are particularly interesting: they analyze every layer and selectively adjust quantization type per layer, using a hand-curated calibration dataset of 1.5M+ tokens. Users report these deliver better quality than standard GGUF quants at the same bit width.

    Coding Agent Configs

    The Hugging Face blog includes complete configuration files for four coding agents:

    • Hermes: just run hermes model after starting the llama.cpp server
    • OpenClaw: run openclaw onboard
    • Pi: define ~/.pi/agent/models.json pointing to localhost:8080/v1
    • Open Code: define ~/.config/opencode/opencode.json with the OpenAI-compatible provider

    This means you can turn your laptop into a fully local AI coding assistant. No API keys, no cloud dependency, no data leaving your machine. Combined with the 256K context window on the 31B, you can pass entire repositories in a single prompt.

    MLX (Apple Silicon)

    Full multimodal support via mlx-vlm. The notable feature: TurboQuant, which delivers the same accuracy as uncompressed baseline while using ~4x less active memory and running significantly faster end-to-end. This makes long-context inference practical on Macs without sacrificing quality:

    mlx_vlm.generate 
      --model "mlx-community/gemma-4-26B-A4B-it" 
      --prompt "Your prompt here" 
      --kv-bits 3.5 
      --kv-quant-scheme turboquant

    transformers (Python)

    The new AutoModelForMultimodalLM class and the any-to-any pipeline make inference straightforward. The built-in chat template handles formatting, thinking mode, audio extraction from video, and tool definitions. This is the path for fine-tuning with TRL, PEFT, and bitsandbytes.

    WebGPU

    The E2B runs in the browser via transformers.js. Hugging Face shipped a working demo. This opens up entirely new deployment patterns: AI applications that run client-side with zero backend infrastructure.

    NVIDIA Infrastructure

    NVIDIA published deployment guides across their full hardware stack:

    • DGX Spark: GB10 Grace Blackwell Superchip with 128GB unified memory. Runs the 31B in BF16 natively. Includes NeMo Automodel recipes for fine-tuning.
    • Jetson Orin Nano: E2B and E4B for robotics and edge AI. Containers available at Jetson AI Lab.
    • RTX GPUs: Quantized inference via Ollama and llama.cpp. RTX Pro users can also use vLLM.
    • NVIDIA NIM: Pre-packaged optimized microservices for production deployment. Free API available for prototyping at build.nvidia.com.
    • NVFP4: 4-bit quantized checkpoint for Blackwell GPUs using NVIDIA Model Optimizer. 4-bit precision with near-identical accuracy to 8-bit.

    Fine-Tuning: Day One, With Caveats

    Fine-tuning support exists but had a rough launch. Multiple early adopters reported issues within hours:

    1. HuggingFace Transformers didn’t recognize the gemma4 architecture at first. Required installing from source.
    2. PEFT couldn’t handle Gemma4ClippableLinear, a new layer type in the vision encoder. Required a monkey-patch.
    3. A new mm_token_type_ids field is required during training even for text-only data. Required a custom data collator.

    All three issues had bug reports filed and responses within hours. Unsloth Studio provided day-one fine-tuning support with a UI that handles these edge cases. The HuggingFace TRL team also shipped a remarkable demo: training Gemma 4 to drive in the CARLA driving simulator, where the model sees the road through a camera, decides actions, and learns from outcomes. After training, it consistently changes lanes to avoid pedestrians.

    For production fine-tuning, NVIDIA NeMo Automodel provides recipes for supervised fine-tuning (SFT) and memory-efficient LoRA directly from HuggingFace checkpoints, no format conversion needed.

    What This Means for Qwen, Llama, and the “Bigger Is Better” Paradigm

    The open model landscape in early April 2026 presents a stark efficiency picture. Here are the top open models by Arena AI score:

    • GLM-5 (Z.ai): 1452, ~750B params, MIT
    • Kimi-K2.5-Thinking (Moonshot): 1451, ~1T+ params, Modified MIT
    • Gemma 4 31B (Google): 1452, 31B dense, Apache 2.0
    • Qwen 3.5-397B-A17B (Alibaba): 1450, 397B MoE (17B active), Apache 2.0
    • Qwen 3-235B-A22B-Instruct: 1418, 235B MoE (22B active), Apache 2.0
    • DeepSeek-R1-0528: 1426, unknown size, MIT

    Gemma 4 31B matches or beats every one of them with 10x to 30x fewer total parameters. The implications ripple through every layer of the AI stack.

    Serving Cost and Infrastructure

    Running a 31B dense model costs a fraction of serving a 397B MoE. Less VRAM, less bandwidth, less electricity, less money per token. The 31B fits on a single H100 in BF16; a 397B model needs a multi-GPU setup even with quantization. For companies deploying at scale, this is potentially the difference between a viable business model and a money-losing one.

    This is especially relevant as the cost curve for frontier inference gets more attention. If two models produce equivalent output quality, the one that’s 13x smaller wins on unit economics every time.

    Fine-Tuning Accessibility

    You can fine-tune a 31B model with LoRA on a single consumer GPU (24GB VRAM is sufficient for Q4 + LoRA). Fine-tuning a 397B MoE requires a multi-GPU cluster with hundreds of gigabytes of aggregate VRAM. This isn’t just a cost difference; it’s an accessibility difference. Researchers at universities, startups without GPU clusters, and individual developers can now fine-tune a frontier-quality model on their workstation. That wasn’t possible with the larger models.

    Edge Deployment

    No MoE model with 397B total parameters is running on a phone. Period. Even with only 17B active parameters, the 397B model needs all its expert weights loaded (or frequently swapped) in memory. Gemma 4’s E2B runs on a phone, a Raspberry Pi, a Jetson Nano, and in the browser. The E4B runs on any mid-range laptop. The 26B MoE runs on a gaming GPU. The 31B dense runs on a workstation.

    This size diversity means a single model family can serve every deployment tier, from cloud to edge, with consistent behavior and fine-tuning compatibility.

    The Speed Counterargument

    Gemma 4 is not without weaknesses. Community benchmarks reveal significant performance gaps against Qwen 3.5:

    • Token generation speed: One user measured 11 tok/s for Gemma 4 26B-A4B vs 60+ tok/s for Qwen 3.5 35B-A3B on the same RTX 5060 Ti 16GB. The dense 31B achieves 18-25 tok/s on dual NVIDIA GPUs. This is reasonable but not fast.
    • VRAM for context: One test showed Gemma 4 27B Q4 fitting only 20K context on a 5090, while Qwen 3.5 27B Q4 fit 190K on the same card. The KV cache is hungrier.
    • Overall compute efficiency: Qwen 3.5-397B activates only 17B parameters per token (45% of Gemma 4’s 31B). At equivalent quality, Qwen 3.5 does less computation per token.

    These are real issues for production deployments where latency and throughput matter. The Gemma 4 MoE model (26B-A4B) theoretically addresses the compute concern by activating only 3.8B parameters, but the current inference speed doesn’t reflect that advantage in practice.

    Possible explanations: immature quantization support (QAT models haven’t been released yet), inference engine optimizations haven’t caught up to the new architecture, or the shared KV cache and PLE add overhead that offsets the parameter reduction. Google’s recommended sampling parameters (temperature 1.0, top_p 0.95, top_k 64) may also impact throughput.

    The Trajectory Argument

    Speed and VRAM issues tend to improve with time. Quantization-aware training models (QAT) arrived weeks after Gemma 3 and dramatically improved quantized inference quality. The inference engine ecosystem (llama.cpp, vLLM, SGLang) constantly optimizes for popular models. Architecture-specific optimizations for the shared KV cache and PLE are presumably in progress.

    What’s harder to fix is raw intelligence per parameter. If Google’s training recipe can extract 1452-ELO performance from 31B parameters today, the question becomes: what happens when they apply the same recipe to 100B parameters? Or 200B? The linear extrapolation is uncomfortable for every other lab in the open model race.

    The Community Verdict After 24 Hours

    The Hacker News thread hit 1,678 points and 445 comments in a day. Here are the standout takes.

    The Enthusiasts

    Daniel Hanchen (Unsloth founder), who works closely with every major model lab, called Gemma 4 “sooooo good!!!” and said Google is “definitely hands down” the most collaborative lab to work with, followed by Qwen, Meta, and Mistral. When asked which open source model is best, he answered: “Tbh Gemma-4 haha.”

    A user running OCR, full text search, embedding, and summarization of 1800s land records locally described the impact: “People are so excited that they can now search the records in multiple languages that a 1 minute wait to process the document seems nothing.” This was using previous-generation Qwen models; they planned to upgrade to Gemma 4 immediately.

    Another user testing Nix code generation found Gemma 4 26B-A4B “significantly better than qwen3.5-35b-a3b” and shared their llama-cli configuration for a MacBook Air M4 32GB.

    The Skeptics

    A Hugging Face commenter called it a “somewhat disappointing release” and wished “larger tech companies would take a page out of OpenAI’s book and release actually competitive OSS.” They added: “But the models are stable. Definitely more consistency and token efficiency than Qwen.”

    Multiple users noted the inference speed gap and questioned whether the Arena AI scores tell the full story. One dev.to analysis concluded: “For English-only, benchmark-optimized, speed-critical deployments, Qwen 3.5 is still the better choice.”

    The Missing Models

    Several commenters expressed disappointment about what wasn’t released:

    • No 9-12B dense model. Gemma 3’s 12B was popular, and there’s no direct upgrade path. The gap between E4B (4.5B effective) and the 26B MoE is too wide for many use cases.
    • No 100B+ model. There were rumors of a 120B that didn’t materialize. Several users noted this would have been transformative given the 31B’s performance.
    • No QAT models at launch. Gemma 3’s QAT variants significantly improved quantized quality. The community expects these for Gemma 4 but they’re not available yet.

    Real-World Use Cases Emerging

    Within 24 hours, people were already deploying Gemma 4 for:

    • Historical document OCR and translation (land records from the 1800s, multiple languages)
    • Local PDF analysis with n8n workflow automation and Ollama
    • Code generation as a local coding assistant (Nix, Python, general purpose)
    • Kid education platforms (one user said “this exactly fits our kid education domain”)
    • Privacy-sensitive document processing where cloud APIs require redaction
    • Financial analysis (one user reported the E2B gives “significantly better answers than Qwen 3.5 4B” for finance)

    What Comes Next

    The community is waiting for several things that will determine whether Gemma 4 consolidates its position or gets overtaken:

    QAT models (quantization-aware training): These arrived weeks after Gemma 3 and dramatically improved quantized inference. The E2B and E4B will benefit most, since edge devices rely entirely on quantized inference. Expect these within days to weeks.

    Inference engine optimizations: The current speed gap against Qwen 3.5 may close as llama.cpp, vLLM, and other engines add architecture-specific optimizations for the shared KV cache, PLE, and MoE routing.

    A 9-12B dense model: This would fill the biggest gap in the lineup and give Gemma 3 12B users a clean upgrade path.

    Abliterated variants: Now fully legal under Apache 2.0. At least one exists already. More will follow as safety researchers and uncensored-model communities work through the architecture.

    The bigger question: if Google can match 400B MoE models with a 31B dense model, what does the next generation look like? A 100B Gemma 5 using this training recipe could potentially match proprietary frontier models like Gemini 3 Pro (Arena 1492) or Claude Opus 4.6 (Arena 1490). That would be the first time an open model genuinely competed with the best proprietary offerings.

    The Bottom Line

    Gemma 4 is the most intelligence per parameter ever shipped in an open model. The 31B dense model ties the Arena AI leaderboard with models 10-30x its size. The E2B puts multimodal AI on an $80 Raspberry Pi. The entire family is Apache 2.0, which means no licensing landmines for commercial use.

    It’s not perfect. Inference speed lags behind Qwen 3.5. VRAM consumption for context is worse. Fine-tuning tooling needed patches at launch. There’s no 9-12B model in the lineup.

    But the trajectory is clear. The open model race just shifted from “who can train the most parameters” to “who can extract the most intelligence per parameter.” Google, drawing from the same Gemini 3 research that powers their proprietary models, appears to be winning that race convincingly.

    For developers, the practical upshot: you can now run a frontier-quality multimodal AI model on your laptop, your phone, or a $80 single-board computer. It understands images, audio, video, and 140 languages. It can call functions, reason through multi-step problems, and generate production-quality code. It’s free, it’s open, and it’s Apache 2.0.

    That combination didn’t exist 48 hours ago.

  • I Read All 512,000 Lines of Claude Code’s Leaked Source Code

    I Read All 512,000 Lines of Claude Code’s Leaked Source Code

    A few weeks ago, I reverse-engineered Cursor by pointing a proxy at it and capturing every API call. That took some effort. This time, Anthropic did the hard part for me.

    On March 31, 2026, developer Chaofan Shou noticed something unusual in the npm package for Claude Code v2.1.88: a 57 MB .map file. A source map. The kind of file that maps minified production code back to the original TypeScript source. The kind that should never ship to production.

    Anthropic pulled the version within three hours, but by then the code was mirrored on at least three GitHub repos. 512,000 lines of TypeScript. Every internal file, every comment, every feature flag. I spent the last two days reading through it. Here’s what I found.

    It’s Not a Thin Wrapper

    If you assumed Claude Code was a shell script calling an API, you’re wrong. It’s a full application with a React UI running inside the terminal (via React Ink), bundled with Bun, entirely in TypeScript. The src/ directory has roughly 55 top-level directories. The entry point main.tsx alone is 800 KB.

    The architecture is modular and well-organized:

    • tools/ contains about 40 tools (Bash, Read, Edit, Grep, Glob, Write, Agent, etc.), each in its own directory with JSON schema, validation, and permission logic
    • commands/ has 100+ slash commands, including hidden ones
    • components/ holds 146 React components for the terminal UI
    • hooks/ contains 87 React hooks
    • services/ manages API calls, OAuth, MCP integration, analytics, and rate limiting
    • coordinator/ handles multi-agent orchestration
    • buddy/ is… a Tamagotchi. We’ll get to that.

    One detail that stands out: Bun’s build-time feature flags. The function feature('BUDDY') resolves at compile time, not runtime. If the flag is off, the entire code branch gets eliminated via dead code elimination. No runtime overhead, no hidden code paths in the binary.

    A Tamagotchi in Your Terminal

    The feature that broke the internet. Behind the BUDDY flag, Claude Code ships a complete virtual companion system: 18 ASCII animal species, 5 rarity tiers, procedural generation, and AI-generated personalities.

    Species include duck, cat, dragon, ghost, axolotl, robot, mushroom, capybara, and more. Each has 3 animation frames at 500ms intervals. The rarity system is what you’d expect from a gacha game:

    Rarity Drop Rate Min Stats Hats
    Common 60% 5 No
    Uncommon 25% 15 Random
    Rare 10% 25 Random
    Epic 4% 35 Random
    Legendary 1% 50 Random

    Each companion has 5 stats: DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK. One is the peak stat, one is the dump stat, the rest are distributed randomly. Available hats include crown, tophat, propeller, halo, wizard, beanie, and tinyduck (a tiny duck sitting on the companion’s head). There’s a 1% chance of a shiny variant.

    Here’s the clever part: your companion is deterministic. It’s seeded from a hash of your user ID using a Mulberry32 PRNG. Same user, same animal, always. The comment in the code reads: “Mulberry32 — tiny seeded PRNG, good enough for picking ducks.”

    The “bones” (species, eyes, rarity, stats) regenerate from the hash at every launch and are never saved to disk. Only the “soul” (AI-generated name and personality) persists after the first “hatch.” You can’t fake a Legendary by editing config files.

    One last detail. The species name capybara collides with an internal Anthropic model codename. To avoid tripping the build scanner (excluded-strings.txt), all species names are hex-encoded:

    const c = String.fromCharCode
    export const duck = c(0x64,0x75,0x63,0x6b)
    export const capybara = c(0x63,0x61,0x70,0x79,0x62,0x61,0x72,0x61)

    The Prompt Caching Trick That Makes It Fast

    This is the part that matters if you build AI products. The main reason Claude Code feels fast isn’t the model. It’s how the system prompt is structured.

    In constants/prompts.ts, there’s a marker:

    export const SYSTEM_PROMPT_DYNAMIC_BOUNDARY =
      '__SYSTEM_PROMPT_DYNAMIC_BOUNDARY__'

    This marker splits the system prompt into two halves. Everything before the boundary is identical for every user on the planet: identity, tool definitions, output style, permission handling. Roughly 40-50K tokens of static text. This portion is cached with a global scope, meaning a single Blake2b hash shared across all first-party Anthropic users. Cache hit rate: above 90%.

    Everything after the boundary is session-specific: user memory, MCP instructions, environment info, skills. This gets cached at the org level.

    The comments warn: “WARNING: Do not remove or reorder this marker without updating cache logic.” Every conditional placed before the boundary multiplies prefix hash variants by 2N. Multiple internal PRs (#24490, #24171) document bugs caused by conditionals placed in the wrong half.

    The practical result: the model doesn’t re-process its base instructions on every turn. It finds them in cache. This cuts the computational cost of the system prompt by 90%+. If you’re building a wrapper that constructs the prompt from scratch every request, you’re already at a structural disadvantage.

    How It Manages Context Without Losing the Thread

    Context is treated as a finite resource with two compression strategies.

    Microcompact runs preventively while you work. Old tool results (Bash, Read, Grep, Glob, WebSearch, Edit, Write) are progressively cleared and replaced with [Old tool result content cleared]. The threshold is around 180K tokens; when crossed, it compresses down to about 40K. File paths in tool results are shortened to relative paths to save tokens.

    Full compaction (/compact) triggers when microcompact isn’t enough. The compaction prompt is arguably the most carefully crafted piece of the entire codebase. It mandates a structured summary in 9 sections:

    1. Primary Request and Intent
    2. Key Technical Concepts
    3. Files and Code Sections (with complete snippets)
    4. Errors and Fixes
    5. Problem Solving
    6. All User Messages (verbatim, never summarized)
    7. Pending Tasks
    8. Current Work
    9. Optional Next Step

    Section 6 is the most significant: every human message is preserved word-for-word. User feedback never gets lost in compression. Section 9 includes an explicit guard: “Do not start on tangential requests or really old requests that were already completed without confirming with the user first.”

    There’s also deferred tool loading. MCP tools and optional tools aren’t sent with full schemas; only names are included. When Claude needs one, it calls ToolSearch for lazy-loading. With many MCP servers connected, this saves thousands of tokens per turn.

    Undercover Mode: The Irony Writes Itself

    When Claude Code operates in a public repository, a system called Undercover Mode activates automatically. It detects whether the repo is public (via an allowlist) and suppresses all references to Anthropic internals: model codenames, unreleased versions, internal repo names, Slack channels.

    The suppressed names include Capybara and Tengu, codenames for unannounced models. An environment variable CLAUDE_CODE_UNDERCOVER=1 forces the mode on regardless of repo type.

    A system designed to prevent internal information from leaking, exposed in the biggest internal information leak in Anthropic’s history. You can’t make this up.

    The Unreleased Roadmap

    Feature flags and codenames scattered throughout the codebase reveal what’s coming next:

    Codename Feature Evidence
    Bagel Built-in web browser in the terminal bagelActive, bagelUrl, bagelPanelVisible
    Tungsten tmux integration (virtual terminal) tungstenActiveSession, tungstenPanelVisible
    Chicago Computer Use via MCP computerUseMcpState, screenshot, clipboard
    Kairos Proactive agent + assistant + GitHub webhooks /proactive, /brief, /subscribe-pr
    Torch Unknown (/torch command) Feature flag only, no implementation details

    Kairos is the most interesting. It includes a mode where Claude acts proactively without waiting for your input, a /brief command for summaries, an /assistant mode, and GitHub webhook subscriptions with /subscribe-pr. If this ships, Claude Code becomes an always-on development partner rather than a tool you invoke.

    Other notable feature flags: VOICE_MODE (voice input), BRIDGE_MODE (remote control), DAEMON (background server), ULTRAPLAN (advanced cloud planning), FORK_SUBAGENT, UDS_INBOX (inter-agent communication), COORDINATOR_MODE (multi-worker orchestration).

    Auto-Dream: The Agent That Thinks While You Sleep

    In services/autoDream/, there’s a background process that consolidates memories in 4 phases: Orient (understand context), Gather (collect memories), Consolidate (unify and deduplicate), Prune (remove the unnecessary).

    It works on the memdir, Claude Code’s persistent memory directory. Conversation logs saved in JSONL format are analyzed, recurring patterns extracted, and structured memories created. It appears as an animated pill in the footer.

    Separately, in services/extractMemories/, an automatic memory extraction agent runs at the end of every conversation. It’s implemented as a perfect fork of the main conversation, inheriting the parent’s prompt cache at zero additional cost for the static prefix. This agent has limited tool access (only Read, Grep, Glob, read-only Bash, and memory writes).

    In practice: Claude Code dreams. While you’re not using it, a background process reworks past conversations to improve future ones.

    Two Classes of Users

    The code makes a sharp distinction between external (everyone) and ant (Anthropic employees). The check is process.env.USER_TYPE === 'ant'.

    Here’s what Anthropic employees get that you don’t:

    Capability External Ant
    curl, wget Blocked in auto-mode Allowed
    kubectl, aws, gcloud Blocked Allowed
    gh api (raw GitHub API) Blocked Allowed
    Model override No Yes
    Feature flag override No Yes, via env var
    Anti-hallucination prompt Not included Full paragraph
    Verification agent No Adversarial verifier

    The system prompt itself is different for employees. External users get “Go straight to the point. Be extra concise.” Employees get a full paragraph on fluid prose, inverted pyramid structure, and avoiding tables for explanations. Employees also get: “Default to writing no comments. Only add one when the WHY is non-obvious” and “If you notice the user’s request is based on a misconception, say so.”

    The anti-hallucination paragraph is particularly revealing. A comment in the code reads: “@[MODEL LAUNCH]: False-claims mitigation for Capybara v8 (29-30% FC rate vs v4’s 16.7%)”. Translation: the Capybara v8 model makes false claims almost twice as often as v4. The countermeasure is an explicit prompt:

    “Never claim ‘all tests pass’ when output shows failures, never suppress or simplify failing checks to manufacture a green result, and never characterize incomplete or broken work as done.”

    This instruction only runs for Anthropic employees. The rest of us get the model without the guardrail.

    The Telemetry You Didn’t Know About

    Claude Code runs two separate telemetry pipelines.

    First: every file operation (read, write, edit) triggers two SHA256 hashes. One for the file path (truncated to 16 characters), one for the full content (64 characters, for files up to 100 KB). The event is called tengu_file_operation. The hashes aren’t reversible, so Anthropic can’t reconstruct your files. But identical files produce identical hashes across users. They can tell how many people work on the same file, whether a file changed between operations, and which editing patterns are most common.

    Second: beyond the Datadog analytics pipeline, there’s a first-party logging infrastructure using OpenTelemetry that exports event batches to /api/event_logging/batch on Anthropic’s servers. It has disk-persistent retry on failure. All tengu_* events flow through this pipeline: GrowthBook experiment assignments, file operations, tool usage, session context.

    This second pipeline is completely separate from Datadog and documented nowhere. Users have no way to know it exists, and no way to opt out.

    On top of this, GrowthBook manages silent A/B experiments. Anthropic employees can override any feature flag via CLAUDE_INTERNAL_FC_OVERRIDES. External users are assigned to experiment groups without explicit consent.

    Easter Eggs and Internal Culture

    Scattered through the code, small details that reveal Anthropic’s engineering culture:

    • /good-claude: a hidden, disabled command (isHidden: true, isEnabled: false) that does nothing. The name suggests it was meant for giving the model positive feedback.
    • /stickers: opens the Sticker Mule store with Claude Code merchandise. A hardcoded link in the CLI.
    • /thinkback: “Your 2025 Claude Code Year in Review.” Spotify Wrapped, but for your coding sessions. Hidden behind a feature flag.
    • /teleport: session teleportation between web and terminal via OAuth and WebSocket. Start a conversation on claude.ai, continue in the terminal.
    • Spinner verbs: loading messages include “Hatching” and “Whatchamacalliting” among the standard rotations.

    Security: What’s Actually Interesting

    Three mechanisms worth noting:

    Secret scanner: When Claude Code writes to team memory, a scanner checks for 40+ secret patterns (derived from gitleaks): AWS, GCP, Azure, GitHub, Slack, Stripe, Anthropic, OpenAI, HuggingFace keys, and SSH private keys. The regex for Anthropic API keys is assembled at runtime from four separate strings ('sk' + 'ant' + 'api' + '03-') to avoid the build scanner flagging a false positive. Same technique as the buddy species names.

    Client attestation: Every API request includes an x-anthropic-billing-header with a cryptographic fingerprint proving the request came from the official client. The algorithm: take a hardcoded salt, extract 3 characters from positions 4, 7, and 20 of the first user message, hash with SHA256, and truncate. This lets the server distinguish official clients from third-party wrappers.

    Anti-scraping in containers: When running in a remote container (CCR), the upstream proxy reads the session token from /run/ccr/session_token, then deletes the file and calls prctl(PR_SET_DUMPABLE, 0) to block ptrace. No process with the same UID can read the token from process memory.

    What This Actually Means

    The Claude Code source doesn’t contain API keys, cryptographic secrets, or obvious vulnerabilities. It’s a client application; API calls still need a valid token. But the leak reveals things that matter more than secrets.

    The prompt engineering is the product. The system prompt, the compaction logic, the two-tier caching strategy, the anti-hallucination instructions, the deferred tool loading. This is months of iteration on specific model behaviors. It’s not something you’d reinvent easily.

    The model lies, and they know it. The Capybara v8 false-claim rate of 29-30% is documented in a comment that was supposed to be internal. The mitigation (a strongly-worded prompt paragraph) is only active for employees. Everyone else gets the unguarded model.

    The build pipeline is the attack surface. This is the second source map leak in under a year (the first was June 2025). The fix is one line in tsconfig.json or a CI check. The fact it happened twice points to a process gap, not a technical one.

    Undercover mode was in the source map. A system designed to prevent internal information from leaking, packaged inside the leak. The irony is almost poetic.

    If you build on top of Claude (or any frontier model), the takeaway is structural: the gap between what AI companies ship to you and what they use internally is real, measurable, and documented in their own code.

  • This Week on GitHub: 10 AI Repos That Gained 100,000+ Stars Combined

    This Week on GitHub: 10 AI Repos That Gained 100,000+ Stars Combined

    Two weeks ago I wrote that every hot GitHub repo was an agent. This week? It’s worse. Or better, depending on where you sit.

    I pulled the full GitHub Trending data for daily, weekly, and monthly rankings on March 26, 2026. Here’s what the numbers say, and what they mean if you’re building anything with AI right now.

    The Numbers Are Absurd

    The top two repos on GitHub this month have a combined 224,000+ stars. Both are agent skill frameworks. obra/superpowers sits at 115k stars with 51,000 gained in a single month. affaan-m/everything-claude-code is at 109k with 55,000 gained in the same period.

    For context, React has 234k stars. These repos are approaching React-level popularity in weeks, not years. The difference: React took a decade. These took a quarter.

    Out of the 15 weekly trending repos, 11 are directly AI-related. The remaining four are a Minecraft world generator, a money-making automation tool, and two PDF/document parsers (which exist to feed data into AI pipelines). So really, it’s 13 out of 15.

    The 10 Repos You Should Know About

    1. obra/superpowers (115k stars, +17,540 this week)

    What it is: An agentic skills framework and software development methodology. Think of it as a structured way to give coding agents reusable skills, so they don’t start from zero every session.

    Why it matters: This isn’t a model or a wrapper. It’s a methodology. The idea that agents need persistent, composable skills is becoming the dominant paradigm. If you’ve worked with skill-based agent systems, you know why. Without skills, every AI session is Groundhog Day.

    github.com/obra/superpowers | Shell

    2. affaan-m/everything-claude-code (109k stars, +22,442 this week)

    What it is: A performance optimization system for agent harnesses. Skills, instincts, memory, security, and development methodology for Claude Code, Codex, Opencode, Cursor, and other coding agents.

    Why it matters: The Claude Code ecosystem is spawning its own tooling layer. This repo, plus claude-hud (monitoring), claude-skills (plugin library), and learn-claude-code (build your own) all trended this month. It’s like watching the npm ecosystem form in real time, except for agents instead of packages.

    github.com/affaan-m/everything-claude-code | JavaScript

    3. bytedance/deer-flow (47.8k stars, +13,951 this week)

    What it is: ByteDance’s open-source long-horizon SuperAgent. It handles tasks that take minutes to hours, using sandboxes, persistent memory, tool access, subagents, and a message gateway to coordinate complex work.

    Why it matters: This is a Big Tech company open-sourcing their internal agent infrastructure. Long-horizon agents (ones that work for hours, not seconds) are the next frontier. The fact that ByteDance is betting on this architecture tells you where the industry is headed. If you’ve been building agents in Python, deer-flow shows you the end state: agents that don’t just answer questions but run entire projects.

    github.com/bytedance/deer-flow | Python

    4. TauricResearch/TradingAgents (42.2k stars, +8,939 this week)

    What it is: A multi-agent LLM framework for financial trading. Multiple specialized agents (analyst, risk manager, portfolio manager) collaborate on trade decisions.

    Why it matters: Financial AI agents are having a moment. This repo plus virattt/dexter (18.7k stars, autonomous financial research) plus a Chinese fork (TradingAgents-CN, 21.6k stars) signal massive demand. People want AI that can research stocks, assess risk, and suggest trades. Whether it works in live markets is a different question, but the 8,939 stars in one week tell you the appetite is real.

    github.com/TauricResearch/TradingAgents | Python

    5. ruvnet/RuView (42.8k stars, +1,001 today)

    What it is: WiFi-based human pose estimation, vital sign monitoring, and presence detection. No cameras. It uses commodity WiFi signals to track human movement and health metrics in real time.

    Why it matters: This is the kind of project that makes you stop scrolling. DensePose from WiFi signals, not video. The privacy implications are interesting both ways: you can monitor elderly patients without cameras (good), or you can detect people through walls (concerning). It gained 34,000 stars this month, which suggests people are genuinely excited about camera-free sensing.

    github.com/ruvnet/RuView | Rust

    6. supermemoryai/supermemory (19.5k stars, +2,064 this week)

    What it is: A memory engine and API built for AI applications. Extremely fast, scalable, designed to be the persistence layer that agents need.

    Why it matters: Every agent framework has a memory problem. Sessions end, context is lost, the agent starts over. SuperMemory positions itself as the database layer specifically for AI memory: not a generic vector store, but purpose-built for how agents actually store and retrieve context. Combined with volcengine/OpenViking (context database for agents, 19.3k stars this month), it’s clear that agent memory infrastructure is becoming its own category.

    github.com/supermemoryai/supermemory | TypeScript

    7. Crosstalk-Solutions/project-nomad (17.2k stars, +13,848 this week)

    What it is: A self-contained, offline survival computer packed with critical tools, knowledge bases, and local AI. Designed to work without internet access.

    Why it matters: The offline-first AI movement is growing. Between this and moeru-ai/airi (35.7k stars, self-hosted AI companion), there’s a clear trend: people want AI that runs on their hardware, without cloud dependencies. Call it digital sovereignty or just paranoia, but the stars don’t lie. 13,848 in a single week for an offline tool.

    github.com/Crosstalk-Solutions/project-nomad | TypeScript

    8. jarrodwatts/claude-hud (13.6k stars, +6,816 this week)

    What it is: A Claude Code plugin that shows what’s happening in real time: context usage, active tools, running agents, and todo progress.

    Why it matters: When your coding agent runs 47 subagents and you can’t see what any of them are doing, you have an observability problem. claude-hud is the DevTools for agent workflows. As agents get more autonomous and long-running, monitoring them becomes a necessity, not a nice-to-have. This is the beginning of “agent ops.”

    github.com/jarrodwatts/claude-hud | JavaScript

    9. NousResearch/hermes-agent (13.5k stars, +4,365 this week)

    What it is: An agent framework from Nous Research built around the idea that the agent should grow with you. Self-evolving, learning from interactions over time.

    Why it matters: Nous Research is known for fine-tuned open models (Hermes series). Them shipping an agent framework signals that model companies are moving up the stack. The “agent that grows with you” pitch is essentially personalized AI: an agent that gets better the more you use it, because it remembers what worked.

    github.com/NousResearch/hermes-agent | Python

    10. langchain-ai/open-swe (8.5k stars, +2,531 this week)

    What it is: An open-source asynchronous coding agent from LangChain. Designed to handle software engineering tasks end-to-end.

    Why it matters: LangChain building their own SWE agent means the framework layer and the application layer are merging. open-swe competes with Devin, SWE-agent, and similar tools, but as a fully open-source offering. The “async” part is key: it runs in the background while you do other things, then comes back with a pull request. That’s a fundamentally different workflow from pair-programming with a chatbot.

    github.com/langchain-ai/open-swe | Python

    Five Patterns Worth Watching

    1. Agent Skills Are the New Packages

    The top two repos on all of GitHub are agent skill frameworks. Not models. Not apps. Infrastructure for teaching agents reusable capabilities. Skills, not prompts. This is the shift from “write a good prompt” to “build a good skill library.”

    2. Claude Code Is Spawning an Ecosystem

    Five of the top monthly repos are Claude Code-specific tools. A monitoring dashboard, a skills library, a best-practices guide, a “build your own” tutorial, and a performance optimizer. This level of ecosystem activity around a single tool is unusual. Cursor had this moment. VS Code had this moment. Now it’s happening for agent harnesses.

    3. Financial Agents Have Real Demand

    42k stars on a trading agent framework is not a toy. The Chinese fork hitting 21k stars independently confirms the demand crosses markets and languages. If you’re building anything in fintech, multi-agent architectures for analysis and decision-making are where the energy is.

    4. Memory Is the Missing Piece

    Three separate repos in the monthly charts are specifically about agent memory: supermemory, OpenViking, and the memory subsystems in deer-flow and superpowers. Agents that forget everything between sessions are annoying. The race is on to build the persistence layer that makes agents actually useful over time.

    5. Offline and Self-Hosted AI Is Growing

    project-nomad and airi both trended hard. People want AI that works without an internet connection, runs on their hardware, and doesn’t phone home. This isn’t just a privacy play. It’s also about reliability: if your AI tools depend on an API that has a rate limit, you have a fragile workflow.

    What This Means for Builders

    If you’re building AI products right now, the signal from GitHub is loud and consistent:

    • Don’t build another chatbot. Build agent infrastructure. Skills, memory, monitoring, orchestration.
    • Vertical agents win. The generic frameworks exist. The opportunity is in domain-specific agents (finance, legal, healthcare, DevOps) that encode real expertise.
    • Memory is a product. If you can solve agent memory better than the current options, you have a business.
    • Observability is early. claude-hud got 6,800 stars in a week. The “Datadog for AI agents” hasn’t been built yet.

    The GitHub trending page used to be libraries and frameworks. Now it’s agents all the way down. The question isn’t whether this trend continues. It’s whether you’re building on it, or watching it happen.

  • Google’s TurboQuant Compresses AI Memory by 5x With Zero Quality Loss. Here’s What That Means.

    Google’s TurboQuant Compresses AI Memory by 5x With Zero Quality Loss. Here’s What That Means.

    Google just published a set of papers that could change how much memory AI models need to think. The technique is called TurboQuant, and it compresses a critical part of how large language models work by 5-6x, with essentially zero loss in quality. If you’ve ever wondered why running AI locally requires a beastly GPU, or why API providers charge per token, this is directly relevant.

    Here’s the short version: TurboQuant makes AI models smaller at runtime without making them dumber.

    The Memory Problem Nobody Talks About

    When a large language model generates text, it doesn’t just read your prompt and spit out an answer. It maintains a running memory called the key-value (KV) cache. Think of it like a notepad the model keeps while writing. Every token it has processed gets a key (what is this?) and a value (what does it mean?), and the model refers back to this notepad constantly to decide what to write next.

    The problem: this notepad gets huge. For a model processing a long document or conversation, the KV cache can consume more memory than the model weights themselves. A 8-billion parameter model might need 16 GB for its weights, but another 10-20 GB just for the KV cache when processing a long context window.

    This is why longer conversations cost more. It’s why running models with 1 million token contexts requires server-grade hardware. And it’s why your MacBook can run a small model but chokes on anything ambitious.

    What TurboQuant Actually Does

    TurboQuant compresses the KV cache from 16-bit numbers down to just 3-4 bits per value. That’s a 4-5x reduction in memory. The clever part is how it does it without losing accuracy.

    Traditional compression (quantization) works by rounding numbers. Take a 16-bit float, round it to fit in 4 bits, accept some error. The problem is that real model data isn’t evenly distributed. Some values are huge outliers, and those outliers force you to spread your limited bits across a wide range, wasting precision on the common values.

    TurboQuant’s trick is a random rotation. Before quantizing, it multiplies all vectors by a fixed random matrix. This sounds counterintuitive, but there’s solid math behind it. The Central Limit Theorem tells us that when you mix many random values together, the result converges to a predictable bell curve. After rotation, the data follows a known distribution regardless of what the original data looked like.

    Once you know the distribution in advance, you can design the perfect compression grid for it. No need to analyze the data, no need to store extra calibration parameters. One precomputed grid works for everything.

    The full process has three steps:

    • Normalize and rotate. Store the vector’s length as a single number, then apply a shared random rotation matrix. Every vector gets the same rotation, so the decoder can trivially reverse it.
    • Snap to a precomputed grid. Each coordinate gets rounded to the nearest point on a grid that’s been optimized for the known post-rotation distribution. At 3 bits, that’s 8 possible values per coordinate. This is the only lossy step.
    • Fix the bias with a 1-bit residual. The rounding introduces a small systematic error in dot products (attention scores). TurboQuant applies a technique called Quantized Johnson-Lindenstrauss (QJL) to encode the residual error in just 1 extra bit, making the dot product estimates unbiased.

    The result: at 3.5 bits per channel, TurboQuant achieves “absolute quality neutrality” on standard benchmarks. The compressed model produces the same outputs as the uncompressed one. At 2.5 bits, there’s marginal degradation. The paper also reports up to 8x speedup in computing attention on H100 GPUs, because smaller data means less memory bandwidth consumed.

    Why This Matters Beyond the Math

    The practical implications ripple out in several directions:

    Longer context windows get cheaper. The KV cache is what makes long contexts expensive. Compress it by 5x and a 1 million token context suddenly requires the memory of what 200K tokens used to need. One HN commenter estimated this could effectively turn a 1M context system into a 4M context system on the same hardware.

    Local inference gets more feasible. If you’re running models on your own hardware (a laptop, a gaming PC, a Mac Studio), the KV cache is often the binding constraint for context length. Shrinking it means you can have longer conversations or process larger documents before hitting memory limits.

    API costs could drop. For companies like Google serving billions of queries, every byte of GPU memory per request translates to real infrastructure cost. A 5x reduction in KV cache memory means more concurrent users per GPU, which eventually flows through to pricing.

    Vector search gets faster too. TurboQuant isn’t just for LLMs. The same technique applies to vector databases used in search and retrieval-augmented generation (RAG). The paper shows superior recall compared to product quantization baselines, with near-zero indexing time. If you’re building applications that search through embeddings, this is worth watching.

    How It Compares to Other Approaches

    TurboQuant targets the KV cache specifically. It’s worth understanding where it sits relative to other compression techniques:

    • Weight quantization (GPTQ, AWQ, etc.) compresses the model’s parameters. TurboQuant doesn’t touch weights. These are complementary; you can use both.
    • Multi-Head Latent Attention (MLA), popularized by DeepSeek, redesigns the attention mechanism to produce smaller KV entries during training. It’s more invasive (must be baked in from the start) but targets the same bottleneck. TurboQuant can be applied post-training, and the two could be combined.
    • KIVI, a prior KV cache quantization method, is the main baseline TurboQuant beats. The key difference is that KIVI (and similar methods) need to store calibration constants per data block, adding 1-2 bits of overhead that partially defeats the compression. TurboQuant’s rotation trick eliminates this overhead entirely.

    What the Developer Community Thinks

    The Hacker News discussion (500+ points, 146 comments) revealed a mix of excitement and skepticism. Some highlights:

    Implementation is already happening. Within a day of the blog post, someone had an implementation in llama.cpp, and a group published an independent PyTorch implementation claiming “99.5% attention fidelity.” The llama.cpp implementation is reportedly tiny in terms of lines of code, with one commenter noting they “could see an implementation being merged in 4-6 weeks.” Apple’s MLX team also confirmed the accuracy results.

    The blog post itself caught flak. Multiple commenters called Google’s explanation poorly written, with one saying it was “the worst lay-people explanation of an AI component I have seen in a long time.” The animated visualization for PolarQuant was called “straight up nonsensical.” Several people suspected the blog post was AI-generated, pointing to phrases like “this clever step” and “redefining efficiency” as tells. The gap between the quality of the actual research and the quality of its communication was a recurring theme.

    A prior art dispute surfaced. A researcher pointed out that the core technique of applying geometric rotation before quantization for bias correction was introduced in a 2021 NeurIPS paper called DRIVE, and that they’d presented the work in a private talk at Google. They weren’t claiming theft, but noted the overlap should be acknowledged in the paper. Another commenter replied: “This is a classical technique, Johnson-Lindenstrauss etc. Rediscovered every few months.”

    GPU efficiency was questioned. Some commenters noted that while the paper reports accuracy-vs-space results, the end-to-end latency claims (up to 8x speedup) haven’t been independently reproduced. One commenter wrote: “Polar coordinates are absolute poison for parallel GPU compute.” Though another pointed out the actual implementation uses Cartesian grid centroids, not polar coordinates at runtime.

    A particularly detailed explanation from user photon_lines became the thread’s most upvoted comment, walking through the math step by step using the analogy of data bins and rounding. Worth reading if you want to go deeper.

    The Bigger Picture

    AI efficiency research has been quietly compounding. Building a GPT from scratch today takes a fraction of the compute it did two years ago. Inference costs have dropped 100x since GPT-3. TurboQuant represents another step in this trend, but it’s a meaningful one because it targets a bottleneck (the KV cache) that becomes proportionally more expensive as context windows grow.

    The paper was submitted in April 2025 and will be presented at ICLR 2026. It’s likely already deployed in Google’s Gemini models. The fact that independent implementations appeared within 24 hours of the blog post, and that the core algorithm is small enough to fit in a short pull request, suggests this will spread quickly through the open-source ecosystem.

    For developers building with LLMs, the takeaway is straightforward: the memory wall for long-context inference is getting pushed back. Models that needed enterprise GPUs for 100K+ contexts will eventually run with the same quality on consumer hardware. That’s not hype; it’s compression math catching up to the problem.

    The three papers behind TurboQuant are:

    If you want to see the algorithm visually, this interactive animation lets you step through every stage: normalize, rotate, quantize, reconstruct. Add your own points and watch the compression error change as you adjust the bit depth.

  • The 10 Hottest GitHub Repos in March 2026: Agents Everywhere

    The 10 Hottest GitHub Repos in March 2026: Agents Everywhere

    Every month, a new wave of GitHub repos explodes from obscurity into tens of thousands of stars. Most of them are forgettable. This month? Not so much. The March 2026 trending list reads like a manifesto for the agentic AI era: personal AI assistants, swarm intelligence engines, WiFi-based human detection, and tools to build your own Claude Code clone from scratch.

    I went through the 10 fastest-growing GitHub projects of the month, checked every repo, and here’s what’s actually worth your attention.

    1. OpenClaw: The 300K-Star Personal AI Assistant

    openclaw/openclaw crossed 313,000 stars this month, making it the single fastest-growing repo on the platform. Written in TypeScript, it’s a self-hosted personal AI assistant that runs 24/7 on any OS. The pitch: you own your data, you own your agent, no cloud dependency.

    The “lobster way” branding is… a choice. But the project is legit. It’s become the default scaffold for people who want to run persistent AI agents on their own hardware. If you’ve been thinking about setting up a local AI assistant that doesn’t phone home to OpenAI, this is the one everyone’s picking.

    2. Superpowers: Agentic Skills as Plug-and-Play Modules

    obra/superpowers hit 83,500 stars with a deceptively simple premise: a framework of agentic skills that AI agents can pick up and use. Think of it as a toolbox. Your agent needs to search the web? There’s a skill for that. Parse a PDF? Skill. Write and execute code? Skill.

    The entire thing is written in Shell. Yes, shell scripts. And it works. The methodology behind it is as interesting as the code: it’s a software development approach where you define what your agent can do, and the agent figures out when to do it. We’ve been building something similar ourselves, and the idea that skills compound over time is real.

    AI agent infrastructure illustration showing multiple agents collaborating in a futuristic war room
    Seven out of ten trending repos are agent infrastructure. The war room is getting crowded.

    3. RuView: Human Pose Detection Through WiFi Signals

    ruvnet/RuView is the one project on this list that made me stop scrolling. 36,600 stars for a Rust project that turns regular WiFi signals into real-time human pose estimation. No cameras. No wearable sensors. No depth sensors. Just the WiFi router you already have.

    It uses DensePose techniques over RF signals, runs on ESP32 microcontrollers, and can detect vital signs and human presence through walls. The privacy implications cut both ways: you could build a baby monitor that doesn’t record video, or you could build something much creepier. The tech is genuinely novel, and the fact that it’s open source in Rust (not a Python notebook) means people are actually deploying it.

    4. MiroFish: Swarm Intelligence That Predicts Anything

    666ghj/MiroFish reached 24,200 stars with a tagline that sounds like science fiction: “Predicting Anything.” It’s a swarm intelligence engine built in Python that combines multi-agent simulation, knowledge graphs, and LLMs for financial forecasting, social prediction, and public opinion analysis.

    The repo is well-structured and the website is polished, which is unusual for a project at this stage. Whether it actually predicts “anything” is another question entirely, but the architecture is interesting: agents form swarms, build shared knowledge, and converge on predictions. Financial AI is having a moment right now, and MiroFish is riding that wave hard.

    5. Airi: Your Self-Hosted AI Waifu (Seriously)

    moeru-ai/airi hit 33,600 stars and it’s exactly what it sounds like: a self-hosted AI companion with real-time voice chat, Live2D and VRM avatar support, and the ability to play Minecraft and Factorio. The stated goal is to reach “Neuro-sama’s altitude,” referring to the famous AI VTuber.

    Mock it if you want. 33,000 stars says the market disagrees. The project runs on Web, macOS, and Windows, and the “you own it” angle is the differentiator. In a world where every AI companion is a subscription service that owns your conversation history, a self-hosted alternative with full data ownership is a legitimate product.

    WiFi signals detecting human pose through walls, futuristic illustration
    No cameras, no sensors. Just your WiFi router and some very clever math.

    6. Claude Code Best Practices: The Meta-Repo

    shanraisshan/claude-code-best-practice pulled 16,100 stars for a repo that contains… documentation. No runtime code. Just a comprehensive guide to agentic engineering patterns and vibe coding techniques for AI-assisted development.

    The fact that a best-practices guide for a coding agent can rack up 16K stars tells you everything about where the industry is right now. People aren’t just using AI to code. They’re building entire methodologies around how to work with AI coding agents, and they’re hungry for patterns that actually work.

    7. Pi-Mono: The All-in-One Agent Toolkit

    badlogic/pi-mono by Mario Zechner (yes, the libGDX creator) hit 23,800 stars. It’s a TypeScript monorepo that packs a coding agent CLI, a unified LLM API, TUI and web UI libraries, a Slack bot, and vLLM pod management into one package.

    The appeal is obvious: instead of stitching together five different tools to run an AI agent across different interfaces, you get one cohesive toolkit. The fact that it comes from a developer with a track record of building frameworks people actually use (libGDX powers thousands of games) adds credibility that most AI repos lack.

    8. DeerFlow: ByteDance’s Open-Source SuperAgent

    bytedance/deer-flow is at 30,600 stars and it’s ByteDance’s answer to the “how do we build agents that actually do real work” question. Built on LangChain and LangGraph, it’s a SuperAgent harness that can research, code, and create autonomously using sandboxes, memory, tools, skills, and sub-agents.

    Formerly known as LangManus, the rebrand to DeerFlow came with a proper website and a more ambitious scope. It handles tasks ranging from minutes to hours, which puts it in a different category than quick-fire coding assistants. When ByteDance open-sources something, it’s worth paying attention, because they have the engineering bench to make it production-grade.

    9. Learn Claude Code: Build a Coding Agent From Scratch

    shareAI-lab/learn-claude-code reached 27,000 stars with the pitch “bash is all you need.” It’s an educational project that walks you through building a Claude Code clone from zero. The idea that you can build a functional AI coding agent with shell scripts and some LLM API calls is both humbling and terrifying.

    The companion website is well done, and the repo covers both Python and TypeScript implementations. If you want to understand how agentic coding tools actually work under the hood (rather than just using them), this is the best starting point I’ve seen. We covered building agents from scratch recently, and this repo takes it further.

    10. Heretic: Automatic Guardrail Removal for LLMs

    p-e-w/heretic is at 13,800 stars and it does exactly what the name implies: automatically removes safety guardrails from any language model. The technique is called abliteration, and it works by identifying and removing the specific transformer weights responsible for refusal behavior.

    Controversial? Obviously. But the star count speaks for itself. The demand for uncensored LLMs is massive, and this project automates what used to require manual model surgery. Whether this is good or bad for the world depends on your perspective, but it’s undeniably one of the most-watched AI repos this month.

    What This List Actually Tells Us

    Seven out of ten repos are AI agent tools. Not chatbots. Not model training frameworks. Not fine-tuning scripts. Agent infrastructure. The industry has moved past “can AI write code?” and into “how do I run 50 agents that work while I sleep?”

    The outliers are just as telling. RuView proves that AI isn’t just a software story; it’s reaching into hardware and signal processing in ways that feel like science fiction. Heretic shows that the tension between safety and freedom in AI is only accelerating. And MiroFish suggests that financial prediction is the next frontier where multi-agent systems will be tested in production.

    If you’re building anything in the AI space right now, the message from GitHub is clear: agents are the platform, skills are the currency, and everyone wants to own their stack.

    Next month’s list will look completely different. That’s what makes this interesting.

  • I Intercepted Cursor’s Brain: Reverse Engineering the Most Popular AI Code Editor

    I Intercepted Cursor’s Brain: Reverse Engineering the Most Popular AI Code Editor

    I pointed a LiteLLM proxy at Cursor, typed “hello,” and captured the full API trace. What came back was a 577KB JSON file containing the complete system prompt, all 16 tool definitions, model parameters, fallback chains, and the entire architecture of one of the most popular AI coding agents on the planet.

    This isn’t speculation. This isn’t “I think Cursor probably does X.” This is the raw trace, straight from the wire. And it’s fascinating.

    The Setup: How to Capture Cursor’s Brain

    Cursor doesn’t talk directly to OpenAI. In enterprise setups, it routes through a proxy. I configured LiteLLM (an open-source LLM gateway) with Langfuse tracing enabled, pointed Cursor at it, and typed a single word: “hello.”

    The trace captured everything: the full HTTP request body, model parameters, tool schemas, and the complete conversation architecture. One word from me. 10,000+ words from Cursor to the model. Let’s unpack it.

    The System Prompt: 10,000 Words Before You Say Anything

    Here’s where it gets wild. Before your message even reaches the model, Cursor injects a system prompt that’s over 10,000 words long. This is the instruction manual the model reads before it processes a single character of your input.

    Before we unpack the prompt, two model parameters from the trace stand out. Reasoning effort is set to “medium”, not maximum. Cursor doesn’t burn tokens on deep chain-of-thought for every interaction. And reasoning.encrypted_content is requested, meaning the model’s internal reasoning is encrypted in transit. You never see the raw chain of thought. The model thinks privately.

    The prompt is structured using XML-like tags as section delimiters. Not because XML is fashionable (it’s not), but because LLMs are extremely good at respecting boundaries defined by tags. Here’s the skeleton:

    <persistence> ... </persistence>
    <system-communication> ... </system-communication>
    <markdown_spec> ... </markdown_spec>
    <user_updates_spec> ... </user_updates_spec>
    <tone_and_style> ... </tone_and_style>
    <tool_calling> ... </tool_calling>
    <making_code_changes> ... </making_code_changes>
    <linter_errors> ... </linter_errors>
    <citing_code> ... </citing_code>
    <terminal_files_information> ... </terminal_files_information>
    <task_management> ... </task_management>
    <mcp_file_system> ... </mcp_file_system>
    <mode_selection> ... </mode_selection>

    Let’s break down the most interesting sections.

    The Persistence Directive: “Never Stop”

    The very first section is <persistence>, and it’s labeled CRITICAL. It reads:

    “You are an agent — please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user. Never stop at uncertainty — research or deduce the most reasonable approach and continue. Do not ask the human to confirm assumptions — document them, act on them, and adjust mid-task if proven wrong.”

    This is the single most important instruction in the entire prompt. It transforms the model from a chatbot that stops and asks questions into an autonomous agent that just figures things out and keeps going. Most amateur agent builders miss this entirely. They let the model ask “should I continue?” at every decision point, which creates a terrible user experience. Cursor explicitly forbids it.

    User Updates: The Communication Protocol

    The <user_updates_spec> section is surprisingly detailed. It dictates exactly how the agent should communicate progress:

    • Update length: 1-2 sentences, 25-50 words. Never more than 3 sentences except in initial plan and final answer.
    • Cadence: One update every 2-3 tool calls. Never go more than 5 tool calls without updating.
    • Tone: “Friendly, confident, collaborative. Be upbeat and humble; own mistakes and fix them quickly.”
    • Explicitly: no markdown headers in updates, only in the final summary.

    This is UX engineering baked directly into the prompt. Cursor recognized that watching an agent work silently for 30 seconds is anxiety-inducing, so they mandated regular progress updates. The “no headers in updates” rule prevents the chat from looking like a Wikipedia article while the agent is mid-task.

    Making Code Changes: The Read-First Rule

    There’s a rule buried in <making_code_changes> that’s easy to miss but critical: “You MUST use the Read tool at least once before editing.” This prevents the model from hallucinating file contents and overwriting code based on what it thinks is in the file rather than what’s actually there. It’s the software equivalent of “measure twice, cut once,” and it’s enforced at the prompt level.

    The Code Citation System

    The <citing_code> section is remarkably detailed. Cursor invented a custom syntax for referencing code that already exists in the codebase:

    ```startLine:endLine:filepath
    // code content here
    ```

    This is different from standard markdown code blocks (which are for new code). The triple-backtick format with line numbers lets Cursor’s frontend render a clickable link that jumps to the exact location in the editor. The prompt includes five good examples and five bad examples of how to use this format, which tells you how hard it was to get the model to consistently use it correctly.

    The 16 Tools: What Cursor Can Actually Do

    Every tool definition is sent in full with every API call. This is expensive (token-wise) but necessary because the model has no persistent memory of tool schemas between calls. Here’s the complete toolkit:

    File Operations (5 tools)

    • Read: Read files with optional offset/limit. Supports images (JPEG, PNG, GIF, WebP) and PDFs. Lines are numbered in output as LINE_NUMBER|LINE_CONTENT.
    • ApplyPatch: The crown jewel. More on this below.
    • Delete: Simple file deletion with graceful failure.
    • Glob: File pattern matching, sorted by modification time.
    • EditNotebook: Jupyter notebook cell editing.

    Search (2 tools)

    • Grep: Built on ripgrep. Supports regex, file type filtering, output modes (content, files_with_matches, count), pagination. The prompt explicitly tells the model: “STOP. ALWAYS USE ripgrep at rg first.”
    • SemanticSearch: Embedding-based code search that finds code by meaning, not exact text. Think: “Where do we encrypt passwords?” instead of grep encrypt.

    Execution (1 tool)

    • Shell: Command execution with stateful sessions (cwd and env vars persist). Supports background processes with a terminal file system (output streams to $id.txt files). The model can poll for completion, check exit codes, and kill hung processes. The prompt has a detailed <managing-long-running-commands> section with exponential backoff guidance. This is not a toy subprocess.run() wrapper.

    Web (2 tools)

    • WebSearch: Real-time web search. The prompt dynamically injects today’s date and explicitly says “You MUST use this year” to prevent the model from searching for 2024 docs in 2026.
    • WebFetch: URL content fetching with markdown conversion. Runs from an isolated server (no localhost access). Read-only, no binary content.

    IDE Integration (2 tools)

    • ReadLints: Fetches linter errors from the workspace. The prompt says: “NEVER call this tool on a file unless you’ve edited it.”
    • SwitchMode: Switches between Agent, Plan, Debug, and Ask modes. Only Plan mode is switchable by the model. The others require user action.

    Agent Orchestration (1 tool)

    • Task: Launches subagents. This is Cursor’s multi-agent system. More on this in the next section.

    User Interaction (2 tools)

    • AskQuestion: Presents structured multiple-choice questions to the user. Not free-text; options with IDs.
    • GenerateImage: Image generation from text descriptions. Gated with “STRICT INVOCATION RULES” to prevent the model from generating images when not asked.

    Extensibility (2 tools)

    • CallMcpTool: Calls any MCP (Model Context Protocol) tool. The model discovers available tools by reading JSON descriptor files from the filesystem. This is how Cursor integrates browser automation, custom APIs, and third-party tools without hardcoding them.
    • FetchMcpResource: Reads MCP resources (read-only data from MCP servers).

    Task Management (1 tool)

    • TodoWrite: Creates and manages structured task lists. Used for complex multi-step tasks. The prompt includes elaborate guidance on when to use it (3+ step tasks) and when not to (single-step tasks, informational requests).
    Visualization of Cursor 16 interconnected AI tools and multi-agent architecture
    Sixteen tools, four agent types, one very long system prompt.

    ApplyPatch: Cursor’s Custom Diff Language

    This is the most technically interesting tool in the entire suite. Cursor didn’t use standard unified diff. They didn’t use the OpenAI function calling approach of passing entire file contents. They invented their own patch language with a formal grammar defined in Lark (a Python parsing toolkit):

    start: begin_patch hunk end_patch
    begin_patch: "*** Begin Patch" LF
    end_patch: "*** End Patch" LF?
    
    hunk: add_hunk | update_hunk
    add_hunk: "*** Add File: " filename LF add_line+
    update_hunk: "*** Update File: " filename LF change?
    
    change: (change_context | change_line)+ eof_line?
    change_context: ("@@" | "@@ " /(.+)/) LF
    change_line: ("+" | "-" | " ") /(.*)/ LF

    This is a constrained decoding format. The model must output syntactically valid patches. The @@ context headers can include class/function names to disambiguate repeated code patterns. The +/-/  prefixes work like unified diff but with simplified semantics.

    Why go to this trouble? Three reasons:

    1. Token efficiency: Sending only the changed lines plus 3 lines of context is dramatically cheaper than sending the entire file for every edit.
    2. Deterministic application: The patch format can be parsed and applied mechanically. No fuzzy matching needed.
    3. Grammar constraints: By providing a formal grammar with "type": "grammar" and "syntax": "lark", Cursor can use constrained decoding to guarantee the model’s output is a valid patch. This eliminates an entire class of tool-use failures.

    If you’re building your own coding agent, this is the highest-leverage idea to steal. Most agents either rewrite entire files (expensive, error-prone) or use str.replace() (brittle). Cursor’s approach sits in the sweet spot.

    The Multi-Agent System: Subagents and Parallelism

    The Task tool reveals that Cursor isn’t one agent. It’s a coordinator that can spawn specialized subagents:

    • generalPurpose: Multi-step research and implementation.
    • explore: Fast codebase exploration. Has thoroughness levels: “quick,” “medium,” “very thorough.”
    • shell: Command execution specialist.
    • browser-use: Browser automation for testing web apps. Stateful (can resume previous browser sessions).

    The prompt explicitly says: “Launch multiple agents concurrently whenever possible. DO NOT launch more than 4 agents concurrently.” So when Cursor needs to understand a large codebase, it fans out up to 4 parallel explore agents across different directories.

    There’s also a model selection system. Only one model alias is exposed to the agent: fast (cost 1/10, intelligence 5/10). The prompt says: “When speaking to the USER about which model you selected, do NOT reveal these internal model alias names. Use natural language like ‘a faster model.’” This leaks the fact that there are other model tiers (the prompt mentions “alpha, beta, gamma” as names not to reveal), but only fast is available for subagent dispatch in this trace.

    IDE State Injection: What Cursor Knows About You

    The user message isn’t just your text. Cursor injects a massive amount of IDE context before your query:

    <user_info>
    OS Version: darwin 24.0.0
    Shell: zsh
    Workspace Path: /Users/giorgio/newtest
    Is directory a git repo: No
    Today's date: Saturday Mar 7, 2026
    Terminals folder: /Users/giorgio/.cursor/...
    </user_info>
    
    <rules>
      <always_applied_workspace_rules>
        ... your .cursor/rules/*.mdc files ...
      </always_applied_workspace_rules>
    </rules>
    
    <agent_skills>
      ... your .cursor/skills/*/SKILL.md files ...
    </agent_skills>
    
    <open_and_recently_viewed_files>
      ... list of open files ...
    </open_and_recently_viewed_files>

    Every Cursor rule you’ve written in .cursor/rules/ is injected verbatim into the user message. Every skill you’ve defined gets its description included. The model sees your open files, your OS, your shell, whether you’re in a git repo, and today’s date. This is how Cursor achieves context-awareness without fine-tuning. It’s runtime context injection via prompt engineering.

    The terminal system is particularly clever. Terminal state is represented as text files on disk ($id.txt) with metadata headers (pid, cwd, last command, exit code). The model reads and writes these files just like any other file. There’s no special terminal API. Just files. Beautifully simple.

    Illustration of Cursor system prompt architecture with structured XML tags
    10,000 words of instructions. The model reads all of this before it sees your “hello.”

    Building a Thin Cursor: The Architecture Cheat Sheet

    So you want to build your own. Here’s what the trace tells us about the minimum viable architecture for a Cursor-like coding agent:

    1. The System Prompt (~2,000 lines)

    Use XML-like tags to structure sections. The critical sections are:

    • Persistence: “Keep going until done. Don’t ask for confirmation.”
    • Communication protocol: Update cadence, length, tone.
    • Tool usage rules: When to use each tool, when not to.
    • Code change protocol: “Read before edit. Check lints after.”
    • Safety: Git safety (never force push), file safety (no secrets in commits).

    2. The Tool Registry (16 tools)

    At minimum, you need:

    • Read/Write files: With line numbers and offset support.
    • Search: Both exact (ripgrep) and semantic (embeddings).
    • Shell: Stateful, with background process support.
    • Patch/Edit: A constrained diff format beats full-file rewrites.
    • Linter: Feedback loop to catch errors immediately.

    3. Model Routing

    Use LiteLLM or a similar proxy for model fallback chains. Try cheaper models first, fall back to expensive ones. This saves 60-80% on inference costs for simple queries that don’t need frontier models.

    4. Context Injection

    Before every API call, inject: open files, current directory, git status, linter errors, and any user-defined rules. The model doesn’t remember your project between calls. You have to remind it every time.

    5. Multi-Agent Orchestration

    For complex tasks, spawn subagents with different specializations. Limit concurrency (Cursor caps at 4). Pass detailed context in the prompt since subagents don’t share the parent’s conversation history.

    6. MCP for Extensibility

    MCP is how you make the agent extensible without modifying core code. Browser automation, database queries, third-party APIs: they all become MCP tools that the agent discovers at runtime by reading JSON descriptor files. If you want a head start, the Claude Agent SDK gives you MCP integration, file tools, and shell execution out of the box, so you can skip building the plumbing yourself.

    What This Means for the AI Coding Agent Space

    The trace reveals that Cursor is fundamentally a very well-engineered prompt plus a tool orchestration layer. There’s no magic. No fine-tuned model. No proprietary secret sauce in the AI itself. The intelligence comes from:

    1. A meticulously crafted system prompt that transforms a general-purpose LLM into a coding agent
    2. A thoughtful tool suite that gives the model real capabilities
    3. Smart infrastructure (model routing, constrained decoding, terminal-as-files)
    4. Relentless UX details (communication cadence, code citation format, mode switching)

    This is both reassuring and terrifying. Reassuring because it means you can build something similar with open-source tools and a good prompt (we wrote a hands-on guide to building agentic AI systems with the Claude Agent SDK that covers exactly this). Terrifying because it means the moat isn’t the technology. It’s the product polish and ecosystem (rules, skills, MCP integrations) that Cursor has built around it.

    The real competitive advantage isn’t the system prompt (which, as you can see, is capturable). It’s the IDE integration, the diff rendering, the background process management UI, the terminal integration, and the thousands of small UX decisions that make “an LLM with tools” feel like a coding partner instead of a chatbot with file access.

    If you want to build a Cursor competitor, the prompt and tools are table stakes. The hard part is everything that wraps around them. And that’s exactly what makes great software: not the engine, but the car.

English|Italiano