AGI Hunt· therealdanvega·· 8 天前精选AI 评分68
给 AI 编码 agent 定架构规则:AGENTS.md 只是请求,ArchUnit 测试才能让构建失败
AGENTS.md 只是请求,ArchUnit 才是检查:给 agent 立规矩要写进构建
AI 导读
therealdanvega 提出给 AI 编码 agent 定架构规则要写进构建,AGENTS.md 里写的「控制器不得直接依赖仓储层」只是请求,agent 大多数时候会遵守但不保证。
推荐理由
把架构约束从 AGENTS.md 的散文改写成会让构建失败的 ArchUnit 测试,是一种可直接迁移的强制手段。
来源:AGI Hunt · agihunt.info