@Zen_with_AI: 想当 agent engineer?斯坦福这门课值得收藏。 强烈推荐斯坦福的 CS329Z《Engineering AI Agents》,一句话:有志成为 agent engineer 的同学可以看看。 agent 开发正在从调 API …
摘要
推荐斯坦福 CS329Z《Engineering AI Agents》课程,系统覆盖 agent 工程的核心内容:LLM 基础、RAG、工具调用与函数调用、框架编排(DSPy、LangGraph)、评测与可靠性等,标志着 agent 开发正从调 API 的手艺转变为一门正经工程学科。
查看缓存全文
缓存时间: 2026/10/30 21:24
想当 agent engineer?斯坦福这门课值得收藏。
强烈推荐斯坦福的 CS329Z《Engineering AI Agents》,一句话:有志成为 agent engineer 的同学可以看看。
agent 开发正在从调 API 的手艺,变成一门正经工程学科,课程、评测、方法论都在成型。与其在网上东拼西凑,不如跟一套成体系的课走一遍。
Stanford CS329Z | Engineering AI Agents
Source: https://cs329z.stanford.edu/ 1 Wed Sep 23Foundations & LandscapeIntroduction — 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.SlidesReadings:- Zaharia et al. “The Shift from Models to Compound AI Systems.” BAIR Blog (2024).
- Weng. “LLM Powered Autonomous Agents.” Lil’Log (2023).
- Kapoor et al. “AI Agents That Matter.” TMLR (2025).
2 Mon Sep 28LLMs for BuildersLanguage 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.SlidesReadings:- Vaswani et al. “Attention Is All You Need.” NeurIPS (2017).
- Katharopoulos et al. “Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention.” ICML (2020).
- Rajasekaran et al. “Effective Context Engineering for AI Agents.” Anthropic (2025).
2 Wed Sep 30Building BlocksRetrieval-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.SlidesReadings:- Lewis et al. “Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks.” NeurIPS (2020).
- Karpukhin et al. “Dense Passage Retrieval for Open-Domain Question Answering.” EMNLP (2020).
- Khattab & Zaharia. “ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT.” SIGIR (2020).
3 Mon Oct 5Tool Use & Function CallingWhy 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.SlidesReadings:- Schick et al. “Toolformer: Language Models Can Teach Themselves to Use Tools.” NeurIPS (2023).
- Patil et al. “Gorilla: Large Language Model Connected with Massive APIs.” NeurIPS (2024).
- Model Context Protocol Specification, revision 2025-06-18. modelcontextprotocol.io (2025).
3 Wed Oct 7Frameworks & Agent DesignFrameworks & OrchestrationThe 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.SlidesCodeReadings:- Khattab et al. “DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines.” ICLR (2024).
- LangChain. “LangGraph Overview.” LangChain Docs.
- Arena.ai. “HarnessTax: How Much Does the Harness Matter for Coding Agents?” Arena Blog (2026).
4 Mon Oct 12Agent Design Patterns & ScaffoldsWorkflows 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.SlidesReadings:- Yao et al. “ReAct: Synergizing Reasoning and Acting in Language Models.” ICLR (2023).
- Schluntz & Zhang. “Building Effective AI Agents.” Anthropic (2024).
- LangChain. “Context Engineering.” LangChain Blog (2025).
Additional readings- Shinn et al. “Reflexion: Language Agents with Verbal Reinforcement Learning.” NeurIPS (2023).
4 Wed Oct 14Memory & Multi-Agent SystemsAgent Memory ArchitecturesWhy 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.SlidesReadings:- Sumers et al. “Cognitive Architectures for Language Agents.” TMLR (2024).
- Packer et al. “MemGPT: Towards LLMs as Operating Systems.” arXiv (2023).
- Park et al. “Generative Agents: Interactive Simulacra of Human Behavior.” UIST (2023).
5 Mon Oct 19Multi-Agent SystemsWhen 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.SlidesReadings:- Wu et al. “AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation.” COLM (2024).
- Cemri et al. “Why Do Multi-Agent LLM Systems Fail?” NeurIPS Datasets & Benchmarks (2025).
- Kim et al. “Towards a Science of Scaling Agent Systems.” arXiv (2025).
5 Wed Oct 21OptimizationOptimizationWhen 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.SlidesReadings:- Agrawal et al. “GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning.” ICLR (2026).
- Opsahl-Ong et al. “Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programs.” EMNLP (2024).
- Shao et al. “DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models.” arXiv (2024).
6 Mon Oct 26📺 Guest Lecture: Terminal-BenchRyan Marten,Alex ShawRyan 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.SlidesReadings:- Terminal-Bench project site (leaderboard, tasks, and harness).
6 Wed Oct 28Data for Agentic SystemsWhat 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.SlidesReadings:- Shankar. “Data Flywheels for LLM Applications.” (2024).
Additional readings- Tan et al. “Large Language Models for Data Annotation and Synthesis: A Survey.” EMNLP (2024).
7 Mon Nov 2Data Selection & QualityFinding maximally informative data, filtering and selection strategies, tiny-but-targeted benchmarks, annotation practices, quality assessment, and building datasets from agent traces.Readings:- Yang et al. “SWE-smith: Scaling Data for Software Engineering Agents.” NeurIPS D&B (2025).
Additional readings- Zhou et al. “LIMA: Less Is More for Alignment.” NeurIPS (2023).
7 Wed Nov 4Evaluation for Agentic SystemsEvaluation Fundamentals & Benchmark DesignWhy 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:- Zhu et al. “Establishing Best Practices for Building Rigorous Agentic Benchmarks.” (2025).
Additional readings- Press. “How to Build Good Language Modeling Benchmarks.” (2024).
8 Mon Nov 9📺 Fireside Chat with Andrew NgAndrew NgA 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 11LLM-as-Judge & Evaluation InfrastructureThe 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:- Grace et al. “Demystifying Evals for AI Agents.” Anthropic (2026).
- Zheng et al. “Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena.” NeurIPS (2023).
- Ryan et al. “AutoMetrics: Approximate Human Judgements with Automatically Generated Evaluators.” ICLR (2026).
Additional readings- Zhu et al. “AutoLibra: Agent Metric Induction from Open-Ended Human Feedback.” ICLR (2026).
9 Mon Nov 16📺 Guest Lecture: SWE-benchCarlos Jimenez,Alexander WettigCarlos Jimenez and Alexander Wettig (Anthropic), creators of SWE-bench, on the evolution and future of evaluations for coding capabilities and beyond.Readings:- Jimenez et al. “SWE-bench: Can Language Models Resolve Real-World GitHub Issues?” ICLR (2024).
9 Wed Nov 18SafetyAgent Safety & GuardrailsPrivacy 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:- Shao et al. “PrivacyLens: Evaluating Privacy Norm Awareness of LMs in Action.” NeurIPS D&B (2024).
- Zhang & Yang. “Searching for Privacy Risks in LLM Agents via Simulation.” arXiv (2025).
- Li. “Agentic LLMs as Powerful Deanonymizers.” arXiv (2026).
Additional readings- Wen et al. “Contextualized Privacy Defense for LLM Agents.” arXiv (2026).
- OpenAI. “Understanding Prompt Injections: A Frontier Security Challenge.” (2025).
- Anthropic. “Anthropic’s Responsible Scaling Policy.” (2023).
10 Mon Nov 23No Class — Thanksgiving Recess10 Wed Nov 25No Class — Thanksgiving Recess11 Mon Nov 30Coding Agents & Proactive AgentsCoding & Software AgentsHow 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:- Yang et al. “SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering.” NeurIPS (2024).
Additional readings- Anthropic. “Claude Code: Best Practices for Agentic Coding.” (2025).
11 Wed Dec 2Proactive AgentsFrom 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:- Shaikh et al. “Creating General User Models from Computer Use.” UIST (2025).
Additional readings- Shaikh et al. “Learning Next Action Predictors from Human-Computer Interaction.” arXiv (2026).
— Finals Week (Dec 7–11)Open Problems & Final DemosFinal Project Demo DayHeld during the end-quarter examination period. Exact time and location TBA.
相似文章
@komereji12: 斯坦福 Agent 教程,中文版来了! 19 讲课程 + 4 个实践,覆盖 LLM、RAG、工具调用、记忆、多智能体和评测,还支持离线 HTML 阅读。 想知道 AI Agent 到底怎么搭?从这套教程开始
斯坦福 CS329Z《Engineering AI Agents》课程的中文自学教程发布,包含 19 讲课程、4 个实践练习,覆盖 LLM、RAG、工具调用、记忆、多智能体和评测,并支持离线 HTML 阅读。
@Michaelzsguo:Stanford CS329Z: Engineering AI Agents 这门课在 YouTube 上严重被低估了。它手把手带你过了一遍构建自己 AI 智能体所需的一切……
推文推荐斯坦福 CS329Z《工程化 AI 智能体》课程,并附上首讲详细笔记,涵盖智能体循环、Actor 模型到 ReAct 的发展史、harness 的关键作用,以及构建、评估与调试 AI 智能体的核心理念。
@WangNextDoor2: 斯坦福CS146S,有空必须学一遍的AI 编程入门课 https://heyuan110.com/zh/posts/ai/2026-02-24-stanford-cs146s-overview/…
斯坦福大学新开设CS146S课程,系统教授AI编程(Vibe Coding),覆盖LLM原理、Agent架构、MCP等,全部资源免费公开,标志着AI编程成为正式工程学科。
@antiAIvo: 想学会如何用 AI Agent 写代码? 最好的免费教程之一,是斯坦福这门课 CS146S The Modern Software Developer 讲师 Mihail Eric 不是学院派教授 斯坦福 NLP 组出身,做过 Alexa…
推荐斯坦福免费课程 CS146S《The Modern Software Developer》(讲师 Mihail Eric),并介绍配套的开源项目 NamiAgent——一个从零手写 AI Agent 的中文教程,逐步实现工具、权限、上下文、Skills、MCP、子 Agent、记忆等核心能力,附网页端可视化调试。
@Xudong07452910: 最近发现 Stanford Online 把研究生课程 CS329A:Self-Improving AI Agents 的完整课程录像放到 YouTube 了,一共 9 讲。 这门课基本围绕一个问题展开:AI Agent 怎么通过和环境不…
斯坦福大学在 YouTube 上发布了研究生课程 CS329A: Self-Improving AI Agents 的完整录像,共 9 讲,涵盖测试时计算、验证器、强化学习、工具反馈、多步推理等主题,系统梳理了 Agent 自进化方向。