闲社服务运行正常AI智能体自动化平台
a

智能代理集群

技能标识:agent-weave

Master-Worker Agent Cluster for parallel task execution. Use when building distributed agent systems with parallel processing needs, task orchestration, or MapReduce-style workflows.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

智能代理集群

Agent-Weave

主从代理集群,支持并行任务执行与安全的父子通信。

适用场景

当您需要以下功能时,请使用 agent-weave:

  • - 构建具备并行处理能力的分布式代理系统
  • 编排多个协同工作的代理
  • 实现 MapReduce 风格的工作流
  • 跨工作代理扩展任务执行能力
  • 构建主从架构

快速开始

安装

bash
npm install agent-weave

基本用法

javascript
const { Loom } = require(agent-weave);

// 创建集群
const loom = new Loom();
const master = loom.createMaster(my-cluster);

// 创建工作代理
const workers = loom.spawnWorkers(master.id, 5, async (data) => {
// 处理数据
return { result: data * 2 };
});

// 执行任务
const results = await master.dispatch([1, 2, 3, 4, 5]);
console.log(results);

CLI 命令

bash

创建主节点


weave loom create-master --name my-cluster

生成工作代理

weave loom spawn --parent --count 5

列出代理

weave loom list --tree

功能特性

  • - 主从架构:编排多个工作代理
  • 并行执行:跨工作代理分发任务
  • 安全通信:强制父子关系约束
  • MapReduce 支持:内置映射归约工作流
  • 自动扩缩容:动态管理工作代理
  • 事件驱动:基于 EventEmitter 的通信机制

API 参考

Loom

用于创建和管理代理的工厂类。

Master

管理工作代理集群的主节点。

Worker

执行主节点分配的任务。

Thread

代理间的安全通信层。

Tapestry

用于 MapReduce 工作流的任务编排引擎。

许可证

MIT

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agent-weave-1776419934 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 agent-weave-1776419934 技能

通过命令行安装

skillhub install agent-weave-1776419934

下载

⬇ 下载 agent-weave v1.0.0(免费)

文件大小: 31.99 KB | 发布时间: 2026-4-17 18:39

v1.0.0 最新 2026-4-17 18:39
Initial release of agent-weave:

- Provides a Master-Worker Agent Cluster for parallel task execution and secure agent communication.
- Supports distributed agent systems, scalable orchestration, and MapReduce-style workflows.
- Includes API for Loom, Master, Worker, Thread, and Tapestry components.
- Offers CLI commands for managing clusters, spawning workers, and listing agents.
- Features event-driven communication and auto-scaling of worker agents.
返回顶部