🥚

Easter Eggs & Curiosities

The weird, wonderful, and unexpected things hiding in 512K lines of code

~4 min read

🦆

Your Personal Companion Sprite

Claude Code generates a unique companion sprite for every user based on their user ID. There are 18 species (Duck, Goose, Blob, Cat, Dragon, Octopus, Owl, Penguin, Turtle, Snail, Ghost, Axolotl, Capybara, Cactus, Robot, Rabbit, Mushroom, Chonk), 6 eye styles, 8 hat types, 5 stats (DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK), and 5 rarity tiers from common (60%) to legendary (1%). Each sprite has 3 animation frames for idle fidgeting. The PRNG comment reads: "Mulberry32 — tiny seeded PRNG, good enough for picking ducks."

⌨️

Full Vim Mode in a CLI

Yes, really. Claude Code implements a complete vim emulation with INSERT/NORMAL modes, hjkl motions, word motions (wb e), line positions (0^$), find (fFtT), text objects (inner/around word, quotes, parens), delete/change/yank operators, dot-repeat, register system, and a max command count of 10,000. All in a tool that talks to an AI.

🎙️

Voice Input via Spacebar

Hold spacebar, speak, release. Claude Code connects to Anthropic's private `voice_stream` WebSocket endpoint for real-time speech-to-text. It records 16kHz mono audio, streams it for transcription, and types the result into your prompt. Requires a Claude.ai subscription and a microphone. Has a kill-switch codename: `tengu_amber_quartz_disabled`.

📏

The Longest Class Name Award

Winner: `TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS` (58 characters). This isn't a joke — the ridiculous name is a deliberate code review checkpoint. Every developer who types this name is forced to verify they're not leaking sensitive data. The companion type `AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS` is even longer at 60 characters.

🕵️

87 Internal Codenames

The codebase has 87 unique feature flags, most with cryptic codenames: KAIROS (assistant mode with 9+ variants including channels, push, dream, brief), CHICAGO_MCP (MCP server selection), COORDINATOR_MODE (multi-agent), VOICE_MODE, ULTRAPLAN, ULTRATHINK, TORCH, LODESTONE, and more. The `feature()` function from `bun:bundle` eliminates all disabled codepaths at build time — the public npm package contains none of these.

🥷

Undercover Mode

When Anthropic employees use Claude Code on public/open-source repos, "undercover mode" auto-activates. It strips all Co-Authored-By attribution, prevents mentioning internal project names, and adds safety instructions to avoid leaking model codenames. Force it with `CLAUDE_CODE_UNDERCOVER=1`. The entire feature is dead-code-eliminated from public builds.

💰

It Tracks Every Penny

The cost tracker (`src/cost-tracker.ts`, 323 lines) records input tokens, output tokens, cache reads, cache writes, web search requests, API duration, lines of code added/removed — all persisted to disk per session. Costs are calculated to 4 decimal places (or 2 for amounts over $0.50). It even tracks FPS metrics for the terminal UI.

📊

Extreme Files

Longest file: `src/cli/print.ts` at 5,594 lines (208KB) — the streaming output renderer. Runner-up: `src/screens/REPL.tsx` at 5,005 lines — the main conversation loop UI. Third: `src/utils/messages.ts` at 5,512 lines — message creation and manipulation. The deepest directory path spans 100+ characters. There are 346 React components rendering in a terminal.

🧩

The Species Name Puzzle

In the buddy system, species names are encoded using `String.fromCharCode()` instead of plain strings. Why? One species name collides with an internal model codename that's checked by `excluded-strings.txt` in the build pipeline. The check greps build output, so runtime-constructing the name keeps the literal out of the bundle. The salt for companion generation is literally `'friend-2026-401'` — dated April 1st, 2026.

   __
  / _)
 / /
/ /___
_____/
  Claude Code
  512K lines of surprises