Skip to content

feat: replace Swarm plugin with Replicator Go binary (Spec 024) - #83

Merged
jflowers merged 1 commit into
mainfrom
024-replicator-migration
Apr 6, 2026
Merged

jflowers merged 1 commit into
mainfrom
024-replicator-migration

Conversation

@jflowers

@jflowers jflowers commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces the Node.js Swarm plugin (opencode-swarm-plugin) with Replicator, a Go binary that exposes the same 52 MCP tool names with zero runtime dependencies.

Closes #82

Changes

  • uf setup: Installs Replicator via Homebrew (was npm/bun). Removed installSwarmPlugin, ensureBun, runSwarmSetup, initializeHive, swarmForkSource. Added installReplicator + runReplicatorSetup. Step count 15 → 12. OpenSpec CLI npm-only (no bun).
  • uf init: Adds mcp.replicator server entry (was opencode-swarm-plugin in plugin array). Detects via LookPath("replicator"). Delegates to replicator init for per-repo setup. Migrates legacy plugin entries.
  • uf doctor: "Replicator" check group replaces "Swarm Plugin" — binary, replicator doctor delegation, .hive/, mcp.replicator config. Homebrew install hints.
  • opencode.json: Removed plugin array, added mcp.replicator entry.
  • Bun: All bun references removed entirely.
  • Tests: +22 new, -10 removed, ~40 updated. TestScaffoldOutput_NoSwarmPluginReferences regression guard.
  • Spec artifacts: spec.md, plan.md, tasks.md, research.md, data-model.md, quickstart.md, contracts/

What does NOT change

  • All 52 MCP tool names are identical (hive_, swarm_, swarmmail_, hivemind_)
  • Agent files and commands unchanged — they call tools by name
  • .hive/ directory structure and schema unchanged

- Replace npm/bun Swarm plugin with Replicator via Homebrew
  in uf setup (step count 15 → 12)
- Remove installSwarmPlugin, ensureBun, runSwarmSetup,
  initializeHive, and swarmForkSource from setup
- Add installReplicator and runReplicatorSetup (Homebrew pattern)
- Replace opencode.json plugin array with mcp.replicator entry
  in uf init, with legacy opencode-swarm-plugin migration
- Replace checkSwarmPlugin with checkReplicator in uf doctor
  (binary, doctor delegation, .hive/, MCP config checks)
- Remove all bun references — OpenSpec installs via npm only
- Update install hints from npm/bun to Homebrew
- Add 22 new tests, remove 10 old, update ~40 existing
- Add spec artifacts and NoSwarmPluginReferences regression test
@jflowers
jflowers merged commit ac3ca26 into main Apr 6, 2026
1 check passed
@jflowers
jflowers deleted the 024-replicator-migration branch April 6, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

feat: replace Swarm plugin with Replicator

1 participant