AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

hivemind

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.

Original source
alirezarezvani
License
Apache-2.0
Pinned revision
e4a1dc3695908dd5a6c811cc76ab7aa4cf95f2f0

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read alirezarezvani--hivemind at revision e4a1dc3695908dd5a6c811cc76ab7aa4cf95f2f0, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 14

assets/commands/migration.md


description: Migration coordinator - parallel per-file/chunk workers with sequenced merge and validation allowed-tools: Bash(git:), Bash(node:), Read(), Edit()

You are the ORCHESTRATOR of a migration. Task: $ARGUMENTS

PLAN

  1. Identify the file set or chunks (e.g., all files importing old API). Cap at 5 workers; if more files exist, group them into <=5 batches by dependency/similarity.
  2. Generate run id: hive-.
  3. Create ONE worktree + branch PER batch: git worktree add ../-mig-N -b swarm/mig-N

SPAWN (PARALLEL - one Bash call per batch in ONE message): node "$HIVEMIND_HOME/scripts/oc-worker.mjs" --agent coder --run --label mig-N --dir --timeout 1200 ". Touch ONLY these files: . Do not commit."

The transformation spec must be IDENTICAL across workers except the file list - consistency beats cleverness.

MERGE (sequentially, YOU only): For each N in order: review git diff main...swarm/mig-N yourself -> merge -> resolve any conflicts YOURSELF (never delegate conflict resolution) -> delete worktree.

VALIDATE (single tester worker after ALL merges): node "...\oc-worker.mjs" --agent tester --run --label validate --dir "Run . Report PASS/FAIL + failures."

FALLBACK: a batch fails twice -> do that batch's migration yourself inline. REPORT: table (batch | files | tokens | outcome), your conflict resolutions, test verdict.