Hard-coded 'scout' references reached the model even when the scout agent was disabled via task.disabledAgents or absent from the session spawn list. Gate every such reference on scout actually being spawnable: the task tool description, the delegation gates, the plan-mode and workflowz notices, the glob/grep/ast-grep guidance, and the task specialization advisory. Prompt shape is otherwise unchanged; only erroneous references to the unavailable subagent are dropped. Closes #7313
750 B
750 B
Globs files, directories, and path-backed internal URLs with fast pattern matching.
- `path`: glob, file, directory, or path-backed internal URL; separate targets with `;` (`src/**/*.ts; test/**/*.ts`). - `memory://` glob patterns are supported. `ssh://` has no local path; use `read`. Other internal URLs accept exact paths only. - `gitignore` defaults `true`. Set `false` for ignored files such as `.env*`, logs, or build output. - `hidden` defaults `true`; pair it with `gitignore: false` for ignored dotfiles. Matches are newest-first and grouped by directory; directories end in `/`. Open-ended multi-round discovery → {{#if scoutAvailable}}Task + scout.{{else}}Task.{{/if}}