DEEP RESEARCH REPORT
Claude Code source code accidentally exposed in a npm package
512,000 lines of code kick off an era of faster AI agent adoption
AI compute | Chips | Data centers | US stocks
March 31, 2026
Key Takeaways: An npm packaging error at Anthropic exposed the full Claude Code source,512,000 lines of code, the first exposure of a complete production-grade AI agent architecture. This will catalyze growth in inference computing demand of10-1000x before 2027. Along the "more agents → more compute → more infrastructure" theme, it creates structural benefits forVertiv, Lumentum, Broadcom, NVIDIA, Arista, Coherent, Microsoft.
KEY METRICS
512K
Lines of code exposed
$2.5 Billion
Claude Code annualized revenue
$700 Billion
2026 AI capex of the five largest spenders
Data sources: Anthropic, CNBC, company financial reports
Event overview: how one packaging mistake shook the AI industry
Event Timeline
In the early morning of March 31, 2026, while Anthropic was publishing Claude Codev2.1.88 to the public npm registry, a build configuration error caused a59.8MB JavaScript source map file to be published with the package. This source map pointed to an unobfuscated TypeScript source code archive in Anthropic's Cloudflare R2 bucket.
Security researcher Chaofan Shou first disclosed it at 4:23 AM ET on the X platform. Within hours, the largest GitHub mirror had been forked more than41,500 times, making the exposure effectively irreversible.
Anthropic official statement: "Earlier today, a Claude Code release included some internal source code. This was a release packaging issue caused byhuman error, not a security breach."
The first complete public exposure of a production-grade AI agent architecture blueprint, including a plugin system with about 40 discrete tools, a multi-agent coordination engine, a persistent memory system and a permission and security sandbox.
46K Lines
Query Engine
29K Lines
Tool Architecture
44
Hidden feature flags
Most notable discovery: "KAIROS", an autonomous daemon mode mentioned more than 150 times, which lets Claude Code work continuously as an always-on background agent.
Why is this an "Android-level" industry event?
Before the leak, Claude Code was already the leader in the AI programming tools market:$2.5 billion in annualized revenue,135,000 GitHub commits per day, and first place in usage just 10 months after launch. The core product architecture of Anthropic (valued at $380 billion) was fully exposed, and the impact unfolds in three layers:
Short term (1-3 months): Developers worldwide gain their first complete agent architecture reference; several open-source clone projects (e.g., claw-code) launched within hours; the technical barrier to building production-grade AI agents falls significantly.
Medium term (3-12 months): Enterprises and startups rapidly build agent systems on validated architectures, and AI agents move faster from experimentation into production deployment. IDC predicts 10x growth in agent usage by 2027.
Long term (12 months+): Inference computing demand grows exponentially. Inference has risen from 40% of total AI computing demand in 2024 to 60-70% in 2026. More agents → more GPUs/ASICs → more data centers → more power and cooling → more network bandwidth.
IDC forecast: inference demand to grow 1000x by 2027
Sector breakdown: the supply chain that benefits from faster AI agent deployment
AI agent compute demand chain
Claude Code source exposure → faster AI agent adoption → surge in inference compute demand
AI Chips
NVIDIA
Broadcom
AMD
Optical Interconnect / OCS / CPO
Lumentum
Coherent
AI networking / infrastructure
Arista
Vertiv
AI Storage
Pure Storage
NetApp
Cloud platforms / tools
Azure / AWS
GitHub Copilot
AI Chips (GPU + ASIC)
>$200 Billion
2026 market size | CR3 >85%
Certainty ★★★★★ | CAGR 30-40%
AI custom chips (ASIC)
~$56 Billion
28% of AI chips | CR3 >90%
Certainty ★★★★★ | CAGR 40%+
AI high-speed networking
~$40 Billion
800G → 1.6T upgrade | CR3 >70%
Certainty ★★★★☆ | CAGR 25-30%
Data center power & cooling
~$35 Billion
Power Density 120-150kW per Rack | CR3 >50%
Certainty ★★★★☆ | CAGR 22%+
Cloud infrastructure services
>$450 Billion
Annualized scale | CR3 >65%
Certainty ★★★★☆ | CAGR 27%+
Optical circuit switching (OCS)
$800 Million → $25 Billion+
Rapid growth phase | Cignal AI raised its forecast 3x
Certainty ★★★★★ | CAGR 37-40%
Co-packaged optics (CPO)
$2 Billion → $25 Billion+
Energy per bit down about two-thirds | Mass production 2026-27
Certainty ★★★★☆ | CAGR 37-40%
AI high-speed storage
~$25 Billion+
All-flash architecture | Agent data pipeline
Certainty ★★★★☆ | CAGR 20%+
AI developer tools
~$12.8 Billion
Used by 85% of developers | CR3 ~60%
Certainty ★★★☆☆ | CAGR 35%+
Key technology calls, graded by certainty
Core judgment: Inference will replace training as the main battleground of AI computing. Inference share has risen from 40% in 2024 to 60-70%. The defining feature of AI agents iscontinuous inference: continuous API calls, tool execution and context maintenance, rather than one-time queries. The KAIROS daemon mode will further amplify demand.
$255 Billion
2030 inference market size
1000x
IDC forecast growth multiple for 2027
OCS optical cross-connect: Google Project Apollo showed that, compared with traditional electronic switching, OCSsaves 40% of power and cuts downtime 50x. Cignal AI upgraded the 2026 OCS market forecast to 3 times the previous level. Multi-agent parallel coordination → dynamic reconfiguration of GPU cluster topology → the core value of OCS.
CPO co-packaged optics: Energy per bit falls from 15pJ/bit to below5pJ/bit (a reduction of two-thirds or more), making CPO the enabling technology for the 1.6T→3.2T era. Hyperscale customers begin deploying it in 2026-2027.
3x
OCS market forecast raised
$25 Billion+
CPO 2033 TAM
2026: peak year of the AI infrastructure arms race
| Company | 2025 CapEx | 2026E CapEx | Increase |
|---|---|---|---|
| Amazon/AWS | ~$132 Billion | ~$200 Billion | +51% |
| ~$75 billion | $175-185 billion | +133% | |
| Microsoft | ~$80 billion | ~$150 billion | +88% |
| Meta | ~$40 billion | ~$65 billion+ | +60%+ |
| Total | ~$410 billion | $650-700 billion | ~60% |
Data Source: Company financial reports and guidance, CNBC, Bloomberg
"SaaSpocalypse": AI agents substituting for software ★★★☆☆
In Q1 2026, the market witnessed the "SaaS Apocalypse" — the enterprise software sector lost approximately$2 trillion in market capitalization. HubSpot down 39% YTD, Figma down 40%, Salesforce down 25%. Core logic: if AI agents can autonomously complete work, why pay for SaaS?
Differentiation analysis: Data infrastructure (Snowflake, Datadog, MongoDB) actually benefits, because AI agents still require data storage, processing, and observability. BofA believes these companies will rebound first.
Core catalyst timeline
March 31, 2026 ── Today
Claude Code 512K lines of source code leak — industry-wide AI agent acceleration, benefiting all targets
Q2 2026
NVIDIA Blackwell B200/GB200 mass shipments — benefiting VRT, ANET, NVDA
Broadcom FY2026 Q2 earnings report, AI revenue guidance of $10.7 billion — benefiting AVGO
H1 2026
Construction starts onsovereign AI data centers in multiple countries + 1.6T optical modules enter mass production — benefiting VRT, NVDA, ANET, AVGO
Q2-Q3 2026 ── Optical interconnect boom
Lumentum OCS quarterly revenue pushes toward the $100 million target, and the $400 million+ order backlog ships in bulk — benefiting LITE
H2 2026
UEC standard equipment mass production +Coherent CPO large orders start contributing revenue — benefiting ANET, COHR, MSFT
End of 2026 - 2028 ── Largest catalyst window
KAIROS launch (background agent daemon) + Broadcom AI chip annual revenue target of $100 billion+ — benefiting the entire industry
Quality four-dimension framework: a deep dive into the top 7 candidates
D1 Structural growth track
Is the industry undergoing irreversible high-speed growth?
D2 Competitive landscape
Does the company hold a leading position?
D3 Supply-side pricing power
Is there order visibility and pricing power?
D4 Market cap vs. TAM mismatch
Is the market cap relatively small compared to TAM?
| Targets | D1 | D2 | D3 | D4 | Total Score |
|---|---|---|---|---|---|
| VRT | 5 | 4 | 5 | 4 | 18 |
| LITE | 5 | 4 | 5 | 4 | 18 |
| AVGO | 5 | 5 | 5 | 3 | 18 |
| NVDA | 5 | 5 | 5 | 2 | 17 |
| ANET | 5 | 5 | 4 | 3 | 17 |
| COHR | 5 | 4 | 4 | 4 | 17 |
| MSFT | 5 | 5 | 4 | 2 | 16 |
Scoring criteria: 0-5 points per dimension, max 20 points. Sorting rule: total score first → D4 score → D1 score
Score 18/20 | AI data center power & cooling | S&P 500 member
$13.7 Billion
2026E Revenue
+252%
Q4 new order growth
$15.0 Billion
Order Backlog
Core logic: Regardless of which company wins the AI chip war, or which cloud ultimately prevails, they all require Vertiv's power and cooling solutions. The deeply integrated "design-in" relationship with NVIDIA makes it the default choice for hyperscale customers. KAIROS-style background agents push power density beyond 120kW.
Catalysts: S&P 500 passive fund inflows | Blackwell-matched cooling orders | Sovereign AI data center procurement
Score 18/20 | OCS optical cross-connect leader | Newly added to the S&P 500
+65%
Q2 YoY revenue growth
>$400 Million
OCS order backlog
$2.0 Billion
Quarterly revenue target
Core logic: Multi-agent parallel coordination → GPU clusters require dynamic network topology reconfiguration → OCS is the only technology capable of microsecond-level optical path reconstruction. Google Project Apollo demonstrated OCS saves 40% power and reduces downtime by 50x. Secured multi-year orders worth billions of dollars, targeting quarterly revenue of $2B within 18-24 months. One of the most elastic AI infrastructure plays.
Catalysts: OCS quarterly $100M milestone | $400M+ backlog delivered in H2 | S&P 500 passive funds
Score 18/20 | Two engines: AI custom chips + networking | 90% ASIC market share
$10.7 Billion
Q2 AI revenue guidance
$73.0 Billion
AI order backlog
+140%
Q2 AI revenue YoY
Core logic: Large-scale deployment of AI agents drives hyperscale customers to accelerate custom inference chip deployment; Broadcom's ASIC platform is a core supplier for Google TPU/Meta MTIA, etc. Tomahawk 6 switching chips hold 80%+ share in high-end Ethernet, benefiting doubly. CEO clearly states "clear line of sight" to $100B+ annual AI chip revenue by 2028.
Catalysts: Q2 earnings beat | New ASIC customer disclosure | Tomahawk 7 architecture
Score 17/20 | Foundation of AI inference compute | 75-85% GPU market share
$215.9 Billion
FY2026 Revenue
$78.0 Billion
FY27 Q1 guidance
+65%
Full-year revenue growth
Core logic: All AI agents ultimately run on NVIDIA GPUs. Production-grade agents require dozens of LLM inference calls per interaction, multiplied by millions of users and continuous KAIROS backend operation, causing inference compute demand to grow exponentially. Morgan Stanley predicts AI server rack demand will surge from 28,000 units to 60,000+. Blackwell is fully sold out through mid-year.
Catalysts: FY27 Q1 earnings | Blackwell Ultra shipments | Rubin architecture disclosure
Score 17/20 | Hidden champion in AI cluster interconnect | TAM penetration <10%
$11.25 Billion
2026E Revenue
$105.0 Billion
2029 TAM
64.6%
Gross Margin
Core logic: Multi-agent parallel coordination in the Claude Code architecture requires high-bandwidth, low-latency communication between GPUs within AI clusters. Expanding inference clusters from single-machine to tens of thousands of cards is a confirmed trend. Arista is a core play for the "Second Wave of AI Infrastructure" (Networking and Interconnects), with UEC standard equipment mass-producing in 2026.
Catalysts: UEC switch shipments | 12.8Tbps optical module launch | Large hyperscale AI cluster orders
Score 17/20 | CPO + OCS on two tracks | All-rounder in optical interconnects
$1.7 Billion
Q2 total revenue
+33.6%
Data center communications revenue growth
6.4T
CPO modules (OFC 2026)
Core logic: The company with the most comprehensive product line in the optical interconnect track—spanning 1.6T optical modules, CPO co-packaged optics, OCS optical cross-connects, and InP/GaAs/SiC material platforms. The globally leading 6-inch InP production line is the manufacturing bottleneck for CPO high-power lasers. Secured massive CPO orders, starting to contribute revenue by end of 2026. A window for value revaluation as it transitions from traditional optics to an AI optical interconnect platform.
Catalysts: CPO volume production validated by major orders | 1.6T optical module volume ramp | 6-inch InP capacity expansion | Rapid OCS growth
Score 16/20 | Covers infrastructure, platform and application layers
+38%
Azure Growth (CC)
4.7 million
Copilot paid users
$150 billion
Annualized CapEx
Core logic: Three-layer full coverage — Azure (more agents = more cloud consumption), GitHub (code hosting for agent projects + Copilot), M365 Copilot Studio (enterprise-built agents). The exposed Claude Code source puts short-term competitive pressure on Copilot, but drives overall platform consumption growth over the medium to long term. $150 billion CapEx represents the largest corporate infrastructure investment in history.
Catalysts: Azure AI acceleration in Q3 earnings | Copilot Workspace launch | M365 price increase
Risk Matrix
Capex guidance cut: Any collective downgrade of AI infrastructure capital expenditure guidance by hyperscale customers will cause a systemic shock to all targets. Low probability but extremely high impact.
AI safety regulation: The Claude Code leak itself has sparked safety discussions. If a major AI agent security incident occurs, it may trigger regulatory tightening, affecting the deployment pace across the industry.
Inference costs falling faster than expected: If the rate of decline in per-token inference costs continues to exceed usage growth, it may compress total infrastructure demand. The race between cost and usage needs to be monitored.
Geopolitical Risks: Further tightening of export controls to China or tariff escalation could affect revenue expectations for companies like NVIDIA, Broadcom, etc.
AI bubble narrative: If market sentiment shifts to an "AI Bubble" narrative, it may trigger a sector-wide pullback, especially impacting high-valuation targets. Maintain position discipline, focus on actual performance rather than expectations.
Data Sources
NVIDIA/Broadcom/Microsoft Earnings Reports | Anthropic Official Statements | CNBC | Bloomberg
The Register | VentureBeat | Seeking Alpha | Motley Fool
Omdia | MarketsandMarkets | Deloitte | IDC/Gartner | Morgan Stanley | BofA
Investment involves risks; analysis is for reference only and does not constitute any investment advice.
All data is based on public information and reasonable inferences.
Items marked [Verified] in the report have clear public sources; [Industry Consensus] indicates similar judgments from multiple institutions.
Analysis framework: Quality four-dimension model | Report date: March 31, 2026
Notes
This research reflects its publication context. Check the sources, assumptions and limitations in the text. It is not personalized investment advice.
Continue following
After the research, follow how the evidence changes.
Hand it to your AI
An AI with FINHUB365 MCP connected can run this task to check the evidence added since this research was published.
Use FINHUB365 MCP to follow up on this research: “The Claude Code Source Leak: What a Production AI Agent Architecture Reveals” (published 2026-04-01) https://finhub365.xyz/blog/major-good-news-for-the-ai-circle-arrogant-closed-source-leader-anthropic-accide-mnfgfjj2 1. Find the narratives related to this topic with get_narrative_clusters, then check get_narrative_state_changes since 2026-04-01 for what has changed. 2. Split the new evidence into “supports the article” and “cuts against it”, each item with its source link and retrieval time. 3. Say which of the article's premises have no new evidence; if my history window does not reach the publication date, say where it actually starts. Organize the evidence only. Do not give buy or sell advice.