ashlr

ashlr__glob

Token-efficient glob matching. Uses git ls-files inside a repo; groups large results by directory with counts.

Server: ashlr-globservers/glob-server.ts

Replaces Claude Code's built-in Glob tool. Inside a git repo, uses git ls-files with the pattern (honors .gitignore for free). Outside git, uses a readdir walk with a default exclusion set. Output is compressed: 20 matches listed verbatim, over 20 grouped by top-level directory with counts.

Input schema

FieldTypeRequiredDescription
patternstringyesGlob pattern, e.g. **/*.ts or servers/*-server.ts
pathstringnoRoot directory to search (default: cwd)
limitnumbernoMax results before grouping kicks in (default: 20)

Output format

Under 20 results (verbatim):

servers/efficiency-server.ts
servers/bash-server.ts
servers/diff-server.ts
[5 files]

Over 20 results (grouped):

servers/  12 files matching **/*.ts
scripts/  8 files matching **/*.ts
site/app/  31 files matching **/*.ts
[total: 51 files]

Example

Use ashlr__glob to find all server files: servers/*-server.ts

On this page