Warp 用 Claude 构建自我改进 Agent 的实践
How Warp builds self-improving agents on Claude
做 Agent 的同学必看,Warp 这套基于文件技能的双层自我改进循环非常可落地,直接照着搭就能让 Agent 越用越准,赶紧试试。
How Warp builds self-improving agents on Claude
Warp 如何在 Claude 上构建自我改进的代理
Learn how Warp devised a simple development pattern that anyone can use to create self-improving agents.
了解 Warp 如何设计出一种简单的开发模式,任何人都可以用它来创建自我改进的代理。
- Category
- Agents
- Product
- Claude Platform
- Date
- August 26, 2026
- Reading time
- 5
- min
- Share
- Copy link
- https://claude.com/blog/how-warp-builds-self-improving-agents-on-claude
- Author(s)
- Michael Segner
- 类别
- 代理
- 产品
- Claude 平台
- 日期
- 2026年8月26日
- 阅读时间
- 5
- 分钟
- 分享
- 复制链接
- https://claude.com/blog/how-warp-builds-self-improving-agents-on-claude
- 作者
- Michael Segner
In our series, , we highlight how startups are transforming their industries with AI. In this article, we share how Warp turned stateless user feedback into a self-improvement loop for its agents.
在我们的系列文章中,我们重点介绍了初创公司如何利用 AI 改变其行业。在这篇文章中,我们分享了 Warp 如何将无状态的用户反馈转化为其代理的自我改进循环。
| The quick pitch | |
|---|---|
| Name | Warp |
| Founded | 2020 |
| Founders | Zach Lloyd (CEO) |
| Stack | Rust, Golang, GitHub Actions, internal agent orchestration platform (Oz), Claude Platform |
| Growth | $73M raised. 800K monthly developers build on Warp. 56% of the Fortune 500 uses Warp. 10M Claude Code sessions run inside Warp to date, 400K+ per week. 40M total Warp Agent conversations. |
| 快速概览 | |
|---|---|
| 名称 | Warp |
| 成立时间 | 2020年 |
| 创始人 | Zach Lloyd(CEO) |
| 技术栈 | Rust、Golang、GitHub Actions、内部代理编排平台(Oz)、Claude 平台 |
| 增长 | 已筹集 7300 万美元。每月有 80 万开发者在 Warp 上构建。财富 500 强中有 56% 使用 Warp。至今在 Warp 内运行了 1000 万次 Claude Code 会话,每周超过 40 万次。Warp Agent 对话总数达 4000 万次。 |
Agents need to handle recurring tasks reliably and effectively. A first-pass prompt that gets 80% of the task correct can create a noisy and annoying experience for the user. Warp learned this the hard way, and used this to inform its product strategy, creating an improved experience for nearly 1M developers worldwide.
代理需要可靠且有效地处理重复性任务。一个首次提示就能完成 80% 任务的代理,可能会给用户带来嘈杂且令人烦恼的体验。Warp 深刻体会到了这一点,并以此为依据制定了产品策略,为全球近 100 万开发者创造了改进的体验。
Warp, the AI-powered terminal and agentic development environment, builds on the Claude Platform. The team ran into this “noisy experience” problem with their internal code review agent. Engineers complained that their agent made unhelpful comments and produced low-quality output.
Warp,这个基于 AI 的终端和代理开发环境,构建在 Claude 平台之上。团队在内部代码审查代理中遇到了这个“嘈杂体验”问题。工程师抱怨他们的代理发表了无用的评论,并产生了低质量的输出。
The team initially tried stopgap solutions, like manually rewriting the prompt based on observed code review failures. This made output more usable but didn’t scale. Improving context files like AGENTS.md also helped, but was far from a complete fix.
团队最初尝试了临时解决方案,比如根据观察到的代码审查失败手动重写提示。这使输出更加可用,但无法扩展。改进像 AGENTS.md 这样的上下文文件也有帮助,但远非完整的解决方案。
Ultimately, they realized, the real issue was that feedback to an agent, no matter what its purpose, typically disappears when the session ends, removing critical context from the agentic loop. Their solution: an Agent Skills-based framework to create self-improving agents where feedback compounds over time to continually refine and enhance agent output.
最终,他们意识到,真正的问题在于,无论反馈的目的是什么,对代理的反馈通常在会话结束时消失,从而从代理循环中移除了关键上下文。他们的解决方案:基于 Agent Skills 的框架,用于创建自我改进的代理,其中反馈随时间累积,不断优化和增强代理输出。
Read on to learn how they built it with skills on top of the Claude Platform.
继续阅读,了解他们如何在 Claude 平台上使用技能构建这一系统。
Agent self-improvement loops built on skills
基于技能的代理自我改进循环
The central technique is a self-improvement loop using skills, which are file based encodings of knowledge that keep instructions out of the raw prompt. Warp evolved a self-improving agent architecture consisting of two skills, with human feedback in between.
核心技术是使用技能的自我改进循环,技能是基于文件的编码知识,将指令从原始提示中分离出来。Warp 发展了一种自我改进的代理架构,由两个技能组成,并在其间加入人工反馈。
The inner/base skill holds the functional domain knowledge and instructions. For example, when a PR is opened, Warp’s code agent executes using that base skill and context to produce its review.
内部/基础技能持有功能领域知识和指令。例如,当PR被打开时,Warp的代码代理使用该基础技能和上下文来执行审查。
Human feedback on agent output is a critical component for the self-improvement loop. For code review this could be something as simple as a thumbs up, but the more explicit the better.
人类对代理输出的反馈是自我改进循环的关键组成部分。对于代码审查,这可能简单到只是一个点赞,但越明确越好。
“A human could affirm, ‘this was a good, useful comment’,” Warp founder Zach Lloyd explains, “But the human could also give detailed reasons why a code review wasn't good. Specifics like ‘you suggested renaming this variable, but our code base convention is this type of global variable uses this particular naming context’ tell the agent how to do it right next time.”
“人类可以确认,‘这是一个好的、有用的评论’,”Warp创始人Zach Lloyd解释说,“但人类也可以给出详细的理由,说明为什么代码审查不好。像‘你建议重命名这个变量,但我们的代码库约定是这种类型的全局变量使用这种特定的命名上下文’这样的具体细节,会告诉代理下次如何做对。”
The outer/improver skill functions as an observer agent that runs on a schedule rather than per-task. It pulls the accumulated human feedback, compares what the agent suggested against how humans responded, and proposes a small, focused edit to the base skill.
外部/改进技能作为一个观察者代理运行,它按计划执行而不是按任务执行。它收集累积的人类反馈,比较代理的建议与人类的回应,并提出对基础技能的小而集中的编辑。
Because skills are plain files, agents are extremely good at updating them. These updates, which are reviewable, approvable, and mergeable, can flow through a normal PR/code-review workflow; once merged, the next run of the inner skill inherits the improvement.
由于技能是普通文件,代理非常擅长更新它们。这些更新是可审查、可批准、可合并的,可以通过正常的PR/代码审查流程流动;一旦合并,内部技能的下一次运行就会继承改进。
Warp now runs this pattern across its entire open-source repo, with separate spec-writing, review, and triage agents, each carrying their own self-improvement loop.
Warp现在在其整个开源仓库中运行这种模式,有独立的规格编写、审查和分诊代理,每个代理都有自己的自我改进循环。
“File-based skills are a way of encoding knowledge for agents without putting that knowledge directly in the prompt, as something the agent can simply look up in the course of doing its job,” says Zach. “The framework is really simple actually: there's the base domain-specific skill and then there's the improver skill that refines that domain-specific skill. This simplicity is the beauty of this approach.”
“基于文件的技能是一种为代理编码知识的方式,而不需要将知识直接放在提示中,作为代理在工作过程中可以简单查找的东西,”Zach说。“这个框架实际上非常简单:有基础的领域特定技能,然后有改进技能来完善该领域特定技能。这种简单性正是这种方法的美妙之处。”
How to write self-improving skills for agents
如何为代理编写自我改进的技能
Here are some of the Warp team’s tried and true tips for writing self-improving skills for agentic loops:
以下是Warp团队为代理循环编写自我改进技能的一些经过验证的技巧:
- Write principles, not rules. "Construct the skill as though you're instructing a smart person, not like you're programming a computer,” Zach says. “Including direction in the skill like ’Look for repeated code’ provides better direction than exhaustive variable naming rules.”
- Explain the why. Providing the rationale behind the rule lets the agent reason about the problem instead of following rigid instructions, again allowing for better generalization.
- Make feedback effortless to give. Capture it where people already work, like by commenting directly on a PR or issue. Also, make this happen automatically, with no extra submission step. “Low friction is what keeps signal flowing,” Zach notes. “If you make it too hard you're not going to get the feedback and you're not going to be able to improve the skill."
- Keep skills small and use progressive disclosure. A good skill file isn't large; it references resource files and scripts rather than dumping everything into context at once.
- Feedback quality > volume, but volume helps. A small amount of detailed, domain-specific feedback from a senior engineer can be worth more than lots of cursory feedback because binary thumbs up/down doesn't say why. “You can get really good signal even from a relatively small sample size if it's very detailed feedback from a person around domain specific knowledge that the agent otherwise would have no way of getting,” Zach continues. “That said, the bigger the corpus of quality signal, the better. At Warp we're using a loop to manage our whole open source repo. We have hundreds of people contributing and we're doing thousands of code reviews.”
- Put extra effort into the improver skill. Putting extra effort into writing the improver skill (the observer agent) pays off beyond the immediate agent loop, because improver skills are very reusable across different use cases. “Outside of the domain specific knowledge component, this is a fairly reusable mechanism—the improver skill for a code review agent is not that different from the improver skill for any other agent.”
- 写原则,而不是规则。“构建技能时,要像指导一个聪明人一样,而不是像编程计算机一样,”Zach说。“在技能中包含像‘寻找重复代码’这样的指导,比详尽的变量命名规则提供更好的方向。”
- 解释为什么。提供规则背后的理由,让代理能够推理问题而不是遵循僵化的指令,再次允许更好的泛化。
- 让反馈变得轻松易给。在人们已经工作的地方捕获反馈,比如直接在PR或issue上评论。同时,让这个过程自动化,无需额外的提交步骤。扎克指出:“低摩擦是保持信号流动的关键。如果你让反馈变得太难,你就得不到反馈,也就无法改进技能。”
- 保持技能小而精,并使用渐进式披露。一个好的技能文件并不大;它引用资源文件和脚本,而不是一次性将所有内容塞入上下文。
- 反馈质量优于数量,但数量也有帮助。来自资深工程师的少量、详细、领域特定的反馈可能比大量粗略的反馈更有价值,因为简单的点赞或点踩并不能说明原因。扎克继续说:“即使样本量相对较小,如果反馈来自对领域特定知识有深入了解的人,而这些知识是代理无法自行获取的,你也能获得非常好的信号。话虽如此,高质量信号的语料库越大越好。在Warp,我们使用一个循环来管理整个开源仓库。我们有数百人贡献代码,我们进行了数千次代码审查。”
- 在改进者技能上投入更多精力。在编写改进者技能(观察者代理)上投入额外精力,其回报超出了即时代理循环,因为改进者技能在不同用例中具有很高的可复用性。“除了领域特定知识组件外,这是一个相当可复用的机制——代码审查代理的改进者技能与其他任何代理的改进者技能差别不大。”
The loop in action: Warp’s issue triage agent
循环实践:Warp的问题分类代理
Warp’s issue triage agent demonstrates the self-improving agent skills framework. The pattern is triggered whenever someone files a new GitHub issue: a GitHub Action fires an agent that analyzes the issue for complexity and feasibility, assigns labels, and suggests a direction for the fix. That triage agent runs off an inner skill file holding the domain knowledge about what each label means and how to research the codebase before acting.
Warp的问题分类代理展示了自我改进代理技能框架。每当有人提交新的GitHub issue时,该模式就会被触发:一个GitHub Action启动一个代理,分析该issue的复杂性和可行性,分配标签,并建议修复方向。该分类代理基于一个内部技能文件运行,该文件包含关于每个标签含义以及如何在行动前研究代码库的领域知识。
On a sample issue, the first-stage inner skill did a solid job but missed one label, ready to spec, which signals that a contributor can start building product and technical specs against the issue. A maintainer on the Warp team caught the gap and left feedback directly on the issue, exactly where the work was happening. Critically, he explained both what he expected and why he expected it: actionable feedback easy for the agent to absorb later.
在一个示例问题中,第一阶段的内在技能表现扎实,但遗漏了一个标签“ready to spec”,该标签表明贡献者可以开始针对该问题制定产品和技术规格。Warp 团队的一名维护者发现了这一遗漏,并直接在问题上留下了反馈,正好是在工作发生的地方。关键的是,他既解释了他期望什么,也解释了为什么他期望如此:这种可操作的反馈便于代理后续吸收。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力