Feature request for product/service
Cursor IDE
Describe the request
Recently I added to my custom rules that after the AI is done making changes, it should always summarize its changes/my request into a single concise sentence and make a git commit with that as the message. For me this has worked a lot better than clicking on a message to revert back to a state. I trust git more with that. Trust aside, git is the tool everyone is already/should be using. If git is a part of your workflow, it makes sense to have every version committed, but it’s easy to forget to do this every time you interact with the AI.
Anyways, my concrete suggestion is:
- Have an “auto commit” setting.
- When the auto commit setting is on, before every interaction, cursor will check the git status of the repo. If it’s dirty, cursor will prompt you to either commit/stash yourself, cancel, or use a small model to generate a commit message for you.
- The AI does its thing as usual.
- A small model automatically makes a commit describing your request/the changes it made. If we’re only inputting the user request message/history and not using the latest AI changes as part of the context of the commit message, which could be viable, then this can even be done in parallel.
This way, every single state is in a robust history outside of Cursor as well.
This works great as a custom rule, but it’s a bit finicky, and imo it’s just a distraction for the AI when another small model could be doing this. Additionally, with a custom rule it doesn’t commit at the beginning if git is dirty, and I don’t want to instruct the AI to do that because that’s additional context for a situation that is not occurring 100% of the time and adds extra time to the beginning of every request. So I think this is better as a built in feature.
Thanks for considering ![]()