How-to

Marc Lou 称数月未用 localhost:让 agent 直接在 prod 开发并用 feature flag 隔离

Why we picked it

Marc Lou 这个工作流对独立开发者确实有吸引力:一个人快速验证想法,成本够低。但如果你在团队里写代码、有真实用户,别照搬,本地测试和 code review 还是保命的。看看他的做法再想想自己团队边界在哪,比直接学更有价值。

独立开发者 Marc Lou 发推称自己已数月没用 localhost,工作流是直接让 AI agent 在生产环境上改代码,用 feature flag 把新功能设为仅自己可见,确认没问题后再对用户开放。

Body

具体做法是:agent 改完部署到 prod 后,他自己先在灰度开关后面体验和迭代;发布后还会让 agent 设置每小时或每日的定时提醒去检查日志和数据库,发现异常就修复。他还在 AGENTS.md 里写规则强制 agent 测试所有改动,宣称现在一切都从 prompt 直接到 prod。

转发者 vikingmute 明确表示反对,认为即使线上零用户也不会这样做,指出 Marc Lou 和 levelsio 这类开发者追求的是快速跑通、快速收款,这种宣传对在意工程质量的人有误导性。这条推文引发的争议在于:feature flag 灰度确实能降低风险,但跳过本地环境和完整测试流程,对多人协作、有真实用户的团队并不适用。

Original · Viking

Marc 的暴论:根本不用本地环境了,让 agent 直接在 prod上面改,然后 agent 直接监控线上,用 feature flag 控制只对自己可见,没问题了以后再 toggle 打开。 他和 levelsio 都属于那种狂放派的,这种做法我即使是线上零用户我也不会这么做,我觉得对于规范的技术流程还是要有敬畏心。关于他们的宣传的技术观点,永远都是能快速跑起来 能收到钱 能割一波就完事,对还在认真写代码,在意工程质量的人来说,非常反感。 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📊 6 ⚡

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Marc Lou, AGENTS.md, feature flag, coding assistants.

Source attribution: curated from Viking (@vikingmute).