Home Learn AI Claude Code

Developers · Track A

Understand Claude Code

Twelve progressive sessions covering the agent loop through worktrees. Read each lesson on Zeus—full text below.

Sign in to save progress on your account.

Scroll for all sessions →

s01 — The Agent Loop

~84 LOC · 1 tool

“One loop & Bash is all you need”

The kernel: call the model, execute tools when stop_reason === tool_use, append tool results, repeat. Everything else in the course stacks on this loop.

s02 — Tools

dispatch map

“Adding a tool means adding one handler”

Keep the loop fixed; register new capabilities in a name→handler table. Same pattern every production harness uses.

s03 — TodoWrite

“An agent without a plan drifts”

Structured steps before execution—planning as a first-class tool outcome.

s04 — Subagents

“Each subtask gets a clean context”

Child runs get their own messages[]; the main thread stays readable.

s05 — Skills

“Load knowledge when you need it”

Inject domain text via tool results instead of bloating the system prompt up front.

s06 — Context Compact

“Make room for infinite sessions”

Three-layer compression so long jobs do not drown in history.

s07 — Tasks

“Persist goals to disk with dependencies”

File-backed task graph—foundation for serious multi-step and multi-agent work.

s08 — Background Tasks

“Run slow work without blocking the think loop”

Daemon-style execution with completion notifications fed back into the session.

s09 — Agent Teams

“Delegate across persistent teammates”

Async mailboxes and roles when one context window is not enough.

s10 — Team Protocols

“Shared rules for negotiation”

One request–response pattern for plan approval, shutdown, and handoffs.

s11 — Autonomous Agents

“Teammates claim work from a shared board”

Lead does not have to assign every micro-task—workers pull when ready.

s12 — Worktree + Task Isolation

“Each worker owns a directory”

Bind task IDs to filesystem lanes so parallel runs do not stomp each other—production hygiene.

Capstone

After s01–s12, combine the patterns into one harness: an all-in-one agent loop with tasks, teams, and isolation—then ship it behind your own interface.