From bash-rules
Mod that denies Bash used to smuggle encoded or env-var payloads, destroy systems, infra and data, kill processes by name, or pass grep --no-ignore, and denies any Bash or file-tool touch of Claude Code's credentials file. With toolSteering on (off by default), it also denies Bash that shows file contents (use Read) or writes and edits files (use Write/Edit). Commands the parser is unsure about go, with common secrets masked, to Ollama and then to Haiku. With the defaults the Ollama stage is skipped, because the default model is a :cloud one and ollamaCloud is off: set ollamaModel to a local model, or turn ollamaCloud on, to use it. A :cloud model or a non-local Ollama URL is used only with ollamaCloud on.
3 events · 11 calls
Ships in bash-rules. 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.runhttp.fetchfs.readfs.statenv.getmodel.completetool.describeEach event it registers a hook on, with the matcher when it sets one
tool.describe{tool=Bash}tool.call{tool=Bash|Read|Grep|Edit|MultiEdit|Write|NotebookEdit}classic.PreToolUseEvery mods API method its source calls, by namespace
nowsleepgetreadstatfetchcompleteruncwdidlogCLAUDE_CONFIG_DIRHOMEWhere 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 adminhead/claude-plugins --plugin bash-rules