跳到主内容
@wquguru
精选88Latent Space(RSS)技巧与观点

Agent Harness 演进:从提示工程到模型内化能力

The Evolution of the Agent Harness

原文
发到 X
推荐理由

深度解析了Agent从提示工程到能力内化的演进逻辑,提供了理解当前Agent效能跃迁的系统性视角,适合所有从事Agent架构设计的工程师阅读。

Sometime around Christmas 2025, AI engineers noticed a change in agents. They started to work! It’s hard to pin down exactly why. Maybe we finally had holiday downtime to try the newest agents with the newest models. Maybe the models had crossed some capability threshold. Maybe the wrappers around the models had matured.

2025年圣诞节前后,AI工程师们注意到智能体(agents)发生了变化。它们开始工作了!很难确切地说清原因。也许我们终于有了假期空闲时间,可以用最新模型测试最新的智能体。也许模型跨越了某种能力阈值。也许围绕模型的封装层已经成熟。

What I’ll argue in this post is that it was the confluence of the last two. The model and the harness improving together and then their curves of improvement crossing at the right moment. And that dynamic helps to explain what comes next: models keep absorbing the harness into their weights, engineers keep deleting what got absorbed, and what remains is a harness for human attention rather than for the model.

我在本文中主张的观点是,这是后两者的交汇。模型和封装层同步改进,随后它们的提升曲线在恰当时刻相交。这种动态有助于解释接下来会发生什么:模型不断将封装层吸收进其权重中,工程师则不断删除已被吸收的部分,最终剩下的是一个服务于人类注意力的封装层,而非服务于模型的封装层。

Lukasz Kaiser, one of the people who invented the Transformer, said on “Unsupervised Learning” in June:

Transformer的发明者之一Lukasz Kaiser在6月接受“Unsupervised Learning”采访时说道:

“The change last winter, last Christmas — it’s a little hard to pin down. I mean, the harness changed and a little post-training changed and then new pre-trained models came… but it felt like a big jump which is not that easy to pin down what did it.”

“去年冬天、去年圣诞节的转变——有点难以确切归因。我的意思是,封装层变了,少量后训练(post-training)也变了,然后新的预训练模型出现了……但感觉像是一次巨大的飞跃,而很难说清究竟是什么导致了它。”

The answer to “What happened?” isn’t solely in the model weights. It’s in the system that grew up around the weights.

对于“发生了什么?”这个问题的答案并不 solely 在于模型权重。它存在于围绕权重成长起来的系统中。

The answer is in the agent harness.

答案在于智能体封装层(agent harness)。

Think back to November 2022, when ChatGPT was the most advanced AI tool. The only capability at its disposal was next-token prediction and some Reinforcement Learning from Human Feedback (RLHF) that allowed it to act like a helpful assistant. No tools, no search, and no reasoning.

回想一下2022年11月,当时ChatGPT是最先进的AI工具。它唯一具备的能力是下一个词元预测(next-token prediction),以及允许它表现得像一个有用助手的来自人类反馈的强化学习(RLHF)。没有工具,没有搜索,也没有推理能力。

The original ChatGPT was confined to its training data and the prompt you sent it. No more, no less. It was a brain in a vat.

最初的ChatGPT被限制在其训练数据和用户发送的提示词之内。不多也不少。它是一个置于缸中的大脑(brain in a vat)。

The agent harness is a way for the LLM to break free from that confinement and interact with real digital information space.

智能体封装层是大语言模型(LLM)摆脱这种束缚并与真实数字信息空间互动的方式。

What a Harness Actually Is

封装层究竟是什么

An agent harness is everything besides the model weights that makes the agent work. The environment, tools, context and guardrails that surround the model. Without the harness the model is a brain in a vat. It can take an epistemic action, but needs the harness to actuate that decision in real digital space.

智能体封装层是指除了模型权重之外,使智能体运作的一切事物。包括围绕模型的运行环境、工具、上下文和护栏(guardrails)。没有封装层,模型只是一个置于缸中的大脑。它可以采取认知行动(epistemic action),但需要封装层才能在真实的数字空间中执行该决策。

The harness is like giving the mind of the model a body. With the harness, the model can perceive (context), act (tools), persist information (memory and compaction), and enforce its boundaries (permissions and guardrails).

封装层就像赋予了模型心智以躯体。有了封装层,模型可以感知(上下文)、行动(工具)、持久化信息(记忆和压缩),并强制执行其边界(权限和护栏)。

Harness 1.0: The Past, “The Bolt-On Era”

封装层 1.0:过去,“外挂时代”

Two curves run through the path of model / harness evolution. What the harness asks of the model, and what the model can deliver in practice.

两条曲线贯穿了模型/控制框架的演进路径。一条是控制框架对模型的要求,另一条是模型在实际中能够交付的能力。

The gap between these two curves is equal to the effectiveness of an agent, and the closing of that gap is what I’ll argue led to the tangible improvement in agents that Lukasz Kaiser referenced.

这两条曲线之间的差距等于智能体(agent)的有效性,而缩小这一差距正是卢卡什·凯泽(Lukasz Kaiser)所提及的智能体取得实质性提升的原因所在。

Here’s how the gap closes, in stages:

以下是该差距逐步缩小的过程:

  • ReAct, “The Harness on Paper” (October 2022): ReAct is a prompting technique to get models to reason through prompting. It’s the agentic loop on paper, external to the model weights. It defines the idea of an “agent loop” where a model reasons -> acts -> observes -> repeats. Again, the ReAct loop exists only as a prompting method. Prompting is the only reasoning method that exists at this time and no one calls it a “harness.” Toolformer (Meta, Feb. 2023), that same winter, hints that tool use could be trained in rather than prompted. It’s a bit like Alan Turing’s idea of the computer before it was instantiated in a physical substrate. A powerful idea that is only later made manifest. (ReAct predates ChatGPT by a month — October 2022 vs. November 2022). Both the curves are near zero at this point. The gap is small because we are just getting started.
  • AutoGPT/BabyAGI, “Premature Autonomy” (Spring 2023): With AutoGPT/BabyAGI, the harness curve sprints ahead of the model capability curve. Both hand the model full autonomy, asking the model to act as an “autonomous employee,” but the models at this point are still little more than brittle next-token predictors. A loop doesn’t add capability to a model. A loop amplifies the capability a model has, and below some threshold the loop amplifies errors rather than reliability. Consider the power of compounding in the negative: 95% reliability per-step over a 20-step task results in a ~36% average success rate. The harness hands the model an assignment it has no realistic chance of completing. This is where the gap is at its widest and the next 18 months are a reaction and attempt to close that gap.
  • Cursor/Copilot, “Retreat to Human in the Loop” (2023 - 2024): The first AI-powered IDEs recognize the failure-mode of giving the model too much autonomy. They close the gap by pulling the harness curve down below the model curve. Don’t give the model the loop directly; give the human the loop and empower the human to orchestrate the loop while the model speeds the human up. The first version of Devin tries to hand the autonomy back to the model. A test from the team at Answer.AI shows that is still premature, with a ~15% success rate. It’s evidence that the move from the IDEs to retreat from full autonomy is not cowardly, but the correct move. However, while the prevailing tactic is to pull the harness down below the model, models continue to improve. Near the end of 2024, with the introduction of o1 — the first reasoning model — for the first time the gap inverts and we begin to see the first signs of a model capability overhang.
  • Claude Code, “The Curves Cross” (February 2025): The inversion at the end of 2024 sets up an opportunity that someone has to seize: if the model is now ahead of the harness, then a harness intentionally riding the brakes of the model is leaving capability on the table. Claude Code is the first coding agent built to seize that opportunity. It abandons the IDE for the terminal, gives the model bash and file read/write access, and replaces the need for human approval on every change with permission rules. The model is handed the loop again, and this time it understands the assignment. Boris Cherny and team build Claude Code with the next model’s capabilities in mind, not the current one. It is such a hit not because it’s the first product to give the model autonomy, but because it’s the first product to do so at the right time. That time is the crossover point where the model has gotten reliable enough to succeed with autonomy. Claude Code grows to roughly $1B ARR within six months, all because Anthropic seized the opportunity available when the curves begin to meet.
  • ReAct,《纸面上的控制框架》(2022年10月):ReAct 是一种提示技术,旨在让模型通过提示进行推理。它是存在于模型权重之外的“纸面”智能体循环。它定义了“智能体循环”的概念,即模型推理 -> 行动 -> 观察 -> 重复。同样,ReAct 循环仅作为一种提示方法存在。此时唯一的推理方法是提示,且无人称之为“控制框架”。Toolformer(Meta,2023年2月),在那个冬天暗示工具使用可以通过训练而非提示来实现。这有点像阿兰·图灵在计算机尚未在物理载体上实例化之前的构想。这是一个强大的理念,但直到后来才得以显现。(ReAct 比 ChatGPT 早一个月——2022年10月对比2022年11月)。此时两条曲线都接近于零。差距很小,因为我们才刚刚开始。
  • AutoGPT/BabyAGI,《过早的自主性》(2023年春季):随着 AutoGPT/BabyAGI 的出现,控制框架曲线超越了模型能力曲线。两者都将完全自主权交给模型,要求模型充当“自主员工”,但此时的模型不过是一些脆弱的下一个词预测器。循环并不会为模型增加能力。循环会放大模型已有的能力,而在某些阈值之下,循环放大的将是错误而非可靠性。考虑复利的负面效应:每一步95%的可靠性,在一个20步的任务中,平均成功率仅为约36%。控制框架交给模型一个它实际上无法完成的任务。正是在这里,差距达到最大,接下来的18个月是对此的反应以及试图缩小这一差距的努力。
  • Cursor/Copilot,“回归人在回路”(2023 - 2024):首批 AI 驱动的 IDE 认识到赋予模型过多自主权会导致失败模式。它们通过将“控制曲线”拉低至“模型能力曲线”之下来弥补这一差距。不要直接将控制权交给模型;而是将控制权交给人类,并赋能人类来编排整个流程,同时让模型加速人类的执行。Devin 的第一个版本试图将自主权重新交还给模型。Answer.AI 团队的一项测试表明这为时过早,成功率仅为 ~15%。这证明了从 IDE 退回到放弃完全自主权的举措并非出于怯懦,而是正确的选择。然而,尽管主流策略是将控制曲线拉低到模型曲线之下,模型的能力仍在不断提升。2024 年底,随着首个推理模型 o1 的推出,差距首次发生逆转,我们开始看到模型能力过剩的首批迹象。
  • Claude Code,“曲线交叉”(2025 年 2 月):2024 年底发生的逆转创造了一个必须有人抓住的机会:如果模型现在领先于控制机制,那么故意踩住模型刹车的控制方式就会浪费其能力。Claude Code 是首个旨在抓住这一机会构建的代码智能体。它放弃了 IDE,转而使用终端,赋予模型 bash 和文件读写权限,并用权限规则取代了对每次变更的人工审批。模型再次获得了控制权,而这次它理解了任务要求。Boris Cherny 及其团队在构建 Claude Code 时考虑的是下一代模型的能力,而非当前模型。它的成功并非因为它是首个赋予模型自主权的产品,而是因为它是首个在正确时机这样做的产品。这个时机就是模型变得足够可靠、能够胜任自主任务的交叉点。Claude Code 在六个月内实现了约 10 亿美元的年度经常性收入(ARR),这一切都归功于 Anthropic 抓住了曲线开始交汇时的机遇。

What happens next is that the curves don’t just meet, they begin to braid together.

接下来会发生的是,这两条曲线不仅会相遇,还会开始交织在一起。

Harness 2.0: The Present, “The Co-Training Era”

Harness 2.0:当下,“协同训练时代”

Today the harness matters, and in a way we can measure. Harness-Bench ran the same model over the same 106 tasks in different harnesses, and scores ranged from 52.4 to 76.2: a 23.8-point spread with zero change to the model. Half the agent is the harness.

如今,控制机制的重要性显而易见且可被量化。Harness-Bench 在不同的控制机制下对同一模型执行相同的 106 项任务,得分范围从 52.4 到 76.2 不等:在模型零变化的情况下,分差高达 23.8 分。智能体的一半在于控制机制。

OpenAI achieved a similar result on ARC-AGI-3 with harness changes. Adding only retained reasoning and compaction, GPT-5.6 Sol’s ARC-AGI-3 score tripled from 13.3% to 38.3%.

OpenAI 在 ARC-AGI-3 上通过 harness 变更取得了类似的结果。仅添加保留推理和压缩,GPT-5.6 Sol 的 ARC-AGI-3 得分从 13.3% 飙升至 38.3%。

What’s happening under the hood is that Reinforcement Learning (RL) has moved inside the harness. From OpenAI’s codex-1 release announcement in May 2025: “codex-1 was trained using reinforcement learning on real-world coding tasks in a variety of environments.”

底层发生的变化是强化学习(RL)已移入 harness 内部。来自 OpenAI 2025 年 5 月 codex-1 发布公告:“codex-1 是在多种环境中使用强化学习针对真实世界编码任务进行训练的。”

The two curves join and start to braid as one unified system.

这两条曲线汇合,开始交织成一个统一的系统。

This is the dream of Toolformer manifesting in reality. Rather than a tool prompted from the outside, now tool calling is trained from within the environment of the model.

这正是 Toolformer 的梦想在现实中显现。工具调用不再是从外部提示的工具,而是从模型环境内部进行训练。

Then, as the models are trained in the environment of the harness, they start to absorb the harness capabilities into the model weights, learning how to auto-compact with knowledge of their own context window, for example.

随后,随着模型在 harness 环境中接受训练,它们开始将 harness 的能力吸收进模型权重中,例如学会如何结合对自身上下文窗口的知识进行自动压缩。

GPT-5.1-Codex-Max launch:

GPT-5.1-Codex-Max 发布:

“The first model natively trained to operate across multiple context windows through compaction.”

“首个原生支持通过压缩跨多个上下文窗口运行的模型。”

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近