🎯

agent-builder

🎯Skill

from shareai-lab/learn-claude-code

VibeIndex|
What it does

agent-builder skill from shareai-lab/learn-claude-code

πŸ“¦

Part of

shareai-lab/learn-claude-code(4 items)

agent-builder

Installation

git cloneClone repository
git clone https://github.com/shareAI-lab/learn-claude-code
pip installInstall dependencies
pip install -r requirements.txt
PythonRun Python server
python v0_bash_agent.py # Minimal (start here!)
PythonRun Python server
python v1_basic_agent.py # Core agent loop
PythonRun Python server
python v2_todo_agent.py # + Todo planning

+ 2 more commands

πŸ“– Extracted from docs: shareai-lab/learn-claude-code
39Installs
16,269
-
Last UpdatedJan 24, 2026

Skill Details

SKILL.md

Overview

# Learn Claude Code - Bash is all you & agent need

[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)

[![Tests](https://github.com/shareAI-lab/learn-claude-code/actions/workflows/test.yml/badge.svg)](https://github.com/shareAI-lab/learn-claude-code/actions)

[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](./LICENSE)

> Disclaimer: This is an independent educational project by [shareAI Lab](https://github.com/shareAI-lab). It is not affiliated with, endorsed by, or sponsored by Anthropic. "Claude Code" is a trademark of Anthropic.

Learn how modern AI agents work by building one from scratch.

[Chinese / δΈ­ζ–‡](./README_zh.md) | [Japanese / ζ—₯本θͺž](./README_ja.md)

---

Why This Repository?

We created this repository out of admiration for Claude Code - what we believe to be the most capable AI coding agent in the world. Initially, we attempted to reverse-engineer its design through behavioral observation and speculation. The analysis we published was riddled with inaccuracies, unfounded guesses, and technical errors. We deeply apologize to the Claude Code team and anyone who was misled by that content.

Over the past six months, through building and iterating on real agent systems, our understanding of "what makes a true AI agent" has been fundamentally reshaped. We'd like to share these insights with you. All previous speculative content has been removed and replaced with original educational material.

---

> Works with [Kode CLI](https://github.com/shareAI-lab/Kode), Claude Code, Cursor, and any agent supporting the [Agent Skills Spec](https://github.com/anthropics/agent-skills).

demo

What You'll Learn

After completing this tutorial, you will understand:

  • The Agent Loop - The surprisingly simple pattern behind all AI coding agents
  • Tool Design - How to give AI models the ability to interact with the real world
  • Explicit Planning - Using constraints to make AI behavior predictable
  • Context Management - Keeping agent memory clean through subagent isolation
  • Knowledge Injection - Loading domain expertise on-demand without retraining

Learning Path

```

Start Here

|

v

[v0: Bash Agent] -----> "One tool is enough"

| 16-50 lines

v

[v1: Basic Agent] ----> "The complete agent pattern"

| 4 tools, ~200 lines

v

[v2: Todo Agent] -----> "Make plans explicit"

| +TodoManager, ~300 lines

v

[v3: Subagent] -------> "Divide and conquer"

| +Task tool, ~450 lines

v

[v4: Skills Agent] ---> "Domain expertise on-demand"

+Skill tool, ~550 lines

```

Recommended approach:

  1. Read and run v0 first - understand the core loop
  2. Compare v0 and v1 - see how tools evolve
  3. Study v2 for planning patterns
  4. Explore v3 for complex task decomposition
  5. Master v4 for building extensible agents

Quick Start

```bash

# Clone the repository

git clone https://github.com/shareAI-lab/learn-claude-code

cd learn-claude-code

# Install dependencies

pip install -r requirements.txt

# Configure API key

cp .env.example .env

# Edit .env with your ANTHROPIC_API_KEY

# Run any version

python v0_bash_agent.py # Minimal (start here!)

python v1_basic_agent.py # Core agent loop

python v2_todo_agent.py # + Todo planning

python v3_subagent.py # + Subagents

python v4_skills_agent.py # + Skills

```

The Core Pattern

Every coding agent is just this loop:

```python

while True:

response = model(messages, tools)

if response.stop_reason != "tool_use":

return response.text

results = execute(response.tool_calls)

messages.append(results)

```

That's it. The model calls tools until done. Everything else is refinement.

Version Comparison

| Ver