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 Fluritv0.6.1Apache-2.0In 1 marketplace
Blocks or allows Terraform and OpenTofu actions before Claude runs them, based on a .applygate.yaml that marks each directory as protected or not. Runs as a PreToolUse hook on every tool call; with no config, every directory is treated as protected. Without a local applygate binary, it downloads a pinned release at session start, and if none can be found, blocks tool calls.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
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.
This directory is a Claude Code plugin that registers the applygate PreToolUse hook. A .applygate.yaml in the repository tells it which directories are which environment (applygate init --no-hooks, or write one by hand: docs/config.md). Without one the defaults apply: enforce mode, strict, so every directory is judged as protected.
Try it for one session:
claude --plugin-dir plugin/claude-code
--plugin-dir loads the plugin from this checkout, which is an ordinary directory an agent can edit, so it is for trying the plugin, not for relying on it. Install it from the marketplace for that.
Install it from this repository's marketplace (.claude-plugin/marketplace.json at the repo root):
claude plugin marketplace add Flurit/applygate
claude plugin install applygate@applygate --scope project
The hooks run scripts/applygate-hook, which picks the first of:
pinned-binary in its data directory. Later calls run only that file, and only while its sha256 is unchanged; a changed file blocks every call until a person removes pinned-binary (after an upgrade, for example);$APPLYGATE_BIN, if set;applygate on PATH (install.sh, brew install Flurit/tap/applygate, go install);${CLAUDE_PLUGIN_DATA}, which survives plugin updates; ~/.cache/applygate/plugin when Claude Code does not set it).A SessionStart hook does the download, so the session's first response waits for it rather than a tool call. The sha256 values are committed in the plugin and come from the release's signed checksums.txt (scripts/pin-plugin-release.sh verifies that signature with cosign before writing them), so a download is checked against values that did not come from the download server. The plugin's version is the pinned release's version, which is what makes Claude Code pick up a new pin.
If no binary can be found (no network, an unsupported platform, a checksum mismatch), the PreToolUse hook exits 2 with the reason and the tool call is blocked. The hook also sets onFailure: block (Claude Code v2.1.295 or later), so a crash or a timeout blocks too. The installed plugin's files, its data directory ($CLAUDE_PLUGIN_DATA, and $XDG_CACHE_HOME/applygate when that is set) and the download cache are guard paths, and an agent that starts a nested session with other values for APPLYGATE_BIN, CLAUDE_PLUGIN_DATA or XDG_CACHE_HOME is blocked: an agent cannot replace the launcher, the pin or the binary by routes the hook sees. A checkout loaded with --plugin-dir is not guarded.
applygate hook install --agent claude writes an equivalent hook entry into .claude/settings.json without a plugin; use one or the other, not both.
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 flurit/applygate --plugin applygatePlugins from other owners that cover similar ground