LangChain 的开源软件工程代理工厂 ✍ Brace🕐 2026-07-19📦 8.6 KB 🟢 已读 𝕏 文章列表 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*
从 从零构建邮件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协作技术演进优化开源实验编程创新
自 自动驾驶公司:Replit如何通过AI代理实现自我运营 Replit通过引入AI代理实现了公司运营模式的变革。工程师代码输出增长近三倍,代码审查时间保持稳定,质量指标提升。代理系统处理生产事故、代码审查、数据分析等任务,形成自动驾驶公司。员工专注于战略决策,AI执行具体步骤,显著提升生产力和效率。 技术 › Agent ✍ Amjad Masad🕐 2026-07-17 ReplitAI代理自动驾驶公司生产力提升代码审查自我学习自动化企业转型技术变革
腾 腾讯开源 AI Agent 运行时系统 TencentDB Agent Memory 文章深度解析了腾讯开源的 TencentDB Agent Memory 系统。不同于市面上的“向量数据库+RAG”方案,该系统旨在解决长任务中的“上下文退化”问题。其核心创新在于短期压缩(Offload 机制)与长期记忆(四层流水线)的结合,通过三层回溯、任务图动态压缩及结构化记忆提取,有效管理了 Agent 的上下文窗口与记忆生命周期。 技术 › Agent ✍ huangserva🕐 2026-05-22 腾讯开源Agent记忆系统LangChain架构设计上下文管理AI工程化
A AI代理内存痛点终于被解决?GBrain + Hermes/OpenClaw真实反馈 作者分享了AI代理工具Hermes和OpenClaw在长期记忆方面的痛点,并介绍了YC总裁Garry Tan开源的GBrain。GBrain作为一个“外挂大脑”,基于Postgres和向量技术,解决了AI代理容易遗忘的问题,实现了跨会话的长期记忆和知识库管理,被视为2026年个人AI生产力的重要突破。 技术 › Agent ✍ loveabit🕐 2026-05-03 AI代理GBrainHermesOpenClawLLM知识管理开源生产力长期记忆RAG
W Warp 开源并推出 Oz AI 代码审查平台 Warp 终端于 2026 年 4 月 28 日正式开源(AGPL/MIT),并引入 AI 助手 Oz 作为第一线代码审查者。该项目构建了一个独特的 Agent 协作循环,由人类编写规格,AI 负责实现和审查。Oz 能自动分类 Issue、审查 PR,甚至可以免费为开源贡献者实现代码。该架构结合了 Rust、CRDT 及 GPU 加速技术,标志着 AI 辅助开发的新模式。 技术 › DevOps ✍ AlphaSignal AI🕐 2026-04-30 Warp开源AI编程代码审查RustOzAgentOpenAI工具
6 69个最佳开源AI仓库推荐(2026年4月) 文章精选了69个经过实战验证、维护活跃的开源AI仓库,旨在替代昂贵的API订阅。内容涵盖完整的AI技术栈,包括本地大模型推理、RAG知识库构建、AI智能体框架、提示词与评估、模型微调、工具链及部署等十大领域,为开发者、研究人员和独立黑客提供免费的生产级AI工具清单。 技术 › 工具与效率 ✍ self.dll🕐 2026-04-29 开源AI工具LLMAgentRAG模型微调OllamaLangChain本地部署资源合集
A Agent Harness 与记忆的重要性 文章探讨了 Agent Harnesses 成为构建 Agent 主导方式的现状,以及其与记忆的紧密联系。作者指出,闭源的 Harness 会导致用户失去对 Agent 记忆的控制权,从而形成严重的供应商锁定。为了构建个性化和具有粘性的 Agent 体验,文章主张 Harness 和记忆应当是开放的,确保用户拥有自己的数据。 技术 › Hermes ✍ Harrison Chase🕐 2026-04-17 AgentMemoryLangChainClaudeOpenAI架构锁定开源Context
你 你的安全带,你的记忆 文章由 LangChain 创始人 Harrison Chase 撰写,指出代理框架(安全带)已成为构建智能体的主流方式且不会消失。核心观点在于:框架与代理的记忆紧密相连。若使用封闭框架或专有 API,开发者将失去对记忆的控制权,导致严重的供应商锁定效应。文章强调记忆对于个性化体验和数据飞 wheel 的重要性,呼吁开发者使用开源、模型无关的开放框架,以真正拥有并控制属于用户的长期记忆数据。 技术 › Agent ✍ Harrison Chase🕐 2026-04-12 Agent架构开源LangChain内存管理供应商锁定模型无关性技术观点
G GStack 深度拆解:YC CEO 的 AI Agent 工厂 本文深入拆解了 YC CEO Garry Tan 开源的项目 GStack。该项目提出了一种基于多角色的 AI 编程工作流,通过 23 个专用 Agent(如 CEO、工程师、QA、安全官)协同工作,将开发者从“写代码的人”转变为“管团队的人”。文章详细介绍了 GStack 的 Sprint 流程、真实浏览器测试、并行开发能力以及安全护栏机制,展示了其如何通过自动化代码审查、测试和部署,实现个人生产力的极大提升。 技术 › Agent ✍ Yanhua🕐 2026-04-03 AI编程DevOps自动化测试开源工作流生产力工具ClaudeGitHub代码审查
6 6种架构模式+60%质量提升:Harness开源项目落地实践 文章介绍了开发者 revfactory 开源的 Claude Code 插件 'Harness',该工具将 Harness Engineering 概念转化为实际可用的协作架构生成器。它内置了 Pipeline、Fan-out/Fan-in 等 6 种协作模式和 5 套团队模板,利用 Progressive Disclosure 技术解决上下文问题。A/B 测试显示,使用该工具在 15 个软件工程任务中实现了 60% 的质量提升和 100% 的胜率,标志着多 Agent 协作从概念讨论迈向了工具化落地。 技术 › Harness Engineering ✍ Jason Zhu🕐 2026-04-01 AgentClaude Code开源架构模式A/B测试自动化代码审查多Agent协作技能构建软件工程
超 超强剧本Skill开源:一键出灵感、IP二创剧本、分镜表 作者开源了一个IP影视二创剧本方向及分镜表灵感生成器,能自动生成创作灵感、IP二创剧本及分镜表,并支持一键写入飞书多维表格,解决短视频创作从0到1的难题。 技术 › Skill ✍ AI求道者Siri🕐 2026-07-30 剧本创作IP二创分镜表开源飞书AI技能短视频自动化创意生成