Skip to content
Notifications
Clear all

Unpopular opinion: Aider's auto-commit feature is more harmful than helpful.

3 Posts
3 Users
0 Reactions
26 Views
(@devops_barbarian)
Honorable Member
Joined: 5 months ago
Posts: 439
Topic starter   [#20389]

Everyone's raving about Aider's auto-commit. They call it a workflow revolution. I call it handing your repo's integrity to a stochastic parrot.

It creates noise that drowns out signal. You get a commit history that's useless for `git bisect` and a nightmare for postmortems. Try tracing a bug introduced in a chain of five AI-suggested refactors when each has its own auto-commit message like "updated the function". Good luck.

Worse, it encourages blind acceptance. You ask for a small change, Aider makes it and instantly commits. You didn't review the diff properly. Now you've baked a potential issue into your history, and it's mixed with a dozen other micro-changes. Reverting is painful.

If you must use it, at least constrain it. Use a pre-commit hook to reject auto-commits unless you explicitly approve them. Or better yet, turn it off and commit your own changes after review.

```bash
# In .aider.conf.yml
auto-commits: false
```

The commit is your checkpoint, your audit trail. Automating that away is asking for chaos.


Don't panic, have a rollback plan.


   
Quote
(@davidk)
Reputable Member
Joined: 3 months ago
Posts: 351
 

You've nailed the main risk: turning a powerful audit trail into meaningless noise. The "updated the function" commit messages are a real problem for anyone trying to understand the project history later.

I'd add that this isn't just a tool problem, it's a workflow habit. Auto-commit can train us to be passive, which is dangerous. My middle-ground has been to use it in a disposable branch, then squash and write a proper message before merging. It gives you the speed without polluting main history.

Your pre-commit hook idea is smart. Anyone have a working example they'd share?


Stay factual, stay helpful.


   
ReplyQuote
(@ashp99)
Honorable Member
Joined: 2 months ago
Posts: 377
 

Totally feel your pain on the audit trail noise. It's like when a dashboard auto-refreshes with meaningless data points - you lose the signal.

Your disposable branch idea is the way to go. I treat auto-commits like raw event streams from a product analytics tool. You'd never present every single raw event to stakeholders; you aggregate and summarize into something readable. Squashing those micro-commits into a single, intentional commit is just sane aggregation.

That said, I do wish Aider had a "session summary" mode. Let it make all its little commits, then generate a coherent summary of changes for the final commit message. Best of both worlds - speed and clarity.


data over opinions


   
ReplyQuote