
In this lecture, you explain why an agent that works in a demo fails in production, and state the course's central message. What you'll see: One refund issued four times at 2 a.m.; the central message and why it matters.
In this lecture, you choose a learning path for your role and describe the five parts, four projects and the 20-step framework. What you'll see: Five levels, four projects, which sections to take for your role.
In this lecture, you run the quick-win agent in replay mode and explain each line of its trace. What you'll see: Clone, run, read the trace; no keys needed. The same agent is broken on purpose in Section 3, lecture 3. It's an instructor demonstration you can follow along in the repository.
In this lecture, you describe the four projects, the SkyOps domain and how repository tags track your progress. What you'll see: Beginner, intermediate, advanced and capstone; the evolving repository and its tags.
In this lecture, you set up the repository, run the full test suite green, and read a failing fitness function. What you'll see: Python, lock file, .env.example, make targets, first green test run. It's a build-along lab in the SkyOps repository, and it runs in replay mode with no API key.
In this lecture, you configure provider spend limits and the SkyOps spend guard before using live mode. What you'll see: Provider spend caps, per-lab cost estimates, the live/replay switch. It's an instructor demonstration you can follow along in the repository.
In this lecture, you explain how a model turns a request into output tokens, and name three things a model cannot do that your code must. What you'll see: Next-token prediction, context window, what the model can and cannot do.
In this lecture, you make a model call, stream the answer and handle error responses by kind. What you'll see: A first call, system and user roles, streaming, error responses. It's a build-along lab in the SkyOps repository: its checks fail at tag s01-start and pass at tag s01, and it runs in replay mode with no API key.
In this lecture, you extract a typed object from free text with native structured output, validation and one repair, on three providers. What you'll see: Native schema-constrained output on hosted APIs and a local model, Pydantic validation, and where a repair loop is still needed. It's a build-along lab in the SkyOps repository: its checks fail at tag s01-start and pass at tag s01, and it runs in replay mode with no API key.
In this lecture, you calculate cost per call and per 1,000 calls from reported usage and price parameters. What you'll see: Count tokens, apply price parameters, never hard-code a price. It's a build-along lab in the SkyOps repository: its checks fail at tag s01-start and pass at tag s01, and it runs in replay mode with no API key.
In this lecture, you explain context as a budget: what long inputs cost, how they degrade answers, and how the window fills. What you'll see: Position effects, cost growth, the context-as-budget idea.
In this lecture, you name the sources of output variation and design tests, evals and incident reproduction that don't depend on pinning them. What you'll see: Sampling controls are deprecated or restricted on many current models and some APIs have no seed: design tests, evals and incident reproduction for variation.
In this lecture, you implement a provider adapter behind one interface, and explain which differences an adapter must translate and which it must not hide. What you'll see: Thin adapter over two hosted providers and a local model. It's a build-along lab in the SkyOps repository: its checks fail at tag s01-start and pass at tag s01, and it runs in replay mode with no API key.
In this lecture, you build a typed batch extractor with a cost report that survives failures, and self-assess your readiness for Section 2 or 3. What you'll see: Build a typed extractor with a cost report; self-check your level. It's a build-along lab in the SkyOps repository: its checks fail at tag s01-start and pass at tag s01, and it runs in replay mode with no API key.
In this lecture, you use Pydantic models as contracts at every boundary, and choose how strict each boundary should be. What you'll see: Models, validators, serialisation; why contracts matter more with LLMs. It's an instructor demonstration you can follow along in the repository.
In this lecture, you fetch many results concurrently with a concurrency limit, per-call timeouts and clean cancellation. What you'll see: gather, timeouts, cancellation, bounded concurrency. It's a build-along lab in the SkyOps repository: its checks fail at tag s02-start and pass at tag s02, and it runs in replay mode with no API key.
In this lecture, you configure explicit HTTP timeouts and map every status code to an action. What you'll see: httpx, status mapping, retry basics before the reliability section. It's an instructor demonstration you can follow along in the repository.
In this lecture, you test agent code with a scripted model that plays real response shapes and records what your code sent. What you'll see: Test pyramid for agent code; fakes for models and tools. It's a build-along lab in the SkyOps repository: its checks fail at tag s02-start and pass at tag s02, and it runs in replay mode with no API key.
In this lecture, you record and replay tool calls alongside model calls, so a whole run can be reproduced offline. What you'll see: Build the record/replay layer (model fixtures and the tool tape) used by every later lab. It's a build-along lab in the SkyOps repository: its checks fail at tag s02-start and pass at tag s02, and it runs in replay mode with no API key.
In this lecture, you emit structured logs with a run ID on every line, keep secrets out of them, and load configuration from the environment. What you'll see: Structured logs, run IDs, settings objects, no secrets in code. It's an instructor demonstration you can follow along in the repository.
In this lecture, you build an async, typed, tested client for an upstream API that maps every outcome correctly. What you'll see: Assignment with a hidden test suite and a reference solution. It's a build-along lab in the SkyOps repository: its checks fail at tag s02-start and pass at tag s02, and it runs in replay mode with no API key.
In this lecture, you describe an agent's anatomy and name where each class of failure enters it. What you'll see: Anatomy: model, tools, state, control loop, guardrails.
In this lecture, you place a task on the spectrum from single call to multi-agent, and name the cost of each step up. What you'll see: Chains, routers, tool-using agents, multi-agent; cost of each step up.
In this lecture, you reproduce five production failures in the quick-win agent, measure their cost, and write a detector for each. What you'll see: Five failures in ten minutes (loop, bad argument, timeout, duplicate action, injected text) and what each would cost in production. It's a build-along lab in the SkyOps repository: its checks fail at tag s03-start and pass at tag s03, and it runs in replay mode with no API key.
In this lecture, you assign an autonomy level to an action and state the price of moving it up a level. What you'll see: Suggest, draft, act with review, act with approval, autonomous in policy.
In this lecture, you score a task and decide between a workflow, an agent and a person, with the autonomy level and its price. What you'll see: A scored checklist with the price of each autonomy level.
In this lecture, you split a realistic "AI for everything" wish list into agent, workflow and human work, with levels and prices. What you'll see: Split a wish list of 'AI for everything' into agent, workflow and human. It's worked through end to end, with the options that were rejected and why.
In this lecture, you apply the 20-step framework as a design canvas, and know where each step is taught. What you'll see: The design canvas used in every later lab, case study and review.
In this lecture, you name the three steps of the agent loop and where each class of failure enters it. What you'll see: The three-step cycle and where every failure enters.
In this lecture, you build a provider-agnostic agent loop in about 100 lines of plain Python. What you'll see: Provider-agnostic model call, tool dispatch, message history. It's a build-along lab in the SkyOps repository: its checks fail at tag s04-start and pass at tag s04, and it runs in replay mode with no API key.
In this lecture, you validate every proposed tool call before your code executes it. What you'll see: The model proposes; your code validates and executes. It's a build-along lab in the SkyOps repository: its checks fail at tag s04-start and pass at tag s04, and it runs in replay mode with no API key.
In this lecture, you enforce step, token and wall-clock budgets with a graceful stop. What you'll see: Max steps, max tokens, wall-clock limit, graceful stop. It's a build-along lab in the SkyOps repository: its checks fail at tag s04-start and pass at tag s04, and it runs in replay mode with no API key.
In this lecture, you return tool errors to the model as data and apply a loop-level retry policy. What you'll see: Return errors to the model as data; retry policy at loop level. It's a build-along lab in the SkyOps repository: its checks fail at tag s04-start and pass at tag s04, and it runs in replay mode with no API key.
In this lecture, you reproduce, detect and cap infinite loops and runaway cost. What you'll see: Reproduce, detect and cap three failure modes. It's a build-along lab in the SkyOps repository: its checks fail at tag s04-start and pass at tag s04, and it runs in replay mode with no API key.
In this lecture, you measure an agent with a ten-case eval that checks answers and tool calls. What you'll see: Pass/fail checks, tool-call assertions, a printed score. It's a build-along lab in the SkyOps repository: its checks fail at tag s04-start and pass at tag s04, and it runs in replay mode with no API key.
In this lecture, you deliver a beginner project that meets a brief, acceptance tests and a review checklist. What you'll see: Brief, acceptance tests, reference solution and review checklist. It's a project brief: the requirements, the acceptance checks and how the project is graded.
In this lecture, you explain how tool design changes when the caller is a probabilistic reader. What you'll see: What changes when the consumer is a probabilistic reader.
In this lecture, you write tool names, descriptions and schemas that measurably improve tool choice. What you'll see: Names, descriptions, enums, examples; measure the effect on tool choice. It's an instructor demonstration you can follow along in the repository.
In this lecture, you choose tool granularity that avoids both chatty and kitchen-sink tools. What you'll see: Chatty versus kitchen-sink tools and the eighty-tool agent.
In this lecture, you classify tools by side effect and derive approval, retry and logging rules from the class. What you'll see: Class drives approvals, retries and logging.
In this lecture, you make writes safe to replay with idempotency keys and previewable with dry-run mode. What you'll see: Safe replays; preview before commit. It's a build-along lab in the SkyOps repository: its checks fail at tag s05-start and pass at tag s05, and it runs in replay mode with no API key.
In this lecture, you return machine-readable errors the loop can act on: retryable, non-retryable, needs-human. What you'll see: Machine-readable errors the loop can act on. It's a build-along lab in the SkyOps repository: its checks fail at tag s05-start and pass at tag s05, and it runs in replay mode with no API key.
In this lecture, you shape tool results to what the model needs, with pagination and token caps. What you'll see: Return what the model needs; summarise, page and cap. It's a build-along lab in the SkyOps repository: its checks fail at tag s05-start and pass at tag s05, and it runs in replay mode with no API key.
In this lecture, you spot ten common tool-design flaws and propose the better contract for each. What you'll see: Free-form SQL, whole rows, vague names, secrets in output, unsafe payments. It's a design review: you find what's wrong before you see the fix.
In this lecture, you ship contract-tested tools with schemas, an error taxonomy and idempotency keys. What you'll see: Schemas, error taxonomy and idempotency keys with contract tests. It's a build-along lab in the SkyOps repository: its checks fail at tag s05-start and pass at tag s05, and it runs in replay mode with no API key.
In this lecture, you explain the N-by-M integration problem that MCP addresses. What you'll see: Hosts, tools and the cost of bespoke connectors.
In this lecture, you distinguish hosts, clients and servers, and tools, resources and prompts. What you'll see: Roles, primitives and what each is for.
In this lecture, you read an MCP exchange on the wire and identify each field and header. What you'll see: Trace a request end to end: _meta keys, Mcp-Method and Mcp-Name headers, resultType, a cacheable list result. It's a build-along lab in the SkyOps repository, and it runs in replay mode with no API key.
In this lecture, you explain the stateless core of the 2026-07-28 revision and its effect on scaling. What you'll see: No handshake or session IDs; what that does to scaling.
In this lecture, you explain Multi Round-Trip Requests, routing headers and cacheable results. What you'll see: MRTR for mid-call input, Mcp-Method and Mcp-Name headers, CacheableResult with ttlMs and cacheScope.
In this lecture, you explain why stateless, header-routed requests suit gateways and load balancers. What you'll see: Why stateless and header-routed requests suit gateways.
In this lecture, you plan a migration from an earlier specification revision and the older SDK. What you'll see: Handshake and sessions removed, MRTR replacing server-initiated requests, deprecated Roots, Sampling and DCR; the Python SDK v2 MCPServer rename. It's an instructor demonstration you can follow along in the repository.
In this lecture, you choose between MCP, function tools and OpenAPI tools for a given integration. What you'll see: Trade-off table: when each wins.
In this lecture, you connect to third-party MCP servers safely with provenance checks, scopes and pinning. What you'll see: Provenance, scopes, description review, pinning, allow-lists. It's an instructor demonstration you can follow along in the repository.
In this lecture, you build and inspect a first MCP server with the current Python SDK. What you'll see: The official SDK v2 MCPServer, one tool, run and inspect; why older tutorials say FastMCP. It's a build-along lab in the SkyOps repository: its checks fail at tag s07-start and pass at tag s07, and it runs in replay mode with no API key.
In this lecture, you expose SkyOps operations data through MCP tools that keep their contracts. What you'll see: Read tools over synthetic AIDX-style data, with contracts from Section 5. It's a build-along lab in the SkyOps repository: its checks fail at tag s07-start and pass at tag s07, and it runs in replay mode with no API key.
In this lecture, you decide when a capability is a resource, a prompt or a tool. What you'll see: Resources for context, prompts for templates, tools for actions. It's a build-along lab in the SkyOps repository: its checks fail at tag s07-start and pass at tag s07, and it runs in replay mode with no API key.
In this lecture, you secure an MCP server with issuer validation, client metadata and scoped tokens. What you'll see: Current authorisation rules and what changed from the old flow. It's an instructor demonstration you can follow along in the repository.
In this lecture, you build an MCP client that discovers, calls and handles errors from a server. What you'll see: Client code, tool discovery, calling and error handling. It's a build-along lab in the SkyOps repository: its checks fail at tag s07-start and pass at tag s07, and it runs in replay mode with no API key.
In this lecture, you hide REST, SOAP and queue-backed systems behind an MCP façade. What you'll see: Façade pattern; where the legacy system's quirks stop. It's an instructor demonstration you can follow along in the repository.
In this lecture, you catch breaking MCP changes with inspector runs, contract tests and versioning. What you'll see: Catch silent breaking changes before the host does. It's a build-along lab in the SkyOps repository: its checks fail at tag s07-start and pass at tag s07, and it runs in replay mode with no API key.
In this lecture, you design against tool poisoning, confused deputies and token passthrough. What you'll see: The three abuse cases and the design response to each.
In this lecture, you route several MCP servers through a gateway with central auth, policy and audit. What you'll see: Routing by header, per-server policy, central auth and audit. It's a build-along lab in the SkyOps repository: its checks fail at tag s07-start and pass at tag s07, and it runs in replay mode with no API key.
In this lecture, you deploy a remote MCP server and connect a hosted agent to it. What you'll see: Container, TLS, token validation, a smoke test from the host. It's a build-along lab in the SkyOps repository: its checks fail at tag s07-start and pass at tag s07, and it runs in replay mode with no API key.
In this lecture, you ship an authenticated, tested MCP server with a one-page threat model. What you'll see: Tag s07 with auth, tests and a one-page threat model. It's a build-along lab in the SkyOps repository: its checks fail at tag s07-start and pass at tag s07, and it runs in replay mode with no API key.
In this lecture, you treat the context window as a budget and decide what goes in. What you'll see: What goes in, what costs, what gets cut.
In this lecture, you separate conversation state from durable state and store each correctly. What you'll see: What lives in the prompt, the checkpoint and the database.
In this lecture, you compact long histories without losing pinned rules, and prove it with a test. What you'll see: Pinned instructions, rolling summaries, tests for retention. It's an instructor demonstration you can follow along in the repository.
In this lecture, you use typed working memory instead of free-text scratchpads. What you'll see: Plan, facts and open questions as typed state. It's an instructor demonstration you can follow along in the repository.
In this lecture, you define what long-term memory stores, how long it keeps it and how it forgets. What you'll see: Retention, deletion rights and per-user scoping.
In this lecture, you prevent memory poisoning and keep personal data out of persisted memory. What you'll see: Attacker text in memory; PII; what never to persist.
In this lecture, you investigate a context overflow that silently dropped safety instructions. What you'll see: Detect, mitigate and prevent silent truncation. It's an incident lab: you investigate the failure from its traces, find the root cause and verify the fix.
In this lecture, you ship compaction in SkyOps with a retention test. What you'll see: Compaction with a retention test; tag s08. It's a build-along lab in the SkyOps repository: its checks fail at tag s08-start and pass at tag s08, and it runs in replay mode with no API key.
In this lecture, you decide when retrieval is the right tool, and when long context or a query is better. What you'll see: Retrieval versus long context versus a database query.
In this lecture, you chunk and embed operating procedures by structure, and recognise chunking failures. What you'll see: Chunk by structure, embed, store; failure cases. It's a build-along lab in the SkyOps repository: its checks fail at tag s09-start and pass at tag s09, and it runs in replay mode with no API key.
In this lecture, you combine keyword search, metadata filters and reranking, and weigh their costs. What you'll see: Keyword plus vector, filters, reranker and their costs. It's a build-along lab in the SkyOps repository: its checks fail at tag s09-start and pass at tag s09, and it runs in replay mode with no API key.
In this lecture, you enforce document-level access control and tenant isolation at query time. What you'll see: Filter at query time, index per tenant, the leak patterns.
In this lecture, you keep an index fresh and revoke documents safely. What you'll see: Keep the index current; revoke documents safely.
In this lecture, you measure retrieval quality with recall at k and MRR, separately from answers. What you'll see: Measure retrieval separately from answers. It's a build-along lab in the SkyOps repository: its checks fail at tag s09-start and pass at tag s09, and it runs in replay mode with no API key.
In this lecture, you plan multi-step retrieval with question decomposition and stopping rules. What you'll see: Multi-step search, decomposing questions, stopping. It's an instructor demonstration you can follow along in the repository.
In this lecture, you choose a vector store by trade-offs rather than popularity. What you'll see: Existing database extension, dedicated store, search engine.
In this lecture, you ship access-controlled retrieval with a stale-document regression test. What you'll see: Per-role access and a revoked-policy regression test; tag s09. It's a build-along lab in the SkyOps repository: its checks fail at tag s09-start and pass at tag s09, and it runs in replay mode with no API key.
This course contains the use of artificial intelligence.
A demo agent works once. A production agent works the thousandth time, under failure, with an audit trail.
This course starts at 2 a.m., with one refund issued four times by an agent that passed every demo. Then it shows you, step by step, how to build agents that don't do that: how they are designed, secured, tested, integrated with real enterprise systems, deployed and operated, and how they fail.
An agent is a distributed system with a language model in the control loop.
Networks, retries, idempotency, state, queues and failure all still apply. The model proposes; your code validates, authorises and executes. Every safety property lives in that code, and that is what this course teaches you to write.
You build SkyOps, an airline operations agent, in one evolving Python repository: tagged per section, runnable offline in replay mode with no API key, with checks that fail at the start of every lab and pass when you have solved it.
What you will build and prove:
The agent loop from scratch in plain Python, then tools designed as contracts with idempotency and dry runs (Project 1)
MCP servers and clients on the current 2026-07-28 specification, secured with OAuth and scoped tokens
Context, state, memory and permission-aware retrieval for agents
Evals as the spine: golden sets, trajectory evals, a calibrated judge, variance across runs and a CI release gate
LangGraph orchestration with persistence, resume and human approval (Project 2), and when multi-agent is worth it
Reliability: durable execution, idempotent tools, outbox and saga, budgets and model fallback
Enterprise integration: REST, SOAP-style legacy services, message brokers, event streams and file transfers, with correlation IDs and anti-corruption layers (Project 3)
Guardrails, autonomy levels, human oversight and a security architecture with a red-team lab against your own agent
Observability, cost and latency engineering, deployment and release engineering
Then you run it in production.
Twenty incident labs where you investigate real failure patterns from traces, twelve flawed designs to review, architecture decision records and governance, enterprise case studies, interview walkthroughs and a rubric-graded capstone you can show in a portfolio.
What this course is not: a tour of agent frameworks, a prompt-engineering course or a collection of chatbot demos. Version-sensitive lectures are labelled and dated, with pinned versions; the production patterns are what you keep.
Plan on about two to two and a half times the video time if you complete the labs, projects and capstone.
How this course is made: the instructor wrote every script, designed every lab and reviewed every lecture. The narration is AI-voiced from the instructor's own scripts, and the animated visuals are produced with AI-assisted tooling under the instructor's direction.