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: press Ctrl+G in plan mode and edit Claude's plan yourself

Claude
~/tips/tip-claude-plan-mode-ctrl-g

claude --permission-mode plan

Lets Claude Code plan first, and lets you edit that plan in your editor before it changes anything.

I like plan mode because it makes the agent think out loud before it touches anything. What I like more is that I can edit the plan.

Plan mode lets Claude read files, run exploring commands and write a plan, without editing your source until you approve. Enter it with Shift+Tab, with /plan in front of a prompt, or at startup.

claude --permission-mode plan
/plan fix the auth bug

When the plan is ready, Ctrl+G opens it in your text editor. Delete the step you disagree with, add a constraint, save, and then approve. The options after that are to start in auto mode, to approve and review each edit yourself, or to keep planning.

Instead of reading a plan and hoping, you correct it where it is wrong, and then the edits start from your version. It is a cheap way to catch a bad assumption before it turns into forty changed lines.

The caveat: at the approval prompt, press Esc before anything else if you want to leave without approving. Shift+Tab there approves the plan. To make plan mode the default for a project, set "permissions": {"defaultMode": "plan"} in .claude/settings.json.

Further reading: Permission modes – Claude Code docs, On this site: name your Claude Code sessions and resume them by name, On this site: Ctrl+O opens the transcript view where Claude's work is not hidden

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

Link