← 返回 Skills 市场
swarm-executor
作者
xb19960921
· GitHub ↗
· v1.1.0
· MIT-0
94
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install swarm-executor
功能描述
Coordinate multi-agent swarm execution with a lightweight Pub/Sub protocol, standardized SwarmCommand messages, token-budget control, agent status tracking,...
安全使用建议
This skill appears to do what it claims: a library for coordinating multi-agent workflows with in-memory or Redis Pub/Sub, token budgeting, negotiation, and agent tracking. Before installing or running it:
- If you plan to use Redis, provide a trusted redis_url only (do not point to unknown/public Redis servers). Messages published to Redis can contain task payloads and could be read by whoever controls that Redis instance.
- The registry package includes requirements.txt (fastapi, uvicorn, python-dotenv, etc.). Because there is no install spec, those dependencies won't be auto-installed — install only the packages you need. The full stack (FastAPI/uvicorn) may pull in a webserver surface you should review.
- SKILL.md examples contain a minor API mismatch (use_redis=True vs the actual PubSubCoordinator signature). Double-check examples against the code before copying.
- The code sets up default agent IDs and includes logic where agent "001" (CEO) can cancel negotiations; if you map external agents to those IDs, ensure authentication/authorization is enforced by your deployment to prevent unauthorized cancellations.
- Review docker-compose.yml and any omitted files before running to ensure they don't start unexpected network services.
If you need a second opinion, provide the docker-compose.yml and any omitted runtime files and I can check them for external endpoints or secret handling.
功能分析
Type: OpenClaw Skill
Name: swarm-executor
Version: 1.1.0
The swarm-executor bundle is a well-structured framework for multi-agent orchestration and task coordination. It implements a standardized communication protocol (SwarmCommand), state management, and token-budgeting logic using Redis or in-memory Pub/Sub. The SKILL.md instructions emphasize safety, explicitly directing the agent to seek human confirmation for destructive or costly actions, and the Python code (e.g., swarm_protocol.py, pubsub.py) contains no evidence of malicious execution, data exfiltration, or obfuscation.
能力标签
能力评估
Purpose & Capability
Name/description (swarm coordination, Pub/Sub, token budgeting, negotiation) align with the included modules (swarm_protocol, pubsub, token_budget, agent_manager, negotiation). The code implements the advertised features and default agent IDs/roles that the SKILL.md references.
Instruction Scope
SKILL.md stays on-topic (create/validate/publish SwarmCommand, track state, enforce budgets). Minor inconsistency: SKILL.md example uses PubSubCoordinator(use_redis=True) while the code's PubSubCoordinator constructor expects a backend enum and optional redis_url; the README-driven example won't work without adjusting parameters. The runtime instructions do not tell the agent to read arbitrary host files or to exfiltrate secrets, but published messages can go to a user-supplied Redis instance (see guidance).
Install Mechanism
No install spec in registry (instruction-only), but the repo includes requirements.txt listing redis, pydantic, fastapi, uvicorn, python-dotenv, etc. Because there's no automatic installer, these dependencies will not be installed by the platform — a manual install may be needed. The listed packages are plausible for optional Redis and an HTTP API, but they are heavier than the core library needs if you only use the in-memory backend.
Credentials
The skill declares no required environment variables or primary credentials. The code supports connecting to Redis via a redis_url parameter (not an env var), which is proportional to the described Redis-backed Pub/Sub feature. No unrelated cloud credentials or secrets are requested by the package.
Persistence & Privilege
always is false and the package does not request elevated platform privileges. It defines module-level singletons (a global coordinator) but does not attempt to modify other skills or global agent configuration. Autonomous invocation is allowed by default (normal) but no extra permanent presence is requested.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install swarm-executor - 安装完成后,直接呼叫该 Skill 的名称或使用
/swarm-executor触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
**Changelog for swarm-executor v1.1.0**
- Skill rebranded to "swarm-coordinator", public wording generalized.
- Introduced modular coordinator architecture: agent management, negotiation, token budget, and swarm protocol modules.
- Shifted from file/batch parallelization to a protocol-driven swarm command workflow (standardized commands, status schemas, ownership, and boundaries).
- Added Redis/in-memory Pub/Sub support for multi-agent orchestration.
- New safety controls: token-budget governance, negotiation rules, failure handling, fallback, and completion-state validation.
- Includes validation checklists, execution workflow guide, and a test suite for coordination primitives.
v1.0.0
Initial release of the parallel-task-executor skill:
- Automates splitting of large tasks into manageable sub-tasks with ≤5 minutes per batch.
- Spawns multiple sub-agents for true parallel execution, with real-time progress monitoring and timeout handling.
- Supports automatic progress saving and recovery (断点续传) for interrupted or failed executions.
- Aggregates results and provides detailed reports on execution efficiency and outcomes.
- Includes dynamic parameter adjustment and robust error handling for retries and user notification.
- Proven to boost efficiency by 3–6x in practical scenarios (e.g., mass PDF analysis, knowledge base health checks).
元数据
常见问题
swarm-executor 是什么?
Coordinate multi-agent swarm execution with a lightweight Pub/Sub protocol, standardized SwarmCommand messages, token-budget control, agent status tracking,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 94 次。
如何安装 swarm-executor?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install swarm-executor」即可一键安装,无需额外配置。
swarm-executor 是免费的吗?
是的,swarm-executor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
swarm-executor 支持哪些平台?
swarm-executor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 swarm-executor?
由 xb19960921(@xb19960921)开发并维护,当前版本 v1.1.0。
推荐 Skills