Agent 与自动化 4.0 · 优秀 2026-10-24 · 文章

The State of Context Engineering

Drew Breunig 在 AGNTCon 的演讲Context Fails & Fixes是一份上下文工程现状综述:上下文窗口从塞满一切的乐观期(Llama 4 Scout 的千万 token 窗口并未成功,约百万 token 成为实用基准)走到失败模式系统化他归纳四类长上下文失败:上下文污染分心混淆与冲突,并以 Gemini 2.5 技术报告的宝可梦 agent 为例说明污染模型权重里带着 FireRed 的知识,在需要柠檬ade的初代宝可梦里花数小时找冰茶,且任务一旦进待办就无法摆脱结论:harness 构建者的本职是判断何时该确定性何时该概率性

打开原文回到归档

The State of Context Engineering

中文导读

Drew Breunig 在 AGNTCon 的演讲「Context Fails & Fixes」是一份上下文工程现状综述:从 2024 年底「RAG 已死」的乐观期(窗口够大就塞一切)讲起——Llama 4 Scout 的千万 token 窗口并未成为主流,约百万 token 才是实用基准;随后系统梳理长上下文失败模式并命名:context poisoning(污染)、context distraction(分心)、context confusion(混淆)等,并以 Gemini 2.5 技术报告的宝可梦 agent 为例说明训练数据如何污染上下文:权重里带着 FireRed 版「去找茶」的任务知识,在初代宝可梦里花数小时找冰茶,且任务一旦完成待办就难以摆脱结论。结论:构建 harness 的本职是判断何时该确定性(写进代码)、何时该概率性(让模型驱动)。

为什么值得关注

把散落的失败模式命名并系统化,配可查证的一手案例(Gemini 2.5 技术报告)与 O'Reilly 新书背景;对 agent harness 设计者是现成的失败模式检查清单。

关键信息

English Summary

Drew Breunig's AGNTCon talk "Context Fails & Fixes" works as a state-of-context-engineering survey: from the end-2024 "RAG is dead" optimism that a large enough window makes retrieval unnecessary (Llama 4 Scout's 10-million-token window never caught on; about a million tokens became the practical baseline), to codified long-context failure modes including context poisoning, context distraction and context confusion. His running example comes from the Gemini 2.5 technical report's Pokemon agent: weights carrying FireRed-era "find tea" task knowledge poisoned the context when playing the older game, spending hours looking for tea that did not exist there. The closing frame: harness builders must choose when to be deterministic (what goes in code) and when to be probabilistic (when the model drives).

原文摘录 (Excerpts)

The tea task for FireRed was in its weights, so it poisoned its context.
When building intelligent applications, harnesses, and workflows, our job is to choose when to be deterministic (what to put in code) and when to be probabilistic (when to let the model drive).
As model makers target new capabilities, they inadvertently create challenges we, as users and harness builders, must overcome.

Obsidian Notes

  • opencli web read 被拒(Navigation rejected)后,经 curl 抓取页面 HTML 并抽取正文生成(opencli-first fallback)。
  • 中文导读与价值判断锚定条目已有摘要与页面正文摘录;仅引用已核实数字,未补充正文之外的数据。