Or as Elon said “Anthropic is now officially more open than OpenAI“. On this fine April Fools’ Day, the joke isn’t that AI is replacing developers. The joke is that the playbook for doing it just… slipped onto the internet.
Anthropic didn’t intend to publish a step-by-step manual for building AI coding agents.
But through a mix of repos, prompts, and system design breadcrumbs, they effectively did exactly that.
The TL;DR or Key Takeaways from Claude Code’s Source:
- Prompts in source code: Surprisingly, much of Claude’s system prompting lives directly in the codebase — not assembled server-side as expected for valuable IP.
- Supply chain risk: It uses axios (recently hacked), a reminder that closed-source tools are still vulnerable to dependency attacks.
- LLM-friendly comments: The code has excellent, detailed comments clearly written for LLMs to understand context — a smart practice beyond just AGENTS.md files.
- Fewer tools = better performance: Claude Code keeps it lean with under 20 tools for normal coding tasks.
- Bash Tool is king: The Bash tool stands out, with heavy deterministic parsing to understand and handle different command types.
- Tech stack: Entirely TypeScript/React with explicit Bun bindings.
- Not open source: The source is “available” but still proprietary. Do not copy, redistribute, or reuse their prompts — that violates the license.
Overall impression:
- It’s a very well-organized codebase designed for agents to work on effectively.
- Human engineering is visible, though some parts (like messy prompt assembly) feel surprisingly low-level for Anthropic.
- The fact that core prompts ship in the CLI tool itself is the biggest surprise.
Let’s take a step back… It is all started with this:
Continue reading