Class 02 — Claude Code

The Exchange

Stateless HTTP all the way down — step through exactly what JSON travels over the wire during a tool-using conversation.

Key concept
Claude has no memory. Every API call is independent. You send the model, system prompt, tool definitions, and the entire messages[] history on every single request. The history grows; the server forgets.

A Tool-Using Conversation

A user asks Claude to fix a bug. Claude reads a file, applies an edit, and replies. Seven stages — every HTTP boundary shown.

messages[] empty
What happened?
← Class 01: The Command 2 of 5 Class 03: Output & Sessions →