brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: set defaultMode to plan so Claude Code starts every session by reading first

Claude
~/tips/tip-claude-default-mode-plan

"permissions": {

Makes new Claude Code sessions open in plan mode instead of asking per edit.

Shift+Tab switches the permission mode for the session you are in. If you want a different starting point every time, put it in your settings.

{
  "permissions": {
    "defaultMode": "plan"
  }
}

In ~/.claude/settings.json this applies to every project, in .claude/settings.json to one repository. The values are default (shown as Manual), acceptEdits, plan, auto, dontAsk and bypassPermissions.

I think plan suits a repository where you mostly ask questions or want to see a proposal before anything changes. Claude reads files and runs read-only commands, but it doesn’t edit your source until you approve a plan. For a sandbox project where you trust it with edits, acceptEdits saves a lot of clicking.

One flag still wins for a single session: claude --permission-mode acceptEdits overrides the setting until you quit.

Two limits to know. auto and bypassPermissions are ignored when they come from a project or local settings file, so a cloned repository can’t switch off your prompts. Put those in your user settings if you really want them. And deny rules apply in every mode, even the most permissive one, so this setting never undoes a deny you wrote.

Further reading: permissions.defaultMode setting, Permission modes

More Claude tips /recap /focus /skill-doctor /autocompact 500k claude purge ~/work/my-repo --dry-run All Claude tips (83) All topics

Link