How to review an Aider edit after it has made a Git commit
Aider can commit its edits as it works. To review those edits, inspect the actual commit and check the working tree for anything still uncommitted.
Start with a known branch state
Before asking Aider to make a change, use git status --short to see what is already modified. Aider’s documentation says it can commit existing dirty changes before it touches those files. Starting on a dedicated branch with your own work already saved makes the sequence easier to review.
In the session, Aider’s /diff command shows changes since your last message. After the session, use git log -3 --oneline to find the change, then git show <commit> to read its patch. Check git diff for unstaged edits and git diff --cached for staged edits. An empty working-tree diff can coexist with a new commit.
Choose when to form the commit
For a session where you want to inspect edits and run checks before committing yourself, start Aider with --no-auto-commits. If you also need to control how existing dirty edits are handled, review --no-dirty-commits separately. They govern different points in the workflow.
For a shared branch, record a reversal with git revert <commit> after checking that the selected commit contains the change you want to reverse. This creates a reviewable record in the branch history. The Aider behavior here follows its Git documentation.