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 nsheapsv0.2.27In 1 marketplace
Screens each tool call Claude makes before it runs, blocking ones judged risky. Each non-read-only call goes through a Claude CLI Haiku check that runs on every call, so it adds latency and needs the CLI installed and authenticated.
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
tool-call-safety, pre-tool-use-hook, safety-evaluation, command-blocking, haiku, audit-log, safety, hooks ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
An AI-powered pre-tool-call safety evaluation plugin for Claude Code that uses the Claude CLI with Haiku to analyze tool calls before execution.
This plugin installs a script-style hook that intercepts all tool calls before they execute. The hook:
allow or block based on the AI's safety assessmentSAFETY_EVAL_MODEL environment variableSAFETY_EVAL_LOG environment variableSee Installation Guide for all installation methods.
# Via marketplace (recommended)
# Follow marketplace setup: ../../docs/manual-installation.md
# Or via GitHub
claude plugins install github:nsheaps/ai-mktpl/plugins/safety-evaluation-script
# Or locally for testing
cc --plugin-dir /path/to/plugins/safety-evaluation-script
| Variable | Default | Description |
|---|---|---|
SAFETY_EVAL_MODEL | claude-3-5-haiku-latest | Model to use for safety evaluation |
SAFETY_EVAL_TIMEOUT | 30 | Timeout in seconds for evaluation |
SAFETY_EVAL_LOG | (none) | Path to log file for audit trail |
export SAFETY_EVAL_LOG=~/.claude/safety-audit.log
The AI evaluates tool calls against these security criteria:
The evaluator assigns one of four risk levels:
The hook returns JSON in this format:
// Allow the operation
{"decision": "allow"}
// Block the operation
{
"decision": "block",
"reason": "Safety evaluation blocked this operation: [reason] (Risk level: [level])"
}
| Aspect | Script Style (This Plugin) | Prompt Style |
|---|---|---|
| Execution | External script process | Inline Claude evaluation |
| Latency | Higher (separate CLI call) | Lower (inline processing) |
| Flexibility | Full programming capabilities | Natural language only |
| Customization | Environment variables, logging | Prompt text only |
| Determinism | More deterministic | Context-dependent |
Increase the timeout:
export SAFETY_EVAL_TIMEOUT=60
Consider using the prompt-style variant which has more context about the conversation, or adjust the system prompt in the script.
Check that:
which claudeclaude --versionMIT License - See the main repository for details.
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 nsheaps/ai-mktpl --plugin safety-evaluation-scriptPlugins from other owners that cover similar ground