Back to timeline

Thu, October 1502:30Open SourceModel releasesMCP & SkillsAI codingModel releases guide

learn-claude-code: Build a Claude Code-style nano agent harness from scratch

Decision Brief

What changedGitHub project shareAI-lab/learn-claude-code released an open-source tutorial for building a nano-scale Claude Code-style agent harness from zero.
Why it mattersIt splits agents into model + harness layers and uses 17 progressive chapters to explain tool access, permissions, context compression, and sub-agent orchestration, letting developers build a minimal runnable skeleton as they follow along.
Who should careOpen-source model users, AI coding tool users
Affected stackClaude CodeMCP
Builder actionUpdate Claude Code to the latest version
Source confidenceHigh · Official release / blog / repo

The project argues that agency comes from model training, while the product equals model plus harness; the harness consists of tools, knowledge, observation, action interfaces, and permissions. The tutorial progresses through 17 chapters from s01 to s17: s01 single loop plus Bash, s02 tool dispatch, s03 permission boundaries, s04 hooks, s05 planning, s06 sub-agents, s07 on-demand skill loading, s08 context compression, s10 task system, s11 background tasks, s13 agent teams, s14 memory, s15 integrated runtime, s16 workflow orchestration, s17 goal loop. Each chapter includes an English README, Chinese/Japanese translations, runnable code.py, and diagrams; the older 12-chapter version is kept under docs/ and agents/, plus a mapping table between old and new chapters. For developers who want to implement an agent loop themselves, the value is that it fixes the main loop and externalizes every other mechanism: adding a tool only requires registering a handler, while permissions, hooks, memory, and MCP routing never touch the core loop. Starting at s01 and adding mechanisms chapter by chapter yields a runnable minimal harness; note that the old and new chapter numbers don't correspond, so don't mix them when migrating.

Summary basis: full article readCompiled from the source scope noted above; the original remains authoritative.

Sources

Related intel

留言

登入后即可留言,和其他 builder 交换实测心得。

还没有留言,抢头香。