branch-guard 0.1.0
Asks the user before Edit/Write/NotebookEdit changes a file of a git repo whose current branch is main or master (once per repo and session)
Install
git clone https://github.com/vincentlauriat/ModsTools.git claude --plugin-dir ModsTools/mods/branch-guard
Run in a terminal. Claude Code loads the mod from that folder for the session.
Hooks into
- Status line
- Tool calls
- Slash commands
Also in vincentlauriat/ModsTools
- build-gate 0.1.0 Band above the prompt when a turn changed source code without running a matching build or type-check 1
- agent-tracker 0.1.0 A pane listing the subagents launched this session with their status and duration 1
- network-log 0.1.0 A pane listing the network activity of the session: web fetches, searches, MCP calls and network Bash commands 1
- je-coupe 0.1.0 End-of-session ritual: typing 'je coupe' asks Claude to update the doc files and shows a band of the ones still untouched 1
- env-protect 0.1.0 Asks the user before Claude reads secret files (.env, private keys, .netrc, .npmrc, .aws/credentials, keychains…) with Read, Grep, Glob or Bash 1
- ascii-weather 0.1.0 Weather from wttr.in in the status line (refreshed at most once an hour); /weather shows the one-line forecast 1
More git mods
- git-sidebar 0.1.0 A lazygit-style side pane: every worktree of the repository and its local branches as rows you click. A worktree row moves the session there with /cd; a branch row shows its last commits and offers switch (clean tree only) or open worktree. Docked floor to ceiling beside the transcript in the ful... 34.7k
- diffr 0.1.0 Review diffs with diffr in a pane 3.5k
- time-machine 0.1.8 Agent Time Machine: a branching timeline of tool calls with shadow-git snapshots — inspect, diff, explain test failures, restore, branch, compare, re-run 773
- md-preview 0.1.11 Shows the Markdown files Claude edits, rendered like GitHub, in a pane next to the chat. Before and after side by side. /md opens it. 526
- branch-board 1.0.0 Inspect local branches, upstreams, and dirty files. 128