DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to refactor in scored steps until deltas plateau with Jev Review

Use previousEvaluation so the agent sees which dimensions improved or regressed.

Short answer: Run npx plugins add NiazMorshed2007/jev-review --target cursor or the matching command for your client, then restart it; then 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. All steps.

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

  1. Run npx plugins add NiazMorshed2007/jev-review --target cursor or the matching command for your client, then restart it.
  2. Call jev_review with the task and focused diff to establish a baseline.
  3. Make the smallest justified change, run your own tests, and call jev_review again with previousEvaluation set to the baseline.
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer