@agent-agents-plugin:dependency-auditfrom agents-plugin
Scans project dependencies for known CVEs, outdated packages, and license issues across npm, pip, cargo, and Go ecosystems. Extracts actionable upgrade guidance from verbose audit output.
Ships in agents-plugin. Installing the plugin adds it to Claude Code.
Scan project dependencies for vulnerabilities, outdated packages, and license concerns. Isolates verbose audit output.
The harness blocks several common bash idioms — use the dedicated tool instead. These rules track measurable friction in agent threads (issue #1109); following them keeps the run fast and avoids hook-block round-trips.
| Avoid | Use instead |
|---|---|
find . -name '*.ts' | Glob(pattern="**/*.ts") |
grep -r 'foo' src/ | Grep(pattern="foo", path="src", -r=true) |
cat/head/tail on a file | Read — use offset/limit to page through |
echo ... > file / cat > file | Write(file_path=..., content=...) |
git add . / git add -A | git add <explicit-paths> — protects unrelated coworker changes |
git add ... && git commit ... | Two separate Bash calls — git's index.lock does not survive && |
Read before Edit/Write. The harness tracks read-state per agent thread. Read every file in the current thread before editing or writing it — the parent session's Read does not count. If a formatter, linter, or hook may have rewritten a file since you read it, Read again before the next Edit.
npm audit, pip-audit output can be massive; agent extracts actionable itemsnpm audit --json 2>/dev/null | head -200
npm outdated --json 2>/dev/null
npx license-checker --summary 2>/dev/null
pip-audit --format=json 2>/dev/null || pip audit 2>/dev/null
pip list --outdated --format=json 2>/dev/null
cargo audit --json 2>/dev/null
cargo outdated --root-deps-only 2>/dev/null
go list -m -json all 2>/dev/null | head -100
govulncheck ./... 2>/dev/null
| Level | Action | Examples |
|---|---|---|
| Critical | Upgrade immediately | RCE, auth bypass |
| High | Upgrade this sprint | XSS, SQL injection in dep |
| Medium | Plan upgrade | DoS, info disclosure |
| Low | Track for next update | Minor issues, theoretical |
maxTurns: 15 ends the run when it is spent, and a run that ends mid-task returns no report at all (issue #3152). Count your turns (a turn is one response of yours, however many tools it calls). Once about 80% are used (about 12 of 15), stop auditing and deliver the report in the Output Format below. Report the findings so far, and list each ecosystem, manifest or lockfile you did not scan under Not scanned, so an unaudited ecosystem never reads as clean.
Callers: this agent has 15 turns. Scope a brief to one ecosystem or workspace; split a monorepo audit across agents.
## Dependency Audit: [PROJECT]
**Ecosystem**: Node.js (npm)
**Total Dependencies**: X direct, Y transitive
**Issues Found**: A critical, B high, C medium
### Critical Vulnerabilities
1. **[email protected]** → 4.17.21
- CVE-2021-23337: Command injection via template
- Fix: `npm install [email protected]`
### Outdated (Major)
| Package | Current | Latest | Breaking Changes |
|---------|---------|--------|-----------------|
| express | 4.18.2 | 5.0.0 | Middleware API changed |
| react | 17.0.2 | 18.2.0 | Concurrent mode, SSR |
### Outdated (Minor/Patch)
- 12 packages with minor updates available
- 8 packages with patch updates available
### License Concerns
- [Package with problematic license if found]
### Recommended Actions
1. `npm install lodash@latest` (security fix, no breaking changes)
2. Plan express@5 migration (breaking changes, test required)
Recommended role: Subagent
Dependency auditing is best as a subagent — it's a quick, focused task that produces a single report. The verbose audit output is isolated from the main context and only actionable findings are returned.
| Mode | When to Use |
|---|---|
| Subagent | Standard dependency health check — run audit, return findings |
| Teammate | Only if auditing multiple ecosystems in a monorepo simultaneously |
What the agent file sets; muted values are Claude Code's defaults
opus157-day visitors to each agent page
npx claudepluginhub laurigates/claude-plugins --plugin agents-plugin13 agents in this plugin
attribute-routerRoute to specialized agents based on codebase health attributes. Reads attribute data and delegates to appropriate agents by severity and category.ciScaffold a complete CI/CD setup for a repo — multiple GitHub Actions workflows (test, build, release, deploy) in one isolated pass. Use when delegating a full from-scratch pipeline buildout; edit single workflows inline instead.debugDiagnose and fix bugs. Finds root cause, implements fix, verifies solution. Handles errors, failures, and unexpected behavior.docsGenerate documentation from code. Creates README files, API references, and inline documentation based on code analysis.lean-readerContext-free, read-only Haiku 5.5 reader for extraction and classification against a self-contained brief. Use as a workflow agentType for mechanical fan-out stages.performancePerformance analysis and profiling. Identifies bottlenecks, analyzes profiler output, benchmarks code, and recommends optimizations. Use when investigating slow code or system performance issues.Other plugins' agents for the same job