EveryDev.ai
Subscribe
Home
Tools

3,419+ AI tools

  • New
  • Trending
  • Featured
  • Compare
  • Arena
Categories
  • Agents2189
  • Coding1574
  • Infrastructure698
  • Marketing534
  • Projects498
  • Research456
  • Design416
  • Analytics389
  • Testing296
  • MCP290
  • Security286
  • Data262
  • Integration197
  • Prompts189
  • Communication183
  • Extensions173
  • Learning170
  • Voice151
  • Commerce135
  • DevOps123
  • Web86
  • Finance26
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
    1. Home
    2. Tools
    3. Ratchet
    Ratchet icon

    Ratchet

    Code Intelligence
    Featured

    A PostToolUse hook for Claude Code that measures every edit an AI agent makes and reports whether it followed your minimalism rules, blocking or flagging new dependencies, files, and complexity in real time.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Fully free and open source under the MIT license. Clone, install globally with npm, and use without restriction.

    Engagement

    Available On

    Windows
    macOS
    Linux
    API
    CLI

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    Code IntelligenceAgent HarnessAutomated Testing

    Alternatives

    ECC Tools (Everything Claude Code)OsloqSonar
    Developer
    0xwilliamortiz0xwilliamortiz builds open-source developer tooling focused…

    Listed Aug 2026

    About Ratchet

    Ratchet is an open-source CLI tool built by 0xwilliamortiz that closes the feedback loop between the rules you give a coding agent and whether the agent actually followed them. It hooks into Claude Code's PostToolUse event, reads every file edit the agent makes, measures it against configurable budgets, and reports findings back into the same session while the agent is still working. The project is MIT-licensed, written in JavaScript, and requires Node 20 or newer.

    What It Is

    Ratchet is a complexity-enforcement harness for AI coding agents. The core insight is that prompt-only minimalism rulesets are open loops: the model reads "prefer the standard library, do not add dependencies, keep the diff small," and then nothing verifies compliance. Ratchet adds the verification half. It installs as a Claude Code plugin, registers PreToolUse and PostToolUse hooks, and runs a suite of static detectors on every Edit, MultiEdit, and Write the agent produces.

    How the Detection Pipeline Works

    Every agent edit passes through a set of tagged detectors:

    • dep — catches new entries in package.json, requirements.txt, pyproject.toml, go.mod, Cargo.toml, Gemfile, or composer.json
    • exists — finds a new symbol whose normalized name already lives elsewhere in the repository (e.g., formatDuration matches format_duration)
    • stdlib — identifies hand-rolled versions of things the standard library already ships
    • native — flags a dependency or code doing what the platform already does natively
    • wrapper — detects a function whose body only forwards to another function with the same arguments
    • yagni — surfaces interfaces, abstract classes, or protocols with a single implementation
    • validation — catches bespoke email regexes
    • budget — tracks running totals for new files, new dependencies, and net added lines

    Findings are graded certain (parsed from a manifest), likely (structural analysis), or heuristic (shape matching). Only certain findings trigger a block in strict mode, which keeps false positives from becoming noise.

    The Three Operating Modes

    Ratchet ships with four modes that control how aggressively it enforces budgets:

    ModeNew filesNew depsNet added linesOn overrun
    advise83400findings only
    guard31150findings and budget warnings
    strict1060the edit is blocked
    off———nothing runs

    The default is guard. Modes can be switched mid-session with /ratchet strict or persisted with /ratchet default advise, and the RATCHET_MODE environment variable also works.

    The Mark, Ledger, and Baseline System

    Ratchet's name comes from its core mechanic: existing complexity is grandfathered in via a baseline, and only new complexity is flagged. Running ratchet baseline fingerprints current findings by tag, path, and shape (not line number), so the baseline survives reformatting and code moving within a file. The .ratchet/mark.json file records an accepted codebase size — source lines, source files, a date, and a written reason. Raising the mark requires a deliberate command with a sentence of justification. The .ratchet/ledger.jsonl file appends one row per finished session, and ratchet report renders the trend as a small ASCII chart showing added lines, removed lines, new dependencies, flagged findings, and repo size over time.

    Setup Path

    Installation is a two-step process: clone the repository, run npm install -g ., then run ratchet once inside any project you want watched. That single command registers the hooks, sets a baseline, and on Windows opens ratchetui.exe — a bundled GUI that shows the live session state and ledger. Restarting the agent picks up the hooks. ratchet doctor validates the full loop by building a scratch repository, planting known problems, driving the hooks as real subprocesses, and printing exactly what the agent would have received.

    Update: Recent Activity

    The repository was created on 2026-07-31 and last updated on 2026-08-03, with 424 stars and 85 forks accumulated in its first few days. The project ships 115 tests covering both unit and integration scenarios, including a dedicated tests/windows.test.js that covers Windows path serialization bugs from any platform. The README documents two real bugs found by ratchet doctor and ratchet log on their first runs, signaling an actively debugged early release rather than a prototype.

    Ratchet - 1

    Community Discussions

    Be the first to start a conversation about Ratchet

    Share your experience with Ratchet, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source

    Fully free and open source under the MIT license. Clone, install globally with npm, and use without restriction.

    • All enforcement modes (advise, guard, strict)
    • All detectors (dep, exists, stdlib, native, wrapper, yagni, validation, budget)
    • Mark and ledger system
    • ratchet doctor validation
    • Windows GUI (ratchetui.exe)

    Capabilities

    Key Features

    • PostToolUse hook integration with Claude Code
    • Real-time complexity measurement on every agent edit
    • Dependency detection across package.json, requirements.txt, pyproject.toml, go.mod, Cargo.toml, Gemfile, composer.json
    • Duplicate symbol detection with normalized name matching
    • Standard library and native platform alternative detection
    • Wrapper function and YAGNI pattern detection
    • Three enforcement modes: advise, guard, strict
    • Graded findings: certain, likely, heuristic
    • Baseline system to grandfather existing complexity
    • Mark and ledger for tracking complexity trend over sessions
    • Per-line ratchet-ignore suppression with required reason
    • ratchet doctor end-to-end validation command
    • ratchet report ASCII trend chart
    • Windows GUI (ratchetui.exe) for live session monitoring
    • In-agent slash commands: /ratchet, /ratchet-review, /ratchet-audit, /ratchet-ledger
    • Per-project and per-user configuration files
    • RATCHET_MODE and RATCHET_LOG environment variable support
    • Cached symbol index (warm cost ~4ms)
    • Git-backed diff measurement against committed version
    • Global hooks mode for all projects on a machine

    Integrations

    Claude Code
    Git
    Node.js
    npm
    package.json
    requirements.txt
    pyproject.toml
    go.mod
    Cargo.toml
    Gemfile
    composer.json
    PowerShell (Windows launcher)
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate Ratchet and help others make informed decisions.

    Developer

    0xwilliamortiz

    0xwilliamortiz builds open-source developer tooling focused on AI agent quality control. The Ratchet project, co-authored with Claude, enforces minimalism rulesets on coding agents by measuring every edit they make against configurable complexity budgets. The work emphasizes honest grading of findings and real measurement over prompt-only approaches.

    Read more about 0xwilliamortiz
    WebsiteGitHub
    1 tool in directory

    Similar Tools

    ECC Tools (Everything Claude Code) icon

    ECC Tools (Everything Claude Code)

    Agent harness engineering toolkit that extracts coding patterns from git history and generates skills to guide AI coding agents like Claude Code.

    Osloq icon

    Osloq

    Osloq is an AI-powered GitHub issue investigator that connects to your repository, reproduces bugs in an isolated sandbox, and returns verified findings backed by logs, screenshots, and code evidence.

    Sonar icon

    Sonar

    Sonar is an open-source Python tool hosted on GitHub by RasKrebs for software analysis and code intelligence tasks.

    Browse all tools

    Related Topics

    Code Intelligence

    AI tools that analyze, generate, and transform code through natural language understanding and programming language comprehension.

    90 tools

    Agent Harness

    Infrastructure, orchestrators, and task runners that wrap around LLM coding agents — covering session management, context delivery, worktree isolation, architecture enforcement, and issue-to-PR pipelines.

    128 tools

    Automated Testing

    AI-powered platforms that automate end-to-end testing processes with intelligent test case generation, execution, and reporting for faster, more reliable software delivery.

    129 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions