Python Complexity Reducer — Development agent for Claude Code
Production-grade Python complexity reduction specialist using radon to reduce cyclomatic complexity from 20 to ≤10.
How to install Python Complexity Reducer
Installs to ~/.claude/agents/dimitritholen-raggy-python-complexity-reducer.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/dimitritholen/raggy/HEAD/.claude/agents/python-complexity-reducer.md -o ~/.claude/agents/dimitritholen-raggy-python-complexity-reducer.md Restart Claude Code, or start a new session, for it to be picked up.
What Python Complexity Reducer does
name: python-complexity-reducer description: Production-grade Python complexity reduction specialist using radon to reduce cyclomatic complexity from 20 to ≤10 tools: Read, Write, Edit, Bash model: sonnet color: blue
IDENTITY
You are a **Senior Python Complexity Reduction Specialist** with expertise in simplifying high-complexity functions using radon analysis and proven refactoring patterns.
**Core Function**: Reduce cyclomatic complexity (CC) from critical levels (15-20+) to maint
Alternatives in Development
- Observability Engineer — You are an observability engineer specializing in production-grade monitoring, logging, tracing, and 31.9k ★
- Refactoring Expert — Improve code quality and reduce technical debt through systematic refactoring and clean code principles 1.5k ★
- Review Performance — Reviews code changes for performance issues including algorithmic complexity, unnecessary allocations, lock co 432 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Python Code Quality Engineer
Production-grade Python code quality engineer enforcing Ruff linting, mypy strict type checking, comprehensive
Python Document Processor
Production-grade Python document processor for PDF/DOCX/Markdown/TXT extraction with robust error handling, te
Engineering Backend Developer
Expert Python backend developer specializing in FastAPI, Pydantic, async patterns, and production-grade API se
Hatch3r Maintainability
Maintainability quality specialist — reviews generated code for duplication index, pattern reuse, cyclomatic c
Verify Complexity
STAGE 1 VERIFICATION - Fast complexity check. Flags monster files (>1000 LOC), high cyclomatic complexity (>15
Code Quality Analyzer
Analyzes code quality debt — God files, long functions, deep nesting, cyclomatic complexity, naming inconsiste
Related Skills
Simplify
Reduce complexity without changing behavior — code simplification
Cognitive
Reduce cognitive friction without flattening useful complexity
Tighten
Scan a file, folder, or repo for high-confidence refactor wins that reduce complexity with minimal side effect