patternstringrequired**/*.md, notes/*.{txt,md}, src/**/*.test.js.
pathstringFolder to search in. The workspace root by default.
The patterns
| Written | Matches |
|---|---|
*.md | Markdown files at that level |
**/*.md | Markdown files at any depth |
src/**/*.{ts,tsx} | Either extension, under src |
**/test-* | Anything whose name starts with test- |
Why it matters to the bill
A walk is one turn per folder
Listing a tree by hand costs a turn for each level. A pattern costs one. The system prompt tells the agent to use glob and grep instead of guessing paths, for exactly that reason.
What usually follows
read { paths } with several of the matches in one call — the two together are how an agent takes in a project in two turns.