neilweixing/dsh-git-branch-badge
Shows the current project's Git branch in the message composer, per session working directory — and renders nothing at all when the folder is not a Git repository.
Reads the branch for the session's working directory and renders it next to the composer tools, so you can see which worktree a prompt is about before sending it. Implementation notes and a layout section in the README cover how the client half is registered and what it costs.
Install
dsh plugin add github:neilweixing/dsh-git-branch-badgeThe README's install line as written (no --profile flag on this line; the README's UI route is Plugins → Add plugin → paste github:neilweixing/dsh-git-branch-badge). The README also documents pinning a version with a # fragment and installing from a local checkout.
Compatibility
The badge lives in the composer tool row and appears in every session whose working directory is a Git work tree; a non-repository folder produces no badge at all rather than an empty placeholder. The README makes a sensible security point about pinning: main moves, and a git checkouted plugin is code that runs in the Host process, so #<tag> gives an exact, immutable build — the README uses v0.1.0 as its example. Known limits are documented.
Details
- Repo: neilweixing/dsh-git-branch-badge
- Category: Web UI Enhancements
- Stars: 0
- Version: installed from the repo's default branch
Alternatives
0lidaxiang/dsh-plugin-greet · mixin-ai/dsh-file-changes · UncleK/dsh-think-translate