零成本任务分类器(约2ms),判断任务是否需要多智能体编排。7个加权信号,无需API调用。属于 Zouroboros 生态系统。
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.
bash
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, ... }
typescript
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, ... }
CodeDecisionMeaning0SWARM / FORCE_SWARMTask warrants multi-agent orchestration2DIRECTExecute directly, no orchestration needed3SUGGESTOrchestration recommended but not required1ErrorSomething went wrong
SignalWeightWhat It Detectsparallelism20%Multiple independent workstreams, action verbs, listsscopeBreadth15%Files, systems, and domains referencedqualityGates15%Test/validation/review requirementscrossDomain15%Multiple executor types (code, design, ops, etc.)deliverableComplexity15%Multiple output artifactsmutationRisk10%Production/shared state changesdurationSignal10%Estimated effort and complexity
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