Ratchet Review 2026: Turn CLAUDE.md Rules Into Hook Checks
Ratchet reads the rules in your CLAUDE.md and SKILL.md, lints them for stale parts, and blocks coding-agent commands that break them. This review covers how it works, what its own docs admit it cannot do, and what nobody has independently tested.
There are no affiliate links in this review.

| Product | Ratchet (itsthecsguy) |
| License | MIT |
| Stars | 365 after 5 days |
| Latest release | v0.1.4, Dec 2, 2026 |
| Evidence | Repository and registry pages only |
Ratchet is a real, openly licensed and very new tool that turns the rules in your CLAUDE.md into checks a coding agent cannot talk its way past. Its speed and test numbers are the author's own, and nobody outside the project has measured it yet.
Worth a try in shadow mode on one repository where an agent keeps breaking the same written rule.
What it is. A Rust command-line tool by a single developer, itsthecsguy, created on Nov 28, 2026. Its lint command checks your guidance files (CLAUDE.md, AGENTS.md, SKILL.md and others) for stale paths, dead links and contradictions. Its hook mode runs before each agent tool call, and it denies a shell command or file write that breaks a rule you wrote, with a concrete fix the agent can use on its next try.
What JAVIS verified. The code is MIT licensed. GitHub shows 25 commits, 5 releases from v0.1.0 on Nov 29 to v0.1.4 on Dec 2, and prebuilt binaries for Linux, macOS and Windows. The same version, 0.1.4, is on crates.io. The README, a 177-line guide, a changelog, an architecture file and a security policy are all in the repository, and the documents admit limits that the headline does not.
What it does not show. No independent benchmark, no report from a team that has run it for a month, and no count of how often an agent still gets around a rule. The 1.8 ms hook time, the 702 tests and the 549 end-to-end checks come from the README and the guide. The project is 5 days old, so any statement about its quality is a statement about a snapshot.
Not hands-on tested: JAVIS did not install or run Ratchet and did not write a single rule with it. Every statement below comes from the repository, its documentation and its registry page, each as of Dec 3, 2026.

The mechanism is concrete and documented. The numbers about speed and quality are the author's, and the project is days old.
Swipe sideways to see every column.
| Claim | What the sources show | Assessment |
|---|---|---|
| Lint your skills in milliseconds | Guide: 36.1 ms median on vercel/next.js, 35,492 files, 42 guidance files, release build on Linux | Specific and testable, but measured by the author and not reproduced by JAVIS |
| Enforce at tool-call time in about 1.8 ms | Guide: 1.79 ms median for an allowed call, 2.36 ms mean for a denied one | Plausible for a 5 MB native binary; not independently measured |
| No LLM and no API key | README says enforcement is deterministic and offline | Consistent with the architecture file; propose is the only model-assisted step and is optional |
| Works across 9 agents | README table lists the hook file and events for each | Depth differs: OpenCode and Windsurf cannot block at finish |
| 702 unit tests and 549 end-to-end checks | README, in the build commands | A count the author states; JAVIS did not run them |
| MIT license, free | LICENSE file and the repository sidebar | Confirmed on the repository page |
JAVIS assessment as of Dec 3, 2026.

A one-developer project, 5 days old, with four outside contributors who each added one change.
The repository belongs to the GitHub account itsthecsguy, which wrote 21 of the 25 commits. The other four commits come from four different accounts, one each. The repository does not name a company, a funding source or a paid plan. One outside contributor opened issue 3 after piloting v0.1.1 with Antigravity, and v0.1.2 added scanning of the .agent/ folder.
Swipe sideways to see every column.
| Source | What it shows on Dec 3, 2026 |
|---|---|
| GitHub | 365 stars, 18 forks, 0 watching, 25 commits, 5 tags, 5 releases, 6 contributors on the repository page |
| Commit authors | 21 commits by the owner and one each from four other accounts |
| Issues and pull requests | 12 in total: 8 pull requests and 4 issues, 1 issue open (a request for Japanese support in more init templates) |
| crates.io | ratchet-cli 0.1.4, MIT, minimum Rust 1.82.0, about 18K lines of source, 282 KiB, 2 versions published |
| License | MIT, stated in the README, the LICENSE file and the repository sidebar |
Counts as shown on the GitHub pages, Dec 3, 2026.

Worked example. Stars versus use. All five releases together have 751 downloads of the binary archives and 480 downloads of the checksum file, which the installer script fetches, so the checksum count is a rough sign of installer runs, though other tools fetch it too. The repository has 365 stars, which is about 0.5 stars per binary download. Downloads include CI runs and mirrors, so the number of people is lower than either figure. JAVIS cannot say how many are real users.
Write the rule once in markdown, let the hook check each tool call, and hand the agent a fix when it breaks the rule.
The README describes a loop. You write a rule block under a normal heading in CLAUDE.md, for example deny: npm *, npx *, yarn * with a use: suggestion. ratchet setup compiles the rules and wires the native hook of each detected agent. When the agent tries to run npm test, the harness pauses before execution and pipes the call to Ratchet, which parses the shell command, matches it and returns a deny with the fix pnpm test. The agent then runs the allowed command. A repeat of the same denied action in one session gets a firmer message, to break retry loops.

Swipe sideways to see every column.
| Level | What happens on a match | When to use it |
|---|---|---|
| shadow | Logs the hit silently | Measure how often a rule would fire before blocking anything |
| warn | Shows a warning, does not block | A rule you are not sure about; hedged sentences such as prefer pnpm are capped here |
| ask | Pops the harness's allow or deny prompt on Claude Code and Cursor | A rule with legitimate exceptions |
| enforce | Blocks before execution and returns a fix | A rule that should never be broken; the default for firm wording |
Levels as described in the README, Dec 3, 2026.
What the rules can look at. The guide lists four kinds. A run rule checks shell commands, a write rule checks file paths before a write, a commit rule checks added lines, and a finish rule requires a fresh passing test run when the agent stops. Read rules and tool rules (for MCP calls) are listed in the README as well. A warn or enforce rule needs at least one ok: and one bad: example, and the lint step runs those as fixtures, so a rule that does not catch its own bad example is reported as an error.

Even without the hooks, the linter finds guidance that has gone stale.
The lint command is useful on its own. According to the guide it reports error codes E001 to E006 (broken rule blocks, duplicate ids, examples that fail, rule conflicts) and warnings W101 to W108. Three are easy to picture. W102 flags a sentence such as "Always use pnpm" that no rule enforces. W103 flags a backticked path or npm script that no longer exists. W106 flags contradictions such as one file saying pnpm and a lockfile saying npm. The README shows the output for a one-line CLAUDE.md that has an unchecked claim and a broken link, with about 41 always-loaded tokens.
Swipe sideways to see every column.
| Code | What it catches | Example of a real-world cost |
|---|---|---|
| W102 | A normative sentence no rule enforces | The agent ignores a rule that was only ever prose |
| W103 | A path, script or Makefile target that no longer exists | The agent runs a script that was renamed last month |
| W105 | A broken markdown link or @file include | The agent loads nothing where it expected a doc |
| W106 | A contradiction across files or a lockfile | One file says pnpm, the lockfile says npm |
| E003 | A bad example that the rule does not catch | A rule that looks strict and blocks nothing |
Codes from the guide, Dec 3, 2026; the cost column is JAVIS illustration, not a measured result.
Worked example. Hook time. At the guide's 1.79 ms for an allowed call, a session with 500 tool calls adds about 0.9 seconds of hook time in total (500 times 1.79 ms is 895 ms), and a team of five with 200 calls each per day adds about 1.8 seconds a day. Those are the author's per-call figure on one Linux build multiplied out by JAVIS. Harness overhead, a cold cache and Windows are not included, so treat it as a sign that the checks are cheap, not as a measurement.

Claude Code and Codex CLI can block when the agent finishes. OpenCode and Windsurf cannot.
The README table lists, for each agent, the hook file Ratchet writes and which events it uses. Most have a pre-tool and a post-tool hook. The stop or finish event, which is what makes a "tests must be fresh" rule work, is a block on Claude Code and Codex CLI, a follow-up message on Cursor, and a plain continue on Antigravity. For OpenCode and Windsurf the README says finish and commit rules run through ratchet check and CI instead.

Swipe sideways to see every column.
| Agent | Hook file | Finish rule |
|---|---|---|
| Claude Code | .claude/settings.local.json | Block |
| Antigravity | .agents/hooks.json | Continue |
| Codex CLI | .codex/hooks.json | Block |
| Cursor | .cursor/hooks.json | Follow-up |
| Gemini CLI | .gemini/settings.json | AfterAgent |
| OpenCode, Windsurf | plugin or hooks file | Not blocked; use ratchet check in CI |
Selected rows from the README table, Dec 3, 2026. The README also lists Amp and GitHub Copilot CLI.
The tool is also available as a pre-commit hook for the pre-commit and prek frameworks, and ratchet ci init writes a GitHub Actions workflow. The CI mode compares your rules against the base commit and rejects a pull request that weakens a rule without a recorded reason, which is a sensible answer to the question of who watches the rules.
It sees the text of a call, so it is a guardrail and not a sandbox.
This is the part of the repository JAVIS found most useful. The guide states that a read rule covers the harness read tool and a long list of shell readers, and then adds that the hook reads the command's text, so a shell wildcard, an earlier cd, an interpreter such as python -c or a recursive search is not followed. In JAVIS's reading, a rule that denies .env will stop cat .env, and it will not necessarily stop a script that opens the file itself. The guide also says internal errors, malformed input or a watchdog overrun exit with code 0 and no output, which allows the call, and that three internal errors in a session trip a circuit breaker. High-stakes rules can opt into fail-closed behavior.
Swipe sideways to see every column.
| Topic | What the documents say | What it means for you |
|---|---|---|
| Bypass by interpreter or wildcard | Guide: read rules do not follow python -c, a wildcard, an earlier cd or a recursive search | Do not treat it as a way to hide secrets from an agent |
| Fail-open by default | Guide: internal error, bad input or timeout exits 0 with no output | A bug in Ratchet means the call is allowed, unless you set fail_closed |
| AST rules | Guide: parsed and skipped; ratchet check --ci exits 3 if one is set to enforce | Do not rely on syntax-tree rules yet |
| Windows | README has a PowerShell installer and the changelog lists a Windows release build; the guide's not-built list says native Windows support | The documents disagree; check on a copy before a team rollout |
| Missing pieces | Guide: importers from other linter configs, a baseline command and pre-push hooks are not built | Expect gaps in a 5-day-old tool |
Statements from the README, CHANGELOG and GUIDE files, Dec 3, 2026.

The security policy is short and specific. It names four risk areas, asks for private reporting through GitHub Security Advisories, says the binary forbids unsafe Rust in every crate, and supports only the latest release. The repository files include no audit report, and the README installer line is curl | sh, which the README mitigates with a SHA-256 check of the download.
25 commits and 5 releases in 5 days, a fast pace that also means little track record.
All 25 commits are on one branch, spread over five days with two bursts, and the most recent one on the commits page is a release workflow fix from Dec 2. The release commit for v0.1.4 shows a failed check mark (7 of 8 checks) on the commits page, while the release was still published. The one open issue asks for Japanese support in more init templates. Four pull requests from outside accounts were merged, which is a good sign that the author takes contributions.


Swipe sideways to see every column.
| Release | Published (UTC) | Binary downloads | Note |
|---|---|---|---|
| v0.1.0 | Nov 29, 16:21 | 48 | First release |
| v0.1.1 | Nov 29, 22:12 | 349 | Most downloaded |
| v0.1.2 | Dec 1, 01:21 | 280 | Added .agent/ scan |
| v0.1.3 | Dec 2, 03:35 | 23 | Self-correction metrics, Homebrew, binstall |
| v0.1.4 | Dec 2, 07:47 | 51 | First release with a Windows zip |
Download counts are GitHub release asset counts on Dec 3, 2026, excluding the SHA256SUMS file. They include automated downloads. The newest release is hours old.


Free and MIT licensed. The real costs are your time to write rules and the trust you give a new hook binary.
There is no paid tier in the repository, and no account is needed. The README gives five install routes: Homebrew, cargo-binstall, cargo install from crates.io, a curl installer for Linux and macOS and a PowerShell installer for Windows, plus ratchet update for later upgrades. Hooks are written into project files such as .claude/settings.local.json, which the README says are excluded locally from Git and removed by ratchet uninstall. A RATCHET=0 environment variable or ratchet off pauses the hooks.
Swipe sideways to see every column.
| Cost | Amount | Source |
|---|---|---|
| Licence | $0, MIT | LICENSE file |
| API keys or accounts | None, offline by default | README |
| Your agent plan | Unchanged; the README says enforcement makes no model calls | README |
| Time to set up | One command, plus rules you write | ratchet setup in the README |
| Risk of a new hook binary | Runs on every tool call of the agent, as you | Security policy scope |
JAVIS summary of the README and the security policy, Dec 3, 2026.
What JAVIS would do first. Install a pinned version, run ratchet lint on a copy, then ratchet setup --level shadow so it only logs, and read ratchet status after a day of real use before promoting anything to enforce.
Plain prose, hand-written hooks and a pre-commit linter each cover part of the job.
Swipe sideways to see every column.
| Option | What it does | Where Ratchet differs |
|---|---|---|
| Prose only in CLAUDE.md | Free, and the model may follow it | Nothing enforces it; Ratchet's W102 counts those sentences |
| Hand-written agent hooks | Full control, one agent at a time | Ratchet compiles one rule file into hooks for 9 agents |
| pre-commit or a CI linter | Checks after the code is written | Ratchet blocks at the tool call, before the command runs |
| A sandbox or container | Limits what any command can reach | Ratchet cannot see inside an interpreter; a sandbox can |
JAVIS comparison, Dec 3, 2026. The options are not like-for-like and do not replace each other.
For related checks, JAVIS also reviewed safe-anything, a scanner for agent configurations, and rust-anything, a Rust port checker. The Claude Code security guide covers the permission side.
Try it in shadow mode on one repository, with a pinned version, and promote only the rules that fire for real.
Swipe sideways to see every column.
| You are | Do this | Why |
|---|---|---|
| Curious about your guidance files | Run ratchet lint on a copy | It only reads files and reports; no hooks are installed |
| Seeing an agent repeat a mistake | Write one rule, run setup with --level shadow | You see how often it would have fired before blocking |
| Rolling out to a team | Use ratchet sync --shared and pin the version | The shared hooks fall back gracefully if a teammate lacks the binary |
| On Windows | Test on one machine first | The README and the guide disagree on native Windows support |
| Needing a security boundary | Use a sandbox as well | Rules see command text, not what a script does |
JAVIS assessment as of Dec 3, 2026.
Install one version and note it, because releases arrive daily.
Fix stale paths and contradictions before enforcing anything.
Read ratchet status and ratchet audit for real hits.
Move one proven rule to enforce, and keep the rest as warnings.
- No hands-on test: JAVIS did not install or run Ratchet and wrote no rules with it.
- The latency, test and end-to-end figures are the author's and were not reproduced.
- The repository changes many times a day; this reflects Dec 3, 2026, and v0.1.4 was a few hours old.
- There is no independent user report beyond a handful of GitHub issues and pull requests, and the project is 5 days old.
- Stars could not be checked for organic growth, and download counts include automated downloads.
- JAVIS did not review the source code of the hook binary, only the documents about it.
More on agents, security and tools, from other JAVIS pages.
Questions people ask about Ratchet.
What is Ratchet?
A free command-line tool, written in Rust and published by the GitHub account itsthecsguy, that reads the rules you already wrote in CLAUDE.md, AGENTS.md and SKILL.md files. It checks those files for stale paths, dead links and contradictions, and it can block a coding agent's shell command or file write before it runs when the command breaks a rule.
Is it free?
Yes. The repository is under the MIT license, the binary is built from source or downloaded from GitHub releases, and the README says it needs no API key and works offline. Your coding agent plan is billed separately and is not changed by Ratchet.
Which coding agents does it work with?
The README lists nine harnesses: Claude Code, Antigravity, Codex CLI, Cursor, Gemini CLI, Amp, GitHub Copilot CLI, OpenCode and Windsurf. The depth of support differs. For OpenCode and Windsurf, finish and commit rules run through ratchet check and CI, not as a stop hook.
Does it use an AI model to decide what to block?
No, according to the README. Enforcement is a deterministic match of the command text against your rules. A model is only involved if you choose to generate candidate rules with ratchet propose, and the output is then checked by fixtures.
Can an agent get around a rule?
Possibly. The project's own guide says a read rule does not follow a shell wildcard, an earlier cd, an interpreter such as python -c, or a recursive search. A rule only sees the text of the call, so it is a guardrail and not a sandbox.
Did JAVIS test it?
No. JAVIS did not install or run Ratchet. This review compares the repository, its documentation, its releases and its crates.io page as of Dec 3, 2026. The speed and test-count figures are the author's own.
Where this came from, and when.
Repository: itsthecsguy/ratchet, its README, guide, changelog, security policy, releases, commits and issues, as of Dec 3, 2026, with the counts GitHub shows.
Registry: the crates.io page for ratchet-cli, version 0.1.4, as of Dec 3, 2026.






