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)

Vincent Lauriat 0 on vincentlauriat/ModsTools

Install

Terminal
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

More git mods

All git mods
Repo stars
0
Repo forks
0
License
MIT
Last commit
Checked
8c2da67,
Source on GitHub