← 返回 Skills 市场
gl813788-byte

Agent Weave

作者 gl813788-byte · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
795
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-weave
功能描述
Master-Worker Agent Cluster for parallel task execution. Use when building distributed agent systems with parallel processing needs, task orchestration, or M...
使用说明 (SKILL.md)

Agent-Weave

Master-Worker Agent Cluster with parallel task execution and secure parent-child communication.

When to Use This Skill

Use agent-weave when you need to:

  • Build distributed agent systems with parallel processing
  • Orchestrate multiple agents working together
  • Implement MapReduce-style workflows
  • Scale task execution across worker agents
  • Build master-worker architectures

Quick Start

Installation

npm install agent-weave

Basic Usage

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

// Create cluster
const loom = new Loom();
const master = loom.createMaster('my-cluster');

// Create workers
const workers = loom.spawnWorkers(master.id, 5, async (data) => {
  // Process data
  return { result: data * 2 };
});

// Execute tasks
const results = await master.dispatch([1, 2, 3, 4, 5]);
console.log(results);

CLI Commands

# Create master
weave loom create-master --name my-cluster

# Spawn workers
weave loom spawn --parent \x3Cmaster-id> --count 5

# List agents
weave loom list --tree

Features

  • Master-Worker Architecture: Orchestrate multiple worker agents
  • Parallel Execution: Distribute tasks across workers
  • Secure Communication: Parent-child relationship enforcement
  • MapReduce Support: Built-in map-reduce workflows
  • Auto-scaling: Dynamic worker management
  • Event-driven: EventEmitter-based communication

API Reference

Loom

Factory for creating and managing agents.

Master

Manages a cluster of worker agents.

Worker

Executes tasks assigned by the master.

Thread

Secure communication layer between agents.

Tapestry

Task orchestration engine for MapReduce workflows.

License

MIT

安全使用建议
This package appears to implement the master/worker features it advertises, but there are multiple quality and runtime concerns you should consider before installing or running it: - Packaging bugs: package.json's 'bin' claims a 'bin/weave' entry that is missing; the included test report documents CLI entry-point issues. Prefer not to npm install -g this globally until the maintainer fixes the bin entry. - File writes: the library and demos write logs and agent state to disk (default ./agent-logs). If you run it, set logDir to a controlled location and avoid running as a privileged user. - Long-running agents: AGENT_SYSTEM.md and code allow child agents with timeout: 0 (no timeout) and use setInterval heartbeats. That can create long-running processes and resource leaks; run inside a container or VM and enforce resource/time limits. - Code quality bugs: duplicate method definitions, missing imports (some demo files use fs without requiring it), and duplicated/overridden getters are present. These look like sloppy packaging rather than intentional malice, but they could cause unexpected behavior. - No network exfiltration found: there are no obvious outbound network calls, credential requests, or hidden endpoints in the provided files. Recommendations: 1) Review the code (lib/ and agent-system files) locally before running. 2) Run in an isolated environment (container or sandbox) and avoid global install. 3) Configure logDir and limits, and prefer programmatic use in controlled tests before using in production. 4) If you need CLI functionality, wait for the maintainer to fix the bin packaging or inspect/adjust bin/weave.mjs / bin/weave-cli-safe.js before use. Given the packaging and runtime surprises, treat this as potentially risky until you validate and sandbox it.
功能分析
Type: OpenClaw Skill Name: agent-weave Version: 1.0.0 The OpenClaw AgentSkills skill bundle 'agent-weave' appears benign. It implements a Master-Worker agent cluster for parallel task execution, with local file system operations (`fs.writeFileSync`, `fs.appendFileSync`, `fs.mkdirSync` in `agent-system.js`) used legitimately for logging and managing agent state within a configurable local directory (`./agent-logs`). The `lib/thread.js` module provides an internal, secure communication layer between agents within the cluster, not for external network connections. There is no evidence of data exfiltration, unauthorized command execution (e.g., `child_process`, `eval` of untrusted input), persistence mechanisms, or prompt injection attempts in any of the markdown files. Identified issues in `TEST_REPORT.md` relate to CLI functionality and code quality, not security vulnerabilities or malicious intent.
能力评估
Purpose & Capability
Name/description align with the code: Loom/Master/Worker classes, MapReduce demo, CLI helpers and examples. The code does not request unrelated cloud credentials or network endpoints.
Instruction Scope
SKILL.md and examples describe npm install and CLI usage but do not call out that runtime will create local log/state files (./agent-logs) and spawn long-running agents with no timeout (AGENT_SYSTEM.md explicitly documents 'timeout: 0'). The runtime docs/examples also include long-lived setInterval heartbeats and file writes; these are outside what a casual user might expect from a small orchestration library.
Install Mechanism
No install spec is provided to the platform (instruction-only), but the skill bundle contains a complete Node package (package.json, lib/, bin/, examples). The package.json 'bin' points to a missing file ('bin/weave'), and the test report documents CLI entry issues — this is a packaging bug rather than an obvious supply-chain red flag. No external downloads or obscure URLs are used.
Credentials
The skill requests no environment variables or credentials. It does perform local file I/O (logs and saved agent state under a configurable logDir) which is proportionate to an agent manager, but users should be aware files are written into working directories by default.
Persistence & Privilege
Skill does not request always:true or elevated platform privileges and does not modify other skills. However, code runs long-lived timers and can spawn many workers/tasks (examples spawn 100 workers and dispatch 1000 tasks) which could consume host resources if the skill is invoked autonomously — consider sandboxing or resource limits.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-weave
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-weave 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
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.
元数据
Slug agent-weave
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Agent Weave 是什么?

Master-Worker Agent Cluster for parallel task execution. Use when building distributed agent systems with parallel processing needs, task orchestration, or M... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 795 次。

如何安装 Agent Weave?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-weave」即可一键安装,无需额外配置。

Agent Weave 是免费的吗?

是的,Agent Weave 完全免费(开源免费),可自由下载、安装和使用。

Agent Weave 支持哪些平台?

Agent Weave 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agent Weave?

由 gl813788-byte(@gl813788-byte)开发并维护,当前版本 v1.0.0。

💬 留言讨论