AI NewsDev toolsAnnouncement

Ratchet turns CLAUDE.md rules into deterministic blocks across 9 agents

Ratchet reads a team's CLAUDE.md, AGENTS.md and SKILL.md files. It enforces the rules as deterministic blocks before any agent runs a command.

AI News

Editorial2 min read

LinkedInX
GitHub social card for itsthecsguy/ratchet

Image: GitHub

Why it mattersA rule written in English is a rule the agent can decide to skip. A deterministic check runs before the shell does, in under two milliseconds.

A rule a team writes in CLAUDE.md is a rule the agent reads, remembers, and sometimes skips. Ratchet turns the same rules into a block the shell checks before the agent runs a command.

The repository itsthecsguy/ratchet was created on 28 November 2026. By the morning of 29 November it had 111 stars and sat at rank 21 on Trendshift's daily list. The author says it is a 5 MB Rust binary. It carries 529 unit and integration tests, and 548 end-to-end checks across the agents it supports.

What it supports

Ratchet reads three files a team already writes: CLAUDE.md for Claude Code, AGENTS.md for other agents, and SKILL.md for skills. It then wires itself in front of nine coding agents: Claude Code, Antigravity, Codex CLI, Cursor, Gemini CLI, Amp, GitHub Copilot CLI, OpenCode and Windsurf.

A rule written for one agent is applied to all nine. The team does not have to copy the file into each agent's own format.

Four enforcement levels

The author's README names four levels, each stricter than the last:

  • Shadow: the check runs, logs a hit, and does nothing visible. A team can see what the rules would block before anyone is slowed down.
  • Warn: the user sees a warning line. The command runs.
  • Ask: a confirmation prompt opens, if the agent's harness supports one.
  • Enforce: the command is blocked. Ratchet writes back the fix in a form the agent can read.

The check itself takes about 1.8 milliseconds, according to the author's own numbers. The lint pass across a 35,000-file repository takes 36 milliseconds. No model is called. The whole binary runs offline.

What it does not do

Ratchet only enforces rules a shell can check: shell actions, protected writes, patterns in a diff, and whether a test file is fresh. The author says a rule like "always write kind comments" needs a model to grade. That is out of scope. A team using Ratchet still has to run a review step for the subjective parts of a style guide.

The repository is MIT licensed. It needs Rust 1.82 or newer to build from source, and prebuilt binaries are provided. The project is one day old on the day this is written. The test set of real teams is small. Start every rule in shadow for a few days, read the log, then raise the level.

Why a shell-level check

Rules in CLAUDE.md started as a nudge. A team writes "never commit secrets" at the top of the file. The agent reads it and most of the time respects it. Each failure leaves an incident to clean up.

A deterministic check is a different kind of guarantee. It is not polite and it is not clever. The shell runs it before the agent gets another move. One file that enforces one rule across every agent in use cuts a review step. The review step was the one that caught the mistakes the agent did not.

Source

SourceGitHub

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project