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 vaaraiov2.17.0AGPL-3.0In 1 marketplace
Blocks risky shell, web and file-write calls before Claude runs them, and logs the same tools to a hash-chained SQLite audit trail. Hooks run on every tool call and prompt; blocks can pop desktop notifications, and it needs the vaara CLI on PATH.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
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.
Runtime tool-call governance for Claude Code. Wires the Vaara risk scorer and hash-chained audit trail into the Claude Code hook system.
PreToolUse runs a two-layer check before Claude executes a tool:
Layer 1: regex deny patterns (48 rules over 18 tools: Bash, WebFetch, Read, Write, Edit, NotebookEdit, the agent's meta-actions, and the MCP resource readers; mcp__* calls are matched by content). A JSON deny-list (policies/default_deny.json) catches known-bad shapes on the shell and web surface: AWS / GCP / Azure metadata IPs, /etc/shadow reads, curl | sh, rm -rf /, fork bombs, dd to raw block devices, history purges, reverse shells, base64-piped exec, ~/.ssh/authorized_keys writes, git hooks and git configuration that runs a program (core.fsmonitor, core.pager, diff and filter drivers), and deleting or rewriting Vaara's own trail or reading its signing keys, and answering its own escalation.
The same layer covers the file surface, because an agent that cannot run curl | sh can still write it to a file: shell startup files (.bashrc, .zshrc, .profile), ~/.ssh/authorized_keys, /etc/shadow and /etc/sudoers, git hooks, cron paths, launchd and systemd units, and file content carrying a remote-pipe-to-shell or reverse-shell payload. A match is a hard deny: fast, deterministic, no ML.
Layer 2: Vaara classifier (mcp__* only). MCP tool calls carry structured taxonomy that Vaara's adaptive scorer is trained for; the conformal risk score is meaningful there. The classifier output drives the allow / escalate / deny decision against the loaded policy thresholds.
PostToolUse appends an outcome record to the audit trail, correlating it back to the PreToolUse decision by the host's tool_use_id and feeding the MWU online learner. PostToolUseFailure records a call that failed or was interrupted, and PermissionDenied records a call the host's permission step refused after the hook allowed it; neither copies the host's error text or reason.
Blocks and escalations also pop a native desktop notification (macOS via osascript, Linux via notify-send when present), so a decision is visible even when the terminal is buried. Notifications are fire-and-forget and can never break the hook.
SessionStart prints a one-line status (Vaara version, mode, protection preset, notifications, audit DB path).
| Hook | Matches | Mechanism |
|---|---|---|
PreToolUse | every tool (.*) | Every call is dispatched and recorded. Layer 1 regex on shell, web, reads of secret material, file mutation and the agent's meta-actions (spawn, schedule, remote run, message out, harness config writes); a tool no rule names is recorded and allowed. Layer 2 ML on MCP. Desktop notification on block/escalate. |
PostToolUse | every tool (.*) | Audit outcome + MWU feedback. |
PostToolUseFailure | every tool (.*) | Outcome for a call that failed or was interrupted. Needs the vaara binary on PATH. |
PermissionDenied | every tool (.*) | Outcome for a call the host refused after the hook allowed it; it did not run, and the scorer does not learn from it. Needs the vaara binary on PATH. Claude Code sends it only in auto mode. |
SessionStart | n/a | Validate install, print status. |
The meta-action rules are operator policy, so each has a named exception.
Set the variable to 1 in the environment for the job that needs it:
| Variable | Lifts |
|---|---|
VAARA_ALLOW_SPAWN | subagent spawn (Agent, Task), Workflow fan-out, a Skill that spawns a subagent, and TaskStop on a background task |
VAARA_ALLOW_SCHEDULE | a durable CronCreate job (session-only jobs pass anyway) and CronDelete of a schedule |
VAARA_ALLOW_REMOTE | RemoteTrigger create, update, run |
VAARA_ALLOW_XSESSION | SendMessage to anything but main |
VAARA_ALLOW_HARNESS_EDIT | writes to .claude.json, .claude/settings*.json, .claude/hooks/, .claude/skills/, .claude/agents/, .claude-plugin/, .mcp.json, whether by a file tool, a shell command, or an interpreter one-liner |
VAARA_ALLOW_EGRESS | a raw socket tool moving bytes to a remote host, and interpreter one-liners that open an outbound connection |
VAARA_ALLOW_SECRET_READ | Read and the MCP resource readers over dotenv files, private keys, the seal file, cloud and git credentials |
VAARA_ALLOW_DISCARD | ExitWorktree with the flag that discards uncommitted work |
A lifted call is still recorded. ScheduleWakeup is recorded and never
denied.
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.
npx claudepluginhub vaaraio/vaara --plugin vaara-governancePlugins from other owners that cover similar ground