Claude Code source leak reveals autoDream memory system and multi-agent patterns

What leaked and how
Anthropic accidentally shipped Claude Code's entire TypeScript source in a .map file bundled with the npm package. Source maps embed original source for debugging — they forgot to exclude them. The mistake was simple: *.map not in .npmignore, and Bun's bundler generates source maps by default.
autoDream memory consolidation engine
Claude Code has a background agent that consolidates memory across sessions. It only triggers when three gates all pass: 24h since last dream, at least 5 sessions, and no concurrent dream running. When it runs, four strict phases:
- Orient: read MEMORY.md, skim topic files
- Gather: new signal from daily logs → drifted memories → transcripts
- Consolidate: write/update files, convert relative→absolute dates, delete contradicted facts
- Prune: keep MEMORY.md under 200 lines / 25KB, remove stale pointers
The subagent gets read-only bash — it can look at your project but not modify it.
System prompt architecture
Not a single string — it's built from modular cached sections composed at runtime. Split into static sections (cacheable, don't change per user) and dynamic sections (user-specific, cache-breaking). There's literally a function called DANGEROUS_uncachedSystemPromptSection() for volatile content.
Multi-agent coordinator pattern
The coordinator prompt has a rule: "Do NOT say 'based on your findings' — read the actual findings and specify exactly what to do." Four phases: parallel research workers → coordinator synthesises (reads actual output) → implementation workers → verification workers.
Undercover Mode
When Anthropic employees use Claude Code to contribute to public OSS, it injects into the system prompt: "You are operating UNDERCOVER in a PUBLIC/OPEN-SOURCE repository. Do not blow your cover. NEVER include internal model codenames (animal names like Capybara, Tengu), unreleased version numbers, internal repo or project names, or the phrase 'Claude Code' or any mention that you are an AI." Tengu appears hundreds of times as a feature flag prefix, almost certainly the internal project name for Claude Code.
Security lesson
If you're publishing npm packages, add *.map to your .npmignore and explicitly disable source map generation in your bundler config. If you're building agents that will eventually ship as packages: audit what's actually in your release artifact before publishing. Source maps don't care about dead code elimination — all the "deleted" internal features are still in there as original source.
📖 Read the full source: r/ClaudeAI
👀 See Also

DeepSeek-V4 Pro and Flash: 1.6T Parameters, 1M Token Context, Hybrid Attention
DeepSeek-V4-Pro (1.6T params, 49B active) and V4-Flash (284B params, 13B active) support 1M token context. New hybrid attention (CSA + HCA) reduces single-token inference FLOPs to 27% and KV cache to 10% of DeepSeek-V3.2.

Claude Users Systematically Excluded from AI Psychology Research – A Methodological Gap
A review of dozens of psychology papers on AI chatbot use reveals that Claude users are never sampled as a distinct group, despite fundamentally different use-case profiles and model design compared to ChatGPT, Character.AI, or Replika users.

Claude Code v2.1.133: worktree.baseRef revert, sandbox paths, proxy fix for MCP OAuth
Anthropic releases v2.1.133 of Claude Code CLI with a new worktree.baseRef setting defaulting to fresh (branch from origin/default), sandbox.bwrapPath and sandbox.socatPath for custom bubblewrap/socat binaries, proxy/mTLS fix for MCP OAuth flow, and several bug fixes.

NIST Seeks Public Input on AI Agent Security Standards
The National Institute of Standards and Technology has published a Request for Information on security considerations for artificial intelligence agents, with a comment deadline of March 9, 2026. The RFI is open for public comment through the Federal Register.