Search workspace and rank matches with Jev
search_and_rankRuns ripgrep and ranks matches by relevance, returning only top results when raw search exceeds 20 candidates or 4K tokens.
Instructions
Run read-only ripgrep inside the current workspace, then use Jev to return only relevant matches. Use automatically when raw search would exceed 20 candidates or about 4K tokens. English judgments only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | literal | |
| top_k | No | ||
| patterns | Yes | ||
| exclude_globs | No | ||
| include_globs | No | ||
| relevance_criterion | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usage | Yes | ||
| status | Yes | ||
| results | Yes | ||
| truncated | Yes | ||
| evaluated_count | Yes | ||
| fallback_reason | No | ||
| raw_match_count | Yes |