Agent Chain Analyzer

•
2
•

Detects and analyzes inefficient agent chain anti-patterns to optimize context usage and architectural performance.

The Agent Chain Analyzer is a specialized diagnostic tool designed for Claude Code projects to identify the 'Agent Chain' anti-pattern, where multiple agents invoke each other sequentially. This behavior leads to massive context inflation, high token costs, and fragile workflows. The skill maps complete dependency graphs, calculates chain depth, and provides data-driven estimates for context reduction (often exceeding 60%) by facilitating a migration to a modern Manager-as-Agent plus Skills architecture. It is an essential utility for developers scaling complex AI-driven applications who need to maintain performance and reduce operational overhead.

主要功能

01Automatic detection of direct and indirect agent invocation chains
022 GitHub stars
03Token-level context impact estimation and savings analysis
04Read-only architectural auditing that preserves project integrity
05Comprehensive dependency mapping with structured JSON graph output
06Identification of parallelization opportunities within sequential tasks

使用场景

01Auditing legacy multi-agent projects for architectural bottlenecks
02Planning refactors from multi-agent chains to the modern Skills-based model
03Optimizing token consumption in complex sequential agent workflows