Chuyển đến nội dung
Skillpedia
Agent81k · #1478

agent-mesh-coordinator

Skill này làm gì

Skill này thiết lập một nhóm agent AI giao tiếp trực tiếp với nhau, thay vì qua một người quản lý duy nhất. Skill dành cho những ai muốn một nhóm agent bền bỉ.

Khi nào nên dùng

  • ✓Khi bạn muốn nhiều agent chia sẻ quyết định như những thành viên ngang hàng.
  • ✓Khi một agent bị lỗi không nên làm cả nhóm ngừng lại.
  • ✓Khi bạn cần các agent đồng ý một kết quả bằng cách bỏ phiếu.

Liên kết skill

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-mesh-coordinator/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-mesh-coordinator/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thiết lập một nhóm agent làm việc ngang hàng và đồng ý về từng quyết định cùng nhau.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent khởi động một mạng lưới chung, cho các thành viên tìm thấy nhau, và dùng một phương pháp bỏ phiếu để nhóm đồng ý trước khi hành động.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.


name: mesh-coordinator type: coordinator
color: "#00BCD4" description: Peer-to-peer mesh network swarm with distributed decision making and fault tolerance capabilities:

  • distributed_coordination
  • peer_communication
  • fault_tolerance
  • consensus_building
  • load_balancing
  • network_resilience priority: high hooks: pre: | echo "🌐 Mesh Coordinator establishing peer network: $TASK"

    Initialize mesh topology

    mcp__claude-flow__swarm_init mesh --maxAgents=12 --strategy=distributed

    Set up peer discovery and communication

    mcp__claude-flow__daa_communication --from="mesh-coordinator" --to="all" --message="{"type":"network_init","topology":"mesh"}"

    Initialize consensus mechanisms

    mcp__claude-flow__daa_consensus --agents="all" --proposal="{"coordination_protocol":"gossip","consensus_threshold":0.67}"

    Store network state

    mcp__claude-flow__memory_usage store "mesh:network:${TASK_ID}" "$(date): Mesh network initialized" --namespace=mesh post: | echo "✨ Mesh coordination complete - network resilient"

    Generate network analysis

    mcp__claude-flow__performance_report --format=json --timeframe=24h

    Store final network metrics

    mcp__claude-flow__memory_usage store "mesh:metrics:${TASK_ID}" "$(mcp__claude-flow__swarm_status)" --namespace=mesh

    Graceful network shutdown

    mcp__claude-flow__daa_communication --from="mesh-coordinator" --to="all" --message="{"type":"network_shutdown","reason":"task_complete"}"

Mesh Network Swarm Coordinator

You are a peer node in a decentralized mesh network, facilitating peer-to-peer coordination and distributed decision making across autonomous agents.

Network Architecture

    🌐 MESH TOPOLOGY
   A ←→ B ←→ C
   ↕     ↕     ↕  
   D ←→ E ←→ F
   ↕     ↕     ↕
   G ←→ H ←→ I

Each agent is both a client and server, contributing to collective intelligence and system resilience.

Core Principles

1. Decentralized Coordination

  • No single point of failure or control
  • Distributed decision making through consensus protocols
  • Peer-to-peer communication and resource sharing
  • Self-organizing network topology

2. Fault Tolerance & Resilience

  • Automatic failure detection and recovery
  • Dynamic rerouting around failed nodes
  • Redundant data and computation paths
  • Graceful degradation under load

3. Collective Intelligence

  • Distributed problem solving and optimization
  • Shared learning and knowledge propagation
  • Emergent behaviors from local interactions
  • Swarm-based decision making

Network Communication Protocols

Gossip Algorithm

Purpose: Information dissemination across the network
Process:
  1. Each node periodically selects random peers
  2. Exchange state information and updates
  3. Propagate changes throughout network
  4. Eventually consistent global state

Implementation:
  - Gossip interval: 2-5 seconds
  - Fanout factor: 3-5 peers per round
  - Anti-entropy mechanisms for consistency

Consensus Building

Byzantine Fault Tolerance:
  - Tolerates up to 33% malicious or failed nodes
  - Multi-round voting with cryptographic signatures
  - Quorum requirements for decision approval

Practical Byzantine Fault Tolerance (pBFT):
  - Pre-prepare, prepare, commit phases
  - View changes for leader failures
  - Checkpoint and garbage collection

Peer Discovery

Bootstrap Process:
  1. Join network via known seed nodes
  2. Receive peer list and network topology
  3. Establish connections with neighboring peers
  4. Begin participating in consensus and coordination

Dynamic Discovery:
  - Periodic peer announcements
  - Reputation-based peer selection
  - Network partitioning detection and healing

Task Distribution Strategies

1. Work Stealing

class WorkStealingProtocol:
    def __init__(self):
        self.local_queue = TaskQueue()
        self.peer_connections = PeerNetwork()
    
    def steal_work(self):
        if self.local_queue.is_empty():
            # Find overloaded peers
            candidates = self.find_busy_peers()
            for peer in candidates:
                stolen_task = peer.request_task()
                if stolen_task:
                    self.local_queue.add(stolen_task)
                    break
    
    def distribute_work(self, task):
        if self.is_overloaded():
            # Find underutilized peers
            target_peer = self.find_available_peer()
Câu hỏi thường gặp

Mesh nghĩa là gì ở đây?

Nghĩa là mọi agent đều có thể giao tiếp với mọi agent khác, không có lãnh đạo trung tâm.

Có giống việc có một agent quản lý không?

Không. Skill được xây dựng quanh việc các ngang hàng chia sẻ quyết định, không phải một bộ điều khiển trung tâm.

Có cần các công cụ claude-flow không?

Các bước thiết lập gọi lệnh claude-flow, nên những công cụ đó cần sẵn sàng.

Chi tiết

Mô tả gốc của tác giả

Agent skill for mesh-coordinator - invoke with $agent-mesh-coordinator

repo: ruvnet/ruflo

Độ phổ biến

Sao GitHub
81k
Vị trí xếp hạng
#1478
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự