From sasy-guard-mod
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
15 events · 15 calls
Ships in sasy-guard-mod. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callprocess.runfs.statenv.getEach event it registers a hook on, with the matcher when it sets one
session.startclassic.SessionStartclassic.SubagentStartclassic.UserPromptSubmitclassic.PostToolUseFailureclassic.PostToolUseclassic.PreCompactclassic.SessionEndagent.spawnclassic.WorktreeCreatesession.appendtool.callclassic.PreToolUsecommand.run{command=guard}ui.render{component=AbovePrompt}Every mods API method its source calls, by namespace
nowsleepregistergetstatruncwdidsurfacesgetsetaskresolvestatustoastCLAUDE_CODE_ENTRYPOINTHOMESASY_FAIL_OPENSASY_HOMESASY_WATCH_BINSASY_WATCH_PORTTERM_PROGRAMWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.tsx)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub sasy-labs/sasy-guard --plugin sasy-guard-mod