AgentIndex icon
AgentIndex
ToolsCategoriesTrendingNewCompareGuides
Submit Tool
ToolsCategoriesTrendingNewCompareGuides
Home/
Code Assistant/
learn-claude-code
learn-claude-code logo

learn-claude-code

Active·★ 78.2k·MIT·Updated 2026-09-28
★ Most Popular★ Trending

learn-claude-code is an open course from shareAI-lab that teaches "harness engineering" by building a small Claude Code–like coding agent from scratch in Python. Its starting premise is that agency comes from the model, while a working agent product is the model plus a harness: the loop, tools, permissions, context management and coordination around it. The course builds that harness one mechanism at a time.

It suits developers who want to understand how coding agents work rather than just use them. The current track has 17 progressive lessons, each adding one mechanism with runnable code: the core agent loop with a single bash tool, adding tools, permission boundaries, hooks, planning with to-do lists, subagents, on-demand skill loading, context compaction, memory, a file-backed task graph, background jobs, scheduling, agent teams, MCP, an integrated runtime, resumable workflows and goal-driven continuation. Lessons have English, Chinese and Japanese text, and a web platform presents the course with source, simulator and architecture views. The course also takes a strong stance against drag-and-drop "agent" builders, which readers may or may not share.

Getting started: clone the repository, `pip install -r requirements.txt`, copy `.env.example` to `.env` with your `ANTHROPIC_API_KEY`, and run `python s01_agent_loop/code.py`. The web version runs with `npm install && npm run dev` in the `web` folder.

#AI Agents#Claude#Python#Bash Scripting#Agent Skills
$ Install
$ pip install -r requirements.txt
↗ Visit site★ GitHub
01

Features

01Understand the core Agent Loop pattern
02Learn effective Tool Design for AI interaction
03Implement Explicit Planning for predictable AI behavior
04Manage context and memory with Subagent Isolation
05Inject domain expertise on-demand using Skills
02

Why choose it

+Clear, incremental structure: each lesson adds exactly one mechanism with runnable code.
+Covers the full set of modern coding-agent mechanisms, from the basic loop to teams, MCP and goal loops.
+Available in English, Chinese and Japanese, with an interactive web version.
+MIT licensed and very widely followed.
03

Trade-offs

!It is a course, not a production tool; the example agent is meant for learning.
!The current and legacy lesson tracks are numbered differently, which can confuse readers following older links.
!Examples are built around Anthropic's API, so you need an Anthropic API key to run them as written.
04

Compatibility

Claude (Models)
Supported
Verified via docs
Kode CLI
Supported
Verified via docs
Cursor
Supported
Verified via docs
Agent Skills Specification
Native Support
Verified via docs
05

Quick start

1
$ pip install -r requirements.txt
06

Use cases

↳Learning to build modern AI coding agents from scratch
↳Developing custom tools and skills for AI agents
↳Scaffolding new agent projects with varying complexity levels
07

How it compares

≈vs PocketFlow: PocketFlow teaches through a 100-line graph framework; learn-claude-code teaches the specific mechanisms of a coding-agent harness.
≈vs Pydantic AI Harness: a production library of agent capabilities; learn-claude-code explains how such capabilities are built.
≈vs Claude Code itself: Claude Code is the product; this course is an independent reimplementation for learning.
08

Alternatives

Context7 logo
Context7★ 62.8k
MCP Server that provides up-to-date code documentation for LLMs and AI code editors.
vs →
Gemini CLI logo
Gemini CLI★ 107.3k
An open-source AI agent that brings the power of Gemini directly into your terminal. Supports native MCP.
vs →
headroom logo
headroom★ 74.8k
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. Around 20% fewer tokens for coding agents and 60-95% fewer for JSON, with the same answers. Library, proxy, and MCP server.
MindsHub (formerly MindsDB) logo
MindsHub (formerly MindsDB)★ 39.8k
MindsHub (formerly MindsDB) is an agent workspace for knowledge work and software development, with connected data sources, a model router across frontier and open models, open-source agent harnesses, and publishable artifacts.
GitHub MCP Server logo
GitHub MCP Server★ 33.5k
GitHub's official MCP Server. Allows AI agents to interact directly with your GitHub repositories (read files, search code, issues).
Brave Search MCP logo
Brave Search MCP★ 1.5k
Allow your AI Agent to search the real-time internet using Brave Search API. Essential for getting up-to-date information.
Microsoft AutoGen logo
Microsoft AutoGen★ 61.3k
A framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.
CrewAI logo
CrewAI★ 59.5k
Framework for orchestrating role-playing, autonomous AI agents. By working together, your Crew can tackle complex tasks.
See all alternatives →

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Why choose it03Trade-offs04Compatibility05Quick start06Use cases07How it compares08Alternatives
Stats
GitHub Stars★ 78.2k
Last commit1w ago
StatusActive
LicenseMIT
CategoryCode Assistant
Trend (30d)
+3.1k↑ 4.7%
Links
Documentation↗Discussion↗Issues↗Releases↗

Deploy on DigitalOcean — Get $200 Free Credit

Ad
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
AboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

Code AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.