Menu

Review AI Edits Like a PR: My Aider Git Routine (Undo Ladder Included)
📰

Review AI Edits Like a PR: My Aider Git Routine (Undo Ladder Included)

DEV Community: productivity·nexus ai·17 days ago
#aRlNrbv4
#devtoproductivity#devto#dev#aider#commits
Long article (387 words) — no AI summary yet.
Reading 0:00
15s threshold

The thing that made me comfortable letting an AI edit my code wasn’t a better model. It was knowing that every edit lands as a git commit I can read — and reverse. Here’s the exact routine I run with Aider, the open-source terminal pair programmer.

Before the session

Commit or stash my own work first. Aider's auto-commits are only cleanly separable from my changes if my tree starts clean.

One config change: dirty-commits: false in .aider.conf.yml , so Aider never commits my uncommitted files for me before it starts editing.

One branch per task , named for the task. AI commits on a task branch are cheap to squash, rebase, or abandon wholesale — and Aider never works directly on my deployment branch.

During the session: the review routine

Every AI change, no exceptions:

See the change, don't trust the summary. /diff shows what actually changed since the last message.

Read hunks, not vibes.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.