본문으로 건너뛰기
Skillpedia
에이전트29k · #9561

hivemind

하는 일

루틴 작업을 별도의 opencode 워커 에이전트에게 보내며, 이 워커들은 병렬로 실행할 수 있습니다. 간단한 작업에 메인 AI 사용량을 아끼고 싶고 이미 opencode를 쓰는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓루틴 코딩 작업을 메인 어시스턴트 대신 무료 워커에게 맡기고 싶을 때.
  • ✓스카우트, 코더, 테스터로 이루어진 팀이 코드의 별도 복사본에서 병렬로 일하게 하고 싶을 때.
  • ✓워커를 생성하거나 opencode에 작업을 위임하라고 요청할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/hivemind/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 폴더에서 사용하지 않는 import를 정리하도록 워커를 하나 생성해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

메인 에이전트는 작업을 계획하고 검토하며, opencode 워커가 실제 작업을 수행합니다. 워커는 별도의 git worktree에서 실행될 수 있으며, 기본 모델은 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, PATH에 있는 opencode 명령줄 도구, 그리고 로그인된 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
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬