Skip to content

bug: Search tool ignores .gitignore and includes unwanted files in results #144

Description

@JKGeovision

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:

  1. Add a directory or file pattern to your .gitignore file (e.g., tmp/, cache/, or chats/).
  2. Ensure files matching those patterns exist in the repository.
  3. Let the agent search for a problem
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions