v3.2.0 - Token Optimization
π Token Optimization Release
Major update focused on reducing context window consumption for AI coding agents.
β¨ New Features
- Verbosity Parameter: All MCP tools now support
minimal,compact(default), andfullverbosity levels - Up to 98% Token Reduction:
minimalmode returns only counts (~50 tokens vs ~2500 tokens) - Batch Scanning: Scan 50+ files in a single session without context overflow
- Subagent Skills: New
security-scannerandsecurity-scan-batchskills for Claude Code
π Token Savings by Level
| Level | Tokens | Reduction | Use Case |
|---|---|---|---|
minimal |
~50 | 98% | CI/CD, batch scans |
compact |
~200 | 69% | Interactive dev (default) |
full |
~2500 | 0% | Compliance reports |
ποΈ Architecture
- Modular codebase: tools extracted to
src/tools/, CLI tosrc/cli/ - 88 tests with comprehensive verbosity coverage
- Demo script with CLI options:
node demo/token-optimization-demo.js
π¦ Install
npx agent-security-scanner-mcp@latestFull changelog: v2.0.4...v3.2.0