ashlr

ashlr__grep

Genome-aware search. Routes through .ashlrcode/genome/ when present; falls back to ripgrep with output truncation.

Server: ashlr-efficiencyservers/efficiency-server.ts

Replaces Claude Code's built-in Grep tool. When a .ashlrcode/genome/ index exists in the project, search is routed through the genome retriever (RAG), which returns pre-extracted knowledge snippets instead of raw file matches — typically ~84 % fewer tokens on warm queries. Without a genome, falls back to ripgrep with output truncation.

Input schema

FieldTypeRequiredDescription
patternstringyesRegex or literal search pattern
pathstringnoDirectory or file to search in (default: cwd)
globstringnoGlob filter, e.g. **/*.ts
-ibooleannoCase-insensitive match
output_modestringnocontent, files_with_matches, or count
contextnumbernoLines of context around each match
head_limitnumbernoMax results to return

Output format

Genome mode returns structured knowledge snippets with source references. Ripgrep fallback returns matched lines with file:line references, truncated to head_limit.

Example

Use ashlr__grep to find all calls to recordSaving in servers/

Savings baseline

Genome mode: median −84 % vs raw ripgrep output. Ripgrep fallback: ~40 % via truncation.

On this page