Skip to content

Feature: Show git branch in working directory display #1145

@spboyer

Description

@spboyer

Feature Request

Current behavior:
The Copilot CLI shows the current working directory above the prompt:
~/projects/my-app

Requested behavior:
Show the current git branch alongside the working directory:
~/projects/my-app (main) or ~/projects/my-app [feature/auth]

Why this would be helpful:

  • Easy to lose track of which branch during long sessions
  • Reduces need to run git branch --show-current
  • Matches familiar shell prompt patterns
  • Prevents accidental commits to wrong branch

Suggested implementation:

  • Only show when inside a git repository
  • Configurable in ~/.copilot/config.json
  • Optionally show dirty state indicator (*)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions