Superagent Security Tools
Superagent provides AI security guardrails including prompt injection detection, PII/PHI redaction, and claim verification against source materials.Installation
Environment Variables
Available Tools
| Tool | Description |
|---|---|
superagentGuard | Detect prompt injection attacks |
superagentRedact | Redact PII/PHI (SSNs, emails, phones) |
superagentVerify | Verify claims against sources |
Quick Start
Guard Tool (Prompt Injection Detection)
Redact Tool (PII Removal)
Verify Tool (Claim Verification)
Advanced Example
Response Formats
Guard Result
Redact Result
Verify Result
Best Practices
- Layer security - Use guard before processing user input
- Redact early - Remove PII before storing or processing
- Verify claims - Check factual statements against sources
- Log securely - Don’t log redacted information

