Skip to content

Open-source, local-first AI agent for real work.

956 B
Raw Blame
export const FIND_TOOL_DESCRIPTION = `Deferred high-volume path matching by glob pattern. Returns matching file AND directory paths relative to the search directory, respects .gitignore, and defaults to 1000 results.

Use this tool only when it has been explicitly activated and you intentionally need either a large path result set — such as continuing an inventory after the primary \`glob\` tool reached its practical limit — or directory paths, which \`glob\` never returns. For ordinary file matching, use \`glob\` instead; do not call both tools for the same search.

Routing:
- Use \`glob\` for normal file path matching by exact name or wildcard pattern.
- Use \`find\` only for the high-volume or directory-matching cases described above.
- Use \`grep\` for text or patterns inside file contents.
- Use \`dir_tree\` to inspect directory hierarchy.
- Do not use shell commands such as find, fd, rg --files, or locate for these path searches.`;