AI Agents:從檢索、叫工具走到 harness 與 coding agent|Stanford CME295 2026 版 第 6 堂
2026 版 CME295 第 6 講從 LLM 的兩個限制出發:知識停在訓練資料、不能做事。前 40 分鐘講檢索(切塊、bi-encoder 撈候選、cross-encoder 重排、NDCG 等指標,以及寫程式時改用 grep),接著講 tool calling 的三步、工具太多時的衝突與 tool selection、MCP,和「固定的東西放 prompt 最前面」才吃得到快取。最後 15 分鐘把 harness 定義成模型以外的一切,帶過 ReAct、compaction、memory,再看 coding agent 的 auto-approval、grep、AGENTS.md、skills 與 subagent。