AI Orchestrator
π€ AI Orchestrator
Advanced AI orchestration engine β multi-advisor councils, structured debates, creative brainstorming, and multi-criteria evaluation. Works as an MCP (Model Context Protocol) server with any compatible AI tool.
Supports: OpenCode, Claude Code, Cursor, Windsurf, Continue, Cline, Copilot, and any MCP-compatible client.
β¨ Features
5 Orchestration Strategies
Strategy | Description | Use Case |
Council ποΈ | Multi-advisor decision review with anonymous peer evaluation (Karpathy method) | Critical decisions, risk assessment |
Debate βοΈ | Structured pro/con debate with judge verdict | Go/no-go decisions, tradeoff analysis |
Brainstorm π‘ | Creative idea generation with scoring and clustering | Feature discovery, product innovation |
Evaluate π | Multi-criteria option scoring with weighted analysis | Vendor selection, tech choices |
Spec Review π | Specialist review from multiple angles (security, UX, DevOps, etc.) | Pre-implementation plan review |
15+ Advisor Personas
Persona | Stance | Specialty | Language |
Skeptic (Muhalif) | Critical | Risk detection, failure modes | EN / TR |
First Principles (Δ°lk Δ°lkeler) | Analytical | Assumption deconstruction | EN / TR |
Expansionist (GeniΕlemeci) | Creative | Opportunity discovery | EN / TR |
Outsider (YabancΔ±) | Neutral | Jargon-free fresh eyes | EN / TR |
Executor (Δ°cracΔ±) | Practical | Implementation, first steps | EN / TR |
Visionary | Creative | Future opportunities | |
Pragmatist | Practical | Feasibility, resource constraints | |
Security Auditor | Critical | Attack surfaces, data exposure | |
UX Advocate | Critical | User journey, accessibility | |
Business Analyst | Analytical | ROI, market positioning | |
DevOps Engineer | Practical | Deployability, scaling | |
Ethicist | Analytical | Fairness, societal impact | |
Architect | Analytical | System design, patterns | |
Tester | Critical | Edge cases, testability | |
Growth Hacker | Creative | Metrics, viral loops |
Turkish advisors (Muhalif, Δ°lk Δ°lkeler, GeniΕlemeci, YabancΔ±, Δ°cracΔ±) are available for Turkish-language decisions. The rest respond in English by default but support any language the question is asked in.
Pre-built Councils
Council | Advisors | Language | Use Case |
Executive Board | Skeptic, Visionary, Pragmatist, Security, Business, UX | EN | General business decisions |
AkΔ±l Kurulu | Muhalif, Δ°lk Δ°lkeler, GeniΕlemeci, YabancΔ±, Δ°cracΔ± | TR | Turkish-language decisions |
Tech Review | Architect, Security, DevOps, Tester | EN | Architecture/stability review |
Ethics Board | Ethicist, UX, Skeptic, Business | EN | Ethical impact assessment |
Quick Check | Skeptic, Pragmatist, Visionary | EN | Fast 3-advisor decision |
Multi-Provider Support
Provider | Setup |
OpenAI |
|
Anthropic (Claude) |
|
OpenRouter |
|
Ollama (local) | No key needed β just run |
Groq |
|
Google (Gemini) |
|
DeepSeek |
|
π Quick Start
Prerequisites
Node.js 18+
At least one LLM provider API key (or Ollama running locally)
Install & Configure
# Clone
git clone https://github.com/YOUR_USER/ai-orchestrator.git
cd ai-orchestrator
# Install
npm install
npm run build
# Configure at least one provider
export OPENAI_API_KEY="sk-..."
# OR
export ANTHROPIC_API_KEY="sk-ant-..."
# OR run Ollama locally: ollama serveAdd to Your AI Tool
OpenCode
// opencode.json
{
"mcpServers": {
"ai-orchestrator": {
"command": "node",
"args": ["/path/to/ai-orchestrator/dist/index.js"],
"env": {
"OPENAI_API_KEY": "${OPENAI_API_KEY}"
}
}
}
}Claude Code
// .claude/mcp.json
{
"mcpServers": {
"ai-orchestrator": {
"command": "node",
"args": ["/path/to/ai-orchestrator/dist/index.js"],
"env": {
"ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}"
}
}
}
}Cursor / Windsurf
Add to Cursor MCP settings or .cursor/mcp.json:
{
"mcpServers": {
"ai-orchestrator": {
"command": "node",
"args": ["/absolute/path/to/ai-orchestrator/dist/index.js"]
}
}
}π Usage
Once configured, call any tool from your AI assistant:
Council (Decision Review)
Use the orchestrate tool to review: "Should we rewrite our Bootstrap themes to Tailwind?"
Strategy: council
Council: executive_boardReturns: 6 independent advisor opinions β anonymous peer review β chairman synthesis with recommendations.
Debate (Pro/Con Analysis)
Orchestrate a debate on: "Should we adopt microservices?"
Strategy: debate
Rounds: 3Brainstorm (Idea Generation)
Brainstorm ideas for: "How to improve developer onboarding?"
Strategy: brainstormEvaluate (Option Scoring)
Evaluate these database options: PostgreSQL, MongoDB, Supabase
Criteria: Performance (0.4), Ease of Use (0.3), Cost (0.3)
Strategy: evaluateSpec Review (Plan Audit)
Review this architecture spec from security, performance, and UX perspectives.
Strategy: spec-reviewCouncil with Per-Advisor Provider Routing
Each advisor can use a different LLM provider/model when multiple API keys are configured:
Evaluate: "Should we migrate to microservices?"
Strategy: council
Council: executive_board
Advisors:
- id: skeptic
provider: deepseek
- id: visionary
provider: anthropic
- id: pragmatist
provider: openai
model: gpt-4o
- id: security_auditor
provider: groq
- id: business_analyst
provider: google
- id: ux_advocate
provider: openrouterAdvisors without a provider spec use auto-detected providers in round-robin. If no API keys are configured, simulation mode runs all advisors using the calling AI's own intelligence.
π§ Architecture
src/
βββ index.ts # MCP Server entry point (4 tools exposed)
βββ types.ts # TypeScript type definitions
βββ personas.ts # 15+ advisor personas + 5 council presets
βββ providers.ts # LLM provider layer (7 providers)
βββ strategies/
βββ council.ts # Karpathy 3-stage multi-advisor council
βββ debate.ts # Structured pro/con debate with judge
βββ brainstorm.ts # Creative brainstorming with clustering
βββ evaluate.ts # Multi-criteria evaluation + spec reviewCouncil Flow (Karpathy Method)
βββββββββββββββ
β Question β
ββββββββ¬βββββββ
ββββββββββββββββΌβββββββββββββββ
βββββββΌββββββ βββββββΌββββββ βββββββΌββββββ
β Advisor A β β Advisor B β β Advisor N β β Parallel (isolated)
β (Skeptic) β β(Visionary)β β (...) β
βββββββ¬ββββββ βββββββ¬ββββββ βββββββ¬ββββββ
ββββββββββββββββΌβββββββββββββββ
βββββββΌββββββ
β Anonymize β β Anonymous review
βββββββ¬ββββββ
ββββββββββββββββΌβββββββββββββββ
βββββββΌββββββ βββββββΌββββββ βββββββΌββββββ
β Peer Rev Aβ β Peer Rev Bβ β Peer Rev Nβ
βββββββ¬ββββββ βββββββ¬ββββββ βββββββ¬ββββββ
ββββββββββββββββΌβββββββββββββββ
βββββββΌββββββ
β Chairman β β Synthesis
β Verdict β
βββββββββββββπ Multi-Language Support
The system is English-first but fully multi-language:
Executive Board, Tech Review, Ethics Board, Quick Check β English by default
AkΔ±l Kurulu β Turkish advisors for Turkish-language decisions
You can ask questions in any language β the system matches the input language
Advisors defined in Turkish (Muhalif, Δ°lk Δ°lkeler, etc.) will respond in Turkish when used
The simulation mode (no API keys) also supports any language the calling AI understands
π οΈ Development
npm install # Install dependencies
npm run build # Compile TypeScript
npm run dev # Watch mode
npm start # Run server directlyπ License
MIT β see LICENSE
π Credits
Inspired by Andrej Karpathy's LLM Council
Built on the Model Context Protocol
Advisor personas adapted from the Claude Skills LLM Council community
Made for AI-powered decision making. Ship with confidence.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/halitartuc/ai-orchestrator'
If you have feedback or need assistance with the MCP directory API, please join our Discord server