Loading...
Loading...
This skill should be used when the user asks for "model council", "multi-model", "compare models", "ask multiple AIs", "consensus across models", "run on different models", or wants to get solutions from multiple AI providers (Claude, GPT, Gemini, Grok) and compare results. Orchestrates parallel execution across AI models/CLIs and synthesizes the best answer.
npx skill4agent add michaelboeding/skills model-council| CLI Tool | Model | Status |
|---|---|---|
| Claude (this session) | ✅ Already running |
| OpenAI Codex | Requires setup |
| Google Gemini | Requires setup |
| Multi-model | Requires setup |
# Install via npm
npm install -g @openai/codex
# Login (uses browser auth)
codex auth
# Verify
codex --version# Install via npm
npm install -g @anthropic-ai/gemini-cli
# Or use gcloud with Vertex AI
gcloud auth application-default login
# Verify
gemini --version# Install via pip
pip install aider-chat
# Configure with your API keys
export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."
# Run with specific model
aider --model gpt-4o --message "analyze this code"python3 ${CLAUDE_PLUGIN_ROOT}/skills/model-council/scripts/detect_clis.pyANTHROPIC_API_KEYOPENAI_API_KEYGOOGLE_API_KEYXAI_API_KEYmodel council with claude, gpt-4o, gemini: solve this problem
model council (claude + codex): fix this bug
model council all: use all available models~/.model-council.yaml# Preferred models (in order)
models:
- claude # Use Claude Code CLI (current session)
- codex # Use Codex CLI if installed
- gemini-cli # Use Gemini CLI if installed
# Fallback to APIs if CLIs not available
fallback_to_api: true
# API models to use when falling back
api_models:
anthropic: claude-sonnet-4-20250514
openai: gpt-4o
google: gemini-2.0-flash
xai: grok-3
# Timeout per model (seconds)
timeout: 120
# Run in parallel or sequential
parallel: trueAnalyze the following problem and provide your recommendations.
DO NOT output code changes directly.
Instead, provide:
1. Your analysis of the problem
2. Recommended approach(es)
3. Potential issues or edge cases to consider
4. Trade-offs between different solutions
Problem:
[user's problem here]python3 ${CLAUDE_PLUGIN_ROOT}/skills/model-council/scripts/api_council.py \
--prompt "Analyze this problem and recommend solutions (do not implement): [problem]" \
--models "claude-sonnet,gpt-4o,gemini-flash"claude-sonnetclaude-opusgpt-4ogpt-4-turboo1gemini-flashgemini-progrokpython3 ${CLAUDE_PLUGIN_ROOT}/skills/model-council/scripts/api_council.py --list-modelspython3 ${CLAUDE_PLUGIN_ROOT}/skills/model-council/scripts/detect_clis.pyclaudecodexgeminiaidercursor| Aspect | code-council | model-council |
|---|---|---|
| Models used | Claude only | Multiple (Claude, GPT, Gemini, etc.) |
| Diversity source | Different approaches | Different architectures |
| Cost | Free (uses current session) | Free (CLIs) or paid (APIs) |
| Speed | Fast (single model) | Slower (parallel calls) |
| Best for | Quick iterations | High-stakes decisions |
## Model Council Analysis Results
### Consensus: HIGH (3/3 models agree on approach)
### Summary of Recommendations:
All models recommend using a hash map for O(1) lookup.
Key considerations raised:
- Handle null/empty input (Claude, GPT-4o)
- Consider memory vs speed tradeoff (Gemini)
- Add input validation (all models)
### Individual Analyses:
#### Claude Sonnet (API)
Analysis: The bug is caused by off-by-one error in the loop boundary.
Recommendation: Change `i <= len` to `i < len`
Edge cases noted: Empty array, single element
Confidence: High
#### GPT-4o (API)
Analysis: Loop iterates one element past array bounds.
Recommendation: Fix loop condition, add bounds check
Additional insight: Could also use forEach to avoid index errors
Confidence: High
#### Gemini Flash (API)
Analysis: Array index out of bounds on final iteration.
Recommendation: Adjust loop termination condition
Reference: Similar to common off-by-one patterns
Confidence: High
### Claude Code Decision:
Based on consensus, implementing fix with:
- Loop condition change (i < len)
- Added null check for robustness
- Unit test for edge cases
[Claude Code now implements the solution]