[FEATURE] Allow creating a new branch directly from the branch selector when no matches are found
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
The branch selector in the bottom bar (next to the worktree toggle) only filters existing branches. When I type a name that doesn't exist yet, it shows "No hay ramas que coincidan" / "No matching branches" but gives no option to create the branch from there.
This forces me to either:
- Ask Claude in the prompt to run
git checkout -b <name>, or - Open a separate terminal, create the branch manually, and then reopen/refresh the selector.
Both break the flow when I'm starting a new task and just want to spin up a feature branch quickly.
Proposed Solution
When the typed name doesn't match any existing branch, show a "Create branch <name> from <current-branch>" option as the last item in the dropdown. Selecting it should run git checkout -b <name> (or create a worktree if worktree mode is active) and switch to it automatically.
Bonus: allow picking the base branch (default to current HEAD) inline.
Alternative Solutions
Current workarounds:
- Asking Claude in the prompt to run
git checkout -b <name>, which works but requires a full prompt cycle for what should be a one-click action. - Opening a separate terminal to run the git command manually, then refreshing the selector so the new branch shows up.
Both break the flow when starting a new task.
Priority
High - Significant impact on productivity
Feature Category
Interactive mode (TUI)
Use Case Example
Example scenario:
- I'm starting a new feature on my monorepo (Zuno ERP) and open Claude Code on the Code tab.
- I click the branch selector in the bottom bar and type
feat/custom-xxx. - The selector shows "No matching branches" — but gives me no way to create it.
- With this feature, I could click "Create branch
feat/custom-xxxfrom main" directly in the dropdown and start working immediately. - This would save me time because I create several feature branches per day and every one currently needs either a prompt round-trip or a context switch to a terminal.
Additional Context
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗