GH Repository · Windy3f3f3f3f
claude-code-from-scratch
Build your own Claude Code from scratch. 🔍 Claude Code 开源了 50 万行代码,读不动?用 ~5000 行 TypeScript / Python 从零复现核心架构,11 章分步教程带你理解 coding agent 精髓
- stars
- 2,679
- 30-day movement
- +238/day
- Related entries
- 62
- Connections
- 4
otherPythontypescriptnodetutorialcoding-agentbuild-from-scratchanthropicai-agentllmclaude-codeclaudeai
claude-code-from-scratch is an 11-chapter step-by-step tutorial that reimplements the core architecture of Claude Code in roughly 5000 lines of TypeScript or Python. It targets developers who find the full ~500,000-line open-sourced codebase too large to read and want a minimal, studyable version of how a coding agent works.
Use it when you want to understand a coding agent's internals by building a small version yourself instead of reading a huge codebase.
Use it to
- Follow the 11-chapter tutorial to learn coding agent architecture
- Study a minimal ~5000-line reimplementation of Claude Code
- Reproduce core agent structure in TypeScript or Python
- Use the shipped claude-dir, claude-md, and mcp-config examples as references
For Developers learning how coding agents like Claude Code work
- Role
- other
- Language
- Python
- Licence
- MIT
- Forks
- 541
- Open issues
- 1
- Last push
- 2026-07-09
- Latest release
- v1.0.0 · 2026-03-31
- Skills shipped
- 2
topicsclaude-codecoding-agenttutorialtypescriptpythonllm