Jev directory
CommunityJev Tools & CLIs
Minitest Impact
Ruby gem that records which lines each Minitest file executes, then selects the test files a git diff needs. An optional Jev pass re-ranks the selection and can add tests. Built for coding agents that run a few tests per edit.
- Reading time
- 2 min
- Published by
- Community
- Added
- Nov 23, 2026
Highlights
- Records a coverage map with minitest-impact record; the map is written to tmp/minitest-impact/map.json.
- Requires Ruby 3.3 or newer and has no runtime dependencies.
- With TYPESAFE_API_KEY, Jev re-ranks up to 48 candidate test files in one request costing about $0.0004.
- Jev reorders tests and can add one but never removes a test; without a key the gem works offline.
- On two Rails apps, all tests written for the change were selected in 91% and 94% of commits.
Questions about this entry
Short answers drawn from the linked project or page.
Add gem "minitest-impact" to the development and test group of your Gemfile and run bundle install. Ruby 3.3 or newer is required and the gem has no runtime dependencies. You can also run it from a checkout with ruby -I path/to/minitest-impact/lib path/to/minitest-impact/exe/minitest-impact.
No. Without TYPESAFE_API_KEY, or with the --no-jev flag, the gem works offline using the recorded map and the rules in lib/minitest/impact/rules.rb. The key only enables Jev re-ranking of the selected test files.
Jev receives the change and up to 48 candidate test files in one request, reorders them so the most likely tests come first, and can add a test. It never removes a test. If the request fails, the gem falls back to the map selection and reports the error. The model version is pinned to jev-1.13.0.
Recording takes 2 to 3 times as long as a normal test run. Record from a clean working tree, since the map keeps the commit it was recorded at. A map that is some hundreds of commits old still works because the gem finds methods by name, not by line number.
select --format paths prints nothing and exits with status 10, and run also exits with status 10. The test:impact Rake task runs the whole suite instead. Files such as Gemfile.lock and test/test_helper.rb trigger this behavior.
Code that runs only at boot, such as initializers and config/*.rb, is not in the map, and rules cover only some of it. Views are traced by file, not by line. The map shows what tests ran before the change, not what a new branch or callback will run, so the whole suite still runs at the end.
On Piou Piou over 150 commits it selected all tests written for the change in 91% of cases versus 66% for the simple strategy, and on Fizzy over 200 commits 94% versus 61%. It found 12 of 13 real CI failures versus 8, while running 21% to 24% of suite time.
Reactions & coverage
Posts, threads, and videos about this entry from around the web.
X: Decision outputs in Grep
Hacker News: jevmem keeps Claude Code project memory by asking Jev which turns are worth saving.
avinashjetwani61 pointsJevmem – automatic project memory for Claude Code, built on JevRead the thread on Hacker NewsX: A usage router for Grok Bot
X: The compaction plugin, in Chinese
From the Jev guides
Original write-ups on what this entry is for.
From the Jev AI model community
Posts from builders shipping with Jev right now.