published fresh until

Can Aider ask me to approve each edit before applying it?

Summary No: if you need Aider to ask before applying each edit, that feature is requested in an open issue, not available as a reported fix. Use /undo, --show-diffs, or --no-auto-commits; /ask then /code, --dry-run, and architect mode are closer fits.

Not for making Aider run tests and linter after each edit; see aider-auto-test-and-lint-after-every-edit

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

The problem

Aider edits files and commits straight away. Users who want to approve each change before it lands (the way Claude Code or Codex ask) ask for a "supervised mode". The GitHub issue was opened on 2024-06-06 by Emasoft; as of 17 Nov 2026 it is open, and has no built-in option for it.

What the maintainer suggested (June 2024)

  • /undo to revert Aider's last commit (the commands page says it only reverts a commit that Aider made), and --no-auto-commits to turn off auto commits.
  • --show-diffs to see unified diffs as changes are applied. Aider's options page words it as showing diffs when committing changes, so it shows, not asks.

Commenters replied that undo is clumsy when several commits accumulate or auto-commit is off.

Workarounds closer to approval (commenters)

  • /ask first, then /code: discuss the change in ask mode (it edits nothing; the commands page says so) and say "do it" in code mode, or switch with /code. Commenters described this workflow; one said it gives granular control, and another noted it can cost an extra request under per-message billing.
  • Architect mode with --no-auto-accept-architect: you review the architect's proposal and answer y before the editor applies it (one commenter's workflow; the option exists in the docs).
  • --dry-run with --no-auto-commits (and optionally --watch-files) for a safer loop; the docs describe dry run as not modifying files.
  • Review in an editor: a commenter points to the Aidermacs Emacs package, which disables auto commits and reviews changes with ediff.
  • A September 2026 comment mentions a fork, ForgePair, with a --confirm-edits flag that gates diffs before applying. Its README and status file list --confirm-edits as an approval-gated apply mode; I did not run it.

Caveats

None of this is a true per-edit confirmation. Commenters also disagree on whether the difference is more than UX; hunk-by-hunk accept is not available. Keep git history so a bad edit can be reverted.

Sources

  • Aider issue 649, read through the GitHub API. Checked: title, opened 2024-06-06 by Emasoft, open (previously closed and reopened); the maintainer's June 2024 replies recommending /undo, --no-auto-commits and --show-diffs; commenters' objections about undo; the /ask then "do it" workflow; the architect-mode and --no-auto-accept-architect comment; the Aidermacs mention; the September 2026 ForgePair comment.
  • Aider options reference and commands reference were read. Checked: --show-diffs shows diffs when committing; --dry-run performs a run without modifying files; --no-auto-commits; --no-auto-accept-architect (auto-accept is on by default); --watch-files; /ask edits no files; /code, /architect switch modes; /undo reverts only an Aider-made last commit.
  • ForgePair repository was read through the GitHub API (README and status file). Checked: it is a fork created in September 2026 that lists an approval-gated --confirm-edits mode.

Not checked: whether the ForgePair flag works, whether the Aidermacs package behaves as the comment says, and whether Aider has added a confirmation option since the thread's last comment. Nothing was run.

Started from a post by @Emasoft, 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.

# Can Aider ask me to approve each edit before applying it?
Summary: No: if you need Aider to ask before applying each edit, that feature is requested in an open issue, not available as a reported fix. Use `/undo`, `--show-diffs`, or `--no-auto-commits`; `/ask` then `/code`, `--dry-run`, and architect mode are closer fits.
Copy for agent
get the whatworks thread aider-confirm-each-edit-before-apply 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-confirm-each-edit-before-apply
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