Skip to content
AI & Agents
Command

/hive

Smart Hivemind router - analyzes a task and auto-routes to single worker, swarm, or template

From plugin
claude-skills
30k169 skills127 agents169 commands2 MCP
$ npx -y skills add alirezarezvani/claude-skills --agent claude-code

Command definition

hive.md
description: Smart Hivemind router - analyzes a task and auto-routes to single worker, swarm, or template
allowed-tools: Bash(git:*), Bash(node:*), Read(*), Edit(*), Grep(*), Glob(*)

You are the HIVEMIND ROUTER. Task: $ARGUMENTS

STEP 1 - CLASSIFY (silently, then state your routing decision in one line):

| Signal in task | Route | |---|---| | One question, one file, read-only lookup, small single-file edit | SINGLE -> do /oc pattern: one worker, no worktree | | Review/audit of a diff or codebase quality | TEMPLATE review-panel | | Open-ended "how does X work", "research", multi-angle investigation | TEMPLATE research-sweep | | Mechanical same-transform across many files (rename API, migrate framework) | TEMPLATE migration | | Run/fix test suites at scale | TEMPLATE test-fleet | | 2+ genuinely independent subtasks you can name | GENERIC swarm (/swarm pattern) | | Trivial (<30s of your own time, no files) | Do it YOURSELF immediately - workers are for leverage, not ceremony |

STEP 2 - EXECUTE the routed flow exactly per its template/pattern:

  • Scripts root: $HIVEMIND_HOME/scripts/
  • Always pass --run hive-<timestamp> --label <name> on every worker spawn.
  • Parallel spawns = multiple Bash calls in ONE message.

STEP 3 - UNIVERSAL RULES (apply regardless of route):

  • GOLDEN RULE: worker output enters this conversation only via the script's compact JSON line.
  • PROGRESS: after each wave of results, print one status line: [hive] k/n done, f failed.

If confused about fleet state: node scripts\oc-status.mjs <run-id>

  • AGGREGATE: 3+ workers producing findings -> pipe JSON lines through

node scripts\oc-aggregate.mjs before synthesizing; lead with consensus findings.

  • FALLBACK LADDER: worker ok:false -> retry once same dir -> still failing ->

do that subtask YOURSELF inline and mark it [orchestrator-sourced]. opencode down entirely (stage exec/api twice) -> announce it, complete the whole task yourself.

  • REPORT: always end with the token table + what YOU had to redo yourself.

STEP 4 - SAY THE ROUTE: first line of your reply must be: "[hive] routing: <route> because <one reason>"

Read more
@alirezarezvani
Ships withclaude-skills

411 production-ready skills for Claude Code and 12 other coding agents, covering engineering, product, marketing, compliance, finance and the C-suite. We test whether each skill loads when you ask in plain words, and publish the results.

30k200 skills127 agents2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
29.6k
Star history of alirezarezvani/claude-skills on GitHub, a chart by star-history.com

Other commands on claude-skills.

focused-fix

focused-fix

Command

Deep-dive feature repair — systematically fix an entire feature/module across all its files and dependencies. Usage: /focused-fix…

plugin-audit

plugin-audit

Command

Comprehensive audit pipeline for skills, plugins, agents, and commands. Validates structure, quality, security, marketplace…

More commands from other plugins.

devbox-entrypoint

devbox-entrypoint

Command

Context: runloop resumes a devbox by re-running the same entrypoint script, which invokes `cn serve --id <agentId> ...`. Because…

@continuedev@continuedevInstall Command
c

c

Command

Shortcut for "continue working" — pick the work in flight back up exactly where it stopped and keep going until it is done or…

lifeos2w20k
@danielmiessler@danielmiesslerInstall Command
sidecar

sidecar

Command

Spawn a read-only sidecar subagent to investigate something in this checkout without editing files, moving branches, or touching…

@builderio@builderioInstall Command