I stopped writing rules in CLAUDE.md and started writing hooks. The rules finally hold.

For months my CLAUDE.md held a list of rules. Never run the deploy script. Do not touch the migrations folder. Always run the formatter before committing. They worked most of the time, which is the problem. Most of the time is not a guarantee, and the misses showed up right when I had stopped watching. Everything in CLAUDE.md is a suggestion. It goes into the prompt, and on a good day the model complies. On a long session with a full context window, a couple of subagents deep, that rule is one more line com

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论