跳到正文
AGI Hunt· feursteiner·· 1 小时前AI 评分63

Claude Code 如何用是非题测试检查 linter 无法发现的规范

让 Claude 守住 linter 查不了的规则:把模糊规范编译成是非题测试

AI 导读

一种名为 agentests 的开源方案可将 CLAUDE.md 中的模糊规则编译为若干是或否校验问题,并由 pre-commit hook 执行。该方法用于发现重写折扣逻辑等没有违禁 import、无法被 linter 察觉的违规改动。原文链接:https://agihunt.info/p/1a2016b82008f29752987ae0ace

来源:AGI Hunt · agihunt.info