技巧

rauchg 分享 Agent 全流程发代码工作流:功能开关+推送验证+指标监控

精选理由

rauchg 演示了一套不用 localhost 的发版流程:Agent 写 feature-gated 代码,push 时自动过安全和证明检查,上线后盯指标。Marc Lou 补充了他一个月只在生产环境自测的做法,连查日志都让 Agent 定时提醒。写 AGENTS.md 的开发者可以直接抄这套规则。

Vercel CEO Guillermo Rauch 提出一种 Agent 交付代码的三段式流程:Agent 先写带 feature flag 的功能门控代码,推送阶段由验证门把关(包括 proof checking 和 security audits),上线后由 Agent 持续监控指标。他给出可用命令:vercel flags、vercel metrics、vercel deploy,全部在 Vercel CLI 中即可跑通整条链路。

正文

开发者 Marc Lou 在引用中补充了自己的实践:已一个月没用 localhost,而是让 AI 把新功能只对生产环境中的自己可见,确认可用后再放给用户,并让 Agent 设置每小时/每日提醒去查日志和数据库。他的 AGENTS.md 中还写入了强制测试规则,使代码从 prompt 直接进入生产环境。

这条工作流的核心是把安全发布机制(feature flags、验证门、监控)交给 Agent 编排,开发者只做评估决策。对使用 Vercel 部署的独立开发者和团队来说,这相当于把 localhost 开发环节整个移除了。

原文 · Guillermo Rauch

This is how agents will ship all code. → Agent writes feature-gated code → Verification gates on push (proof checking, security audits) → Agent monitors metrics You can live the future today with Vercel CLI: 𝚟𝚎𝚛𝚌𝚎𝚕 𝚏𝚕𝚊𝚐𝚜, 𝚟𝚎𝚛𝚌𝚎𝚕 𝚖𝚎𝚝𝚛𝚒𝚌𝚜, 𝚟𝚎𝚛𝚌𝚎𝚕 𝚍𝚎𝚙𝚕𝚘𝚢. Marc Lou @marclou I haven't touched localhost in month. I ask AI to make the feature only visible to me in production, so I can assess and iterate. If it's good, I release it to users, and ask the agent to set hourly/daily reminders to check logs and database to fix any issues. My AGENTS·md also has rules to force the agent to test everything. Now AI is so good, everything goes straight from prompt to prod. 🔗 View Quoted Tweet📊 39 ⚡

产业坐标与信源核验

本条情报归属 AITOP「技巧」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Vercel、AGENTS.md、feature flags、智能体,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「Guillermo Rauch」(@rauchg),经 AITOP 多维评分管线结构化提炼。