Skip to content

Conversation

@jruales
Copy link
Contributor

@jruales jruales commented Dec 12, 2025

Fixes #276773

Copilot AI review requested due to automatic review settings December 12, 2025 19:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes the recursive search for AGENTS.md files case-insensitive by updating the glob pattern to use character classes. This ensures that instruction files with various casings (e.g., 'agents.md', 'Agents.md', 'AGENTS.MD') are discovered, improving the robustness of the agent instruction file detection feature.

Key changes:

  • Updated file pattern from **/AGENTS.md to **/[Aa][Gg][Ee][Nn][Tt][Ss].[Mm][Dd] to support case-insensitive matching
  • Added explanatory comment documenting the workaround approach

Copy link
Contributor

Copilot AI commented Dec 12, 2025

@jruales I've opened a new pull request, #283125, to work on those changes. Once the pull request is ready, I'll request review from you.

* Initial plan

* Add test for case-insensitive AGENTS.md file search

Co-authored-by: jruales <1588988+jruales@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jruales <1588988+jruales@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filename case-sensitivity in discovery of AGENTS.md files isn't consistent

2 participants