Windy3f3f3f3f/claude-code-from-scratch
A ~4300-line TypeScript and Python implementation that复现 Claude Code's core architecture, including Agent Loop, 13 tools, and multi-agent capabilities.

This tutorial guides users through building a Claude Code-like coding agent from scratch across 13 chapters. The project implements key Claude Code features including an Agent Loop, 13 tools with parallel execution and streaming support, 4-layer context compression, semantic memory recall, a skill system, multi-agent orchestration, and MCP integration. Both TypeScript and Python versions are provided, with each step comparing against the original source implementation.