如果你使用 Claude Code,这篇论文应该是必读材料。 Wavestone AI Lab 分析了 11 个编程智能体的源代码,包括 Claude Code 和 Codex。 他们发现,能力出色的编程智能体内部都有相同的 7 个构建模块。 智能体 = 模型 + 运行框架 以下是这 7 个部分,从最简单到最先进: → 1. 循环:从基本的 while 循环,到可完整回放的执行过程。 → 2. LLM 层:从单一提示词模板,到针对多个提供商的专用配置。 → 3. 工具:从基本的 bash 命令,到按需加载的数十种带类型定义的工具。 → 4. 记忆:从原始对话历史,到跨会话保留的持久化笔记。 → 5. 安全:从简单的步数限制,到规则、审核模型和沙箱隔离。 → 6. 编排:管理一个智能体,或创建子智能体来处理并行任务。 → 7. 扩展:Skills、MCP,以及其他扩展智能体能力的方式。 想读这篇论文?从这几页开始: 📄 第 4 页:完整的 7 部分架构。 📄 第 12 页:三种智能体循环,包括 Claude Code 和 Codex。 📄 第 67 页:构建更好的运行框架的 18 条设计规则。 📄 第 71 页:一个涵盖全部 7 个组件的 90 行运行框架。 大多数人忽略的关键在这里: 模型获得了关注。 但运行框架决定了智能体如何使用工具、管理上下文、处理故障、记住进度并完成任务。 这就是为什么换用更聪明的模型,并不会自动解决智能体不可靠的问题。 如果你想构建生产级 AI 智能体,就要学习运行框架,而不只是模型。 https://x.com/AnnatarXBT/status/2113634548378374458/video/1
看原文
this paper should be required reading if you use Claude Code. Wavestone AI Lab analyzed the source code of 11 coding agents, including Claude Code and Codex. they found the same 7 building blocks inside capable coding agents. agent = model + harness here are the 7 parts, from simplest to most advanced: → 1. Loop: A basic while loop to fully replayable execution runs. → 2. LLM layer: A single prompt template to multiple provider-specific configurations. → 3. Tools: Basic bash commands to dozens of typed tools loaded on demand. → 4. Memory: Raw conversation history to persistent notes that survive across sessions. → 5. Safety: A simple step limit to rules, reviewer models, and sandboxing. → 6. Orchestration: Managing one agent or spawning sub-agents to handle parallel tasks. → 7. Extensions: Skills, MCP, and other ways to extend what the agent can do. want to read the paper? start with these pages: 📄 Page 4: The complete 7-part architecture. 📄 Page 12: Three types of agent loops, including Claude Code and Codex. 📄 Page 67: 18 design rules for building better harnesses. 📄 Page 71: A 90-line harness that covers all 7 components. here's the insight most people miss: the model gets the attention. but the harness determines how the agent uses tools, manages context, handles failures, remembers progress, and completes the task. that's why switching to a smarter model doesn't automatically fix an unreliable agent. if you want to build production-grade AI agents, learn the harness, not just the model. https://x.com/AnnatarXBT/status/2113634548378374458/video/1