Architecture, patterns & internals of Anthropic's AI coding agent — reverse-engineered from source maps
This repository is a free, online technical book spanning 18 chapters and roughly 400 print-equivalent pages, derived from studying TypeScript source maps that Anthropic inadvertently shipped inside Claude Code's npm package. The author recovered the original TypeScript through the `sourcesContent` field of those source maps, then wrote original pseudocode and prose to document the architecture without reproducing proprietary code. Coverage includes Claude Code's six core abstractions, its five-phase bootstrap pipeline, the agent loop in `query.ts`, a 14-step tool execution pipeline, concurrent tool partitioning, multi-agent swarm coordination, a four-layer context compression strategy, file-based memory with LLM-driven recall, MCP integration across eight transports, and terminal UI rendering via a custom Ink fork. A standout detail is the fork-agent prompt cache trick, where parallel sub-agents share byte-identical prefixes to reduce input token costs by roughly 95 percent. The material targets senior engineers building agentic systems, architects evaluating design trade-offs, and anyone who wants a detailed internal view of how Claude Code works.
- ✓Recently active
- ✓Healthy fork ratio
- ✓Clear description
- ✓Documented (README)
- !No standard license detected
git clone https://github.com/alejandrobalderas/claude-code-from-sourceResumen de Tools
Lo que la gente pregunta sobre claude-code-from-source
¿Qué es alejandrobalderas/claude-code-from-source?
+
alejandrobalderas/claude-code-from-source es tools para el ecosistema de Claude AI. Architecture, patterns & internals of Anthropic's AI coding agent — reverse-engineered from source maps Tiene 2.2k estrellas en GitHub y se actualizó por última vez 2mo ago.
¿Cómo se instala claude-code-from-source?
+
Puedes instalar claude-code-from-source clonando el repositorio (https://github.com/alejandrobalderas/claude-code-from-source) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar alejandrobalderas/claude-code-from-source?
+
Nuestro agente de seguridad ha analizado alejandrobalderas/claude-code-from-source y le ha asignado un Trust Score de 67/100 (tier: OK). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene alejandrobalderas/claude-code-from-source?
+
alejandrobalderas/claude-code-from-source es mantenido por alejandrobalderas. La última actividad registrada en GitHub es de 2mo ago, con 1 issues abiertos.
¿Hay alternativas a claude-code-from-source?
+
Sí. En ClaudeWave puedes explorar tools similares en /categories/tools, ordenados por popularidad o actividad reciente.
Despliega claude-code-from-source en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/alejandrobalderas-claude-code-from-source)<a href="https://claudewave.com/repo/alejandrobalderas-claude-code-from-source"><img src="https://claudewave.com/api/badge/alejandrobalderas-claude-code-from-source" alt="Featured on ClaudeWave: alejandrobalderas/claude-code-from-source" width="320" height="64" /></a>Más Tools
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman
AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs, papers, images, or videos into a queryable knowledge graph. App code + database schema + infrastructure in one graph.
A light-weight and powerful meta-prompting, context engineering and spec-driven development system for Claude Code by TÂCHES.
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies