Hivemind: Claude Code as Orchestrator, opencode as Free Worker Swarm

Hivemind is an orchestration skill that lets Claude Code act as the brain while delegating grunt work to free opencode workers, cutting token costs. It manages single-worker delegation or parallel swarms with worktree isolation, benchmarking, and fleet patterns, producing summarized results and diffs for review.

✨ What it does

  • Auto-routing via /hive to single worker, generic swarm, or template.
  • Single worker delegation with /oc and parallel swarm with /swarm.
  • Worktree isolation for writing workers to prevent conflicts.
  • Fleet patterns: /review-panel, /research-sweep, /migration, /test-fleet.
  • Benchmarking script comparing configs A, B, C with blind grading.
  • Aggregation and status scripts for deduplication and progress tracking.

🎯 When to use it

  • When you want to reduce token costs by offloading repetitive or well-defined tasks to free opencode workers.
  • When you need to parallelize independent subtasks across multiple workers (scout, coder, tester) with isolated worktrees.
  • When you want to benchmark the cost/performance of Claude solo vs opencode solo vs an orchestrated swarm.
  • When you need a structured review or research sweep across multiple lenses or angles.
  • When the user says 'spawn a worker', 'swarm', 'delegate to opencode', or '/oc'.

🚀 How to use

Trigger: /hive

Trigger by using slash commands like /hive, /oc, /swarm, or by asking to delegate to opencode. Provide a clear task description. For swarms, decompose into independent subtasks and ensure writing workers get separate worktrees. Example prompts:

/hive Implement a function to parse CSV files with error handling.
/swarm Research best practices for React state management and summarize findings.

📄 Output: A summary of worker results, diffs for review, and optionally benchmark results in JSONL format.

📦 Add this skill to Claude Code

# 1. Get the skills repo
git clone --depth 1 https://github.com/alirezarezvani/claude-skills /tmp/claude-skills

# 2. Copy this skill into your project (or ~/.claude/skills for all projects)
mkdir -p .claude/skills
cp -r /tmp/claude-skills/engineering/hivemind .claude/skills/hivemind

Skill source: engineering/hivemind/SKILL.md

⚠️ Good to know

Requires external opencode CLI installation and authentication; free-tier rate limits may cause 429s, and worker quality varies so diffs must be reviewed.

❓ FAQ

What is the default model for opencode workers?

The default model is opencode/mimo-v2.5-free, which is free but availability and pricing can change.

Can I delegate secrets or private code to workers?

No, you should not delegate secrets or private code because worker traffic goes to opencode's endpoints.

What should I do if a worker fails?

Retry once, then if it still fails, perform the subtask inline and mark it as '[orchestrator-sourced]'.

🤖 Overview, features, install steps and FAQ were generated from the project's SKILL.md on Sep 4, 2026. Always check the original source before running commands.