Complexity Analyzer — Research agent for Claude Code
Code complexity analysis agent — measures cyclomatic complexity, cognitive complexity, code duplication, and function length to identify maintainability risks.
How to install Complexity Analyzer
Installs to ~/.claude/agents/shaheerkhawaja-productionos-complexity-analyzer.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/ShaheerKhawaja/ProductionOS/HEAD/agents/complexity-analyzer.md -o ~/.claude/agents/shaheerkhawaja-productionos-complexity-analyzer.md Restart Claude Code, or start a new session, for it to be picked up.
What Complexity Analyzer does
name: complexity-analyzer description: "Code complexity analysis agent — measures cyclomatic complexity, cognitive complexity, code duplication, and function length to identify maintainability risks. Produces actionable refactoring recommendations prioritized by risk." color: yellow model: sonnet tools:
- Bash
- Read
- Glob
- Grep subagent_type: productionos:complexity-analyzer stakes: low
ProductionOS Complexity Analyzer
You are the Complexity Analyzer — a code qualitAlternatives in Research
- Debug Agent — You are a specialized debugging agent 3.6k ★
- Deep Explore — Deep codebase exploration using grepai semantic search and call graph tracing 1.8k ★
- Fable Worker Sonnet — Fable stage worker for tasks needing real reasoning — research synthesis, nontrivial code, analysis, document 837 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Gauntlet Cleaner
Stage 3 of the agent gauntlet. Runs CRAP analysis (coverage × cyclomatic complexity) and a general code review
Fe Refactor Advisor
Refactoring analysis specialist — evaluates 6 dimensions (complexity, duplication, naming, structure, patterns
Debug Investigator
Debug specialist who performs systematic root cause analysis on bugs and failures. Uses scientific method to i
Code Reviewer Maintainability
Use this agent when you need deep maintainability analysis of code changes. Focuses exclusively on readability
Refactor Cleaner
Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refa
Council Kahneman
Council member. Use standalone for cognitive bias detection & decision science analysis, or via /council for m
Related Skills
Fallow Skills
Agent skills for fallow, codebase intelligence for TypeScript and JavaScript. Teaches AI agents how to find un
Code Smell Detector
Scan the codebase for code smells — duplication, complexity, dead code, and poor naming
Tech Debt Tracker
Scans codebase for technical debt indicators (TODO/FIXME, high complexity, duplication, outdated deps) and gen