بنقرة واحدة
supervisor-orchestrator
Supervisor-orchestrator pattern: Orchestrator controls task planning and delegation.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Supervisor-orchestrator pattern: Orchestrator controls task planning and delegation.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
arXiv paper discovery — select top 3 significant papers, research via subagents, ingest to wiki, deliver report.
Daily raw file ingestion pipeline — process files from raw/ into structured wiki knowledge, verify frontmatter and links, archive to Clippings/. Schedule: 06:30 AM.
Daily Zettelkasten insight generation — run CLI insight engine, create wiki pages for confidence>=0.7 insights, integrate to wiki. Schedule: 06:00 AM.
Daily global news curator — RSS discovery, significance filtering, clippings archive + synthesis wiki delivery, deliver headlines report. Schedule: 07:30 AM.
Wiki synthesis agent operational sheet — cross-domain bridges, concept advancement, evidence evaluation
Daily wiki quality audit anchored in wiki-indexing-theory.md — HITS authority scoring, GAAC cluster validation, tag taxonomy compliance, reciprocal link enforcement. Schedule: 08:50 AM.
| name | supervisor-orchestrator |
| description | Supervisor-orchestrator pattern: Orchestrator controls task planning and delegation. |
[!IMPORTANT] When to use: When an orchestrator needs to plan, decompose, and coordinate multiple sub-agents — with routing logic built into the orchestrator itself.
Does the task require multiple specialized capabilities?
├── YES
│ └── Do you need a supervisor to route and coordinate sub-agents?
│ ├── NO, sub-agents need autonomy with orchestrator control?
│ │ └── YES → Supervisor Orchestrator (you're here)
│ └── YES, just routing needed?
│ └── YES → supervisor-delegation
└── NO → single-agent
| ✅ Use Orchestrator When | ❌ Avoid When |
|---|---|
| Task decomposition is complex/unpredictable | Task has simple, fixed routing |
| Orchestrator needs fine-grained control over execution | Multi-level hierarchy needed |
| Sub-agents need to work on shared artifacts/data | Simple parallel execution suffices |
| You need conditional branching based on intermediate results |
┌─────────────────────────────────────────────┐
│ Orchestrator │
│ ┌───────────────────────────────────────┐ │
│ │ • Task decomposition │ │
│ │ • Step sequencing │ │
│ │ • Conditional branching │ │
│ │ • Result synthesis │ │
│ └───────────────────────────────────────┘ │
└──────────────────┬──────────────────────────┘
│
┌─────────────┼─────────────┐
▼ ▼ ▼
┌────────┐ ┌────────┐ ┌────────┐
│Agent A │◄──│Agent B │──►│Agent C │
│(Search)│ │(Analyze) │(Write) │
└────────┘ └────────┘ └────────┘
│ │ │
└─────────────┼─────────────┘
▼
Shared Context
(Artifacts, State)
You are an orchestrator controlling a team of specialized agents.
Task: {user_task}
Available agents:
- search_agent: Web search, fact retrieval
- analysis_agent: Data analysis, pattern recognition
- writing_agent: Content creation, editing
Orchestrator responsibilities:
1. Decompose the task into steps
2. Assign each step to the appropriate agent
3. Manage shared state between agents
4. Handle errors and retries
5. Synthesize final output
Always maintain shared context between agents.
| Approach | Use When |
|---|---|
| Central artifact (file/DB) | Agents produce/consume structured outputs |
| Message passing | Real-time coordination needed |
| Orchestrator intermediates | Supervisor holds all state, agents stateless |
| Mistake | Why It's Bad |
|---|---|
| Over-centralizing in orchestrator | Bottleneck, single point of failure |
| No shared state mechanism | Agents work in isolation, results don't integrate |
| Rigid step sequencing | Can't adapt to intermediate results |
| Orchestrator does work itself | Defeats purpose of delegation |
Need multiple levels of supervisory control?
├── YES → hierarchical-supervisor
└── NO, but agents should operate independently?
└── YES → Consider parallel-execution for independent branches
Is orchestration actually simpler than expected?
├── YES, just routing based on type?
│ └── YES → supervisor-delegation
├── YES, just parallel independent tasks?
│ └── YES → parallel-execution
└── YES, one LLM can handle it?
└── YES → single-agent
| Factor | Supervisor Orchestrator |
|---|---|
| Latency | High (decomposition + coordination + execution) |
| Cost | Higher (orchestrator + agents + state management) |
| Complexity | High |
| Reliability | Orchestrator critical; agents can be isolated |
| Best for | Complex multi-step tasks with shared state |
Pattern ID: supervisor-orchestrator | AGEM-compatible