r/programmer • u/Lucky-Max-472 • 1d ago
GIT workflows in the AI coding agent era...
I'm curious how software engineers are managing GIT these days, especially when working with AI coding agents like Claude Code, Cursor, Codex, etc.
A few questions:
- Do you still commit manually, or do you let your coding agent handle commits?
- Do you split changes into multiple small, logically grouped commits, or just make one big commit?
- Do you write commit messages yourself, or let AI generate them?
- Do you still care about meaningful commit messages? Or do you just ask your agent to dig into the code when you need to understand something? (seems wasteful in terms of tokens...)
- Do you have any automated workflows or skills that review uncommitted changes, group them into logical commits, and ask for your approval before committing?
I'm currently building an agent that reviews bugs, and I'm exploring ways to reduce token costs by using GIT history and metadata before having it dig into the actual code (when vibe coding, devs often work on several things simultaneously, working tree ends up containing changes from different tasks, it is easy to forget to commit things and end up with messy commits).
While looking into this, I realized that everyone seems to have a different GIT workflow in the AI coding era.
I'm trying to identify real world experiences rather than theoretical best practices and establish some guidelines that an agent could follow..
1
u/PitifulAppearance509 1d ago
In my personal projects, where I am essentially developing via the software factory concept, I do nothing you asked manually and let the AI decide.
In my daily work, where I vibe code the requirements, I do many things manually:
I doubt that what you are trying to do makes sense. Why should an AI agent not go to the source of truth to fix a bug? Why don't you just have the AI review the pull request?
If you want the AI to review the PR what it would need is basically only the refence and access to the requirement so it can check the changes against it and maybe some rule tooling like lints, scans and tests.
But maybe I don't get what you are trying to do.