# Exercises book

> **Learn with Prof Rod** — *Build Your Always-On AI Agent From Scratch*.
> **Read the full book and get the latest learning materials:** [https://profrod.ai/book](https://profrod.ai/book).
> **Join the Prof Rod learner community:** [https://profrod.ai/community](https://profrod.ai/community)
> — bring your questions, compare experiments and share what you build.
> **Original source and updates:** [profrodai/sovereign-agent](https://github.com/profrodai/sovereign-agent).

Build Your Always-On AI Agent From Scratch · nineteen-chapter edition · 9 September 2026

Work through the student notebooks, make predictions, build the missing code and test your understanding on a changed case. Answers are kept in the separate solutions book.

[Set up your environment](profrod-sovereign-agent-exercises-setup.md) · [Download this complete asset](profrod-sovereign-agent-exercises-2026-09-10.zip)

The edition has nineteen chapter slots. **Sixteen chapters currently have two ninety-minute units each: 32 units and 48 hours of available practice. Chapters 4, 7 and 13 are planned construction briefs.** The finished plan calls for 38 units and 57 hours; those six additional units are not yet published. Existing units use a supplied runtime and can be studied while the new foundations are authored. No completed notebook is represented by an empty placeholder.

| Chapter | Topic | Availability |
|---|---|---|
| 1 | [Make the first model call for Lucy](ch01/profrod-sovereign-agent-ch01-first-model-call-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 2 | [Give the agent reliable shop tools](ch02/profrod-sovereign-agent-ch02-pydantic-shop-tools-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 3 | [Build the model and tool loop](ch03/profrod-sovereign-agent-ch03-agent-loop-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 4 | [Build durable SQLite state](ch04/profrod-sovereign-agent-ch04-sqlite-state-exercise-guide.md) | PLANNED — brief only |
| 5 | [Remember across conversations](ch05/profrod-sovereign-agent-ch05-durable-memory-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 6 | [Reuse a tested opening procedure](ch06/profrod-sovereign-agent-ch06-versioned-skills-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 7 | [Build a durable work inbox and report outbox](ch07/profrod-sovereign-agent-ch07-durable-inbox-outbox-exercise-guide.md) | PLANNED — brief only |
| 8 | [Talk to the agent from your phone](ch08/profrod-sovereign-agent-ch08-telegram-messaging-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 9 | [Wake up for schedules and stock events](ch09/profrod-sovereign-agent-ch09-schedules-stock-events-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 10 | [Ask permission before spending](ch10/profrod-sovereign-agent-ch10-spending-permissions-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 11 | [Survive the ambiguous supplier order](ch11/profrod-sovereign-agent-ch11-ambiguous-supplier-order-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 12 | [Recover work after a process crash](ch12/profrod-sovereign-agent-ch12-worker-recovery-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 13 | [Build an MCP client and tool server](ch13/profrod-sovereign-agent-ch13-mcp-tools-exercise-guide.md) | PLANNED — brief only |
| 14 | [Isolate tools and untrusted content](ch14/profrod-sovereign-agent-ch14-tool-isolation-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 15 | [Measure whether the agent helps](ch15/profrod-sovereign-agent-ch15-agent-evaluation-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 16 | [Improve behavior with evaluated changes](ch16/profrod-sovereign-agent-ch16-controlled-improvement-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 17 | [Delegate one bounded task](ch17/profrod-sovereign-agent-ch17-bounded-delegation-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 18 | [Deploy and maintain the agent](ch18/profrod-sovereign-agent-ch18-deployment-restoration-exercise-guide.md) | Available draft — A and B, 90 minutes each |
| 19 | [Lucy leaves the shop for a day](ch19/profrod-sovereign-agent-ch19-integrated-shop-day-exercise-guide.md) | Available draft — A and B, 90 minutes each |

## How to use this asset

Start with the setup page. Choose a chapter, then Unit A followed by Unit B. Keep predictions, source changes, failed attempts and transfer results. Each unit supplies the concepts and runtime it requires; prior specialized-library experience is not assumed. Ninety minutes is a planned dedicated-work allowance, not a measured completion guarantee.

Notebook and Markdown files contain the same cells. Core work runs offline after setup. Live-model, Telegram, container and service-operation observations remain separate from local fixture results. These materials are construction drafts; classroom outcomes and editorial quality still require human review.

## Find and share a file

Every teaching file starts with `profrod-sovereign-agent`, followed by its chapter, topic and role. Search for `ch02` to find Chapter 2 or `pydantic` to find its typed-tool material. For example: `profrod-sovereign-agent-ch02-a-pydantic-shop-tools-exercise.ipynb`. The `exercise`, `solution`, `educator-exercise` and `educator-solution` endings distinguish files even when copied into one folder. Keep the original filename and source links when sharing. The matching Markdown uses the same filename with `.md`.

## Keep building with Prof Rod

Found this material through a colleague, classroom or shared download? [Get the complete book at profrod.ai/book](https://profrod.ai/book) and [join the Prof Rod learner community](https://profrod.ai/community). Bring one result, one question or one failure you learned from. Share this resource with another learner and keep its source links with it so they can find the full course and future updates.
