Agent skill · alirezarezvani
hivemind
Orchestrate free opencode workers from Claude Code to cut token costs. Use when delegating grunt work to a single worker or a parallel swarm (scout/coder/tester) with worktree isolation, benchmarking against opencode, or when the user says "spawn a worker", "swarm", "delegate to opencode", or "/oc".
What it needs
About 6k tokens when loaded.
What this skill does
Hivemind: Claude Code as Orchestrator, opencode as Free Worker Swarm Claude Code = brain (plans, reviews, merges). opencode = disposable workers on free models (opencode/mimo-v2.5-free default; verified $0.00 per run). Prerequisites (external dependency) This skill is a thin orchestration layer over opencode, a third-party CLI. It is not bundled — install and authenticate it yourself first: Requirement Notes --- --- Node.js >= 18 The scripts use fetch and node:timers/promises. opencode CLI on PATH npm i -g opencode-ai (or the installer opencode documents). An authenticated opencode account opencode auth login. Workers run as your account. Default model opencode/mimo-v2.5-free A free tier offered by opencode, not by Anthropic. Availability, rate limits, and pricing are opencode's to change — override with --model at any time. Windows only: OPENCODEGITBASHPATH Point at C:\Program Files\Git\bin\bash.exe, set persistently. Nothing here calls the Anthropic API on the worker side; worker traffic goes to opencode's endpoints. Do not delegate secrets or private code you would not send there. Setup 1. Put this skill folder wherever your agent loads skills from (e.g. ~/.claude/skills/hivemind). 2. Export HIVEMINDHOME pointing at that folder — the bundled slash commands use it: 3. Copy the bundled assets into place: assets/commands/.md -> ~/.claude/commands/ (the /hive, /oc, /swarm, ... entry points) assets/agents/.md -> ~/.config/opencode/agent/ (the scout / coder / tester worker personas) Both copies are optional: everything the commands do can be driven by invoking scripts/oc-worker.mjs directly, and any opencode agent name works with --agent. Runtime state (.runs/.jsonl) is written inside this folder and is gitignored. Components Path (relative to this skill dir) Purpose --- --- scripts/oc-worker.mjs ONLY sanctioned way to invoke a worker. Hardened join point. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills alirezarezvani/hivemind--cc4951