Shortcuts: is, pick, filter, rank
Each shortcut is ask with one question already shaped. The same saved questions, context, settings and exit codes apply.
jevx is "Is this urgent?" < email.txt # an if: yes 0.92, exit 0 / 1 / 3 / 4jevx pick "Which team?" web=frontend api=backend billing=money --in "charged twice" # a switchjevx filter "Is this an error?" < app.log # a grep by meaning (-v: the lines that are not)jevx rank "Is this about refunds?" --top 5 < results.txt # a sort: every line with P(yes), best firstis and pick print VERDICT P on one line. filter and rank read one input per line from stdin unless you pass --in, --lines or --states.
is: an if
Section titled “is: an if”$ echo "Prod is down" | jevx is "Is this urgent?"; echo "exit $?"yes 0.92exit 0
$ echo "Weekly newsletter: our new office plants" | jevx is "Is this urgent?"; echo "exit $?"no 0.05exit 1Use it straight in shell logic. Exit 1 is a real no; an unreachable endpoint is 4, never 1:
if jevx is "Is this urgent?" < "$msg"; then notify-oncall "$msg"fiA saved yes/no question works as the question: jevx is urgent < email.txt.
pick: a switch
Section titled “pick: a switch”pick needs at least two key=description options. The verdict is one key.
$ jevx pick "Which team?" web=frontend api=backend billing=money --in "charged twice"billing 0.99filter: a grep by meaning
Section titled “filter: a grep by meaning”Prints the input lines whose verdict is yes. -v inverts it.
INFO 09:12:01 request served in 12msERROR 09:12:04 payment gateway timeout after 30sINFO 09:12:05 cache warmed$ jevx filter "Is this line an error or failure?" < app.logERROR 09:12:04 payment gateway timeout after 30srank: a sort
Section titled “rank: a sort”Prints every line with its P(yes), highest first. --top N keeps the first N.
jevx rank "Is this about refunds?" --top 5 < results.txtSomething wrong or unclear on this page?Open an issue on GitHub.