LangChain 的开源软件工程代理工厂 Brace 2026-07-19 8.6 KB 187.9K 303 ☆ 收藏 𝕏 文章列表 LangChain 推出一套开源软件工程代理工具,包括本地编码的 dcode、云端自动作业的 OpenSWE、代码审查的 OpenSWE Review 以及维护文档的 OpenWiki。这些工具基于 Deep Agents 构建,支持开源模型和 LangSmith 追踪,旨在让团队在不同工作流中拥有对 AI 代理的完全控制与定制能力。 LangChain开源代码审查OpenSWEdcodeAI代理 # LangChain’s Open-Source Software Factory **作者**: Brace **日期**: 2026-07-18T19:13:42.000Z **来源**: [https://x.com/BraceSproul/status/2078558852921094253](https://x.com/BraceSproul/status/2078558852921094253) ---  At LangChain, we interact with software engineering agents from the terminal, Slack, Linear, GitHub, and CI. Different workflows need different agents. Local coding should feel interactive. Cloud coding should run in the background and open PRs. Code review should be careful and tied into GitHub. Repo documentation should stay close to the code and give agents useful context. We’ve built that system as a set of open-source tools: - dcode for local coding - OpenSWE for cloud coding agents - OpenSWE Review for automated code review - OpenWiki for repo documentation and agent memory Together, they form our software engineering agent factory. This is the shape we use internally: local agents, cloud agents, review agents, repo memory, open models, and LangSmith traces across the system. ## Why open source matters Software engineering agents read code, edit code, review PRs, and participate in engineering workflows. Teams need to understand and control how those agents behave. That is hard if the agent is a closed system. You are limited to the provider’s supported models, review behavior, integrations, and observability. We want agents that teams can inspect, modify, and adapt to their own workflows, including their own review standards, repo conventions, model choices, and internal tools. That is why these projects are open source. ## The pieces dcode dcode is the local coding agent we use from the terminal.  The CLI and agent runtime run locally on your machine, while the model can still be hosted. That lets developers work directly against a local repo while using large coding models that may not run on a laptop. We use dcode for interactive coding work: exploring a repo, making edits, and running implementation tasks from the terminal. OpenSWE OpenSWE is the cloud coding agent we use when work should happen in the background. A lot of engineering work starts outside the terminal. A bug comes up in Slack. A feature request lives in Linear. A repo maintenance task needs to run on a schedule. OpenSWE can be triggered from Slack, Linear, GitHub, or the web UI. It runs in the cloud, works on the code, and can open a pull request when it is done. Internally, this has become one of our most-used agent workflows. In just the last week, we triggered OpenSWE almost 1,000 times from Slack alone, not including Linear or UI usage. Because OpenSWE runs in a sandbox in the cloud, we can run many coding agents in parallel without tying up anyone’s local environment. OpenSWE also includes a UI for inspecting agent work, chatting with the cloud coding agent, configuring models and prompts, viewing analytics, and setting up scheduled automations.  OpenSWE Review OpenSWE Review connects to GitHub and automatically reviews pull requests. It identifies bugs and regressions before code merges.  It also performs extremely well on external benchmarks. On the Offline Code Review Benchmark, OpenSWE Review scores 47% when running GPT-5.5 with medium reasoning. That places it #6 overall and #1 among open-source code review agents. Code review is highly organization-specific. Teams differ in what issues they care about, how they phrase comments, and when they want an agent to block, suggest, or stay quiet. OpenSWE Review gives us a strong default that we can adapt by changing prompts, workflows, model choices, and repo-specific behavior. OpenWiki OpenWiki generates and maintains codebase documentation using Google’s Open Knowledge Format. The docs live with the code and are kept up to date automatically via a GitHub action. That gives both humans and agents a maintained knowledge layer for the repo, without needing to worry about maintaining the docs (OpenWiki does that for you!).  If an agent has to rediscover the architecture of a repo every time it runs, it wastes tokens and misses important conventions. OpenWiki gives coding and review agents a better starting point, while supporting an auto-update flow so you never need to think about maintaining your agent docs again. ## The stack Deep Agents dcode, OpenSWE, OpenSWE Review, and OpenWiki are all built on Deep Agents. The workflows are different, but they share the same underlying agent foundation. That gives us a consistent way to build, customize, and improve agents across local coding, cloud coding, review, and documentation. Sharing code, resources and engineering know-how is made even easier when they’re all built in the same framework. Open models We’ve optimized the stack for open models. SWE agents get expensive quickly when they run across an organization. Local coding, cloud coding, code review, documentation, scheduled maintenance, and repeated repo analysis all use tokens. Open models give us more control over cost (the key reason), latency, and deployment choices. They also let teams route different tasks to different models, experiment with open coding models, or even fine-tune models for their own repos and workflows. LangSmith We trace these agents with LangSmith. When an agent opens a PR, leaves a review comment, or fails on a task, traces show the files it inspected, the context it loaded, the tool calls it made, and where it got stuck. Those traces help us debug individual runs and improve the system over time. We use them to identify failure modes, improve prompts, compare models, and feed higher-quality examples into continual improvement workflows with LangSmith Engine. Engine for coding agents is a new workflow we’ve been experimenting with, where we have Engine run over coding agent traces, identify shortfalls, and propose optimizations. Since every coding agent run from every employee at LangChain is traced, Engine is able to do identify and preform these optimizations from birds eye view, instead of individually on specific engineers traces. ## Build your own software engineering agent factory This stack reflects how we use software engineering agents at LangChain, but the pieces are open source so other teams can adapt them, and retain full control over your own software factory. You can start small: 1. Use dcode for local coding. 2. Add OpenSWE to run coding agents from Slack, Linear, GitHub, or the web UI. 3. Turn on OpenSWE Review for automated PR review. 4. Use OpenWiki to maintain repo knowledge for humans and agents. 5. Connect traces to LangSmith if you want observability and improvement loops across the system. The goal is not to move every engineering workflow into one agent interface. It is to put the right agents in the places where engineering work already happens, with enough control to make them fit your repos, models, and team conventions. ## 相关链接 - [Brace](https://x.com/BraceSproul) - [@BraceSproul](https://x.com/BraceSproul) - [99K](https://x.com/BraceSproul/status/2078558852921094253/analytics) - [dcode](https://docs.langchain.com/oss/python/deepagents/code/overview) - [OpenSWE](https://github.com/langchain-ai/open-swe) - [OpenSWE Review](https://github.com/langchain-ai/open-swe/blob/main/agent/reviewer.py) - [OpenWiki](https://github.com/langchain-ai/openwiki) - [dcode](https://docs.langchain.com/oss/python/deepagents/code/overview) - [OpenSWE](https://github.com/langchain-ai/open-swe) - [Offline Code Review Benchmark](https://codereview.withmartian.com/?mode=offline) - [OpenWiki](https://github.com/langchain-ai/openwiki) - [Open Knowledge Format](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md) - [LangSmith](https://langsmith.com/) - [LangSmith Engine](https://www.langchain.com/langsmith/engine) - [dcode](https://docs.langchain.com/oss/python/deepagents/code/overview) - [OpenSWE](https://github.com/langchain-ai/open-swe) - [OpenWiki](https://github.com/langchain-ai/openwiki) - [Upgrade to Premium](https://x.com/i/premium_sign_up) - [3:13 AM · Jul 19, 2026](https://x.com/BraceSproul/status/2078558852921094253) - [99.1K Views](https://x.com/BraceSproul/status/2078558852921094253/analytics) - [View quotes](https://x.com/BraceSproul/status/2078558852921094253/quotes) --- *导出时间: 2026/7/19 14:43:33* --- ## 中文翻译 # LangChain 的开源软件工厂 **作者**: Brace **日期**: 2026-07-18T19:13:42.000Z **来源**: [https://x.com/BraceSproul/status/2078558852921094253](https://x.com/BraceSproul/status/2078558852921094253) ---  在 LangChain,我们通过终端、Slack、Linear、GitHub 和 CI 与软件工程智能体交互。 不同的工作流需要不同的智能体。本地编码应该具有交互性。云端编码应该在后台运行并创建 PR。代码审查应该严谨并与 GitHub 紧密集成。仓库文档应该紧贴代码,并为智能体提供有用的上下文。 我们将该系统构建为一套开源工具: - dcode:用于本地编码 - OpenSWE:用于云端编码智能体 - OpenSWE Review:用于自动代码审查 - OpenWiki:用于仓库文档和智能体记忆 它们共同构成了我们的软件工程智能体工厂。这是我们内部使用的形态:本地智能体、云端智能体、审查智能体、仓库记忆、开放模型,以及贯穿整个系统的 LangSmith 追踪。 ## 为什么开源很重要 软件工程智能体读取代码、编辑代码、审查 PR 并参与工程工作流。团队需要理解并控制这些智能体的行为。 如果智能体是一个封闭系统,这很难做到。你受限于提供商支持的模型、审查行为、集成和可观测性。 我们希望团队可以检查、修改并调整智能体以适应自己的工作流,包括他们自己的审查标准、仓库约定、模型选择和内部工具。这就是这些项目开源的原因。 ## 组成部分 dcode dcode 是我们在终端中使用的本地编码智能体。  CLI(命令行界面)和智能体运行时在您的本地机器上运行,而模型仍然可以托管在云端。这让开发者能够直接针对本地仓库工作,同时使用那些可能无法在笔记本电脑上运行的大型编码模型。 我们使用 dcode 进行交互式编码工作:探索仓库、进行编辑,以及从终端执行实现任务。 OpenSWE OpenSWE 是我们在工作应该在后台进行时使用的云端编码智能体。 许多工程工作开始于终端之外。Slack 上出现了一个错误报告。Linear 中存在一个功能请求。一项仓库维护任务需要按计划运行。 OpenSWE 可以由 Slack、Linear、GitHub 或 Web UI 触发。它在云端运行,处理代码,并在完成后可以打开一个拉取请求(PR)。 在内部,这已成为我们最常用的智能体工作流之一。仅在上周,我们就仅从 Slack 触发了 OpenSWE 近 1,000 次,还不包括在 Linear 或 UI 中的使用。 因为 OpenSWE 在云端的沙盒中运行,我们可以并行运行许多编码智能体,而不会占用任何人的本地环境。 OpenSWE 还包含一个用于检查智能体工作、与云端编码智能体聊天、配置模型和提示词、查看分析以及设置计划自动化的 UI。  OpenSWE Review OpenSWE Review 连接到 GitHub 并自动审查拉取请求。它在代码合并之前识别错误和回归。  它在外部基准测试中也表现极其出色。在 Offline Code Review Benchmark(离线代码审查基准)上,OpenSWE Review 在运行具有中等推理能力的 GPT-5.5 时得分 47%。这使其在总排名中位列第 6,在开源代码审查智能体中位列第 1。 代码审查具有高度的组织特异性。团队在关注哪些问题、如何撰写评论,以及希望智能体何时阻止、建议或保持沉默方面各不相同。 OpenSWE Review 为我们提供了一个强大的默认配置,我们可以通过更改提示词、工作流、模型选择和特定于仓库的行为来调整它。 OpenWiki OpenWiki 使用 Google 的 Open Knowledge Format(开放知识格式)生成和维护代码库文档。 文档与代码共存,并通过 GitHub action 自动保持更新。这为人类和智能体都提供了一个维护良好的仓库知识层,而无需担心维护文档的问题(OpenWiki 会为您代劳!)。  如果智能体每次运行时都必须重新发现仓库的架构,它会浪费 Token 并错过重要的约定。OpenWiki 为编码和审查智能体提供了一个更好的起点,同时支持自动更新流程,因此您无需再考虑维护您的智能体文档。 ## 技术栈 Deep Agents(深度智能体) dcode、OpenSWE、OpenSWE Review 和 OpenWiki 都是基于 Deep Agents 构建的。 工作流不同,但它们共享相同的基础智能体框架。这为我们提供了一种在本地编码、云端编码、审查和文档之间构建、定制和改进智能体的一致方法。当它们都构建在同一个框架中时,共享代码、资源和工程知识变得更加容易。 Open models(开放模型) 我们针对开放模型优化了技术栈。 当 SWE(软件工程)智能体在整个组织中运行时,成本会迅速上升。本地编码、云端编码、代码审查、文档、计划维护和重复的仓库分析都消耗 Token。 开放模型让我们能更好地控制成本(主要原因)、延迟和部署选择。它们还允许团队将不同的任务路由到不同的模型,尝试开放的编码模型,甚至针对自己的仓库和工作流微调模型。 LangSmith 我们使用 LangSmith 追踪这些智能体。 当智能体打开 PR、留下审查评论或在任务上失败时,追踪会显示它检查的文件、加载的上下文、进行的工具调用以及它卡住的地方。 这些追踪帮助我们调试单个运行并随时间改进系统。我们使用它们来识别故障模式、改进提示词、比较模型,并使用 LangSmith Engine 将更高质量的示例输入到持续改进的工作流中。 用于编码智能体的 Engine 是我们一直在试验的一个新工作流,我们让 Engine 运行在编码智能体的追踪之上,识别缺陷并提出优化建议。由于 LangChain 每位员工的每一次编码智能体运行都被追踪,Engine 能够从全局视角(鸟瞰图)识别并执行这些优化,而不是单独针对特定工程师的追踪进行。 ## 构建您自己的软件工程智能体工厂 这个技术栈反映了我们在 LangChain 使用软件工程智能体的方式,但这些组成部分是开源的,因此其他团队可以调整它们,并保留对您自己的软件工厂的完全控制。 您可以从小处着手: 1. 使用 dcode 进行本地编码。 2. 添加 OpenSWE 以从 Slack、Linear、GitHub 或 Web UI 运行编码智能体。 3. 开启 OpenSWE Review 进行自动 PR 审查。 4. 使用 OpenWiki 为人类和智能体维护仓库知识。 5. 如果您希望在整个系统中具有可观测性和改进循环,请将追踪连接到 LangSmith。 目标不是将每个工程工作流都转移到一个智能体界面中。而是将正确的智能体放置在工程工作已经发生的地方,并提供足够的控制,使其适应您的仓库、模型和团队约定。 ## 相关链接 - [Brace](https://x.com/BraceSproul) - [@BraceSproul](https://x.com/BraceSproul) - [99K](https://x.com/BraceSproul/status/2078558852921094253/analytics) - [dcode](https://docs.langchain.com/oss/python/deepagents/code/overview) - [OpenSWE](https://github.com/langchain-ai/open-swe) - [OpenSWE Review](https://github.com/langchain-ai/open-swe/blob/main/agent/reviewer.py) - [OpenWiki](https://github.com/langchain-ai/openwiki) - [dcode](https://docs.langchain.com/oss/python/deepagents/code/overview) - [OpenSWE](https://github.com/langchain-ai/open-swe) - [Offline Code Review Benchmark](https://codereview.withmartian.com/?mode=offline) - [OpenWiki](https://github.com/langchain-ai/openwiki) - [Open Knowledge Format](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md) - [LangSmith](https://langsmith.com/) - [LangSmith Engine](https://www.langchain.com/langsmith/engine) - [dcode](https://docs.langchain.com/oss/python/deepagents/code/overview) - [OpenSWE](https://github.com/langchain-ai/open-swe) - [OpenWiki](https://github.com/langchain-ai/openwiki) - [Upgrade to Premium](https://x.com/i/premium_sign_up) - [3:13 AM · Jul 19, 2026](https://x.com/BraceSproul/status/2078558852921094253) - [99.1K Views](https://x.com/BraceSproul/status/2078558852921094253/analytics) - [View quotes](https://x.com/BraceSproul/status/2078558852921094253/quotes) --- *导出时间: 2026/7/19 14:43:33*
多 多 Agent 协作终极解:实测 YC 开源新作 Agent Relay,让 Claude Code 和 Codex 直接对话 YC 2026 秋季营创业公司 Agent Workforce 发布开源项目 Agent Relay,解决多个 AI Agent(如 Claude Code、Codex、Cursor)各自运行在独立终端、互不相通、需要人工复制粘贴的问题。作者以一个 slugify 函数的编写与审查任务进行实测:通过带时限的临时房间(Relay Connect)建立连接,让 Claude Code 写代码、Codex 负责审查,两轮自动沟通后完成 40 个测试用例并全部跑通,全程无需人工中转。文章详细记录了安装、连接、审批配置、常见报错等步骤,并讨论了 Token 消耗、人工检查位置和权限风险等顾虑,还提出了多工具串联的开发流程设想。 技术 › Agent 龙海 2026-10-25 Agent RelayClaude CodeCodex多Agent协作YC开源代码审查实测教程工具与效率
扒 扒了市场上6254个插件,梳理出我常用的50+效率插件 作者从插件市场6254个插件中筛选整理出50+实用插件,覆盖DeepSeek Harness(DSH)生态。文章按功能分为三大类:上下文与记忆(如billion-context压缩、hindsight长期记忆)、界面与主题(Codex风格UI、桌宠、皮肤主题)、任务与开发(子代理、任务看板、Git图、代码审查、多智能体协作等),每个插件附下载量、一句话简介和GitHub仓库链接,方便读者按需查找安装。 技术 › Harness Engineering 苏茶 2026-10-21 DeepSeek插件Agent效率工具上下文压缩记忆管理多智能体代码审查开发者工具开源
逆 逆向工程:如何用最危险的仓库和Opus 5.5免费获取任何东西(完整课程) 本文介绍逆向工程工具REA(Reverse Engineer Anything),它能通过AI代理分析任何应用,从二进制层面理解功能实现。文章涵盖REA的安装、使用、可分析的应用类型(桌面、网站、游戏、APK等),并探讨了逆向工程的合法性,通过清洁室设计和历史案例说明其合规性。REA开源且免费,已获10万+星标。 技术 › 工具与效率 codila 2026-10-14 逆向工程REAAI代理开源清洁室设计法律教程Claude CodeCodex免费软件
H How we built LangChain's Paid Media Agent LangChain 分享了其付费媒体 Agent 的构建经验。该 Agent 运行在 Slack 中,每周整合广告平台数据与业务管道数据,自动生成分析报告并提出优化建议。核心设计理念是将 Agent 视为知识工作者:为其提供配备沙箱、软件、业务文档的工作空间;用代码处理计算和规则以保证一致性,用模型专注判断与建议;围绕完整工作流设计,包括提案、人工审批与验证环节。借助 Deep Agents 作为 Agent harness 和 LangSmith 沙箱,六个月内付费媒体贡献了 20% 的营销管道,CPL 下降 30%,报告工作流成本降低 40 倍、速度提升 13 倍。项目已开源。 技术 › Agent LangChain 2026-09-15 LangChainAgentDeep AgentsLangSmith付费媒体营销自动化沙箱上下文工程开源GTM
O Open Memory, Own the Intelligence 本文探讨了AI Agent开发中开放Harness与记忆所有权的重要性。作者引用Harrison Chase的观点——'不拥有Harness就不拥有记忆',并区分了Memory(从上下文窗口记录的事实,如用户偏好、仓库知识)和Intelligence(利用这些事实让会话更智能的机制)。文章详细介绍了Mem0的方案:通过custom_instructions和infer=False控制记忆提取,用语义+BM25+实体搜索进行检索,并借助Dream实现记忆合并、替代与综合。作者主张将记忆层置于Harness之外,存储于SQL、向量数据库和实体存储中,从而实现跨Harness的记忆与智能的可移植性,即使前沿实验室的循环保持封闭。 技术 › Agent mem0 2026-09-15 Mem0AgentMemoryHarnessLLM开源可移植性LangChainClaude Code
A Agentic Code Quality 本文探讨了在AI代理大规模生成代码的背景下,如何通过约束和验证机制(如质量门禁)来保证软件质量。作者认为,传统的代码审查方式已无法应对海量代码,因此需要将质量检查嵌入到代理的运行环境、工具链和操作系统中。文章详细介绍了多种约束形式,包括单元测试、属性测试、变异测试等,并讨论了自主性、信任、反馈循环和扩展性等关键问题。最后,作者强调人类注意力应集中在最复杂的问题上,而自动化检查应承担大部分质量保障工作。 技术 › Harness Engineering Addy Osmani 2026-08-12 AI代理代码质量质量门禁约束验证自动化测试代码审查软件工程生产就绪信任
T The $1.2M Agent Engineering skill is now open source. Here it is. 本文基于Anthropic对40万次真实编码会话的研究,揭示了高效使用AI代理的关键:人类负责规划,AI负责执行。文章指出,领域专家通过单一指令能获得更完整的任务结果,而代理的复杂任务完成能力每七个月翻倍。作者详细介绍了Anthropic开源的长期运行代理框架,包括Default-FAIL验证、独立评估器和会话间状态保存等核心设计,并对比了SWE-agent与Agentless方法,强调复杂性与任务匹配的重要性。最后,文章重新定义了工程师的角色:从编写代码转向设计代理环境、分解任务和验证结果。 技术 › Agent Sprytix 2026-08-12 Agent EngineeringClaude CodeHarness Engineering开源AnthropicAI代理任务规划状态管理验证机制工程师角色
C Can software factories actually work? 本文探讨了软件工厂(software factories)的概念及其可行性。文章指出,随着AI代理编写代码的速度超过人类审查能力,软件工厂应运而生,旨在通过自动化流水线实现代码的标准化交付。然而,HumanLayer CEO Dex Horthy 的系列文章《Why Software Factories Fail》引发了广泛讨论,他认为由于模型训练中缺乏对代码可维护性的评估,完全无人干预的“暗灯”软件工厂难以规模化。文章分析了软件工厂的现状、争议点,并指出其核心问题在于将“决定构建什么”与“构建”分离,建议代理需要更深入的问题上下文才能做出更好的架构决策。 技术 › Agent PostHog 2026-08-12 软件工厂AI代理代码审查Harness EngineeringLLM自动化可维护性PostHogDevOps技术趋势
D Deep Agents vs LangChain vs LangGraph 本文对比了构建AI智能体的三个开源框架层级:Deep Agents、LangChain和LangGraph。它们提供不同层级的控制力与抽象程度:Deep Agents是开箱即用的智能体套件,专注于最佳上下文工程实践;LangChain是高度可定制的智能体核心抽象与集成框架;LangGraph则是基于图的底层运行时,适用于混合确定性与动态步骤的复杂工作流。三者完全可组合,开发者可在自主性与确定性之间灵活平衡。 技术 › Agent Sydney Runkle 2026-08-07 AIAgentLangChainLangGraphDeep Agents智能体框架上下文工程工作流开源
A An Agentic IDE that builds itself bb是一个开源的代理IDE,具有强大的扩展性,允许用户通过简单的提示定制界面和功能,如任务管理、代码审查、音乐制作等,支持多种主流编码代理。 技术 › Agent Sawyer Hood 2026-08-06 IDE开源扩展性CodexClaude Code自定义插件代码审查
从 从零构建邮件AI助手实战指南 介绍了LangChain官方开源的Agents From Scratch教程,手把手教开发者从零构建能处理邮件的AI助手。教程涵盖基础搭建、评估体系、记忆机制四个阶段,提供完整代码和测试方案,适合初学者快速上手。 技术 › Agent 孤桜ETH 2026-07-29 LangChain邮件助手AI实战教程开源PythonGmail API
加 加速进步:利用 AI 代理和 Speedrun 文化优化技术演进 文章探讨了 AI 技术如何推动科学进步,通过借鉴游戏速通社区的协作机制,设计了一场 Hackathon 实验。实验验证了人类与 AI 编码代理结合的效率,并提出了通过开放源代码和竞争激励来加速创新的理念。 技术 › LLM Mihura 2026-07-23 AI代理速通Hackathon协作技术演进优化开源实验编程创新