What is itsthecsguy/ratchet?
Ratchet is a Rust CLI tool that validates and enforces markdown-based instructions for AI coding agents. Because guidelines written in CLAUDE.md, AGENTS.md, and SKILL.md files often go stale or get ignored during execution, Ratchet converts those guardrails into deterministic checks.
Using the ratchet lint command, it checks instruction files for unchecked claims, outdated file paths or scripts, broken links, and contradictions across files or lockfiles—reporting specific diagnostic codes such as W102, W103, W105, W106, and E005 within milliseconds. Beyond static linting, Ratchet enforces rules at agent tool-call time across harnesses including Claude Code, Codex, and Cursor, keeping instruction files synchronized with actual project state.
It is intended for developers and engineering teams maintaining shared agent instructions across multiple coding tools who want automated validation and consistent guardrail enforcement.
ai-agentsclaude-codeclicodexcursordeveloper-toolslinterrust
Before you startThe README says
- Needs
- A supported coding agent such as Claude Code, Codex CLI or Cursor; Cargo only to build from source
- Accounts or paid services
- No API keys needed
- How you get it
- Build from source with cargo build --release; ratchet update fetches the latest GitHub release