From agentic-dev-team
Reviews code complexity: cyclomatic (<10), nesting depth (<4), function lines (<20), parameters (<5). Detects control flow, async issues. JSON output with pass/warn/fail status, issues, summary.
How this agent operates — its isolation, permissions, and tool access model
Agent reference
agentic-dev-team:agents/complexity-reviewhaikuThe summary Claude sees when deciding whether to delegate to this agent
Output JSON: ```json {"status": "pass|warn|fail|skip", "issues": [{"severity": "error|warning|suggestion", "confidence": "high|medium|none", "file": "", "line": 0, "message": "", "suggestedFix": ""}], "summary": ""} ``` Status: pass=manageable, warn=hotspots, fail=critical issues Severity: error=unmaintainable, warning=high complexity, suggestion=could simplify Confidence: high=threshold violat...Output JSON:
{"status": "pass|warn|fail|skip", "issues": [{"severity": "error|warning|suggestion", "confidence": "high|medium|none", "file": "", "line": 0, "message": "", "suggestedFix": ""}], "summary": ""}
Status: pass=manageable, warn=hotspots, fail=critical issues Severity: error=unmaintainable, warning=high complexity, suggestion=could simplify Confidence: high=threshold violation (function >N lines, nesting >N levels); medium=extraction direction clear, exact split requires context; none=requires human judgment (algorithm design)
Model tier: small Context needs: full-file
Return {"status": "skip", "issues": [], "summary": "No code files in target"} when:
| Metric | Limit |
|---|---|
| Function lines | <20 |
| Cyclomatic complexity | <10 |
| Nesting depth | <4 |
| Parameters | <5 |
Function size:
Control flow:
10 branches (if/else/switch cases)
4 nesting levels
Async:
.then() without error handling; C#: deeply nested ContinueWith() instead of async/await; Java: deeply nested CompletableFuture chains without exceptionally().Result or .Wait() on a Task; Java: Future.get() without timeoutCognitive load:
Domain modeling, naming, tests (handled by other agents)
npx claudepluginhub bdfinst/agentic-dev-team --plugin agentic-dev-teamAnalyzes code complexity via cyclomatic, cognitive metrics, nesting depth, function length across JavaScript/TypeScript, Python, Go using ESLint, Radon, Lizard. Suggests refactorings with expected reductions.
Audits code for unnecessary complexity, over-engineering, and cognitive burden. Identifies solutions harder to understand than needed—not structural issues. Use post-feature, pre-PR, or for over-engineered code. Read-only.
Read-only auditor that detects unnecessary complexity in modified files: dead code, naming issues, control flow, API surface, over-abstraction, consolidation opportunities. Reports findings with file, line, category, severity, specific fix.