Welcome!
The shift from monolithic language models to compound AI systems — systems with multiple interacting components including LLMs, retrievers, tools, and optimizers — represents a fundamental change in how AI applications are built for people. This course teaches students how to engineer agentic systems: the full spectrum from simple LLM pipelines to compound AI systems to autonomous agents. Students will learn to pick what types of problems to focus on, decompose problems, select appropriate components, collect and curate data, build evaluations, and reason about the design tradeoffs that arise when building these systems in practice.
Students first build core components (RAG, tool use, agent loops) from scratch, then learn how frameworks like DSPy abstract these patterns. Through two fully applied homework assignments and a quarter-long project, students gain hands-on experience building, optimizing, and evaluating agentic systems.
For more information about coursework, office hours, and logistics, please refer to the Logistics page. You can also view course dates on the Google Calendar.
Class Schedule
Note: the schedule is tentative and subject to change. Classes meet Mondays and Wednesdays, 1:30–2:50 p.m., in Skilling Auditorium. Lecture materials will be linked here as they are released.
| Week | Date | Lecture | Course Material |
|---|---|---|---|
| 1 | Wed Sep 23 | Foundations & Landscape Introduction — What Are Agentic Systems? Course logistics, a brief history of agents, and the anatomy of an agent: LLM core, reasoning, memory, tools, and environment. Compound AI systems and workflows vs. agents, plus the key challenges of reliability, training, safety, and evaluation. | Readings: |
| 2 | Mon Sep 28 | LLMs for Builders Language model internals for agent builders: decoding strategies, transformer attention (including linear and hybrid) and context length, the pretraining-to-post-training pipeline, inference and test-time scaling, structured I/O and constrained decoding, and context engineering. | Readings: |
| 2 | Wed Sep 30 | Building Blocks Retrieval-Augmented Generation (RAG) Why retrieval helps, then the RAG pipeline end to end: indexing (chunking, contextual retrieval, RAPTOR, HNSW), retrievers from BM25 and DPR to hybrid search, reranking, and ColBERT, agentic RAG (Self-RAG, Search-R1), and common failure modes. Plus a course project overview. |
Readings:
|
| 3 | Mon Oct 5 | Tool Use & Function Calling Why LLMs need tools and how they learn to use them: Toolformer, scaling to thousands of APIs with Gorilla and ToolLLM, standard interfaces from REST to function calling to MCP, evaluating tool use with BFCL, ToolBench, and τ-bench, and common failure modes. | Readings: |
| 3 | Wed Oct 7 | Frameworks & Agent Design Frameworks & Orchestration The data, system, and evals pillars of agent engineering, with live demos of DSPy (signatures, modules, optimizers) and LangGraph (state, nodes, edges). A tour of open-source agent harnesses (mini-SWE-agent, OpenHands, Pi), durable orchestration with Temporal, observability tooling, and best practices. | Readings: |
| 4 | Mon Oct 12 | Agent Design Patterns & Scaffolds Workflows vs. agents and the design patterns for each: five composable workflow patterns, reasoning and acting patterns (ReAct, Reflexion, CodeAct, ReWOO), and context-management patterns (event logs, compaction, observation masking, context isolation). Case study of the Pi harness. | Readings: |
| 4 | Wed Oct 14 | Memory & Multi-Agent Systems Agent Memory Architectures Why agents need memory and the four types (working, episodic, semantic, procedural). Four architecture patterns: skill libraries, tiered hierarchies like MemGPT, reflective consolidation, and memory maintenance. Memory benchmarks and open problems in forgetting, privacy, and over-personalization. | Readings: |
| 5 | Mon Oct 19 | Multi-Agent Systems When to use single vs. multi-agent systems and how to build them: orchestration patterns (orchestrator, swarm, hybrid), communication through handoffs, message boards, and the A2A protocol, and coordination infrastructure (task ledgers, shared memory, worktree isolation). Why multi-agent systems fail. | Readings: |
| 5 | Wed Oct 21 | Optimization Optimization When optimization pays off and how to do it: context optimization (bootstrapped few-shot, MIPROv2, OPRO, TextGrad, GEPA), weight optimization (SFT on agent rollouts, RL with PPO and GRPO, on-policy distillation), agents as optimizers (Darwin Gödel Machine, autoresearch), and when to optimize prompts vs. weights. |
Readings:
|
| 6 | Mon Oct 26 | 📺 Guest Lecture: Terminal-Bench Ryan Marten, Alex Shaw Ryan Marten and Alex Shaw (Laude Institute), co-creators of Terminal-Bench, on benchmarking how well AI agents accomplish real-world tasks in a terminal environment. | Readings: |
| 6 | Wed Oct 28 | Data for Agentic Systems What Data Do Agents Need? Traces, demonstrations, and feedback, data for optimization vs. evaluation, data flywheels, synthetic data generation, and collecting data from human-agent interaction. | Readings: |
| 7 | Mon Nov 2 | Data Selection & Quality Finding maximally informative data, filtering and selection strategies, tiny-but-targeted benchmarks, annotation practices, quality assessment, and building datasets from agent traces. |
Readings:
Additional readings |
| 7 | Wed Nov 4 | Evaluation for Agentic Systems Evaluation Fundamentals & Benchmark Design Why evals are hard, the 4-tuple framework (request, environment, stopping criteria, scorer), designing each component, properties of good benchmarks, realistic scaffolding, and reliability dimensions. | Readings: |
| 8 | Mon Nov 9 | 📺 Fireside Chat with Andrew Ng Andrew Ng A fireside chat with Andrew Ng, hosted by Diyi Yang. Professor Ng is the founder of DeepLearning.AI, co-founder of Coursera, founding lead of Google Brain, and a Professor of Computer Science at Stanford. | |
| 8 | Wed Nov 11 | LLM-as-Judge & Evaluation Infrastructure The three grader types, designing judge prompts, known biases, pairwise vs. pointwise evaluation, non-determinism metrics (pass@k vs. pass^k), harness design, and Anthropic's 8-step roadmap. | Readings: |
| 9 | Mon Nov 16 | 📺 Guest Lecture: SWE-bench Carlos Jimenez, Alexander Wettig Carlos Jimenez and Alexander Wettig (Anthropic), creators of SWE-bench, on the evolution and future of evaluations for coding capabilities and beyond. | Readings: |
| 9 | Wed Nov 18 | Safety Agent Safety & Guardrails Privacy risks of tool access, prompt injection (including indirect injection), red-teaming, sandboxing and permission models, output guardrails, liability considerations, responsible deployment, and human-in-the-loop patterns. | Readings: |
| 10 | Mon Nov 23 | No Class — Thanksgiving Recess | |
| 10 | Wed Nov 25 | No Class — Thanksgiving Recess | |
| 11 | Mon Nov 30 | Coding Agents & Proactive Agents Coding & Software Agents How coding agents work end to end: the SWE-agent, Claude Code, and OpenHands architectures, scaffolds as design decisions, SWE-bench and the 4-tuple framework in practice, and the future of software development with agents. | Readings: |
| 11 | Wed Dec 2 | Proactive Agents From reactive to proactive agents: General User Models (GUM), Next Action Prediction, open-source proactive personal agents, privacy and trust implications, and when agents should initiate vs. wait (mixed initiative). | Readings: |
| — | Finals Week (Dec 7–11) | Open Problems & Final Demos Final Project Demo Day Held during the end-quarter examination period. Exact time and location TBA. |
Deadlines
All times are Pacific. Deadlines are subject to change; any changes will be announced in class and posted here.
| Week | Deadline | Date | Time |
|---|---|---|---|
| 3 | HW1 Released | Mon Oct 5 | — |
| 3 | Project Proposal Due | Fri Oct 9 | 11:59 p.m. |
| 6 | HW2 Released | Mon Oct 26 | — |
| 6 | HW1 Due | Fri Oct 30 | 11:59 p.m. |
| 7 | Midpoint Demo Video Due | Wed Nov 4 | 11:59 p.m. |
| 7 | Midway Report Due | Fri Nov 6 | 11:59 p.m. |
| 8 | Paper Video Due (10–15 min) | Fri Nov 13 | 11:59 p.m. |
| 9 | HW2 Due | Fri Nov 20 | 11:59 p.m. |
| 11 | Paper Video Peer Reviews Due (2 videos) | Mon Nov 30 | 11:59 p.m. |
| Finals | Final Report Due & Final System Demo | Dec 7–11 | TBA |
Sponsors
We are grateful to our sponsors for their generous support of CS 329Z.






