claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Feature Request] Option to start session with `auto-accept edits on` (shift-tab).

Open ftzi opened this issue 1 year ago • 9 comments

I always use the auto-accept edits on. Sometimes it's frustrating that in my new session I did a request to minutes later find it stopped at the beginning because I didn't set that mode on.

Can we have a setting for it in the .claude/settings.local.json file, to set the default mode?

ftzi avatar Jul 23 '25 23:07 ftzi

claude --permission-mode acceptEdits

~> claude --help ... --permission-mode <mode> Permission mode to use for the session (choices: "acceptEdits", "bypassPermissions", "default", "plan")

put it in your shell config, e.g. .bashrc: alias claude='claude --permission-mode acceptEdits'

mkbrechtel avatar Jul 24 '25 00:07 mkbrechtel

Thnx! I didn't know there was such option, I will use it. Still, I would appreciate a setting in the JSON file as aliases are a bit hacky

ftzi avatar Jul 24 '25 14:07 ftzi

+1 to be able to configure this instead of creating aliases.

mnapoli avatar Jul 30 '25 09:07 mnapoli

I'd rather have it in settings.json (or similar) than append to command line each time

baleti avatar Sep 13 '25 23:09 baleti

Please make auto-accept edits sticky via a write to settings.local.json

Bonus points: give a warning, and suggestion to create, if there isn't a local git repo

ghost avatar Oct 25 '25 08:10 ghost

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 09 '25 10:12 github-actions[bot]

Since this is the top search result (for me at least), to anyone coming here looking for how to do this without an alias, add/merge this into to your .claude/settings.local.json

{
  "permissions": {
    "defaultMode": "acceptEdits"
  }
}

brandon-pereira avatar Dec 16 '25 20:12 brandon-pereira

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] avatar Jan 16 '26 10:01 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Jan 23 '26 14:01 github-actions[bot]