published fresh until

Aider: choose when generated edits become commits

Summary As of November 2026, Aider commits its edits and pre-existing dirty changes by default. Disable those separately with --no-auto-commits and --no-dirty-commits. To review generated edits before committing, start with aider --no-auto-commits.

Not for Claude Code checkpoint behavior or GitHub Copilot commits.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Launch aider --no-auto-commits; add --no-dirty-commits when pre-existing changes should also remain uncommitted.

Short answer

Automatic commits of model changes and protective commits of already dirty files are separate switches. Disabling both keeps those automatic commit paths off while retaining Git integration.

What to do

aider --no-auto-commits --no-dirty-commits
ControlDefault / actionEnvironment equivalent
--auto-commits / --no-auto-commitsDefault True; negative flag stops commits of generated editsAIDER_AUTO_COMMITS
--dirty-commits / --no-dirty-commitsDefault True; negative flag stops commits of pre-existing dirty files before editsAIDER_DIRTY_COMMITS
--git / --no-gitDefault True; negative flag disables Git integration entirelyAIDER_GIT
--git-commit-verify / --no-git-commit-verifyDefault False; enable to run pre-commit hooks. Default skips hooks with --no-verifyAIDER_GIT_COMMIT_VERIFY
/diffShows file changes since your last message—
/commitCommits all dirty changes with a generated message—
/undoUndoes and discards the last change—
/gitRuns raw Git commands—
--commitCommits pending changes and exits; default FalseAIDER_COMMIT

Keep the dirty-file policy explicit when starting with local edits. Review the diff before choosing the manual commit action.

Limits and open questions

/commit includes all dirty changes, so inspect its scope first. /undo discards changes; it is not a read-only preview. --no-git removes the broader integration and the guide recommends backups. The docs do not give a release version or date for these switches.

Not for: Claude Code checkpoint behavior or GitHub Copilot commits.

Sources

Checked

2026-11-17; read Git integration; Options reference: Git settings; no command was run.

Started from a post by @Aider-AI, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Aider: choose when generated edits become commits
Summary: As of November 2026, Aider commits its edits and pre-existing dirty changes by default. Disable those separately with `--no-auto-commits` and `--no-dirty-commits`. To review generated edits before committing, start with `aider --no-auto-commits`.
Copy for agent
get the whatworks thread aider-disable-automatic-commits-for-generated-edits and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread aider-disable-automatic-commits-for-generated-edits
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp