Skip to content
Pebellslearn by building

The course

AI Agents

Learn how an AI agent really works: a language model in a loop that plans, calls tools, reads the results and decides again. You will follow one travel-planning agent from tokens and prompts to tools, memory, planning patterns, testing and guardrails.

Ready to learn

Your path through the ideas

Inside the course

7 modules · 24 lessons
CLI tools & setup · Start here

Install your tools, choose your setup and verify a local run.

02How LLMs Read and Charge3 lessons

Before building an agent, see the model the way it sees itself: text cut into tokens, a context window that holds everything it knows for one call, and a price on every token in and out.

  1. 01Tokenization — How a Model Reads12 min
  2. 02Context Windows — The Model's Desk12 min
  3. 03Token Based Pricing — Reading the Bill15 min
03The Agent Loop5 lessons

Meet the loop at the heart of every agent: what makes something an agent, how it perceives and plans, how tools are invoked, how results feed back, when the loop stops, and which sampling settings suit each job.

  1. 01What Are AI Agents?12 min
  2. 02Perceive, Then Reason and Plan12 min
  3. 03Acting — How Tools Get Invoked12 min
  4. 04Observe, Reflect, and Know When to Stop12 min
  5. 05Sampling Settings — Temperature, Top-p, Penalties and Length15 min
04Prompt Engineering3 lessons

Write prompts that leave nothing to guess, teach by example and improve them with a test set, then use chain of thought and tree of thought where the problem needs real reasoning.

  1. 01Be Specific — Goal, Context, Format12 min
  2. 02Show Examples, Then Test and Iterate15 min
  3. 03Chain of Thought and Tree of Thought15 min
05Tools and the Model Context Protocol4 lessons

Write tool definitions a model can use correctly, sort tools by the damage a mistake could do, and connect tools through MCP hosts, clients and servers, running locally or remotely.

  1. 01Tool Definition — Describing a Tool So It Gets Used Well12 min
  2. 02The Common Kinds of Tools12 min
  3. 03MCP — Hosts, Clients and Servers15 min
  4. 04Creating MCP Servers — Local or Remote15 min
06Agent Memory4 lessons

Give a stateless model a memory: manage the short-term working context, separate episodes from facts, and retrieve long-term memories by meaning with embeddings while letting stale ones fade.

  1. 01What Is Agent Memory?12 min
  2. 02Short-Term Memory — Keeping the Working Context Lean12 min
  3. 03Episodic and Semantic Memory12 min
  4. 04Long-Term Memory — Retrieval and Forgetting15 min
07Agent Patterns, Testing and Guardrails5 lessons

Choose between ReAct and planner-executor or DAG designs, test tools and flows, trace every run and track the metrics that matter, then defend the agent against prompt injection with permissions enforced in code.

  1. 01ReAct — Reason, Act, Observe, Repeat12 min
  2. 02Planner–Executor and DAG Agents15 min
  3. 03Testing Agents — Tools, Flows and Human Review15 min
  4. 04Logging, Tracing and Metrics12 min
  5. 05Guardrails — Prompt Injection and Tool Permissions15 min
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.