Zum Inhalt springen
Skillpedia
Agenten29k · #9561

hivemind

Was er macht

Dieser Skill schickt Routineaufgaben an separate opencode-Worker-Agenten, die parallel laufen können. Er ist für Entwickler, die ihre Hauptnutzung von KI bei einfachen Aufgaben schonen wollen und bereits opencode nutzen.

Wann du ihn nutzt

  • ✓Wenn du Routine-Coding-Aufgaben an kostenlose Worker statt an deinen Hauptassistenten delegieren willst.
  • ✓Wenn du ein Team aus Scout, Coder und Tester willst, das parallel an getrennten Kopien des Codes arbeitet.
  • ✓Wenn du einen Worker starten oder an opencode delegieren willst.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/hivemind/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Ich will einen Worker starten, der in diesem Ordner die ungenutzten Importe aufräumt.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Dein Hauptagent plant und prüft die Arbeit, während opencode-Worker die Aufgaben ausführen. Worker können in getrennten Git-Worktrees laufen, und das Standardmodell läuft über den gehosteten Dienst von opencode.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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 }

Häufige Fragen

Verlässt mein Code meinen Rechner?

Ja, standardmäßig. Das Standardmodell läuft über den gehosteten Dienst von opencode, deshalb gehen Prompts und Dateien an einen Worker dorthin.

Was brauche ich vorher?

Node.js, das Kommandozeilenwerkzeug opencode im PATH und ein opencode-Konto, bei dem du angemeldet bist.

Kann ich ein anderes Modell nutzen?

Ja. Du kannst das Standardmodell jederzeit mit einem Flag überschreiben.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
29k
Platz im Ranking
#9561
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills