ashlr__glob
Token-efficient glob matching. Uses git ls-files inside a repo; groups large results by directory with counts.
Server: ashlr-glob — servers/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
| Field | Type | Required | Description |
|---|---|---|---|
pattern | string | yes | Glob pattern, e.g. **/*.ts or servers/*-server.ts |
path | string | no | Root directory to search (default: cwd) |
limit | number | no | Max results before grouping kicks in (default: 20) |
Output format
Under 20 results (verbatim):
Over 20 results (grouped):
Example
Related tools
ashlr__tree— full directory structureashlr__grep— search by content rather than name