Credentials. Every rescoring call sends the submitted context to the Jev API, so repeated loops repeat that disclosure and use the same API key.
Who it is forA developer or agent refactoring a module who needs evidence that each change helps.
The problemRefactors often trade one quality dimension for another, and a single snapshot does not show it.
The outcomeThe agent gets a baseline, makes small edits, rescores, and stops when changes no longer produce real gains.
What you need first
- Node.js 20 or newer
- A Jev API key from the TypeSafe console (https://console.typesafe.ai/)
- Claude Code, Codex, Cursor, or OpenCode installed
- Set JEV_API_KEY with export JEV_API_KEY="your-key" before starting the coding agent
Steps
- Run
npx plugins add NiazMorshed2007/jev-review --target cursoror the matching command for your client, then restart it. - Call jev_review with the task and focused diff to establish a baseline.
- Make the smallest justified change, run your own tests, and call jev_review again with previousEvaluation set to the baseline.
- Read the per-metric deltas, improvements, regressions, and unresolved weaknesses, then repeat or stop.
Prompt for your agent
Refactor <module path> with the jev_review tool from NiazMorshed2007/jev-review. Call it for a baseline, then after each change call it again with previousEvaluation set to the prior result. Report the per-dimension deltas and any regressions, and confirm that the project's existing tests still pass after each step.
Caveat. The README says the Jev API enforces its own token ceiling, so large refactors may need to be split into slices before scoring.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for NiazMorshed2007/jev-review and "Refactor in scored steps until deltas plateau"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer