Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By systemfsoftwareApache-2.0In 1 marketplace
Stops unsafe git subtree add, pull and push commands before Bash runs them. Runs as a hook on every Bash call and needs Deno 2.x on PATH.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
git-subtree, git-safety, git-hooks, vendoring, guard-hook, deno, subtree-guard, subtree ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that blocks unsafe git subtree commands before Bash runs them.
When a command is blocked, the hook stops it and prints the reason:
guard-git-subtree: blocked git subtree invocation
git subtree pull with a URL is BLOCKED.
git subtree does `git fetch <url>` then `git rev-parse FETCH_HEAD` to get the commit.
...
/plugin install git-subtrees
from the systemfsoftware marketplace, or point Claude Code at a local checkout:
/plugin install /path/to/agent-plugins/git-subtrees
Prerequisites: Deno 2.x on PATH. The plugin resolves its one dependency (just-bash) from Deno's registry cache on first hook run — no build step, no bundled dependencies.
git subtree add|pull|push commands that:
FETCH_HEAD, a transient file, so a stale read silently squashes the wrong content,--prefix — the merge lands at the repository root and can delete files across the repo,-S/--gpg-sign — subtree commits bypass commit.gpgsign config and land unsigned,--squash — the entire upstream history is pulled into the object store,push — subtrees are read-only; updates flow downstream only.Update a vendored subtree by pre-fetching to a named ref, verifying the content, then pulling:
git fetch <url> <branch>:refs/remotes/vendor/<name>
git ls-tree refs/remotes/vendor/<name> -- package.json
git subtree pull --prefix=repos/<name> refs/remotes/vendor/<name> --squash -S -m "update"
The hook exits 0 to allow and 2 to block, with the reason on stderr. Non-Bash tools and malformed payloads always pass (0).
Q: The hook says "deno not found on PATH". A: Install Deno 2.x and restart Claude Code.
Q: First run fails with a network error.
A: just-bash is fetched to Deno's registry cache on the first hook run. Run once with network access so the cache warms up.
Development setup and workflow: AGENTS.md.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub systemfsoftware/systemfsoftware --plugin git-subtreesPlugins from other owners that cover similar ground