Jev directory
CommunityJev Tools & CLIs
Sem Jiff
Semantic diff engine for code review that labels moved, renamed, reformatted, reordered, extracted and inlined code using tree-sitter, with an optional Jev second opinion on changes the strict rules miss. Published as the npm package @plannotator/sem-jiff.
- Reading time
- 2 min
- Published by
- Community
- Added
- Nov 16, 2026
Highlights
- Returns plain data (semanticOperations, semanticFolds and the matching patch) that any diff viewer can draw.
- Install with npm install @plannotator/sem-jiff; in Node nothing else is needed.
- Browser use needs grammars copied with npx sem-jiff-copy-wasm and configure({ locateGrammar, locateRuntime }).
- Preferring silence to a wrong label: a missed change falls back to the plain diff.
- Optional Jev opinion asks a decision model about exactly the candidates the strict rules miss, once per file.
Questions about this entry
Short answers drawn from the linked project or page.
Install it with npm install @plannotator/sem-jiff. In Node nothing else is needed. In a browser you must copy the grammars next to your app with npx sem-jiff-copy-wasm <dir> and tell the engine where they are served from via configure({ locateGrammar, locateRuntime }).
It labels moved code, moved and edited code, renamed identifiers, reformatted code, reordered imports or members, extracted functions and inlined functions. Everything else (added, deleted, edited) stays a plain diff.
The package exports jevOpinion from @plannotator/sem-jiff/opinions. You pass it as the secondOpinion option to semanticDiffFile, and the engine asks the decision model about candidates the strict rules miss, such as extracted functions whose code was reworded on the way out.
No. The semantic diff works with tree-sitter alone. The Jev opinion is optional: if you enable it, the key and account are your own, and the README notes it can be called from a server or from your own machine.
Clef (Cloudflare) acts as a second opinion that breaks the tie when Jev is unsure. It is wired in alongside jevOpinion as a tieBreaker with an ask hook calling clefScore({ accountId, apiToken }).
The repository carries both Apache-2.0 and MIT licenses, and the operation types in src/pierre-types.ts are copied from Pierre under Apache-2.0.
The rules are deliberately strict, so they miss extracted functions whose code was reworded on the way out. A missed change falls back to the plain diff, since the project prefers saying nothing to attaching a wrong label that would mislead a reviewer.
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.