By virtue-ai
Detects and blocks dangerous Bash commands before execution using pattern matching and AI-powered analysis
A collection of plugins for Claude Code and Cowork.
| Plugin | Description |
|---|---|
| safe-bash | Detects and blocks dangerous Bash commands before execution using pattern matching and AI-powered analysis |
# Step 1: Add the marketplace
/plugin marketplace add Virtue-AI/cowork-virtueai-plugin
# Step 2: Install a plugin
/plugin install safe-bash
Or use the interactive UI:
/plugin in Claude Code or CoworkVirtue-AI/cowork-virtueai-pluginProtects your system by intercepting Bash commands before execution.
Features:
rm -rf /, mkfs, dd, etc.)OPENAI_API_KEY is setConfiguration:
# Enable AI-powered detection (optional)
export OPENAI_API_KEY='your-api-key'
MIT
Executes bash commands
Hook triggers when Bash tool is used
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimnpx claudepluginhub virtue-ai/cowork-virtueai-plugin --plugin safe-bashPre-execution safety layer that blocks dangerous shell commands and credential file reads using pattern matching + LLM analysis. Fail-closed design.
PreToolUse hook that auto-approves safe Bash commands by parsing them into an AST and matching against configurable patterns
Displays risk level and recovery info before every Bash command execution
Smart command safety filter for Claude Code — parses shell pipelines and evaluates per-command safety rules to auto-approve safe commands and block dangerous ones
Block destructive git and filesystem commands before execution
Safety hooks to block or require user approval for dangerous commands (rm, git operations, .env access, file size limits)