/jgrep:jgrepfrom jgrep
Semantic grep for code that locates code by behavior rather than identifiers. Returns file:line ranges with probability scores, supports diff linting for staged changes, and works in ~2 seconds per src/ tree.
Ships in jgrep. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
First run command -v jgrep. If it prints nothing, tell the user to run
npm i -g jevgrep && jgrep init and stop; do not install it yourself.
jgrep "<description in English>" [paths] asks a fast decision model (TypeSafe
Jev) one yes/no question per 5-60 line chunk and prints the chunks that match.
It never reads files into your context: you get a short list, then you Read
only the ranges you need.
Do not use it for exact identifiers, strings, or paths. rg is free and instant.
jgrep "description" src/ # hits with p >= 0.7, file order
jgrep -t 0.85 "description" src/ # fewer, higher-precision hits
jgrep -C "description" src/ # print the matching chunk bodies
jgrep --json "description" src/ # [{file,start,end,p,text}]
jgrep -a -t 0 "description" src/ | head # everything, best first (when 0 hits)
jgrep --diff --staged "rule" # lint your staged change
jgrep --diff origin/main "rule" # lint the branch against main
Exit status: 0 hits found, 1 none, 2 jgrep could not run (never treat 2 as "clean"). Every run prints a summary line
on stderr: N hits / M chunks · tokens · $cost · seconds.
src/loop/state.ts:108-115 p=0.96 export function readRun(...)
p is the probability the chunk matches. Treat >= 0.9 as reliable, 0.7-0.9
as worth a look, below 0.5 as no. After a run, Read only the listed ranges
(offset/limit), not whole files.
Run 2-4 rules on the staged diff; each rule is one sentence about a mistake you might have made. Exit 0 means a hit, so investigate those chunks.
jgrep --diff --staged "leaves debug output such as console.log or print"
jgrep --diff --staged "changes behavior without a corresponding test change"
jgrep --diff --staged "adds an endpoint or handler with no input validation"
jgrep --tests [ref] prints the test files a diff plausibly affects (by name, by
import graph, then by Jev). Use it before running a large suite:
jgrep --tests origin/main | xargs <runner>; run the full suite afterwards.
jgrep --rows data.csv "<description>" treats every row as a chunk and prints
matching rows. With --questions q.json (a JSON object of Jev questions:
{name: {type: noul|choice|score, instructions, criteria?}}) it writes the
table back with one answer column per question (--out scored.csv or
--json). Use it to label, triage or filter a list of records instead of
reading them one by one.
Installed globally as jgrep; the key (TYPESAFE_API_KEY or OPENROUTER_API_KEY)
lives in ~/.config/jgrep/env. If it reports "No API key", tell the user rather
than working around it.
Run it inside a project directory or pass the project path: it refuses to
walk a non-git directory with more than 5000 files.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kyu1204/jgrep --plugin jgrepOther plugins' skills for the same job