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: /branch lets you try another direction without losing this conversation

CLI
~/tips/tip-claude-branch-conversation

/branch try-sqlite

Splits the current Claude Code conversation so you can explore a different direction safely.

Sometimes you want to ask "what if we did it the other way" and you do not want to wreck a good session doing it.

/branch creates a branch of the current conversation at this point and switches you into it. The original stays as it was.

/branch try-sqlite

The name is optional. To go back to the original, use /resume and pick it from the list.

It is the conversation-level version of a git branch, and I find it easier to be bold with an experiment when I know the good state is still there.

/fork is a close cousin: it copies the conversation into a new background session and you keep working where you are, which suits a side task that should run alongside. With a prompt, the copy starts on it right away.

A good moment for this is right after Claude finishes a plan and before you commit to it. Branch, tell the copy to go with the alternative approach, and compare the two answers. The conversation context up to that point is shared, so you are not paying to explain the project twice, and the original is still there if the experiment goes nowhere.

Note the difference from /rewind: that one moves the same conversation backwards, while /branch leaves two conversations that both exist.

Further reading: Commands – Claude Code docs, Manage sessions – Claude Code docs, On this site: /statusline builds you a status bar with context usage in it, On this site: /copy 2 copies Claude's second-to-last answer, not just the last

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