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 Spellguardv0.6.26Apache-2.0In 1 marketplace
Attributes git pushes, branches, PRs and commits from Claude Code to you through a Spellguard-issued GitHub credential; flags pushes made outside it. Hooks run at session start and around tool calls; needs a Spellguard account, a GitHub App install and SPELLGUARD_BASE_URL set.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
npx claudepluginhub spellguard/spellguard --plugin spellguardExecutables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Spellguard's plugin for Claude Code. It tracks the git activity you do through
Claude Code (pushes, branch creates, PRs, commits), manages a Spellguard-issued,
repo-scoped git credential so your commits are attributable, and surfaces the
deviation signal when work is pushed outside Spellguard's credential. The
Codex equivalent is @spellguard/codex-plugin; both
speak the same agent-control protocol.
/plugin marketplace flow).git ≥ 2.31. GitHub remotes transport over HTTPS; an SSH remote is
rewritten to HTTPS automatically for the agent session, and only an
unrewritable one (host alias / force-SSH rule) is refused — see
Using SSH git remotes.In Claude Code, run the two /plugin commands:
/plugin marketplace add Spellguard/spellguard
/plugin install spellguard@spellguard
better-sqlite3) that isn't bundled into a marketplace install. When it's
absent that one correlation is skipped (you'll see a single stderr note) —
all core tracking (pushes, branches, PRs, commits) and credential
management work regardless. For full fidelity, clone the repo and
pnpm install before adding it as a local marketplace.In a Claude Code session:
/spellguard-setup
~/.config/spellguard/config.json automatically the moment you finish
the dashboard install — no session restart is needed for the credential to
arrive. Git-credential protection for the session you ran setup in finishes
wiring at the next session boundary (restart or /clear); any new session is
fully wired from the start.Config is written to ~/.config/spellguard/config.json (mode 0600).
The plugin requires the SPELLGUARD_BASE_URL environment variable — set it to
your Spellguard console URL before running /spellguard-setup (or pass --base-url to
the setup command). There is no built-in default:
export SPELLGUARD_BASE_URL=https://your-spellguard-console.example.com
# …then run /spellguard-setup.
| Hook | What it does |
|---|---|
SessionStart | Validates your credential, injects the git credential helper (via CLAUDE_ENV_FILE) so in-scope github.com pushes use the Spellguard-issued scoped token, and spawns the background credential daemon. |
PreToolUse (Bash) | On git push / branch-create / gh pr create: checks the credential isn't revoked, then emits a scope-filtered observation. |
PostToolUse | On git commit: records the commit and emits a commit observation. |
Your activity shows up in the dashboard's Activity view, attributed to you. Because in-scope commits route through the Spellguard credential, work pushed a different way (your own credential, outside Claude Code) is flagged as a deviation — that bypass visibility is the point of the platform.
Only repos in your granted scope are observed — a personal repo you never
granted is never tracked. To narrow further (e.g. track only a subset, or add
explicit repos that are also in your granted scope), create
~/.config/spellguard/observation.yaml:
allowlist:
- owner: my-org
repo: some-service
The allowlist only narrows the granted scope (intersection) — it can't add repos your credential wasn't granted. With no file, all granted-scope repos are tracked.
Terminating, disconnecting, or deleting the agent in the Spellguard dashboard propagates to this machine within seconds: the running credential daemon receives the revocation over its socket and marks the local credential revoked (or does so on its next reconnect). After that:
SessionStart surfaces a re-auth notice. Claude Code has
no dedicated banner channel, so the hook relays it through the model, which
leads its first reply with "Spellguard: this credential has been revoked. Run
/spellguard-setup to provision a new one."git operation that needs the token fails closed, and the Spellguard
credential helper prints the same actionable line to stderr (git surfaces
helper stderr) — so a manual git push tells you exactly why it stopped and
what to run.7-day copy clicks
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.
Plugins from other owners that cover similar ground