Back to directory

grev

A set of Unix coreutils-style filters — grep, sort, cut and more — that answer a plain-language question about each record instead of matching a pattern, using a small decision model.

grev

grev is a family of Unix filters that ask a question instead of matching a pattern, each modeled on a familiar coreutil: grev prints the records a model says yes to, like grep; isv answers a yes/no question about the whole input through its exit status, like test; sortv and rank sort records by a description or how well they fit; tagv labels every record and can route them into files, like awk; pickv returns the one line or match that best answers a question, like grep -o; and further tools mirror uniq, fmt, csplit, cut, find, tr/sed and git bisect.

The tools run on TypeSafe's Jev models, which answer typed questions with calibrated probabilities instead of generating free text, so output is always the caller's own input with labels and scores appearing only in explicit columns — a few thousand lines costs fractions of a cent and takes seconds. Every tool has --help and a man page, with shared flags for progress and projected cost, a cost-and-confirm prompt, parallelism and a per-run budget cap; configuration lives in one file.

It is written in Go, packaged for Linux, macOS, FreeBSD and Windows, and Apache-2.0 licensed.

More in CLI tools

See all 181
  • A Node.js script that exports a Google Doc to HTML and CSS with high fidelity, preserving headings, spacing, alignment, bullet lists, images and right-to-left text.

  • gpusched

    github.com

    A VRAM-aware GPU job scheduler for a single machine: declare how much memory each shell command needs, and it places jobs the moment a GPU has room and reports when a guess was wrong.

  • A CLI that translates a plain-English request into a shell command using an LLM, printing only the command so it composes cleanly with the rest of the shell.