Stanford CS329Z: Free Lecture Slides, Videos, and Both Assignment Repositories
CS 329Z: Engineering AI Agents is a Stanford Fall 2026 course whose public materials are free to use: lecture slide PDFs on the Stanford class site, video links on the course schedule, and two MIT-licensed starter repositories on GitHub. The verified links, the full class schedule, what each homework requires, the environment setup, and the grading and access limits for non-enrolled learners are set out below.
View 8 referencesAllow the functional cookie to save your likes. Privacy details
What CS329Z Is and What Is Actually Free
CS 329Z: Engineering AI Agents is a Stanford course for Fall 2026 taught by Diyi Yang, Michael Ryan and John Yang. Its public course page publishes the class schedule with slide PDFs and video links as they are released, and the cs329z GitHub organization hosts the two homework starter repositories under the MIT license. The logistics page lists the enrollment details: 3 units, class number 27855, session 2026-2027 Autumn 1, Mondays and Wednesdays 1:30-2:50 p.m. in Skilling Auditorium, with Letter or Credit/No Credit grading and the contact address [email protected]. Prerequisites are any of CS224N, CS224U, CS224V, CS336 or equivalent natural language processing background.
The course description frames the subject as a shift from monolithic language models to compound AI systems built from LLMs, retrievers, tools and optimizers. Students build RAG, tool use and agent loops from scratch before studying how frameworks such as DSPy abstract those patterns. Two applied homework assignments and a quarter-long project carry the hands-on work. The teaching assistants listed are Owen Queen, Anusheh Chaudry, Shreyas Sharma and Houjun Liu.
The slides and repositories cost nothing to download. Enrollment, Canvas, Ed Discussion, grades, office hours and staff-issued API credits are for enrolled students only. Running the live tests in Homework 1 requires an OpenRouter API key that a self-studier supplies personally. The course page also states that the schedule is tentative and subject to change, and that lecture materials will be linked as they are released; several later weeks in the table currently have no slide or video link.
The Public Schedule
The course page lists the following sequence. Each early row carries a Slides PDF on web.stanford.edu/class/cs329z/slides/ and, where released, a Video link.
| Week | Date | Lecture |
|---|---|---|
| 1 | Wed Sep 23 | Foundations and Landscape: What Are Agentic Systems? |
| 2 | Mon Sep 28 | LLMs for Builders |
| 2 | Wed Sep 30 | Building Blocks: Retrieval-Augmented Generation |
| 3 | Mon Oct 5 | Tool Use and Function Calling |
| 3 | Wed Oct 7 | Frameworks and Agent Design |
| 4 | Mon Oct 12 | Agent Design Patterns and Scaffolds |
| 4 | Wed Oct 14 | Memory and Multi-Agent Systems |
| 5 | Mon Oct 19 | Multi-Agent Systems |
| 5 | Wed Oct 21 | Optimization |
| 6 | Mon Oct 26 | Guest Lecture: Terminal-Bench, Ryan Marten and Alex Shaw |
| 6 | Wed Oct 28 | Data for Agentic Systems |
| 7 | Mon Nov 2 | Data Selection and Quality |
| 7 | Wed Nov 4 | Evaluation for Agentic Systems |
| 8 | Mon Nov 9 | Fireside Chat with Andrew Ng |
| 8 | Wed Nov 11 | LLM-as-Judge and Evaluation Infrastructure |
| 9 | Mon Nov 16 | Guest Lecture: SWE-bench, Carlos Jimenez and Alexander Wettig |
| 9 | Wed Nov 18 | Safety |
| 10 | Nov 23 and Nov 25 | No Class: Thanksgiving Recess |
| 11 | Mon Nov 30 | Coding and Software Agents |
| 11 | Wed Dec 2 | Personal Agents |
| - | Wed Dec 9 | Open Problems and Final Demos |
The final row is the Final Project Demo Day, held during the end-quarter examination period, 3:30-6:30 p.m., location to be announced. Readings attached to the early weeks include Zaharia et al. on the shift from models to compound AI systems, Vaswani et al. on transformers, Lewis et al. on retrieval-augmented generation, and Schick et al. on Toolformer. The Frameworks week links a follow-along code repository, github.com/cs329z/lecture5-frameworks.
Three slide PDFs were downloaded and read directly: lecture01.pdf, lecture05.pdf and lecture12.pdf. Lecture 1 is "Intro to Agentic Systems" and restates the grading split as Project 40%, Homeworks 15%, Homework-based quizzes 15%, Paper video 10% and Peer review 20%. It lists three free late calendar days, notes that peer review and final project papers cannot be submitted late, and records compute support of $200 from Laude Institute and $250 from Thinking Machine for enrolled students. It also says the course is at capacity and that lecture slides and videos will be posted online.
Lecture 5 is "Frameworks and Orchestration". Its announcements put the Project Proposal due Friday 10/9 at 11:59 p.m. on Gradescope and state that Homework 1 was released with a due date of Friday October 30th at 11:59 p.m. It says the lecture notebook uses about $1 or less of OpenRouter credits, and sets out three pillars of AI systems: Data, System or Model, and Evaluation plus Metric.
Lecture 12 is "Data Selection and Quality". Its announcements say HW2 was released with the task due 11/23 and peer reviews due 12/2. Its summary line is that making agent tasks and trajectories is now cheap while deciding what to keep is the hard part. It cites a Meta FAIR CodeGen Team result of 3M agent trajectories generated from 10.2k Docker images of 3.15k repos.
Homework 1: Building an Agent Harness
The assignment1-harness repository is a Python starter. Its README says to begin with the handout cs329z_assignment1_harness.pdf, which states every problem, what is graded, and which design decisions are the student's to make. The logistics page describes the task as building a company's internal AI assistant from scratch with no agent frameworks: just a chat-completion call and code the student writes, starting with pipelines over a real corporate email archive and growing into a full harness with tools, a terminal, memory and a human in the loop.
Setup uses uv, needs Python 3.11 or newer, and supports macOS, Linux and Windows. On Windows, Git for Windows supplies bash.exe and there is no operating-system jail; WSL provides the Linux jail. The README gives these commands:
cp .env.example .env
uv run python data/download.py
uv run pytest
uv run pytest -m live -s
CS329Z_EVAL_SLICE=5 uv run pytest tests/test_priority.py -m live -s
The .env file holds OPENROUTER_API_KEY and is gitignored. data/emails.jsonl.gz is 19 MB and unpacks to data/emails/emails.jsonl at 58 MB. In the starter, every test fails with NotImplementedError. Deterministic tests run by default and make no model calls, substituting a ScriptedLM that replays a fixed list of replies. Live tests call the real model and compare results with tests/thresholds.py; the priority test makes 60 model calls in about a minute. CS329Z_EVAL_SLICE=N runs each live test on its first N items while iterating.
Model calls go through cs329z_hw1.llm.LM: a list of messages in, a string out. The default grading model is openai/gpt-6-luna and the judge is openai/gpt-6-sol. The wrapper caches replies under .lm_cache/, logs every provider call to .lm_cache/ledger.jsonl, and supports a CS329Z_BUDGET_USD limit that raises BudgetExceeded instead of making a call. The repository places student work in cs329z_hw1/ with stub adapters.py and empty pipelines/ and agent/ directories, alongside provided files for the LLM wrapper, data loading, a terminal sandbox, tool schemas and a simulation harness. That sandbox reports sandbox-exec on macOS, bwrap on Linux with bubblewrap, or none; Windows always reports none. Here-documents are rejected.
Homework 2: Building an Evaluation Task
The assignment2-evals repository is a TeX starter whose handout is cs329z_assignment2_evaluation.pdf. The logistics page describes it as designing a comprehensive evaluation suite for a pre-built agent, with code-based graders, at least one LLM-as-judge eval, benchmark tasks built with the 4-tuple framework of request, environment, stopping criteria and scorer, and error analysis.
The layout includes tasks/humaneval-0/ as an example Harbor task, a writeup/ directory, check_submission.py, pinned_agent.py pinning mini-SWE-agent versions, .env.example, pyproject.toml with Harbor and matplotlib, and uv.lock. Setup requires uv and Docker:
cp .env.example .env
uv sync
uv run harbor --version
On an Apple Silicon Mac, the SWE-bench task in Section 3.2 needs export DOCKER_DEFAULT_PLATFORM=linux/amd64 first. The README says to use uv add <package> rather than pip install and to commit the updated pyproject.toml and uv.lock. Before submission, uv run python check_submission.py lists missing files and unanswered placeholders; the repository is then uploaded to Gradescope through its GitHub integration with a due date of 11/23 and kept private.
The acknowledgements state that the assignment was designed and built by John Yang with substantial help from Claude Opus 5.5, with thanks to Michael Ryan, Diyi Yang, Shreyas Sharma and Anantharaman Iyer. It explicitly permits reuse: "If you would like to use this assignment for your course you are welcome to do so with brief attribution. It is released under the MIT license."
One practical detail for anyone following the course page: its Deadlines table links "HW2 Released" to github.com/cs329z/assignment2-harness, but that repository name does not appear in the organization's repository list. The live repository is assignment2-evals. The organization page lists four public repositories in total: assignment1-harness, assignment2-evals, cs329z.github.io and lecture5-frameworks.
Grading and Access Limits for Self-Study
The logistics page gives the grading breakdown for enrolled students: Project 40%, Homework 15% (HW1 7.5%, HW2 7.5%), HW-based quizzes 15%, Paper video 10%, and Peer review 20% across four activities. Each homework is followed by a 10-minute oral quiz in which students explain their design decisions. Students also record a 10-15 minute paper video.
The same page describes lecture recordings captured by cameras at the back of the room, accessible by logging into the course Canvas site, and notes they may be reused in other Stanford courses. That is distinct from the public Video links on the course schedule. The honor code section says to write your own solutions and not to look up solutions or existing implementations of the assignments online; it permits AI-generated code on homework and the project provided the student can validate and explain it, verified through oral examinations, and bars AI from writing project reports. Self-studiers should note that the repositories are starters with failing stubs, not worked solutions, and that staff-issued OpenRouter credits and Google Cloud credits described in the lecture slides are enrollment benefits.
Deadlines on the course page are Pacific time and marked subject to change, with any changes announced in class and posted to the page. No claim is made here that every lecture has a public video or that all assignment handouts are free of enrollment requirements beyond what the repositories and slide PDFs show.
References
- CS 329Z: Engineering AI Agents - Stanford course home and class schedulecs329z.stanford.edu
- CS 329Z Logistics - grading, coursework and policiescs329z.stanford.edu
- cs329z GitHub organization - public repository listgithub.com
- CS329Z Assignment 1: Building an Agent Harness - starter repositorygithub.com
- CS329Z Assignment 2: Building an Evaluation Task - starter repositorygithub.com
- CS329Z Lecture 01 slides: Intro to Agentic Systems (PDF)web.stanford.edu
- CS329Z Lecture 05 slides: Frameworks and Orchestration (PDF)web.stanford.edu
- CS329Z Lecture 12 slides: Data Selection and Quality (PDF)web.stanford.edu