Get the daily emailDaily email
  1. Home
  2. Agents
  3. This story

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…

Published Read the original
ratchet turns CLAUDE.md and AGENTS.md guidance into enforceable agent rules

Why it matters

Rules like "only use pnpm" get enforced deterministically instead of relying on the model to follow prose.

What happened

1 min read

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 CLI, Cursor, Gemini CLI and GitHub Copilot CLI.

inscraper analysis

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.

More in Agents