branch-guard 0.1.0
Stops Claude from editing files or running mutating git commands on main or master, and points it at a worktree instead.
Install
/plugin marketplace add Justmalhar/awesome-claude-mods /plugin install branch-guard@awesome-claude-mods
Run both lines inside Claude Code.
Hooks into
- Tool calls
Also in Justmalhar/awesome-claude-mods
- auto-checkpoint 0.1.0 Snapshots the working tree into hidden git refs at the start of every turn, with /checkpoints to list them and /undo-turn to roll back. 1
- notify-on-finish 0.1.0 Sends a desktop notification when a long turn finishes, so you can look away while Claude works. 1
- sensitive-file-guard 0.1.0 Blocks Read, Write, Edit, Grep, Glob and Bash calls that touch .env files, private keys and credential stores. 1
- cost-bar 0.1.0 A one-row band above the prompt with session cost, 5h/7d plan limits and an optional budget bar. 1
- file-tree-pane 0.1.0 Adds /tree: a side pane with a lazy file tree coloured by git status. Press a file to put @path in the prompt. 1
- path-guard 0.1.0 Blocks Write, Edit and MultiEdit calls that target a path outside the project root or inside .git, plus optional deny globs. 1
- powerline-bar 0.1.0 A one-row powerline-style band above the prompt: directory, git branch and state, model, context fill. 1
- secret-guard 0.1.0 Blocks Write, Edit and Bash calls that would put an API key, token or private key into a file or command. 1
- spinner-stats 0.1.0 Adds elapsed time, the running tool and the tool-call count to Claude Code's own spinner. 1
- test-guard 0.1.0 Blocks edits that make tests pass by weakening them: new skip/only markers, fewer assertions, a gutted test file, or deleting a test file. 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.1k
- diffr 0.1.0 Review diffs with diffr in a pane 3.5k
- time-machine 0.1.7 Agent Time Machine: a branching timeline of tool calls with shadow-git snapshots — inspect, diff, explain test failures, restore, branch, compare, re-run 777
- 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. 514
- branch-board 1.0.0 Inspect local branches, upstreams, and dirty files. 125