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 0
- agent-tracker 0.1.0 A pane listing the subagents launched this session with their status and duration 0
- network-log 0.1.0 A pane listing the network activity of the session: web fetches, searches, MCP calls and network Bash commands 0
- 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 0
- 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 0
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... 32.5k
- md-preview 0.1.3 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. 170
- cc-arcade 0.2.0 Games above the Claude Code prompt (snake, Tetris, 2048, Minesweeper, Flappy, Pong, typing test, Space Invaders, Doom) plus a pet that grows as Claude tests, commits and edits. Clones of the genre, not affiliated with or endorsed by Tetris Holding, Taito, Atari or id Software. Needs function hook... 42
- branch-board 1.0.0 Inspect local branches, upstreams, and dirty files. 42
- pr-relay 0.9.1 Watches the session's pull request and wakes the session when it is merged or Codex reviews it 17