Enforcing CLAUDE.md rules linters can't check by compiling them into yes/no tests
feursteiner · reddit · 2026-11-22
A Reddit thread on making Claude Code honor CLAUDE.md rules no linter can check, e.g. 'new checkout flows must reuse the existing pricing policy' — Claude sometimes quietly redoes discount logic with nothing forbidden imported. The author's approach (open-source agentests): keep each rule as one plain sentence, have Claude compile it into a few narrow yes/no questions, and run them via a pre-commit hook. Asks how others handle it: hooks, a review subagent, or reading every diff.
More from coding & agent
- Dev workflow: architecture first, code last — why AI coding still eats your time — AryHHAry · 2026-11-22
- Neon's pleasant style can rub off on fable and other orchestrating models — olcan · 2026-11-22
- coss ui, the React component library behind Cal.com, wins indie developer endorsement — yihui_indie · 2026-11-22
- Frontier coding LLMs can now port native C/C++ from machine code, yet few public cases — gandamu_ml · 2026-11-22
- Open-source cc-switcher runs multiple Claude accounts side by side on Windows and macOS — zeeg · 2026-11-22
- Building 'knowledge factories': curator agent judgment and HITL are the hard parts — hwchase17 · 2026-11-22