The course lives at factory.lihachev.pro. This page is the map.

Who it is for

Engineers who already run agents and want to be the person who runs the factory: the one who knows what a token costs, which harness rule stops an agent from merging garbage, how to tell a regression from noise, and what blocks a change from reaching production.

What it is

Eight modules of lessons with graded exercises. Every exercise is a Python package with a starter that fails on purpose, tests that decide pass or fail, and a miubais CLI that starts, checks and resets it. A tutor built on the Agent SDK explains a failing test from its output and your diff; a leak filter keeps it from handing out the solution.

The repository is also the proof of the method: lessons are pinned and dated, numbers in the text come from recorded runs, and a freshness pipeline opens review branches when a vendor page or a price moves.

Modules

#ModuleWhat you leave with
M0Inference economicsTokens, KV cache, prompt caching, cost levers, structured outputs, context management
M1Enforced harnessHooks, permissions, subagents, durable sessions, failure taxonomy and caps
M2Evals as engineeringError analysis, judges and agreement, datasets, agent evals, CI gating
M3Observability and costTraces and spans, GenAI semantic conventions, self-hosted Langfuse, routing, latency
M4Retrieval as a componentWhen not to build RAG, chunking, hybrid search, reranking, retrieval metrics, citations
M5Security and complianceThreat model for agent factories, indirect injection and provenance, permissions and secrets, remote MCP and OAuth, red teaming with promptfoo, the EU AI Act
M6Serving and platformOpen-weight landscape and licences, serving internals, running locally, Kubernetes for inference, TTFT/TPS/cost, fine-tuning
M7Capstone: pre-reviewA read-only review agent over a Go, TypeScript, proto and migrations repository

Each module ends with an interview-angle lesson: the questions a hiring panel asks about that part of the job, and the answers the exercises prepare.

Start

git clone https://github.com/avlihachev/miubais
cd miubais
uv sync
uv run miubais doctor
uv run miubais start m0-cost-lab
uv run miubais check m0-cost-lab

The last command fails at stage 01: the starter raises on purpose, and the lessons tell you what to build.

Book

The lessons are also a book, Mum, I wanna be an AI Engineer, in paperback and Kindle. The book is reading-only: code appears as illustration with its output, the exercises stay on the site.

Source