Stanford CS329Z Lecture 9 Released: Optimizing AI Agents via Prompts vs. Weights

stanfordnlp · x · 2026-11-21

Stanford's CS329Z: Engineering AI Agents course has released Lecture 9, Optimizing AI Agents: Prompts vs. Weights, with slides and video publicly available (taught by Michael Ryan).

The lecture lays out a full framework for agent optimization:

Slides cover conditions for optimization, when to use each strategy, and decision criteria (per the lecture overview: 25 min each on context and weight optimization, plus strategy selection).

Earlier lectures' slides are already public and videos are rolling out; course page, slides, and the YouTube playlist are all freely accessible.

Original post →

More from coding & agent

coding & agent channel →