2d7dd0c, the version that was reviewed and scanned here, and Claude Code installs exactly that commit. Newer commits reach this catalog only after a new review. License: Apache-2.0, by Krishan Subudhi.
- Commands
/ratchet:setup - Hooks
PostToolUseSessionStartStop
This is the author's README: its install commands may install another version. ratchet@aitmpl installs commit 2d7dd0c, the one listed and scanned here.
Ratchet plugin for Claude Code
Ratchet gives a repo a line budget that only goes down. ratchet init
records today's code size as the ceiling in .ratchet.json. When an agent's
change pushes code past it, the turn is refused in plain words: the agent
trims what it wrote, or stops and asks you, since only a human can raise the
budget with ratchet grant. Only code files count, split into source and
tests; docs never do.
Install:
/plugin install ratchet --marketplace krishansubudhi/ratchetThen run /ratchet:setup in a repo to install the CLI and record the
baseline. Full docs: https://github.com/krishansubudhi/ratchet
What it runs
Three hooks, each a short shell script in scripts/:
- SessionStart (
ratchet-budget.sh) prints the current budget into context. - PostToolUse on Edit, Write and MultiEdit (
ratchet-meter.sh) warns once a bucket goes over. - Stop (
ratchet-check.sh) runsratchet check --hookand blocks the turn while the repo is over budget.
Each script runs the ratchet CLI if it is on PATH. If not, it runs it
with uvx, pinned to ratchet-size==0.2.3 from PyPI, falling back to a
pinned commit of this GitHub repo. That download is the only network access.
Ratchet counts lines in the local repo and reads and writes only
.ratchet.json, .ratchet-grants.jsonl and .ratchet/ there. It collects no
personal data and sends nothing anywhere.
/ratchet:setup asks Claude to fetch and follow SETUP-FOR-AGENTS.md from
this repo: install the CLI, run ratchet init, and ask you before adding a
git pre-commit hook.
Apache-2.0.
Ratchet plugin for Claude Code
Ratchet gives a repo a line budget that only goes down. ratchet init
records today's code size as the ceiling in .ratchet.json. When an agent's
change pushes code past it, the turn is refused in plain words: the agent
trims what it wrote, or stops and asks you, since only a human can raise the
budget with ratchet grant. Only code files count, split into source and
tests; docs never do.
Install:
/plugin install ratchet --marketplace krishansubudhi/ratchetThen run /ratchet:setup in a repo to install the CLI and record the
baseline. Full docs: https://github.com/krishansubudhi/ratchet
What it runs
Three hooks, each a short shell script in scripts/:
- SessionStart (
ratchet-budget.sh) prints the current budget into context. - PostToolUse on Edit, Write and MultiEdit (
ratchet-meter.sh) warns once a bucket goes over. - Stop (
ratchet-check.sh) runsratchet check --hookand blocks the turn while the repo is over budget.
Each script runs the ratchet CLI if it is on PATH. If not, it runs it
with uvx, pinned to ratchet-size==0.2.3 from PyPI, falling back to a
pinned commit of this GitHub repo. That download is the only network access.
Ratchet counts lines in the local repo and reads and writes only
.ratchet.json, .ratchet-grants.jsonl and .ratchet/ there. It collects no
personal data and sends nothing anywhere.
/ratchet:setup asks Claude to fetch and follow SETUP-FOR-AGENTS.md from
this repo: install the CLI, run ratchet init, and ask you before adding a
git pre-commit hook.
Apache-2.0.
Scanned by
NVIDIA SkillSpector
Automated static analysis (no LLM) · v2.12.0 · 2026-11-25
Partial analysis: some checks could not run on this component.
5 observations in 3 categories
- MCP Rug Pull 3
- Bundled Execution Surface 1
- Trigger Abuse 1
SkillSpector looks for patterns such as shell commands, credential access, network calls or unpinned dependencies. An observation is something worth reading in the files before you install, not a confirmed vulnerability. Components that run code locally, like hooks, MCP servers and security tooling, naturally show more of them. Open one to see the lines it points at.
Bundled hooks can execute when matching lifecycle events occur.Bundled Execution Surface · hooks/hooks.json:1
| 1 | { |
| 2 | "hooks": { |
| 3 | "SessionStart": [ |
Shadow Command TriggerTrigger Abuse · SKILL.md:1
Code excerpt not available for this observation.
uvx/uv tool run commands without ==version create a rug-pull risk.MCP Rug Pull · scripts/ratchet-budget.sh:5
| 3 | # knows the ceiling before it writes a line, instead of discovering it only |
| 4 | # at the end via a Stop-hook refusal. Mirrors ratchet-check.sh's |
| 5 | # ratchet-or-uvx fallback. A SessionStart hook's stdout is added to the |
| 6 | # agent's context automatically. |
| 7 | # |
uvx/uv tool run commands without ==version create a rug-pull risk.MCP Rug Pull · scripts/ratchet-meter.sh:6
| 4 | # headroom goes negative it prints one short warning with the overage, so |
| 5 | # the agent learns mid-edit instead of only at Stop. Mirrors |
| 6 | # ratchet-check.sh's ratchet-or-uvx fallback. |
| 7 | # |
| 8 | # Exit codes (see `ratchet budget --hook`): 0 = silent, within budget; 2 = |
uvx/uv tool run commands without ==version create a rug-pull risk.MCP Rug Pull · scripts/ratchet-check.sh:24
| 22 | fi |
| 23 | |
| 24 | echo "ratchet: not found on PATH and uvx is unavailable; run 'pipx install ratchet-size' (or see SETUP-FOR-AGENTS.md) to enable the size-budget check" >&2 |
| 25 | exit 0 |
Learn more about NVIDIA SkillSpector or how components are reviewed.