Skip to content

claude-code-from-scratch

AI Agents & Assistants

A step‑by‑step tutorial that rebuilds the Claude Code coding agent in ~4,300 lines of TypeScript and Python

Python Latest v1.0.0 · 2mo ago Security brief →

Features

  • Recreates core Claude Code architecture (Agent Loop, 13 tools, context compression, memory, skills, multi‑agent, MCP integration)
  • Provides a 13‑chapter hands‑on tutorial with runnable code snippets side‑by‑side to the original source
  • Supports both TypeScript and Python implementations
  • Offers configurable execution modes (plan‑only, CI, cost limits, turn limits)
  • Includes live REPL interface for interactive coding assistance

Recent releases

View all 1 releases →

No releases yet

We'll surface new releases as they're published — check back soon.

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

About

Stars
1,309
Forks
381
Languages
Python TypeScript HTML

Install & Platforms

Install via
npm pip
Platforms
linux macos windows

Beta — feedback welcome: [email protected]