ratchet turns CLAUDE.md and AGENTS.md guidance into enforceable agent rules
ratchet is an open-source Rust binary that lints agent guidance files (CLAUDE.md, AGENTS.md, SKILL.md) for enforceable claims, stale paths and contradictions. It then enforces those rules as tool-call hooks across nine harnesses, including Claude Code, Codex…
Why it matters
Rules like "only use pnpm" get enforced deterministically instead of relying on the model to follow prose.
What happened
1 min readratchet is an open-source Rust binary that lints agent guidance files (CLAUDE.md, AGENTS.md, SKILL.md) for enforceable claims, stale paths and contradictions. It then enforces those rules as tool-call hooks across nine harnesses, including Claude Code, Codex CLI, Cursor, Gemini CLI and GitHub Copilot CLI.
Our analysis
Separating enforceable rules from prose preferences is the right split, and it builds on the hook systems these harnesses already expose. The latency figures are the author's own benchmarks. It enforces by default, so team repos should start in warn or shadow mode. The suggested install is curl | sh; building from source with cargo is the safer option.