Show git branch + dirty state in claude.ai/code session bar
Summary
The session bar in claude.ai/code currently shows only client mode (Local) + working directory (folder name). Claude Code CLI already exposes git context via the statusLine config — would love that to surface in the web/desktop UI too.
What I'm seeing
When working across multiple feature branches (rebase chains, stacked PRs), I lose track of which branch I'm currently on. Asking the assistant git branch --show-current every few turns adds friction.
Today the same info is already rendered by the CLI's statusLine.command (configured in ~/.claude/settings.json) — but the web UI ignores it. My CLI statusline shows:
Opus 4.7 1M │ pageshell │ chore/doc-freshness-blocking* │ $0.00 / R$0.00
But claude.ai/code only shows [Local] [ps] in the same screen real estate.
What would help
When the working dir is a git repo, the session bar should show:
- Current branch name (e.g.
chore/doc-freshness-blocking) - Dirty indicator (
*or count of uncommitted changes) when there are local changes - Ahead/behind arrows (
↑N ↓M) when the branch is diverged from upstream
Implementation options
- Render the existing CLI
statusLineoutput in the web bar — already configured by users, parity with terminal experience - Add native git widgets equivalent to what the CLI script provides — own implementation in the web UI
Either works. Just need the info to actually be visible.
Why this matters
Over a single session I switched branches 5+ times while juggling 5 related PRs. Each context switch the agent has to confirm where it is, and so do I. Having it always-visible in the bar removes a recurring friction point.
Environment
- Client: claude.ai/code (web)
- OS: macOS
- Project: typical multi-branch git repo
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗