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: up to 20 matches are listed verbatim. Over 20 are grouped by top-level directory, with a count and sample paths for each. A footer line reports the pattern, match count, directory count and limit.
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
pattern | string | yes | Glob pattern, e.g. **/*.ts or servers/*-server.ts |
cwd | string | no | Directory to search in (default: cwd) |
limit | number | no | Max matches to return (default: 200) |
Output format
20 or fewer results (verbatim):
Over 20 results (grouped by top-level directory):
Example
Related tools
ashlr__tree— full directory structureashlr__grep— search by content rather than name