- I tried AGENTS.md file and created a global rules file with always apply true, but nothing is working
- I also tried .cursorrules file and it worked
- My concern here is a general global way to format generated git message
- Rule file in (~/.cursor/rules/fileName.mdc) is best as I dont need to create same rule file in every project
- Does any one know a global way to format the generated created
Hey, thanks for the detailed test. What you found matches how it works right now.
The Generate commit message button in Source Control uses a separate, simpler flow than Agent. The only thing it picks up is the legacy .cursorrules file in the repo root. Rules from .cursor/rules/*.mdc, AGENTS.md, User Rules in Settings, and ~/.cursor/rules/*.mdc don’t affect this feature yet, and there’s no global per-machine way to configure it right now.
So for now, the working option is a small .cursorrules with your commit format in each repo, exactly like you already did.
If you want a global setting for this, there’s a feature request thread where you can add your vote: Feature Request: Allow custom rules for Generate Commit Message