Blog

Series

3 parts

An agent walks into a coffee shop

A hands-on series for developers who want to understand how AI agents work underneath. In eleven short TypeScript chapters we first build the core by hand, from one call to a language model to the loop that makes it an agent. Then an agent SDK takes over that loop, and we add what a product needs around it: errors, limits, approval and tests. The running example is a small coffee roastery, where Ada wants to track one order and cancel another.

  1. 7 min read

    Part 0

    Agent Smith doesn’t work here

    When I hear “agent”, I still picture Agent Smith. The one we’ll build works for a small coffee roastery. Ada would like its help cancelling the right order.

    • AI agents
    • LLM
  2. 5 min read

    Part 1

    One call later, where’s my coffee?

    Ada wants to know when her hand grinder will arrive. I sent her order number to the model twice. Both times it asked her to look up the parcel herself.

    • AI agents
    • TypeScript
    • Hands-on
  3. 7 min read

    Part 2

    Who told you that?

    With her order in the request, the model tells Ada when her grinder arrives. Then she asks if it should be here by now. Nobody told the model what day it is.

    • AI agents
    • TypeScript
    • Hands-on