मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट102k · #842

Swarm Orchestration

यह क्या करती है

यह स्किल दिखाती है कि कई AI एजेंट्स को एक साथ कैसे समन्वित करें, लेआउट चुनने से लेकर उनके बीच काम बाँटने तक। यह उन सिस्टम के लिए है जहाँ अकेला एजेंट काफ़ी नहीं है।

कब इस्तेमाल करें

  • ✓जब कोई काम एक एजेंट के लिए बहुत बड़ा है और कई एजेंट्स को साथ काम करना है।
  • ✓जब आप चाहते हैं कि काम बँटे और कई एजेंट्स पर समानांतर चले।
  • ✓जब आपको ऐसे एजेंट्स चाहिए जो काम साझा करें और एक के फ़ेल होने पर भी चलते रहें।

Skill का लिंक

https://github.com/ruvnet/RuView/blob/main/.claude/skills/swarm-orchestration/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/ruvnet/RuView/blob/main/.claude/skills/swarm-orchestration/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“कुछ एजेंट्स सेट कीजिए जो एक साथ API और उसके टेस्ट बनाएँ, और तय कीजिए कि कौन क्या करेगा।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल mesh, hierarchical या adaptive जैसे लेआउट के साथ एक swarm शुरू करती है, फिर coder, tester या reviewer जैसी भूमिकाओं वाले एजेंट जोड़ती है। फिर काम बाँटा जाता है और समानांतर चलाने के लिए एजेंट्स को भेजा जाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Swarm Orchestration

What This Skill Does

Orchestrates multi-agent swarms using agentic-flow's advanced coordination system. Supports mesh, hierarchical, and adaptive topologies with automatic task distribution, load balancing, and fault tolerance.

Prerequisites

  • agentic-flow v3.0.0-alpha.1+
  • Node.js 18+
  • Understanding of distributed systems (helpful)

Quick Start

# Initialize swarm
npx agentic-flow hooks swarm-init --topology mesh --max-agents 5

# Spawn agents
npx agentic-flow hooks agent-spawn --type coder
npx agentic-flow hooks agent-spawn --type tester
npx agentic-flow hooks agent-spawn --type reviewer

# Orchestrate task
npx agentic-flow hooks task-orchestrate \
  --task "Build REST API with tests" \
  --mode parallel

Topology Patterns

1. Mesh (Peer-to-Peer)

// Equal peers, distributed decision-making
await swarm.init({
  topology: 'mesh',
  agents: ['coder', 'tester', 'reviewer'],
  communication: 'broadcast'
});

2. Hierarchical (Queen-Worker)

// Centralized coordination, specialized workers
await swarm.init({
  topology: 'hierarchical',
  queen: 'architect',
  workers: ['backend-dev', 'frontend-dev', 'db-designer']
});

3. Adaptive (Dynamic)

// Automatically switches topology based on task
await swarm.init({
  topology: 'adaptive',
  optimization: 'task-complexity'
});

Task Orchestration

Parallel Execution

// Execute tasks concurrently
const results = await swarm.execute({
  tasks: [
    { agent: 'coder', task: 'Implement API endpoints' },
    { agent: 'frontend', task: 'Build UI components' },
    { agent: 'tester', task: 'Write test suite' }
  ],
  mode: 'parallel',
  timeout: 300000 // 5 minutes
});

Pipeline Execution

// Sequential pipeline with dependencies
await swarm.pipeline([
  { stage: 'design', agent: 'architect' },
  { stage: 'implement', agent: 'coder', after: 'design' },
  { stage: 'test', agent: 'tester', after: 'implement' },
  { stage: 'review', agent: 'reviewer', after: 'test' }
]);

Adaptive Execution

// Let swarm decide execution strategy
await swarm.autoOrchestrate({
  goal: 'Build production-ready API',
  constraints: {
    maxTime: 3600,
    maxAgents: 8,
    quality: 'high'
  }
});

Memory Coordination

// Share state across swarm
await swarm.memory.store('api-schema', {
  endpoints: [...],
  models: [...]
});

// Agents read shared memory
const schema = await swarm.memory.retrieve('api-schema');

Advanced Features

Load Balancing

// Automatic work distribution
await swarm.enableLoadBalancing({
  strategy: 'dynamic',
  metrics: ['cpu', 'memory', 'task-queue']
});

Fault Tolerance

// Handle agent failures
await swarm.setResiliency({
  retry: { maxAttempts: 3, backoff: 'exponential' },
  fallback: 'reassign-task'
});

Performance Monitoring

// Track swarm metrics
const metrics = await swarm.getMetrics();
// { throughput, latency, success_rate, agent_utilization }

Integration with Hooks

# Pre-task coordination
npx agentic-flow hooks pre-task --description "Build API"

# Post-task synchronization
npx agentic-flow hooks post-task --task-id "task-123"

# Session restore
npx agentic-flow hooks session-restore --session-id "swarm-001"

Best Practices

  1. Start small: Begin with 2-3 agents, scale up
  2. Use memory: Share context through swarm memory
  3. Monitor metrics: Track performance and bottlenecks
  4. Enable hooks: Automatic coordination and sync
  5. Set timeouts: Prevent hung tasks

Troubleshooting

Issue: Agents not coordinating

Solution: Verify memory access and enable hooks

Issue: Poor performance

Solution: Check topology (use adaptive) and enable load balancing

Learn More

  • Swarm Guide: docs/swarm/orchestration.md
  • Topology Patterns: docs/swarm/topologies.md
  • Hooks Integration: docs/hooks/coordination.md
अक्सर पूछे जाने वाले सवाल

एजेंट्स की कौन सी भूमिकाएँ हो सकती हैं?

उदाहरणों में coder, tester, reviewer, backend और frontend डेवलपर, और एक architect शामिल हैं।

adaptive लेआउट क्या है?

स्किल इसे ऐसा लेआउट बताती है जो काम की जटिलता के आधार पर अपने-आप बदल जाता है।

पहले क्या इंस्टॉल होना चाहिए?

agentic-flow 3.0.0-alpha.1 या उससे नया, और Node.js 18 या उससे नया।

जानकारी

लेखक का मूल विवरण

Orchestrate multi-agent swarms with agentic-flow for parallel task execution, dynamic topology, and intelligent coordination. Use when scaling beyond single agents, implementing complex workflows, or building distributed AI systems.

repo: ruvnet/RuView

लोकप्रियता

GitHub स्टार
102k
रैंकिंग में स्थान
#842
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

AgentDB Advanced Features

102k

यह आपके एजेंट को AgentDB के उन्नत फ़ीचर दिखाती है, जैसे कई मशीनों के बीच डेटाबेस सिंक करना और मेटाडेटा फ़िल्टर के साथ वेक्टर सर्च।

डेटाडेटाबेस

AgentDB Learning Plugins

102k

यह आपके एजेंट को AgentDB के लिए लर्निंग प्लगइन बनाने और ट्रेन करने देती है, जो पिछले अनुभव से सुधरने वाले रीइनफ़ोर्समेंट लर्निंग तरीकों पर चलते हैं।

AI और एजेंटएजेंट

AgentDB Memory Patterns

102k

यह आपके एजेंट को AgentDB को स्थायी मेमोरी स्टोर बनाकर सत्रों के पार बातचीत और संदर्भ याद रखने देती है।

AI और एजेंटएजेंट

AgentDB Performance Optimization

102k

यह आपके एजेंट को AgentDB सर्च तेज़ करने और मेमोरी उपयोग घटाने का तरीका दिखाती है, कंप्रेशन, तेज़ सर्च इंडेक्स और कैशिंग से।

डेटाडेटाबेस

मिलती-जुलती skills