Ratchet
Ratchet is an open-source Rust CLI that lints CLAUDE.md, AGENTS.md and SKILL.md files and turns their rules into deterministic hooks that block forbidden commands or file writes before a coding agent runs them.
Why it matters
For teams whose agents keep ignoring written instructions like "always use pnpm". Ratchet enforces those lines at tool-call time without an LLM in the loop, and tells the agent the exact command to run instead.
Highlights
- ratchet lint flags unchecked claims, stale paths, broken links and contradictions between guidance files or lockfiles (for example pnpm vs npm, vitest vs jest).
- Rules hook into each harness's PreToolUse, PostToolUse and Stop events; a blocked command returns a reason plus a fix: command so the agent can retry correctly.
- Four levels per rule (shadow, warn, ask, enforce); ratchet approve allows one blocked command once without turning the rule off.
- Supports nine harnesses: Claude Code, Antigravity, Codex CLI, Cursor, Gemini CLI, Amp, GitHub Copilot CLI, OpenCode and Windsurf, plus Git pre-commit and CI.
- Single binary of about 5 MB that runs offline with no API keys; the maker reports about 1.8 ms per hook check.unverified
Taken from the project's own README, docs or launch page. Claims about speed or accuracy are the maker's unless stated otherwise.
Worth knowing: Rules enforce by default after ratchet setup, so blocked commands are expected at first; use --level warn or shadow to roll out gently. Very new project (v0.1.1, created Nov 28, 2026).
Quick facts
| Pricing | Free |
|---|---|
| Free or paid | Free (open source) |
| License | MIT |
| Language | Rust (source builds need Rust 1.82+) |
| Platform | Prebuilt binaries for Linux (x86_64, arm64) and macOS (arm64, x86_64); Windows binaries not mentioned |
| GitHub stars | ★ 153 (as of 2026-11-30) |
| Maker | itsthecsguy (GitHub) |
Links
- Repository: https://github.com/itsthecsguy/ratchet
- Release notes: https://github.com/itsthecsguy/ratchet/releases
- Docs: https://github.com/itsthecsguy/ratchet/blob/main/docs/GUIDE.md
Related ranking
See how established tools compare in Best AI Coding Tools for Developers. New releases aren't scored until we review them against the rubric.
What we couldn't verify
- highlights[4] (1.8 ms latency is the maker's figure)
Checked 2026-11-30 from the tool's own pages. Prices and star counts change, so confirm on the official site. Listing here is not a ranking or an endorsement.
One email a week on AI that saves business owners time
Every Friday: one tool pick with the business use case, what changed in tools you already use, and the week's AI news in plain English. No spam.
Free. Unsubscribe any time. See our privacy policy.