Skip to content

Conversation

@patrickomeara
Copy link
Contributor

I have been weighting my guidelines by filename 10-project.md, 20-frontend.md etc to give priority to the LLM.

Symfony's finder seems to let the OS decide which order the files are returned. My MacOS setup is returning the by last modified by default, which is changing the order whenever I update.

This PR sorts the files by name before writing the agent files.

Without explicit sorting, Symfony Finder returns files in filesystem order
(often by modification time), causing numerically-prefixed guidelines like
00-scope.md, 10-frontend.md, 50-formatting.md to appear in unpredictable order.

This adds sortByName() to ensure guidelines are composed in the order their
filenames suggest.
@pushpak1300 pushpak1300 merged commit f416821 into laravel:main Jan 28, 2026
17 checks passed
@pushpak1300
Copy link
Member

Thanks !

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.

2 participants