Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
dengineproblem avatar

Ai Agent Orchestrator

  • 69 installs
  • Updated January 1, 1970
  • dengineproblem/agents-monorepo

Orchestrates multiple AI agents - routing tasks, coordinating handoffs, and managing shared state - so a solo builder composes multi-agent workflows reliably.

About

ai-agent-orchestrator coordinates multiple AI agents by routing tasks, managing handoffs, and maintaining shared state across a multi-agent workflow. It provides the control plane that keeps specialized agents working together coherently. A solo builder reaches for it when a single agent is not enough and they need to compose several into a reliable pipeline.

  • Multi-agent task routing and handoffs
  • Shared state and coordination
  • Composable agent workflows

Ai Agent Orchestrator by the numbers

  • 69 all-time installs (skills.sh)
  • Ranked #5,760 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Jul 29, 2026 (Skillselion catalog sync)
npx skills add https://github.com/dengineproblem/agents-monorepo --skill ai-agent-orchestrator

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs69
Last updatedJanuary 1, 1970
Repositorydengineproblem/agents-monorepo

What it does

Orchestrates multiple AI agents - routing tasks, coordinating handoffs, and managing shared state - so a solo builder composes multi-agent workflows reliably.

Who is it for?

Composing reliable multi-agent workflows

When should I use this skill?

You need to coordinate several AI agents into one pipeline.

Files

SKILL.mdMarkdownGitHub ↗

AI Agent Orchestrator Expert

Эксперт по проектированию и реализации многоагентных систем.

Основные принципы

Иерархия агентов

  • Оркестратор: Главный координатор, делегирует задачи
  • Специализированные агенты: Для конкретных доменов (исследования, анализ, код)
  • Утилитарные агенты: Вспомогательные функции (валидация, форматирование)
  • Мониторинг: Здоровье системы и обработка ошибок

Паттерны архитектуры

Hub and Spoke

class OrchestratorAgent:
    def __init__(self):
        self.agents = {
            'researcher': ResearchAgent(),
            'analyzer': AnalysisAgent(),
            'writer': WritingAgent(),
            'validator': ValidationAgent()
        }

    async def orchestrate_task(self, task):
        subtasks = self.decompose_task(task)

        results = []
        for subtask in subtasks:
            agent_type = self.route_task(subtask)
            result = await self.agents[agent_type].execute(subtask)
            results.append(result)

        return self.synthesize_results(results)

Pipeline Pattern

class AgentPipeline:
    def __init__(self):
        self.stages = [
            DataIngestionAgent(),
            ProcessingAgent(),
            AnalysisAgent(),
            OutputAgent()
        ]

    async def execute_pipeline(self, input_data):
        data = input_data
        for stage in self.stages:
            try:
                data = await stage.process(data)
            except Exception as e:
                return await self.handle_pipeline_error(stage, e, data)
        return data

Маршрутизация задач

class TaskRouter:
    def __init__(self):
        self.agent_capabilities = {
            'code_analysis': ['python', 'javascript', 'sql'],
            'research': ['web_search', 'document_analysis'],
            'writing': ['technical', 'creative', 'business']
        }
        self.agent_load = {}

    def route_task(self, task):
        required_skills = self.extract_skills(task)

        capable_agents = [
            agent_id for agent_id, skills in self.agent_capabilities.items()
            if self.has_required_skills(skills, required_skills)
        ]

        return self.select_least_loaded_agent(capable_agents)

Межагентная коммуникация

@dataclass
class AgentMessage:
    sender_id: str
    receiver_id: str
    message_type: MessageType
    payload: Dict[str, Any]
    correlation_id: str
    timestamp: float
    priority: int = 5

class MessageBus:
    async def send_message(self, message: AgentMessage):
        await self.validate_message(message)
        await self.route_message(message)
        await self.log_message(message)

Обработка ошибок

Circuit Breaker

class AgentCircuitBreaker:
    def __init__(self, failure_threshold=5, timeout=60):
        self.failure_count = 0
        self.failure_threshold = failure_threshold
        self.state = 'CLOSED'

    async def call_agent(self, agent, task):
        if self.state == 'OPEN':
            if time.time() - self.last_failure_time > self.timeout:
                self.state = 'HALF_OPEN'
            else:
                raise CircuitBreakerOpenError()

        try:
            result = await agent.execute(task)
            if self.state == 'HALF_OPEN':
                self.reset()
            return result
        except Exception as e:
            self.record_failure()
            raise

Graceful Degradation

class ResilientOrchestrator:
    def __init__(self):
        self.agent_priorities = {
            'primary': ['gpt-4', 'claude-3'],
            'fallback': ['gpt-3.5', 'local-model'],
            'emergency': ['rule-based-agent']
        }

    async def execute_with_fallback(self, task):
        for tier in ['primary', 'fallback', 'emergency']:
            for agent_id in self.agent_priorities[tier]:
                try:
                    if await self.is_agent_healthy(agent_id):
                        return await self.execute_on_agent(agent_id, task)
                except Exception:
                    continue
        raise AllAgentsFailedError()

Лучшие практики

  • Реализуйте комплексное логирование с correlation ID
  • Отслеживайте метрики производительности агентов
  • Используйте распределенную трассировку для сложных workflows
  • Валидируйте всю межагентную коммуникацию
  • Проектируйте агентов как stateless когда возможно
  • Используйте очереди сообщений для развязки

Related skills

AI & Agent Buildingagentsautomationllm

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.