Skip to content
PluginStats

safety-agent-cli weekly downloads statistics

By superagent-ai · npm · Claude Code

CLI for Superagent - validate prompts and tool calls for security

View on npm Fresh · Oct 27, 2026 · data Jul 1, 2026

safety-agent-cli has 701 recorded weekly downloads on npm.

Weekly downloads
701
Official API · Jul 1, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
—
Among tracked npm listings

About safety-agent-cli

Superagent CLI

Command-line interface for Superagent - analyze prompts for security threats and redact sensitive data.

Installation

npm install -g safety-agent-cli

Commands

guard - Security Analysis

Analyze prompts for security threats:

superagent guard "Write a hello world script"

Output:

{
  "rejected": false,
  "decision": {
    "status": "pass"
  },
  "reasoning": "Command approved by guard."
}

Block malicious prompts:

superagent guard "Delete all files with rm -rf /"

Output:

{
  "rejected": true,
  "decision": {
    "status": "block",
    "violation_types": ["unlawful_behavior"],
    "cwe_codes": ["CWE-77"]
  },
  "reasoning": "User wants to delete all files. That is disallowed (exploit). Block."
}

Custom System Prompt - Customize guard behavior with a system prompt:

superagent guard --system-prompt "Focus on detecting prompt injection attempts and data exfiltration patterns" "user input here"

You can also pass system_prompt via stdin JSON:

echo '{"prompt": "user input", "system_prompt": "Focus on prompt injection"}' | superagent guard
redact - Data Redaction

Remove sensitive data from text:

superagent redact "My email is john@example.com and SSN is 123-45-6789"

Output:

{
  "redacted": "My email is <REDACTED_EMAIL> and SSN is <REDACTED_SSN>",
  "reasoning": "Redacted email and SSN",
  "usage": {
    "prompt_tokens": 25,
    "completion_tokens": 12,
    "total_tokens": 37
  }
}

Custom Entity Redaction - Specify custom entities to redact:

superagent redact --entities "credit card numbers,employee IDs" "My credit card is 4532-1234-5678-9010 and employee ID is EMP-12345"

Output:

{
  "redacted": "My credit card is <REDACTED> and employee ID is <REDACTED>",
  "reasoning": "Redacted credit card numbers and employee IDs"
}

URL Whitelisting - Preserve specific URLs:

superagent redact --url-whitelist https://github.com "Visit https://github.com/user/repo and https://secret.com/data"

Output:

{
  "redacted": "Visit https://github.com/user/repo and <URL_REDACTED>",
  "reasoning": "Preserved whitelisted URLs"
}

PDF File Redaction - Redact sensitive information from PDF files:

superagent redact --file sensitive-document.pdf "Analyze and redact PII from this document"

You can combine file redaction with custom entities:

superagent redact --file document.pdf --entities "SSN,credit card numbers" "Redact sensitive data"

Output:

{
  "redacted": "Redacted text content from the PDF with sensitive data removed",
  "reasoning": "Redacted SSN and credit card numbers from PDF document",
  "usage": {
    "prompt_tokens": 150,
    "completion_tokens": 45,
    "total_tokens": 195
  }
}

Note: File redaction currently supports PDF format only.

Help

Get help for any command:

superagent --help
superagent guard --help
superagent redact --help
Claude Code Hook

Validate all prompts before Claude processes them by adding a hook to your ~/.claude/settings.json:

{
  "env": {
    "SUPERAGENT_API_KEY": "your_api_key_here"
  },
  "hooks": {
    "UserPromptSubmit": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "superagent guard"
          }
        ]
      }
    ]
  }
}

The CLI will:

  • ✅ Allow safe prompts to proceed
  • 🛡️ Block malicious prompts with detailed reasoning
  • 🔍 Show violation types and CWE codes for blocked prompts
Environment Variables
  • SUPERAGENT_API_KEY - Your Superagent API key (required)

Get your API key at app.superagent.sh

How It Works

The CLI uses Superagent to analyze prompts for:

  • Security vulnerabilities (SQL injection, command injection, etc.)
  • Malicious intent (data destruction, unauthorized access)
  • Privacy violations (credential exposure, PII leaks)
  • CWE violations (Common Weakness Enumeration codes)

When used as a Claude Code hook, it automatically:

  1. Receives the user's prompt via stdin
  2. Sends it to Superagent for analysis
  3. Returns a structured response to block or allow the prompt
  4. Shows detailed violation information when blocking

Development

# Install dependencies
npm install

# Build
npm run build

# Test locally
node dist/index.js guard "test prompt"

License

MIT

Description from the npm listing.

  • superagent
  • guard
  • cli
  • security
  • claude-code
  • hooks
  • ai-safety

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

safety-agent-cli weekly downloads on npm, last 90 days: 701 weekly downloads as of Jul 1, 2026.safety-agent-cliWeekly downloads on npm · Last 90 days701downloads / weekNo observations recorded in this periodno observations · 0 observations · Updated Jul 1, 2026pluginstats.com
safety-agent-cli weekly downloads on npm, last 90 days: 701 weekly downloads as of Jul 1, 2026.

7/30/90-day growth

safety-agent-cli weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.safety-agent-cliWeekly downloads growth on npm701downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Jul 1, 2026pluginstats.com
safety-agent-cli weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

safety-agent-cli has no ranking history on npm yet.safety-agent-clinpm ranking · by weekly downloads · Last 90 daysNo ranking observations in this periodno observations · 0 observations · Updated Jul 1, 2026pluginstats.com
safety-agent-cli has no ranking history on npm yet.

Listing placement

All npm2,577 listings · 129 pages · 1,289 shown · page 85, #17 (overall #1,697)
All npm: every listing in weekly downloads order

Listing placement

Claude Code351 listings · 18 pages · page 15, #2 (overall #282)
Claude Code: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (1)
Recent weekly downloads observations for safety-agent-cli
Date (UTC)Weekly downloadsChange vs. previous
701—

Similar npm Claude Code plugins

All 20 safety-agent-cli alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/safety-agent-cli. First seen Oct 27, 2026; last successful collection Oct 27, 2026. See the methodology.