
AI Agents Don't Follow Your Rules. Here's a Compiler That Makes Them.
The Problem Nobody Talks About You've set up Claude Code with a careful CLAUDE.md. Your Cursor rules are dialed in. Your AGENTS.md covers Codex. Maybe you've got copilot-instructions.md too. They all say roughly the same thing: Run npm test before committing Use TypeScript strict mode Don't use any — use unknown Follow conventional commits But they're separate files. Maintained separately. And they drift. We cloned 50 of the highest-profile open-source repos — grafana, django, vue, prisma, supabase, airflow, tokio — and ran a governance audit on each one. 46% had drift. Rules that reference commands that don't exist. Configs older than the governance they were compiled from. AI agents being told to run lint scripts that were removed months ago. The Fix: Treat It As a Compilation Problem crag is a CLI that takes one governance.md and compiles it to every AI tool format your team uses. npx @whitehatd/crag That single command: Analyzes your repo — reads CI workflows, package.json, tsconfi
Continue reading on Dev.to
Opens in a new tab



