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 sasy-labsv0.1.0In 1 marketplace
SASY policy enforcement for Claude Code as a mod: checks every tool call against the policy from inside Claude Code and shows each decision in the session
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; reads files; reads environment variables (CLAUDE_CODE_ENTRYPOINT, HOME, SASY_FAIL_OPEN, SASY_HOME, SASY_WATCH_BIN, SASY_WATCH_PORT, TERM_PROGRAM).
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.
SASY policy enforcement for Claude Code as a
mod: plugin code that
runs inside Claude Code. It is an alternative to the sasy-guard plugin, which
does the same job with settings hooks (separate programs Claude Code starts for
each event). Install one or the other: with both, every call is checked
twice.
Both talk to the same local sasy-watch daemon and policy engine, installed by
sasy-guard install (the sasy-guard PyPI package).
Quickest setup: run npx skills add -g sasy-labs/sasy-guard, then start
Claude Code and ask it to set up Sasy Guard. The skill installs the runtime and
the plugin and tells you how to test it. To do it by hand, follow
Install.
lib.sh finds it: an executable SASY_WATCH_BIN, the installed
binary, then a development checkout's build or source), registers the
session
(/v1/session/start), and tells the model that denials carry a [SASY]
reason to relay.classic.PreToolUse): sends the daemon the same request
the hook plugin's PreToolUse hook would (/v1/pretooluse) and denies the
call, asks the user, or lets it go on to any other settings hooks. A
subagent's call carries the subagent's id, type and folder, which the mod
learns from agent.spawn.session.append): every row Claude Code keeps is
buffered and sent to the daemon (/v1/session/append) just before the next
check, with the folder it ran in and the structured result of the tool call it
reports. A daemon without that route (the released one) reads the transcript
instead; the mod asks once and stops. A push the daemon refuses, or cannot
take even after one sasy-watch ensure, blocks the check and is retried.classic.PostToolUse): the daemon's post-tool signal
(/v1/posttooluse), as the hook plugin sends it./v1/session/end).[SASY] denial or ask (with a
Dismiss button), and /guard, which reports the daemon's /healthz and recent
decisions without a model turn.One-time approvals. When the policy offers a one-time bypass (an ask
rule, such as piping a download into a shell), a daemon that supports it sends
the offer with its denial, and the mod asks you itself: it holds the tool call
and shows the policy's question with Approve once and Deny (and, when
the policy names a host, Trust host for this session). Your answer goes
to the daemon (/v1/approval, bound to this call); on approval the mod checks
the call again and the daemon lets it run once. Claude only learns the outcome.
With a daemon that does not send the offer, the denial stands and Claude asks
you through its own question tool, as with the hook plugin. Where nobody can be
asked at all (claude -p), the call stays refused.
It fails closed. A call is denied when the daemon cannot be reached after one
sasy-watch ensure (unless SASY_FAIL_OPEN=true and the daemon's hook-auth file
is in place), when the daemon's answer is not one of its exact answer shapes or
authentication is refused, and when the mod cannot name the call's caller: a
subagent running in a git worktree of its own (given one, or entering one), a
subagent that started before
the mod loaded, an agent Claude Code runs itself (such as a preview of a
suggested prompt), or any call in a session the mod did not see start. An Agent
call asking for a remote (cloud) subagent is refused too: that subagent's calls
run where neither the mod nor the local daemon sees them. A subagent whose own
definition forces remote isolation cannot be told apart at spawn time, and its
calls are not checked (as with the hook plugin).
/guard output are
drawn in the terminal and the Desktop Code tab; the VS Code chat panel and
claude -p draw nothing, but the mod still checks every call there.allowManagedModsOnly) the
mod does not load and nothing is checked: use the sasy-guard plugin there.
disableAllHooks turns off mods and settings hooks alike, so neither plugin
checks anything under it.curl, which must be on PATH.claude plugin validate plugins/sasy-guard-mod # what the mod hooks and calls
claude plugin test plugins/sasy-guard-mod # tests/*.test.ts
claude --plugin-dir plugins/sasy-guard-mod # load it from this checkout
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 sasy-labs/sasy-guard --plugin sasy-guard-modPlugins from other owners that cover similar ground