360 Secure SkillHub
360 安全技能中心

Zouroboros Swarm Gate

这是一个基于正则与启发式评分的任务复杂度分类器,通过并行度、范围广度、质量门等 7 个加权信号给出 SWARM、DIRECT 或 SUGGEST 决策及置信分数,并以退出码表达结果。运行约 2ms,不调用任何 API。可通过 npx 作为 CLI 使用,也可在 Node.js 项目中导入 evaluate 函数,输出文本或 JSON。

marlandoj
marlandoj
热度 42.15
最近更新 2026-05-11 17:42:52
分类:自动化依赖:代码执行应用场景:工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add zouroboros-swarm-gate
Metadata
name
zouroboros-swarm-gate
description
Zero-cost task classifier (~2ms) that decides if a task needs multi-agent orchestration. 7 weighted signals, no API calls. Part of the Zouroboros ecosystem.
version
1.0.0
compatibility
OpenClaw, Claude Code, Codex CLI, any Node.js 22+ environment
metadata
{"author":"marlandoj.zo.computer","openclaw":{"emoji":"⚡","requires":{"bins":["node"]},"install":[{"id":"node-zouroboros-swarm-gate","kind":"node","package":"zouroboros-swarm-gate","bins":["swarm-gate"],"label":"Install Zouroboros Swarm Gate (npm)"}],"homepage":"https://github.com/AlaricHQ/zouroboros-openclaw"}}

Zouroboros Swarm Gate

Mechanical task complexity classifier that determines whether a task warrants multi-agent swarm orchestration. Runs in ~2ms with zero API cost — pure regex + heuristic scoring.

Usage

CLI

npx zouroboros-swarm-gate "build a REST API with auth, tests, and deploy to production"
# → [Swarm Decision Gate: SWARM — score 0.68]

npx zouroboros-swarm-gate --json "fix the typo on line 42"
# → { "decision": "DIRECT", "score": 0.05, ... }

Programmatic

import { evaluate } from "zouroboros-swarm-gate";

const result = evaluate("implement dashboard with 9 components, API routes, and deploy");
console.log(result.decision); // "SWARM"
console.log(result.score);    // 0.72
console.log(result.signals);  // { parallelism: 0.8, scopeBreadth: 0.6, ... }

Exit Codes

Code Decision Meaning
0 SWARM / FORCE_SWARM Task warrants multi-agent orchestration
2 DIRECT Execute directly, no orchestration needed
3 SUGGEST Orchestration recommended but not required
1 Error Something went wrong

7 Signals

Signal Weight What It Detects
parallelism 20% Multiple independent workstreams, action verbs, lists
scopeBreadth 15% Files, systems, and domains referenced
qualityGates 15% Test/validation/review requirements
crossDomain 15% Multiple executor types (code, design, ops, etc.)
deliverableComplexity 15% Multiple output artifacts
mutationRisk 10% Production/shared state changes
durationSignal 10% Estimated effort and complexity

Part of the Zouroboros Ecosystem

Zouroboros is a self-improving AI orchestration framework. These standalone packages give you a taste of what's possible. For the full experience — persistent memory, swarm orchestration, scheduled agents, persona routing, and self-healing infrastructure — get a Zo Computer.

Built by @Xmarlandoj