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: /plan fix the bug starts plan mode and the task in one go

CLI
~/tips/tip-cli-plan-slash-command

/plan fix the login redirect bug when the session cookie has expired

Switches to plan mode with a task attached, so nothing gets edited before you agree.

For a change I want to think through first, I want a plan before any file is touched. You don’t have to press Shift+Tab until the status bar says plan mode.

Type /plan followed by what you want done:

/plan fix the login redirect bug when the session cookie has expired

The session goes into plan mode and starts on that task right away. In plan mode Claude reads files and proposes a plan but makes no edits until you approve it. The status bar shows that plan mode is on.

Without a description, /plan only switches the mode, and your next message is the task.

From the shell, the plan permission mode starts a whole session that way.

I like it for anything that touches more than a couple of files, or where I’m not sure about the approach yet. Reading a plan takes a minute, and rejecting it is cheaper than undoing edits.

The plan is only as good as the task you give it. A vague description gets a vague plan, so mention the symptom, where you suspect the cause and what must not change. Plan mode limits edits, but reading files still happens, so it is no protection for secrets in the repository. That is what deny rules in your permissions are for.

Further reading: Commands (Claude Code docs), Permission modes (Claude Code docs)

More CLI tips printf 'GET /\r\n' | hexdump -C hexdump -C -s 512 -n 64 disk.img wget --limit-rate=2m https://example.com/big-file.iso wget --spider https://example.com/file.zip rg 'apiKey' -g '!*.min.js' -g '!package-lock.json' All CLI tips (46) All topics

Link