AI Agents: From Retrieval and Tool Calls to the Harness and Coding Agents | Stanford CME295 2026 Edition Lecture 6
Lecture 6 of the 2026 CME295 starts from two limits of LLMs: their knowledge stops at the training data, and they cannot act. The first 40 minutes cover retrieval (chunking, bi-encoder candidate retrieval, cross-encoder re-ranking, metrics such as NDCG, and why coding uses grep instead). Next come the three steps of tool calling, conflicts between tools and tool selection, MCP, and why fixed content must go at the front of the prompt to hit the cache. The last 15 minutes define the harness as everything except the model, pass through ReAct, compaction and memory, and then look at coding agents: auto-approval, grep, AGENTS.md, skills and subagents.