技术实践

OpenAI以Codex和小团队完成大规模软件开发

应用与实践智能体系统Agent 协作Agent Harness编程

概述

2026 年 2 月 OpenAI 工程师 Ryan Lopopolo 发表《Harness engineering: leveraging Codex in an agent-first world》,披露一个小团队用五个月时间让 Codex 产出大约 100 万行代码、1500 个 PR,全程零手写代码,且面向有内部日活用户的真实产品而非实验室 demo。 文章要点(本文引述):Agent 出错时解法不是再跑一次,而是追问「缺了什么能力,如何让它对 Agent 可见且可执行」,把修复编码为自动检查。Humans steer. Agents execute.(人掌舵,Agent 干活)。仓库里的知识是唯一的真相源头(Repository knowledge is the system of record)。 用专用 linter 与 CI 任务机械校验知识库是否最新、交叉链接、结构正确。人的品味只需表达一次,之后每行代码都被持续守护(Human taste is captured once, then enforced continuously on every line of code)。本文作者据此把三个时代划分为 Prompt 时代(重写 Prompt)、Context 时代(补上下文)、Harness 时代(搭环境、写规则、建反馈闭环),并把 Harness 类比为 AI 开发时代的 CI/CD。