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.

Clean git repoaider --messagegit show

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.

1
One message, then exit
on
auto-commits default
(aider)
Mark on the author name

Four steps to the first reviewable diff

  1. 1

    Use the official install

    With Python 3.8–3.13: python -m pip install aider-install, then aider-install. It uses a separate environment and can install its own Python 3.12. macOS / Linux can also run curl -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, try python -m aider.

  2. 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 first git show can be your old work. Run git status and start clean.

  3. 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 is aider --model sonnet --api-key anthropic=<key> (commented as Claude 3.7 Sonnet). --model deepseek and --model o3-mini are the other samples. Name only the file to edit. Keep the key a placeholder, not a committed secret.

  4. 4

    After exit, git show — not /diff

    --message leaves chat, so the review command is git show. Commits Aider authored append (aider) to the author and committer names. /diff shows file changes since your last message only while chat is still open. /undo discards 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 show

Do not treat these as one diff

CommandWhat it actually doesStop here for the first diff?
aiderOpens a sessionNo — nothing committed
aider --messageEdits the file and exitsThis writes the diff
git showShows the auto-commitReview after exit
/diffChanges since the last messageOnly while chat is open
--no-auto-commitsLeaves edits in the worktreeReview with git diff
01

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.

02

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.

03

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.

Start a free meeting