feat: build an AI agent from 0 to 1 -- 11 progressive sessions

- 11 sessions from basic agent loop to autonomous teams
- Python MVP implementations for each session
- Mental-model-first docs in en/zh/ja
- Interactive web platform with step-through visualizations
- Incremental architecture: each session adds one mechanism
This commit is contained in:
CrazyBoyM
2026-02-21 14:37:42 +08:00
committed by CrazyBoyM
commit c6a27ef1d7
156 changed files with 28059 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
{
"meta": { "title": "Learn Claude Code", "description": "Build an AI coding agent from scratch, one concept at a time" },
"nav": { "home": "Home", "timeline": "Timeline", "compare": "Compare", "layers": "Layers", "github": "GitHub" },
"home": { "hero_title": "Learn Claude Code", "hero_subtitle": "Build an AI coding agent from scratch, one concept at a time", "start": "Start Learning", "core_pattern": "The Core Pattern", "core_pattern_desc": "Every AI coding agent shares the same loop: call the model, execute tools, feed results back. Everything else is details.", "learning_path": "Learning Path", "learning_path_desc": "11 progressive sessions, from a simple loop to full autonomous teams", "layers_title": "Architectural Layers", "layers_desc": "Five orthogonal concerns that compose into a complete agent", "loc": "LOC", "learn_more": "Learn More", "versions_in_layer": "versions", "message_flow": "Message Growth", "message_flow_desc": "Watch the messages array grow as the agent loop executes" },
"version": { "loc": "lines of code", "tools": "tools", "new": "New", "prev": "Previous", "next": "Next", "view_source": "View Source", "view_diff": "View Diff", "design_decisions": "Design Decisions", "whats_new": "What's New", "tutorial": "Tutorial", "simulator": "Agent Loop Simulator", "execution_flow": "Execution Flow", "architecture": "Architecture", "concept_viz": "Concept Visualization", "alternatives": "Alternatives Considered", "tab_learn": "Learn", "tab_simulate": "Simulate", "tab_code": "Code", "tab_deep_dive": "Deep Dive" },
"sim": { "play": "Play", "pause": "Pause", "step": "Step", "reset": "Reset", "speed": "Speed", "step_of": "of" },
"timeline": { "title": "Learning Path", "subtitle": "s01 to s11: Progressive Agent Design", "layer_legend": "Layer Legend", "loc_growth": "LOC Growth", "learn_more": "Learn More" },
"layers": {
"title": "Architectural Layers",
"subtitle": "Five orthogonal concerns that compose into a complete agent",
"tools": "What the agent CAN do. The foundation: tools give the model capabilities to interact with the world.",
"planning": "How work is organized. From simple todo lists to dependency-aware task boards shared across agents.",
"memory": "Keeping context within limits. Compression strategies that let agents work infinitely without losing coherence.",
"concurrency": "Non-blocking execution. Background threads and notification buses for parallel work.",
"collaboration": "Multi-agent coordination. Teams, messaging, and autonomous teammates that think for themselves."
},
"compare": {
"title": "Compare Versions",
"subtitle": "See what changed between any two versions",
"select_a": "Version A",
"select_b": "Version B",
"loc_delta": "LOC Delta",
"lines": "lines",
"new_tools_in_b": "New Tools in B",
"new_classes_in_b": "New Classes in B",
"new_functions_in_b": "New Functions in B",
"tool_comparison": "Tool Comparison",
"only_in": "Only in",
"shared": "Shared",
"none": "None",
"source_diff": "Source Code Diff",
"empty_hint": "Select two versions above to compare them.",
"architecture": "Architecture"
},
"diff": {
"new_classes": "New Classes",
"new_tools": "New Tools",
"new_functions": "New Functions",
"loc_delta": "LOC Delta"
},
"sessions": {
"s01": "The Agent Loop",
"s02": "Tools",
"s03": "TodoWrite",
"s04": "Subagents",
"s05": "Skills",
"s06": "Compact",
"s07": "Tasks",
"s08": "Background Tasks",
"s09": "Agent Teams",
"s10": "Team Protocols",
"s11": "Autonomous Agents"
},
"layer_labels": {
"tools": "Tools & Execution",
"planning": "Planning & Coordination",
"memory": "Memory Management",
"concurrency": "Concurrency",
"collaboration": "Collaboration"
},
"viz": {
"s01": "The Agent While-Loop",
"s02": "Tool Dispatch Map",
"s03": "TodoWrite Nag System",
"s04": "Subagent Context Isolation",
"s05": "On-Demand Skill Loading",
"s06": "Three-Layer Context Compression",
"s07": "Task Dependency Graph",
"s08": "Background Task Lanes",
"s09": "Agent Team Mailboxes",
"s10": "FSM Team Protocols",
"s11": "Autonomous Agent Cycle"
}
}