Agent Shipped

Directory · Coding agents

Claude Code From Scratch

Step-by-step tutorial rebuilding Claude Code's core architecture in about 5000 lines of TypeScript and Python.

★ 2,851 stars · last updated 2026-11-09 · Free, open source · View on GitHub

Best for

Install

git clone https://github.com/Windy3f3f3f3f/claude-code-from-scratch.git
cd claude-code-from-scratch
npm install && npm run build

Our take

An educational project with 13+ chapters, each with a runnable minimal implementation that uses a local mock model and needs no API key. It reimplements observed Claude Code behavior (13 tools, 4-layer compaction, memory, skills, sub-agents, MCP) but does not claim to match the real internals and is not affiliated with Anthropic. Primary documentation is in Chinese, with an English README and tutorial available.

Similar coding agents

Get the field guide

Join builders who use coding agents every day. Free, twice a week, unsubscribe in one click.

No spam. The CLAUDE.md starter pack comes in your confirmation email. Not seeing it? Check spam or Promotions.