What is cm-git-branch?
cm-git-branch is a Claude Code mod by rotbit that shows the current git branch, how many files changed and ahead/behind counts in a one-line band above the prompt. It is listed under Git & CI and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | rotbit |
| Repository | rotbit/claudemods-marketplace |
| Popularity | no public popularity data yet |
| Category | Git & CI |
| Security | Low risk (88/100) |
| Rank | #4,457 of 5,272 Claude Code mods; #322 in Git & CI |
| License | MIT |
| Last commit | 2026-10-07 |
| Hooks | 4 events |
| Sees | Bash calls |
| Draws on | AbovePrompt |
Is cm-git-branch safe to install?
cm-git-branch scores 88/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 7 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.process.run | runs processes |
$.session.cwd | |
$.state.get | |
$.state.set | |
$.ui.resolve | draws interface |
How do I install cm-git-branch?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/rotbit/claudemods-marketplace claude plugin validate ./claudemods-marketplace/cm-git-branch
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add rotbit/claudemods-marketplace && claude plugin install cm-git-branch@claudemods
Or ask Claude to set it up
Paste this into Claude Code and it installs cm-git-branch for you:
Install the "cm-git-branch" Claude Code mod from https://github.com/rotbit/claudemods-marketplace/tree/main/cm-git-branch. Run claude plugin validate on it first and show me what it can access before you enable it.
More from rotbit/claudemods-marketplace
This repository has 5 Claude Code mods on MCPMods.
- cm-block-dangerous-commands: Refuses destructive Bash commands (rm -rf /, force-push to main, DROP TABLE, curl | sh, ...) before Claude runs them, an (Low risk)
- cm-context-meter: Puts context-window fill, 5-hour/7-day plan usage and session cost in the status line, and warns once when the context g (Low risk)
- cm-done-toast: Shows "Done in 2m 14s" and plays a short chime when a long Claude turn finishes; optional macOS/Linux system notificatio (Low risk)
- cm-tool-call-counter: Counts Claude's tool calls per turn and per session, shows the count beside the spinner, and adds /tally for a per-tool (Low risk)