A tool for analyzing and expanding multi-agent AI systems by identifying gaps and suggesting complementary orchestration and action agents through an iterative, interactive approval workflow.
This repository provides tooling to review existing multi-agent network configurations and intelligently suggest additional agents to enhance coordination, coverage, and capability.
- Iterative Mode (Recommended): Suggests agents one at a time, allowing you to approve/reject each suggestion individually
- Batch Mode: Analyzes the entire network and generates all suggestions at once
📊 See MODE_COMPARISON.md for detailed comparison and recommendations.
- Orchestration & Routing Layer: Agents that coordinate workflows, manage priorities, route tasks, and handle system-level concerns
- Action Layer: Specialized agents that perform specific tasks and operations
The Agent Network Expander analyzes your multi-agent system and:
- Maps existing agents and their relationships
- Identifies functional gaps and coordination needs
- Suggests complementary orchestration agents for better workflow management
- Recommends specialized action agents to fill capability gaps
- Generates detailed analysis documents with implementation priorities
- Optionally creates system prompts for recommended agents
# In your agent network directory
/review-agent-network-iterativeThe command will:
- Analyze your agent configuration
- Present agent suggestions one at a time
- Ask for your approval on each suggestion
- Generate system prompts for accepted agents
- Create a summary of all decisions
# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Run iterative analysis
python scripts/analyze_network_iterative.py /path/to/agent/config
# Or analyze current directory
python scripts/analyze_network_iterative.py .Iterative workflow:
- Review each suggestion individually
- Choose: Yes (add), No (reject), Skip (maybe later), or Quit (stop reviewing)
- System prompts generated immediately for accepted agents
- Summary saved with all decisions
/review-agent-networkpython scripts/analyze_network_local.py /path/to/agent/configBatch workflow:
- Generates complete analysis document
- Lists all suggestions at once
- Optionally generates all system prompts in bulk
- Best for comprehensive planning sessions
- Iterative: Copy
slash-commands/review-agent-network-iterative.mdto.claude/commands/ - Batch: Copy
slash-commands/review-agent-network.mdto.claude/commands/ - Restart or reload Claude Code
- Access via
/review-agent-network-iterativeor/review-agent-network
- Install the script globally or add to your PATH
- Use as a command-line utility for batch processing multiple agent networks
- Integrate into CI/CD pipelines for continuous agent architecture review
- Schedule periodic reviews of agent network configurations
- Automatically generate pull requests with suggestions
- Track agent network evolution over time
- Keep in your tools directory (
~/programs/agent-network-expander/) - Use during agent system design and development
- Run analysis before major architecture changes
- Integrate into agent creation templates
- Run during agent network initialization
- Use for periodic architecture health checks
.
├── slash-commands/
│ ├── review-agent-network-iterative.md # Interactive review mode
│ └── review-agent-network.md # Batch analysis mode
├── scripts/
│ ├── analyze_network_iterative.py # Local iterative analyzer
│ └── analyze_network_local.py # Local batch analyzer
├── findings/ # Generated analysis outputs
│ ├── analysis-summary.md # Iterative mode summary
│ ├── agent-network-analysis.md # Batch mode analysis
│ └── system-prompts/
│ ├── orchestration/
│ └── action/
└── requirements.txt # Python dependencies
- Claude Code CLI
- Active Anthropic API access
- Python 3.8+
- Ollama installed and running
- Recommended model:
qwen2.5:14b-instruct-q5_K_M(or similar 10GB+ model)
- Initial Architecture Design: Identify what agents you need before building
- System Expansion: Find gaps in existing agent networks
- Optimization: Discover redundancies and missing coordination
- Documentation: Generate comprehensive agent network maps
- Team Onboarding: Help new developers understand agent architecture
Contributions welcome! This template is designed to be extended with:
- Additional analysis heuristics
- Support for different agent frameworks
- Alternative LLM backends
- Visualization tools
- Integration with agent orchestration platforms
MIT License - See LICENSE file for details.
Created by Daniel Rosehill
- Website: danielrosehill.com
- Email: [email protected]