All shelves / Mods / Review
quality-gate
By Eigenwise
quality-gate is a Claude Code review mod by Eigenwise.
After each turn with edits, measures the complexity of the functions Claude changed, and draws it above the prompt with the cost and test status.
Draws
Install
The marketplace name is eigenwise-toolshed.
/plugin marketplace add Eigenwise/eigenwise-toolshed /plugin install quality-gate@eigenwise-toolshed
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 1.2.1
- License
- MIT
- Repo stars
- 282
- Last change
- 2026-10-22
What it can reach
- Draws in the session
- Reads usage or context figures
- Reads this turn's file edits
- Sees tool calls
- Reaches the network or an outside service
- Calls another program on this machine
Needs Node 22.5 or later and npm. The first run installs the parser, with a 180-second deadline. Offline or without npm, it exits with npm install --prefix <plugin root> as the remedy. The README also gives /plugin install quality-gate --marketplace Eigenwise/eigenwise-toolshed. The hooks module records edits and test-command results by working directory. After each turn with edits, it runs the plugin's CLI once per edited working directory, with a 20-second timeout, to measure the changed functions' complexity and reuse signals, then publishes the report with test pass or fail and stale status. Tool calls never launch measurement. A single line above the prompt reads the session cost, CC with the highest complexity and ok or SPLIT with a count, and tests pass, fail, or none, with stale. SPLIT counts new or complexity-raised functions at CC 6 or higher. Without coverage at coverage/lcov.info, it checks complexity only, and shows quality-gate: complexity only, coverage not set up once per session, then the status line keeps the reminder. The band disappears with /quality-gate off, or before the first report. New and complexity-raised functions must score strictly below 6. Complexity 6 or more fails at any coverage, and the author says to split the function, since more tests cannot help. JS, TS, and Python are measured, and PHP and Vue need lizard. The hooks module reads the persona in skills/quality/PERSONA.md into the system prompt, and appends a reuse inventory once at session start. /quality-gate on or off switches that persona, /quality-gate markers on or off switches source shortcut comments, and /quality-gate status prints both. The switches persist across sessions. /quality-gate:review reviews the diff, the repository, or the debt. The author says to uninstall ponytail when both are installed, because its persona contradicts this one.
The marketplace name is eigenwise-toolshed. The marketplace also holds observability, model-gateway, sidequest, codebase-mapper, quartermaster, and live-rules. This one installs on its own. The marketplace source is ./plugins/quality-gate. The complexity report after each turn is why this page files it under review. test-hud draws each test run on the status line, passing over total, with a pane of the tests that failed. craftsman-cockpit, for a quality gate for AI-written code, draws a pane of candidate rules it learned. This one scores the functions Claude changed in the turn, and draws the worst score above the prompt. The network line is the npm install of the parser on the first run.
Demo

What it hooks into
session.startWhen a session startsprompt.composeWhile you write a promptcommand.runWhen you run its slash command/quality-gateturn.startWhen Claude starts a turnclassic.PostToolUseA Claude Code eventtool.callAround a tool call, where it can hold oneBashPowerShellturn.completeWhen a turn endsstate.setA Claude Code eventui.renderDraws into the sessionAbovePrompt
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/quality-gateSwitch quality guidance and shortcut markers on or off.
Files
The author's README and source, 6 files. They load when you open them.
Facts
- Author
- Eigenwise
- Category
- Review
- Marketplace
- eigenwise-toolshed
- Folder
- plugins/quality-gate
- Version
- 1.2.1
- License
- MIT
- Repo stars
- 282
- Last change
- 2026-10-22
- Language
- TypeScript
- Files
- 56