First reviewable diff: aider --message
The chat reply is not the diff. aider --message writes it, then git show is the review.
The chat reply is not a reviewable diff. The command that writes the first one is aider --message: the official example edits hello.js, exits, and auto-commits. Open a wbmeet room and paste git show for a teammate.
The query is the first diff Aider writes in a git repo. The scripting page says --message does that one thing, applies the edits, then exits and disables chat mode. Usage says Aider shows diffs and git commits every change.
Why the chat reply is not the first diff
The git page says Aider works best inside a git repo. With no repo, it asks to create one. Whenever it edits a file, it commits with a descriptive message, so you can review or undo. The reviewable result is that commit, not the paragraph in the terminal.
Four steps to the first reviewable diff
- 1
Use the official install
With Python 3.8–3.13:
python -m pip install aider-install, thenaider-install. It uses a separate environment and can install its own Python 3.12. macOS / Linux can also runcurl -LsSf https://aider.chat/install.sh | sh. Windows PowerShell:powershell -ExecutionPolicy ByPass -c "irm https://aider.chat/install.ps1 | iex". Plain pip supports Python 3.9–3.12:python -m pip install -U --upgrade-strategy only-if-needed aider-chat. If the command is missing, trypython -m aider. - 2
cd into the repo and check git status
The install page’s next line is
cd /to/your/project. On a dirty tree, Aider first commits your existing uncommitted changes, then edits. The firstgit showcan be your old work. Rungit statusand start clean. - 3
Run aider --message — that writes the diff
The official example is
aider --message "make a script that prints hello" hello.js. The install page’s model line isaider --model sonnet --api-key anthropic=<key>(commented as Claude 3.7 Sonnet).--model deepseekand--model o3-miniare the other samples. Name only the file to edit. Keep the key a placeholder, not a committed secret. - 4
After exit, git show — not /diff
--messageleaves chat, so the review command isgit show. Commits Aider authored append(aider)to the author and committer names./diffshows file changes since your last message only while chat is still open./undodiscards the last AI change.
# Official · aider.chat · read 2026-11-16
python -m pip install aider-install
aider-install
cd /to/your/project
git status
aider --model sonnet --api-key anthropic=<key> \
--message "make a script that prints hello" hello.js
git showDo not treat these as one diff
| Command | What it actually does | Stop here for the first diff? |
|---|---|---|
aider | Opens a session | No — nothing committed |
aider --message | Edits the file and exits | This writes the diff |
git show | Shows the auto-commit | Review after exit |
/diff | Changes since the last message | Only while chat is open |
--no-auto-commits | Leaves edits in the worktree | Review with git diff |
A dirty tree commits your old edits first
The git page says Aider commits preexisting uncommitted changes before it edits. That commit appends (aider) only to the committer. Commits Aider authored append (aider) to both author and committer.
Pre-commit hooks are skipped
By default Aider uses --no-verify (--git-commit-verify=False). Pass --git-commit-verify when hooks must run. The message comes from the weak model and follows Conventional Commits. That is not a human approval.
Install detail lives in the other note
Keys, models, and a longer first task: Aider install notes. Usage says to add only the files that need editing.
Official scripting: --message does one thing, applies the edits, then exits. Git page: every edit is committed with a descriptive message.
To walk through that git show, create a room on the wbmeet homepage and share the room ID. No extra meeting client. Steps: create and join a room. When not to open a heavy meeting app.
Easy places to misread the diff
Does --message leave a commit?
By default, yes. The scripting page sets auto-commits to True. With --no-auto-commits the edits stay in the worktree, and the review is git diff.
Can you run /diff after it exits?
No. --message disables chat mode and exits. /diff shows file changes since the last message only while the session is open. After exit, use git show.
What if the directory is not a git repo?
The git page says Aider asks to create one. --no-git stops git entirely, and the docs say to keep your own backups. That path has no reviewable git diff.
Is the first commit always code Aider wrote?
No. On a dirty tree it first commits your existing changes. Check git status. Commits Aider authored carry (aider) on both author and committer.