Learning map · four stages

From “what is an agent”
to “I can build one”

Sixty-plus lectures and thirty-plus interactive benches, ordered by what you can actually do after each stage—not by how the files happen to sit on disk.

4
stages
60+
lectures
30+
benches
file:line
citations

This repository now holds 60+ documents, 30+ interactive benches, and several from-scratch build tutorials. This file is a learning map—not a directory listing. It tells you where you are, where to go next, and what you should be able to do when you get there.

Assumed reader: comfortable with variables, functions, APIs, and a terminal. No prior agent-engineering experience required.

How to use it: take the self-test, then follow the recommended order. Each stage ends with an acceptance check. “I think I get it” is not the bar. “I can produce it” is.

Official courses / papers map: this path sequences open-source agent source analysis. If you still need the LLM / Prompt / Agent course-and-paper layer, open the AI learning path complete list (Chinese lecture; course titles are already English).

Every later lecture in this station cites source as path:line against a frozen tree named in that lecture. This map only sequences those lectures; it does not replace their citations.


Part 1

Self-test: where are you

Tick what you can already do.

Stage 0 (true beginner)

  • [ ] I do not know what an API is
  • [ ] I have never used an AI coding tool
  • [ ] I do not know how to use a terminal
  • → If any box is ticked, start at Stage 0

Stage 1 (on-ramp)

  • [ ] I roughly know an AI agent is “an AI that can act”
  • [ ] I cannot narrate the full path from an incoming message to a tool execution
  • [ ] I have not read the source of any agent project
  • → Start at Stage 1

Stage 2 (widen)

  • [ ] I can sketch the agent loop as a flowchart
  • [ ] I know what a prompt / prefix cache is and why one would engineer for it
  • [ ] I have not compared architectures across projects
  • → Start at Stage 2

Stage 3 (build)

  • [ ] I have read at least two or three source analyses in this station
  • [ ] I want to build an agent that actually runs
  • [ ] I am unsure where the first line of code should go
  • → Start at Stage 3

Stage 4 (depth)

  • [ ] I have built at least one agent that runs
  • [ ] I want to read fork diffs and current engineering practice
  • → Start at Stage 4

Part 2

Stage 0: open the door (2–3 hours)

Goal: an intuition for what “AI that helps a person do work” feels like. No code in this stage.

Prerequisite: install one AI coding tool

Install Claude Code or the Codex CLI on your own machine. Spend a day or two on ordinary tasks. The point is not the theory. The point is the felt sense: you tell the computer what to do, and it does it. Every later lecture assumes that intuition.

Three concepts you need before Stage 1

You do not need implementations. You need jobs-to-be-done. Five minutes each.

1. API (programs calling programs)

Restaurant metaphor: you (the client) read a menu and order (send a request); the kitchen (the server) cooks and sends a plate back (the response). You do not need to know how the kitchen cooks. You need to know how to order.

In an agent: the harness sends “what the user said + which tools exist + prior turns” to the model over an API. The model returns “what I said + which tool I want” over the same API.

2. Terminal — talking to the machine in text

A GUI is pointing. A terminal is typing. Many developer tools live only in a terminal because typing is faster than clicking and because a typed session can be scripted.

3. Git — a time machine for code

Three operations suffice: git commit (take a snapshot), git log (look at the album), git diff (compare two snapshots—which lines changed).

Then enter Stage 1


Part 3

Stage 1: what an agent is, and how it actually runs

Goal: narrate the full path from a user message to a finished task. You should be able to explain it to someone else.

Budget: 6–8 hours

Concept graph

flowchart TD
    U["User input"] --> R["Input split: command or dialogue?"]
    R --> A["Context assembly: system prompt + project notes + history"]
    A --> L["Agent loop ★ core"]
    L --> M["Model API"]
    M --> L
    L --> T["Tool system: read/write files / run commands / search"]
    T --> P["Permission gate: is this operation safe?"]
    P --> L
    L --> O["Output: task done, or the user must decide"]

Common mistakes

❌ “An agent is ChatGPT with a terminal skin.” No. ChatGPT only speaks. An agent acts (edits files, runs commands, fetches the web). That requires a tool system, a permission system, and error handling.

❌ “The agent loop is just while True.” It is, at the type-system level. The gap between “it runs” and “it runs well” is about a hundred edge cases (the user interrupts; a tool fails; the context overflows; the model loops). Chapter 6 is the difference.

❌ “Permissions are a y/n modal.” That is the naïve reading. A real gate includes: rule deposition (last time’s allow becomes next time’s default), command AST parsing (string match is not enough), provenance (a sub-agent’s result is not the user’s confirmation), and mode switches (Plan mode does not even register write tools).

Acceptance

After Stage 1 you should be able to:

  • [ ] Draw the agent-loop flowchart (it need not be pretty; the logic must be right)
  • [ ] Name two essential differences between an agent and a chatbot
  • [ ] Explain what happens between “the model asked to read_file('/foo')” and “the file contents are fed back”
  • [ ] Name at least three permission lineages and their core idea
  • [ ] Explain “what an agent is” to a non-engineer

Part 4

Stage 2: the same problem, different answers

Goal: there is not one way to write an agent. The same core loop plus different architectural bets produce different engineering shapes. Start building the judgment: product position decides architecture.

Budget: 8–12 hours

Common mistakes

❌ “More tools are better.” hermes ships 74 tools; goose ships 0 built-in tools. Count is not capability. The scarce resource is the marginal cost of one more core tool (its schema is sent on every request).

❌ “Locking one model vendor is technically conservative.” Claude Code locks Anthropic because the product wants you to use Claude, not because a multi-provider architecture is impossible. The dividend of a lock is depth you cannot buy in a least-common-denominator multi-provider stack (cache billing headers that match the body, signed thinking, ToolSearch).

❌ “Open source is always freer than closed source.” Incomplete. Open source pays an adapter tax and a least-common-denominator tax. Closed source pays with first-party depth. Pick from what you actually optimize for.

Acceptance

  • [ ] Name three permission lineages (prompt-the-user / structural safety / OS sandbox) and the jobs they fit
  • [ ] Explain why hermes-agent’s “persist to disk before you act” is a hard rule
  • [ ] Recite the five prompt-cache moves (statics first / volatiles out / stable tools / compact carefully / make cache hits visible in telemetry)
  • [ ] Facing a new agent repo, ask “what is the product position?” before judging a technical choice

Part 5

Stage 3: build an agent that actually works

Goal: turn Stage 2 knowledge into Stage 3 skill. Write an agent that runs, does work, and knows when to stop.

Budget: 8–15 hours per track

Four build tracks — pick the one that fits

Track You build Language Coding bar What you uniquely learn
A AI coding assistant (MiniClaude) TypeScript / Node.js ★★☆ Closest to the tool you already use; every step has immediate feedback
B General-task agent (Manus-style) Python ★★☆ Follow one real task; every wall you hit adds one part; you see why the agent needs that part
C AI coworker (OpenWorker-style, unattended) Python ★★★ Hardest and most rewarding: Slack, cron, suspend-and-wait when the human is away
D AI design agent (Open Design-style host) TypeScript ★★☆ Most counter-intuitive: you write zero lines of the agent loop—you write socket + script + gates

English tutorials live under tutorials/. Additional tracks in the Chinese station (Easel, CodePilot, Cline, Kanban, OpenAI4S, DeepSeek Harness) have English siblings in the same folder as they are translated.

How to use the tutorials

  1. Do not skip steps. They are ordered as “hit a wall → add a part.” Skip “give it a brain” and jump to “give it brakes,” and you will not know where the brakes attach.
  2. Match each step against the acceptance assertions. The appendix of each track says “after step N you should observe XXX.” That is your CI.
  3. When stuck, return to the matching Stage 2 analysis. The tutorial’s “why this way” is usually expanded there, with path:line.

Mental preparation

  • Version 1 will fail or fail poorly. That is expected. The “how it blows up” lists exist for that.
  • The same feature (a permission gate) can be v1 blacklist + modal (half an hour), v2 deposited rules (half a day), v3 provenance downgrade (days). Do not try to make v1 perfect.
  • The largest trap is not “the tech is too hard.” It is over-design—two weeks of clever compaction before you have evidence a user needs it. Ship the simplest loop that runs, then iterate on pain you have actually felt.

Acceptance

  • [ ] Your agent completes an end-to-end task (not a demo; a real task)
  • [ ] Dangerous operations are blocked (you do not discover an rm -rf after the fact)
  • [ ] You can explain three decisions in your code—“why this, not that”

Part 6

Stage 4: frontier practice

Goal: read a fork diff, understand the host shape, look at a non-coding agent, and draw an architecture figure that is not a directory tree.

Budget: 2–3 hours per item

Acceptance

  • [ ] Between any two fork / upstream trees, write ten or more differentiated findings (not “this has it, that doesn’t”—“what changed, why, and what it costs”)
  • [ ] Draw an architecture figure for any project you have read (not a directory tree: a figure that answers one question, e.g. “how does the permission gate stop one shell command”)
  • [ ] In a discussion of permission lineage / architecture shape / model strategy, use a framework: “in your setting, pick X because Y, and the cost is Z”

Part 7

If you ticked Stage 0

  1. You do not need a programming language first. Stage 1 is written so you can read it without writing code. After it, you will want to learn a language—for a reason.
  2. You do need the three concepts in Stage 0. If “API” is an unknown word, Stage 1 will be a fog of nouns.
  3. Install an AI coding tool and use it for a few days—not for theory, for intuition. Learn to drive, then open the engine.

Part 8

If you already have a base: jump table

You are missing Open this
Unfamiliar with one project Catalog → that project’s analysis card → the “most distinctive designs” chapter (usually end of ch. 1 or the last chapter)
Unsure which permission lineage to pick Catalog of agent engineering patterns ch. 3 + comparative review §3.1 “duel 1”
Compaction strategy Patterns ch. 4 + comparative review §2.5 + §3.2 “duel 2”
How each project does caching Patterns ch. 1 + comparative review §2.10
Frontier practice (fork / host / simulation / Rust agent) Stage 4
Claude Code vs OpenCode vs Codex analyses/claude-code-vs-opencode-vs-codex.md

After Stage 4, continue with further-projects.md. If you still need official courses / papers, open the AI learning path complete list.

↑