pi-audit
v0.4.16
Published
Security review and compliance audit extension for Pi coding agents
Maintainers
Readme
pi-audit
Security review and compliance audit extension for Pi coding agents. Provides multi-perspective code review with automated vulnerability detection.
Features
- Five-Axis Review - Security, Performance, Maintainability, Testing, Documentation
- OWASP Audit - Automated vulnerability detection based on OWASP Top 10
- AgentShield - Protection against prompt injection and malicious instructions
- CompletionMutationGuard - Mutation detection for secure completion
- Diff Analysis - Multi-perspective code review with diff scoping
Install
pi install npm:pi-auditQuick Start
Run Full Security Review
/reviewReview Changes in PR
/review diff --base=main --head=feature-branchSecurity-Focused Review
/review securityGenerate Report
/review report --format=markdown --groupBy=severityCommands
| Command | Description |
|---------|-------------|
| /review | Run full multi-perspective review |
| /review security | Security-focused review |
| /review performance | Performance-focused review |
| /review diff | Review git diff |
| /review file <path> | Review specific file |
| /review report | Generate summary report |
Review Perspectives
The extension reviews code across 6 perspectives:
- Security - Vulnerability detection, OWASP Top 10
- Performance - Resource usage, algorithmic efficiency
- Maintainability - Code complexity, duplication
- Testing - Test coverage, edge cases
- Documentation - Comments, README, API docs
- Production Readiness - Error handling, logging, monitoring
Configuration
Review Configuration
// In your agent config
{
"review": {
"perspectives": ["security", "performance"],
"maxFiles": 50,
"severity": ["critical", "high", "medium"]
}
}Verify
pi listLicense
MIT
