Multi-Agent Expert Review System - Create virtual expert panels to review any topic, document, or idea using AI-powered domain experts.
The Expert Panel Simulator creates virtual panels of domain experts who discuss and review your ideas, documents, or concepts. Think of it as having instant access to a roundtable of industry experts who can provide diverse perspectives and actionable feedback.
Perfect for:
- π Product design reviews
- ποΈ Architecture assessments
- πΌ Business idea validation
- π Academic research discussions
- π― Strategy planning sessions
- π System design reviews
- π§ Multiple AI Providers: Choose between OpenAI GPT-4 or Anthropic Claude
- π₯ Expert Templates: Pre-built experts across productivity, tech, business, and academic domains
- π Comprehensive Analytics: Track token usage, costs, and performance metrics
- π° Cost Transparency: Real-time cost tracking with detailed breakdowns
- π Rich Outputs: Markdown transcripts, JSON analytics, and session metadata
- π¨ Customizable: Create your own expert personas and discussion formats
- β‘ Easy Setup: Works out of the box with minimal configuration
# Clone or download this directory
git clone <your-repo-url>
cd expert-panel-simulator
# Install dependencies
pip install -r requirements.txt# Copy environment template
cp .env.example .env
# Edit .env and add your API keys
# Get OpenAI key from: https://platform.openai.com/api-keys
# Get Anthropic key from: https://console.anthropic.com/Minimum .env setup:
# Choose one or both providers
ANTHROPIC_API_KEY=your_anthropic_key_here
# OPENAI_API_KEY=your_openai_key_here
# Set primary provider
PRIMARY_PROVIDER=anthropic# Review a product idea with tech experts
python expert_panel_simulator.py --topic "AI-powered task manager" --domain technology
# Review a document with business experts
python expert_panel_simulator.py --document my_business_plan.md --domain business
# Use a sample configuration
python expert_panel_simulator.py --sample startup_idea_validation --topic "My SaaS idea"# Product review with 5 tech experts
python expert_panel_simulator.py \
--topic "Mobile app for habit tracking" \
--domain technology \
--experts 5
# Document review with productivity experts
python expert_panel_simulator.py \
--document design_spec.md \
--domain productivity
# Business strategy with custom rounds
python expert_panel_simulator.py \
--topic "Expansion strategy" \
--domain business \
--rounds 6# Force specific provider
python expert_panel_simulator.py \
--topic "System architecture" \
--domain technology \
--provider openai
# Custom output directory
python expert_panel_simulator.py \
--topic "Research proposal" \
--domain academic \
--output my_reviews/
# Use sample configuration
python expert_panel_simulator.py \
--sample app_architecture_review \
--document technical_spec.md- GTD Specialist - Task capture and context-based action
- Digital Organization Expert - PARA method and progressive summarization
- Focus & Attention Expert - Deep work and attention management
- Time-Boxing Coach - Pomodoro and interval-based productivity
- Executive Function Specialist - ADHD and executive function support
- UX Designer - User experience and interface design
- Software Architect - System architecture and scalability
- DevOps Engineer - Infrastructure and operations
- Security Specialist - Cybersecurity and privacy
- Frontend Engineer - Frontend development and performance
- Product Strategist - Product planning and market fit
- Startup Mentor - Entrepreneurship and lean validation
- Growth Specialist - Marketing funnels and user acquisition
- Finance Advisor - Business finance and sustainability
- Cognitive Psychology Researcher - Human cognition and behavior
- Learning Scientist - Education and knowledge transfer
- Data Science Researcher - Machine learning and statistical modeling
Use --sample <name> for pre-configured expert panels:
Domain: Productivity Experts: GTD, PARA, ADHD Specialist, Deep Work Focus: Task management system design
Domain: Technology Experts: Software Architect, UX Designer, DevOps, Security Focus: Application architecture and design
Domain: Business Experts: Product Manager, Startup Advisor, Growth Expert, Finance Focus: Startup idea and business model validation
The simulator provides detailed analytics after each session:
{
"session_info": {
"duration_minutes": 8.5,
"total_calls": 12,
"primary_provider": "anthropic"
},
"token_usage": {
"prompt_tokens": 15420,
"completion_tokens": 8340,
"total_tokens": 23760
},
"costs": {
"total_cost_usd": 0.1247,
"average_cost_per_call": 0.0104,
"estimated_cost_per_1k_tokens": 0.0052
}
}Typical Costs (5 experts, 6 rounds):
- Anthropic Claude-3.5-Sonnet: $0.10 - $0.25
- OpenAI GPT-4o: $0.15 - $0.35
- Anthropic Claude-3-Haiku: $0.03 - $0.08
Each simulation creates a timestamped session directory:
outputs/
βββ session_20241120_143022/
βββ transcript.md # Full discussion transcript
βββ analytics.json # Token usage and cost analytics
βββ metadata.json # Session configuration and summary
# Expert Panel Discussion Transcript
Session: 20241120_143022
Generated: 2024-11-20T14:32:45
## UX Designer (14:32:45)
As a UX designer, I see significant potential in this concept. The key challenge will be balancing feature richness with interface simplicity...
## Software Architect (14:33:12)
From an architecture perspective, we need to consider scalability early. I'd recommend starting with a microservices approach...Create a .env file with these options:
# API Keys (get from provider websites)
OPENAI_API_KEY=your_key_here
ANTHROPIC_API_KEY=your_key_here
PRIMARY_PROVIDER=anthropic
# Model Selection
ANTHROPIC_MODEL=claude-3-5-sonnet-20241022
OPENAI_MODEL=gpt-4o-2024-08-06
# Model Parameters
TEMPERATURE=0.7 # Creativity (0.0-1.0)
MAX_TOKENS=4000 # Response length limit
# Simulation Settings
MAX_ROUNDS=8 # Discussion rounds
DEFAULT_EXPERT_COUNT=5 # Number of experts
DISCUSSION_STYLE=formal # formal, casual, academic
# Output Options
OUTPUT_DIR=outputs # Where to save results
SAVE_TRANSCRIPTS=true # Save full transcripts
ENABLE_TOKEN_COUNTING=true
ENABLE_COST_TRACKING=trueUsage: expert_panel_simulator.py [OPTIONS]
Options:
-t, --topic TEXT Topic for expert panel discussion
-d, --document PATH Document file to review
--domain CHOICE Expert domain (productivity/technology/business/academic)
-e, --experts INT Number of experts (3-7 recommended)
-c, --config PATH YAML configuration file
--sample CHOICE Use sample configuration
--provider CHOICE Override primary LLM provider (openai/anthropic)
-o, --output PATH Output directory override
-r, --rounds INT Number of discussion rounds
--help Show this message and exitYou can create custom expert personas by extending the expert templates:
from config.expert_templates import create_custom_expert
custom_expert = create_custom_expert(
name="Dr. Jane Smith (AI Ethics Expert)",
expertise="AI Ethics and Responsible AI Development",
perspective="Focuses on ethical implications and societal impact",
background="PhD in Philosophy, 10+ years in AI ethics research"
)Create YAML configs for repeated use:
# my_config.yaml
experts:
- name: "Custom Expert 1"
expertise: "Domain Expertise"
perspective: "Unique viewpoint"
background: "Professional background"
discussion_rounds:
- "Round 1: Analysis"
- "Round 2: Recommendations"
- "Round 3: Implementation"
settings:
max_rounds: 6
temperature: 0.8β "No LLM providers available"
- Check your API keys in
.envfile - Verify keys are valid and have credits
- Install required packages:
pip install openai anthropic
β "Module not found" errors
- Install dependencies:
pip install -r requirements.txt - Check Python version (3.8+ required)
β High costs
- Use cheaper models:
claude-3-haikuorgpt-3.5-turbo - Reduce expert count or rounds
- Set lower
MAX_TOKENSlimit
β Rate limiting
- The system includes retry logic with exponential backoff
- Consider switching providers or reducing concurrency
- Anthropic typically has higher rate limits than OpenAI
OpenAI:
- Go to https://platform.openai.com/api-keys
- Create new API key
- Add to
.env:OPENAI_API_KEY=sk-...
Anthropic:
- Go to https://console.anthropic.com/
- Create API key
- Add to
.env:ANTHROPIC_API_KEY=sk-ant-...
We welcome contributions! Areas for improvement:
- New Expert Domains: Add experts for healthcare, finance, education, etc.
- Enhanced Analytics: Better visualization of expert consensus/disagreement
- Integration Features: Export to other tools, API endpoints
- UI Development: Web interface for easier use
MIT License - feel free to use this for personal or commercial projects.
Built on:
- AutoGen - Multi-agent conversation framework
- OpenAI API - GPT-4 and other models
- Anthropic API - Claude models
π‘ Pro Tips:
- Start with 3-5 experts for focused discussions
- Use document review for detailed feedback
- Try different domains for diverse perspectives
- Check analytics to optimize costs
- Save successful configurations for reuse
Questions or issues? Open an issue on GitHub or check our troubleshooting guide!