Hello,
I've discovered that the search tool does not respect the .gitignore file, causing temporary files, cache directories, and other chats to appear in search results and unnecessarily burn through tokens.
Steps to reproduce:
- Add a directory or file pattern to your
.gitignore file (e.g., tmp/, cache/, or chats/).
- Ensure files matching those patterns exist in the repository.
- Let the agent search for a problem
- Observe that the ignored files/directories still appear in the search results.
Expected behavior:
Files and directories listed in .gitignore should be excluded from search results, keeping output clean and token-efficient.
Actual behavior:
All files are returned regardless of .gitignore rules, including temporary files and unrelated chat data.
Thank you for looking into this!
Joshua Krimmer
Hello,
I've discovered that the search tool does not respect the
.gitignorefile, causing temporary files, cache directories, and other chats to appear in search results and unnecessarily burn through tokens.Steps to reproduce:
.gitignorefile (e.g.,tmp/,cache/, orchats/).Expected behavior:
Files and directories listed in
.gitignoreshould be excluded from search results, keeping output clean and token-efficient.Actual behavior:
All files are returned regardless of
.gitignorerules, including temporary files and unrelated chat data.Thank you for looking into this!
Joshua Krimmer