[FEATURE] Allow Claude Code Web to start sessions from branches other than default branch
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
Currently, Claude Code Web can only start coding sessions from the default branch. This becomes a limitation for individuals and teams using structured workflows like GitFlow or other multi-branch strategies. In such cases, the main branch is often several commits or even releases behind the develop branch or active feature branches.
As a result, Claude Code Web lacks access to the most recent context, dependencies, and code changes that are relevant to ongoing development work.
Proposed Solution
Allow users to select which branch Claude Code Web should start from before initiating a coding session.
This could be implemented through a branch selector in the session start dialog.
Alternative Solutions
_No response_
Priority
High - Significant impact on productivity
Feature Category
Other
Use Case Example
In many modern development workflows, it is common for multiple branches to be active simultaneously, each addressing different aspects of the project:
- A feature/payments-integration branch may introduce new API endpoints and transaction logic that are not yet part of the main codebase. Starting Claude Code Web from this branch would ensure access to the most relevant feature-specific context.
- A hotfix/login-timeout branch might exist to resolve an urgent production issue. Starting from this branch allows work to proceed against the stable production code without interference from ongoing development changes.
- A develop branch often contains general updates, dependency upgrades, and integrated work from multiple contributors. Starting Claude Code Web from this branch would provide an up-to-date view of the project’s development status before releasing.
The ability to start Claude Code Web from any of these branches would make it easier to maintain accurate context and deliver more relevant code assistance across concurrent development efforts.
Additional Context
This capability would represent a competitive advantage over GitHub Copilot agents directly on github.com, where users have been requesting similar functionality (starting from non-main branches) for a long time — but it still hasn’t been implemented properly and only with workarounds.
57 Comments
Sooo important. So core. Otherwise I love it
+1 I came here to request this feature
+1
+1
+1. Claude code web is not useable for me without this.
I'm looking forward to selecting a branch, too! So far, you may want to specify the branch in the prompt. Not nice, but at least a workaround.
Claude does not seem to consistently honor instructions in the prompt to use a particular branch. I regularly end up with some flavor of the following:
It will figure it out eventually but this is quite a cumbersome workflow.
As part of this feature request, the Create / Update PR button in the UI should also set the base branch to the feature branch specified.
+1
+1111111
+1
+1
+1
+1
+1
+1
+1
+1
A very important feature that's keeping me from using Claude Code Web where it would be otherwise useful.
This is critical. I do not believe Claude code mobile app or web is very useful without it. Codex already has this.
+1
+1
+1
Without this feature, I'm finding myself reaching for Codex web on actual work projects just so that I may do proper branching practices.
+1
+1
Still running into issues asking Claude Code Web to use a particular branch. Recent examples:
----
Initial prompt:
Claude response:
The existing-feature-branch did exist with commits not yet merged to main. At this point it seemed Claude had already created it's own
claude/existing-feature-branch-ABCDbranch (from main, not my feature branch as requested), told itself it's already on the right branch, and then started to look for the feature functionality I described. That functionality of course doesn't exist, because Claude created it's branch from main. After wasting a load of tokens investigating, it told me the base feature wasn't implemented yet and hallucinated a solution to my prompt on top of that non-existent feature. Dead end.----
Initial prompt:
This went better initially -- Claude response:
Then after some iteration, Claude attempted to commit, and things went awry:
Claude was able to resolve and commit, but the branch was then from main, and when I was unable to create a mergeable PR into existing-feature-branch and asked why it tells me:
It then went on to delete, re-create the branch from the correct existing-feature-branch, and re-apply all changes.
This is very messy and inefficient. I hope native support for having Claude Code Web work in branches can be implemented soon. It's a major downside compared to working with Claude in the CLI. Codex on the web implements this well already.
+1 million, really need to be able to choose the branch with Claude Code Web
+1
+1
+1
+1
+1
Anthropic gave me $1,000 in credits when Claude Code Web launched. I was hyped.
Then I realized I could only start sessions from main.
I work on feat/* → dev → stage → main. Like every professional team using GitFlow. The feature I’m actively developing doesn’t exist in main — it won’t exist there for weeks or months.
So I opened Claude Code Web, looked at my main branch (which has zero context about what I’m actually building), closed it, and went back to my local workflow.
Credits used: $0.01 🤡
This isn’t an edge case. This is how software development works. Please prioritize this
+1
+1
This would be massive! Allowing to continue your work even on the go!
+1
+1
we earlier waiting for this
+1
+1 Just tried for the first time. Magical aha moment for me, then realized it clones main and I can't select a branch... magic still there, but reduced by 50%.
I wonder what is so hard to achieve that? Does anybody have an idea whats the challenge?
+999
+1
+1
+1
+1
+1, breaks use of code web UI without explicit branch selection
+1
+1
+1
So you choose a branch and it ignores it ? Let me guess you code with this extension as well. What branch has your code to make this work ?
+1
I have the same problem
I can't force claude to use proper branch, always starting from main
+1
+1
+1
Until the Web UI adds branch selection, here are alternatives:
Workaround 1 — Use the CLI with branch checkout:
The CLI always works on your current branch. If you primarily use the Web UI for convenience, consider the CLI for branch-specific work.
Workaround 2 — Use Remote Control from CLI:
Start a CLI session on the desired branch and control it from your phone/browser:
Remote Control gives you mobile/browser access to a CLI session that's already on the correct branch.
Workaround 3 — Use a worktree:
This gives you a separate working directory on the develop branch without affecting your main checkout.
Workaround 4 — SessionStart hook to verify branch:
If you want to ensure you're always starting on the right branch:
Found a workaround, just ask Claude to switch to the desired branch.
Apparently it has the capability it's just that there's no UI for us to do it directly.