Перейти к содержанию
Skillpedia
Агенты29k · #9561

hivemind

Что он делает

Он передает рутинные задачи отдельным агентам-исполнителям opencode, которые могут работать параллельно. Он нужен разработчикам, которые хотят сэкономить основное использование ИИ на простой работе и уже используют opencode.

Когда использовать

  • ✓Когда вы хотите передать рутинные задачи по коду бесплатным исполнителям вместо основного помощника.
  • ✓Когда вы хотите, чтобы команда из разведчика, программиста и тестировщика работала параллельно над отдельными копиями кода.
  • ✓Когда вы просите создать исполнителя или передать задачу opencode.

Ссылка на скилл

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/hivemind/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/hivemind/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Создайте исполнителя, который уберет неиспользуемые импорты в этой папке.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Ваш основной агент планирует и проверяет работу, а исполнители opencode выполняют задачи. Исполнители могут работать в отдельных рабочих деревьях git, а модель по умолчанию работает на размещенном сервисе opencode.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с GitHub.

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: OPENCODE_GIT_BASH_PATH Point at C:\Program Files\Git\bin\bash.exe, set persistently.

Data flow (read before installing)

Hivemind is opt-in and ships outside every domain bundle. By default your code leaves your machine: the default model, opencode/mimo-v2.5-free, runs on opencode's hosted service, so each worker sends its prompt, plus any files or diffs you give it, to opencode's endpoints. Nothing on the worker side calls the Anthropic API.

To keep code local, point --model at a model served on your own machine (for example an Ollama or LM Studio provider configured in your opencode config). With a hosted model, delegate only code you are allowed to send to that provider, and never delegate secrets.

Setup

  1. Put this skill folder wherever your agent loads skills from (e.g. ~/.claude/skills/hivemind).
  2. Export HIVEMIND_HOME pointing at that folder — the bundled slash commands use it:
    export HIVEMIND_HOME="$HOME/.claude/skills/hivemind"
    
  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.
scripts/oc-status.mjs Fleet progress from run logs (oc-status.mjs <run-id>)
scripts/oc-aggregate.mjs Dedupe/synthesize N worker outputs; consensus findings first
scripts/bench/run-bench.mjs Benchmark configs A (claude solo), B (opencode solo), C (orchestrated swarm)
scripts/bench/grader-prompt.md Blind grading rubric (max 12 pts + PASS/FAIL gate)
scripts/oc-verify.mjs Fan a worker's claims to a verifier on a DIFFERENT model; returns counts + needs_review
assets/commands/ Slash-command entry points to copy into ~/.claude/commands/
assets/agents/ scout / coder / tester / verifier agent definitions for opencode

Slash commands (ship in assets/commands/, copy to ~/.claude/commands/):

  • /hive <task> - AUTO-ROUTER. Classifies task -> single worker, generic swarm, or template. Default entry point; prefer this over manual routing.
  • /oc <task> - single worker delegation
  • /swarm <task> - generic parallel swarm
  • /review-panel <diff> - 4-lens parallel review (correctness/security/performance/style) + consensus aggregation
  • /research-sweep <question> - 3-5 parallel research angles, synthesized
  • /migration <task> - batched per-worktree migration workers + sequenced merge
  • /test-fleet <target> - partitioned parallel test runs with safety checks

Worker agents (ship in assets/agents/, copy to ~/.config/opencode/agent/):

  • scout - read-only research (no write/edit/bash)
  • coder - implements one subtask in its worktree
  • tester - runs tests only, never edits source

Invocation contract

node "<skill-dir>\scripts\oc-worker.mjs" [--agent scout|coder|tester] [--dir <path>] [--model <p/m>] [--timeout 900] [--run <id> --label <name>] [--json] "TASK TEXT"

Returns exactly ONE compact JSON line: { ok, result, tokens:{total,input,output,cache}, cost_usd, duration_ms, label, agent, model }

Частые вопросы

Покидает ли мой код компьютер?

Да, по умолчанию. Модель по умолчанию работает на размещенном сервисе opencode, поэтому запросы и файлы, отправленные исполнителю, попадают туда.

Что нужно до использования?

Node.js, командная утилита opencode в PATH и аккаунт opencode, в который вы вошли.

Можно ли использовать другую модель?

Да. Модель по умолчанию можно переопределить флагом в любой момент.

Подробности

Оригинальное описание автора

Use when delegating grunt work to free opencode workers instead of spending Claude tokens: one worker or a scout, coder and tester swarm in worktrees. Triggers on 'spawn a worker', 'swarm', 'delegate to opencode' or /oc.

repo: alirezarezvani/claude-skills

Популярность

Звёзды на GitHub
29k
Место в рейтинге
#9561
Лицензия
MIT
Обновлён
02.11.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы