← all repositories

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.

1.4k stars Python Coding AssistantsLearning
claude-code-from-scratch
Velocity · 7d
+20
★ / day
Trend
steady
star history

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.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.