Learn Claude Code
A step-by-step tutorial that teaches you to build a small Claude Code-style AI coding agent from scratch.
- Coding needed
- Developers only
- Cost
- Free
A step-by-step tutorial that teaches you to build a small Claude Code-style AI coding agent from scratch.
This tutorial explains how AI coding agents like Claude Code work by building a small one yourself. Its makers call the code around the AI model a "harness": the tools, knowledge and permissions that let the model take actions.
It is split into chapters, each adding one piece, such as the basic loop where the AI calls tools, loading skills on demand, shortening old chat history, spawning helper agents and managing tasks. Each chapter has a written explanation and runnable Python code.
The chapters come in English, Chinese and Japanese.
Developers who want to understand how AI agents are built from the inside.
Developers only. The lessons are readable by anyone, but following along means running Python code with an AI model account. New to this? Start here.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?