git-status-line
Reviewed
at commit e02f4b0
Shows your git branch, commits ahead and behind, and uncommitted changes in the Claude Code status line.
1 upvote
Log in to upvote or save- Made by
- modsforclaude
- Pinned commit
-
e02f4b00f30379415dcdc2e4daf9c6fd4e1a86f3 - What we checked
-
Runs git status on your machine to read the state of your repository. It only reads: it never commits, switches branches or changes files, makes no network calls and stores nothing.
Review details
Written and reviewed by the modsforClaude.com maintainers at the pinned commit. Hooks session.start and tool calls that can change files, runs git --no-optional-locks status --porcelain=v2 --branch through $.process.run and sets the status line. Validates with claude plugin validate; 5 of 5 tests pass on Claude Code 2.1.286.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: no
- Runs programs on your machine: no
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: no
- Shows something on screen: no
- Categories
- Tags
A status line entry under the prompt that keeps the state of your repository in view while Claude works:
main ↑2 ↓1 · 3 uncommitted
feature/login · clean
detached at 391bb54 · cleanIt shows the current branch (or the short commit when HEAD is detached), how many commits you are ahead of and behind the upstream branch, and how many files have uncommitted changes. Outside a git repository the entry stays empty.
The entry is filled when the session starts and refreshed after tool calls that can change the working tree, such as edits and shell commands. Reads do not trigger a refresh.
The mod runs git locally to read the status. It makes no network calls and stores nothing.
Load it
See How to load a Claude Code mod for the terminal and the desktop app.
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/git-status-line/)