别让旧规则文件打架
Leftover Rules Files Confuse Grok
要点
- Grok 会读残留规则文件,例如 ~/.claude/Claude.md,你可能完全不知道。
- 多套规则同时生效时,行为会自相矛盾,看起来像模型抽风。
- 加载哪份文件往往没有日志,出问题先查规则文件再怪模型。
- 在 Claude、Codex、Grok 之间统一一份真相来源,不要各写一份互相打架。
- 换工具后把旧目录里的规则清掉或显式引用,避免静默继承。
原帖开头
Agents read all kinds of left over rule files. For example, grok reads ~/.claude/Claude.md. If you are not aware of this, it can lead to strange contradictions and confusions.







