Search a directory by meaning
jev_searchSearch a directory to answer questions, ranking ripgrep matches with neighboring lines to return the most relevant hits with paths and line numbers.
Instructions
Find the lines across a whole directory that answer a question, instead of reading pages of grep hits. The server runs ripgrep (honouring .gitignore and .ignore, skipping hidden, binary and credential files), keeps lines matching an optional regex 'pattern' as candidates, and Jev ranks them with their neighbouring lines. Returns path, line number and the line's text for the best hits, per question. Use a broad pattern to narrow cheaply (e.g. 'retr|backoff'), then let Jev judge meaning. Without a pattern every non-empty line is a candidate, so also set include or a small dir. Pass every question you have about this area in one call, with a pattern covering all of them: the candidates are read once for all questions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Directory to search, below an allowed root. Relative paths resolve against the first root. | . |
| top | No | How many hits to return per question. | |
| context | No | Neighbouring lines sent with each candidate, on each side. | |
| include | No | Only files whose name ends with one of these, e.g. ['.ts', '.md']. | |
| pattern | No | ripgrep (Rust) regex a line must match to be a candidate. No lookaround or backreferences. | |
| questions | Yes | Every question you have about this text, each stated in full (up to 16). They are judged in one pass over the same text, so extra questions cost almost nothing: batch them rather than calling again. Questions cannot see each other's answers. | |
| ignore_case | No | Match pattern case-insensitively. | |
| no_at_or_below | No | Probability at or below which a check's verdict is 'no'. Default 0.3. Between the two the verdict is 'uncertain'. | |
| yes_at_or_above | No | Probability at or above which a check's verdict is 'yes'. Default 0.7. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| usage | Yes | ||
| results | Yes | One per question, in the order asked. | |
| windows | Yes | ||
| candidates | Yes | Lines judged. | |
| latency_ms | Yes | Wall-clock milliseconds for the API round trip, for your own calibration logs. | |
| thresholds | Yes | ||
| files_matched | Yes | Files with at least one candidate line. |