Dive into Claude Code — Related Resources
- Source ID:
src-20260423-dccf2c2a9d0c - Kind:
analysis - Scope:
shared - Origin: https://github.com/VILA-Lab/Dive-into-Claude-Code/blob/main/docs/related-resources.md
- Raw path:
sources/raw/dive-into-claude-code-related-resources__src-20260423-dccf2c2a9d0c.md - Status:
active
Tags
community-analysis academic-paper references
Content
Related Resources: Community Analysis
A curated map of the repos, reimplementations, blog posts, and academic papers surrounding Claude Code's architecture.
Architecture Analysis
Deep dives into Claude Code's internal design.
| Repository | Description |
|---|---|
| ComeOnOliver/claude-code-analysis | Comprehensive reverse-engineering: source tree structure, module boundaries, tool inventories, and architectural patterns. |
| alejandrobalderas/claude-code-from-source | 18-chapter technical book (~400 pages). All original pseudocode, no proprietary source. |
| liuup/claude-code-analysis | Chinese-language deep-dive — startup flow, query main loop, MCP integration, multi-agent architecture. |
| sanbuphy/claude-code-source-code | Quadrilingual analysis (EN/JA/KO/ZH) — 10 domains, 75 reports. Covers telemetry, codenames, KAIROS, unreleased tools. |
| cablate/claude-code-research | Independent research on internals, Agent SDK, and related tooling. |
| Yuyz0112/claude-code-reverse | Visualize Claude Code's LLM interactions — log parser and visual tool to trace prompts, tool calls, and compaction. |
| AgiFlow/claude-code-prompt-analysis | API request/response logs across 5 conversation sessions. Unique empirical methodology with reproducible data. |
Open-Source Reimplementations
Clean-room rewrites and buildable research forks.
| Repository | Description |
|---|---|
| chauncygu/collection-claude-code-source-code | Meta-collection — claw-code (Rust, 30K+ stars), nano-claude-code (Python ~5K lines), and original source archive. |
| ultraworkers/claw-code | Clean-room Rust reimplementation. 179K stars in 9 days — fastest repo in GitHub history to 100K. Reduced 512K LoC TypeScript to ~20K lines. |
| 777genius/claude-code-working | Working reverse-engineered CLI. Runnable with Bun, 450+ chunk files, 30 feature flags polyfilled. |
| T-Lab-CUHKSZ/claude-code | CUHK-Shenzhen buildable research fork — reconstructed build system from raw TypeScript snapshot. |
| ruvnet/open-claude-code | Nightly auto-decompile rebuild — 903+ tests, 25 tools, 4 MCP transports, 6 permission modes. |
| Enderfga/openclaw-claude-code | OpenClaw plugin — unified ISession interface for Claude/Codex/Gemini/Cursor. Multi-agent council. |
| memaxo/claude_code_re | Reverse engineering from minified bundles — deobfuscation of the publicly distributed cli.js file. |
| agentforce314/clawcodex | Python rebuild with multi-provider LLM support. |
Guides & Learning
Tutorials and hands-on learning paths.
| Repository | Description |
|---|---|
| shareAI-lab/learn-claude-code | "Bash is all you need" — 19-chapter 0-to-1 course with runnable Python agents, web platform. ZH/EN/JA. |
| FlorianBruniaux/claude-code-ultimate-guide | Beginner-to-power-user guide with production-ready templates, agentic workflow guides, and cheatsheets. |
| affaan-m/everything-claude-code | Agent harness optimization — skills, instincts, memory, security, and research-first development. 50K+ stars. |
| nblintao/awesome-claude-code-postleak-insights | Best curated post-leak resource. BUDDY, KAIROS, ULTRAPLAN, Undercover Mode, AutoDream memory consolidation. |
| hesreallyhim/awesome-claude-code | Curated list of skills, hooks, slash-commands, agent orchestrators, and plugins. |
| rohitg00/awesome-claude-code-toolkit | 135 agents, 35 skills, 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 14 MCP configs. |
Blog Posts & Technical Articles
Pre-Leak Reverse Engineering (2025 -- early 2026)
| Article | What Makes It Valuable |
|---|---|
| Marco Kotrotsos — "Claude Code Internals" (15-part series) | Most systematic pre-leak analysis. Architecture, agent loop, permissions, sub-agents, MCP, telemetry. Based on v2.0.76. |
| George Sung — "Tracing Claude Code's LLM Traffic" | Complete system prompts and full API logs. Discovered dual-model usage (Opus for main loop, Haiku for metadata). |
| Reid Barber — "Reverse Engineering Claude Code" | One of the earliest analyses (mid-2025). REPL architecture and tool suite. |
| Kir Shatrov — "Reverse Engineering Claude Code" | Used mitmproxy to intercept API calls. Single experiment: 40 seconds LLM time, $0.11 cost. |
| Sabrina Ramonov — "Reverse-Engineering Using Sub Agents" | Creative methodology: custom sub-agents (File Splitter, Structure Analyzer) to reverse-engineer minified JS. |
Post-Leak Analysis (March--April 2026)
| Article | What Makes It Valuable |
|---|---|
| Alex Kim — "The Claude Code Source Leak" | Definitive first-responder analysis. Anti-distillation, frustration regexes, Undercover Mode, ~250K wasted API calls/day. Went viral on HN. |
| Haseeb Qureshi — "Inside the Claude Code source" | Key module analysis. React/Ink UI, four compaction strategies, dynamic prompt boundary system. |
| Haseeb Qureshi — Cross-agent architecture comparison | Claude Code vs Codex vs Cline vs OpenCode — architecture-level comparison. |
| Engineer's Codex — "Diving into the Source Code Leak" | Modular system prompt, ~40 tools, 46K-line query engine, anti-distillation. Accessible to broad audience. |
| Han HELOIR YAN — "Nobody Analyzed Its Architecture" | "The moat is the harness, not the model." Aligns with our report's thesis. |
| Agiflow — "Reverse Engineering Prompt Augmentation" | 5 prompt augmentation mechanisms backed by actual network traces. Shows Skills two-step semantic matching. |
Specialized Deep Dives
| Topic | Resource |
|---|---|
| Memory Architecture | MindStudio — "Three-Layer Memory Architecture" — In-context, MEMORY.md pointer index, CLAUDE.md static config. Best single resource on memory. |
| Permission System | Marco Kotrotsos — "Part 8: The Permission System" |
| Prompt Caching | ClaudeCodeCamp — "How Prompt Caching Actually Works" |
| MCP Integration | Gigi Sayfan — "MCP Unleashed" |
| Compression & Telemetry | WaveSpeedAI — "Architecture Deep Dive" — Three-layer compression, frustration metrics. |
| Rust Rewrite Analysis | DEV Community — "Architecture via Rust Rewrite" — 18 tools in three-layer structure. |
| Permissions Config | Vincent Qiao — "Permissions System Deep Dive" |
Related Academic Papers
| Paper | Venue | Relevance |
|---|---|---|
| Decoding the Configuration of AI Coding Agents | arXiv | Empirical study of 328 Claude Code config files — SE concerns and co-occurrence patterns. |
| On the Use of Agentic Coding Manifests | arXiv | Analyzed 253 CLAUDE.md files from 242 repos — structural patterns in operational commands. |
| Context Engineering for Multi-Agent Code Assistants | arXiv | Multi-agent workflow combining multiple LLMs for code generation. |
| OpenHands: An Open Platform for AI Software Developers | ICLR 2025 | Primary academic reference for open-source AI coding agents. |
| SWE-Agent: Agent-Computer Interfaces | NeurIPS 2024 | Docker-based coding agent with custom agent-computer interface. |
| The OpenHands Software Agent SDK | arXiv | Composable SDK foundation for production agents. |
| A Survey on Code Generation with LLM-based Agents | arXiv | Best survey of the AI coding agent field. |
| AI Agent Systems: Architectures, Applications, and Evaluation | arXiv 2026 | Broad agent system taxonomy. |
How This Paper Differs
While the projects above focus on engineering reverse-engineering or practical reimplementation, this paper provides a systematic values → principles → implementation analytical framework — tracing five human values through thirteen design principles to specific source-level choices, and using OpenClaw comparison to reveal that cross-cutting integrative mechanisms, not modular features, are the true locus of engineering complexity.
Know a resource that should be listed here? Open an issue or PR.