Skip to content

feat: update CLI tools for renamed Swarm plugin (@unbound-force/cyborg-swarm) #81

Closed as not planned

Description

@jflowers

Context

The forked Swarm plugin is being renamed from opencode-swarm-plugin to @unbound-force/cyborg-swarm (see unbound-force/swarm-tools#5). This issue updates uf init, uf doctor, and uf setup to use the new package name.

Also fixes the broken github:unbound-force/swarm-tools install source from Spec 023 -- the fork is a monorepo with a private root package, so npm cannot install via the github: protocol. Publishing under a scoped npm name resolves this.

Depends on: unbound-force/swarm-tools#5

Changes Required

uf init (internal/scaffold/scaffold.go)

  • Change plugin name from opencode-swarm-plugin to @unbound-force/cyborg-swarm (2 refs at ~lines 572, 579)
  • Handle migration: if existing opencode.json has opencode-swarm-plugin in plugin array, replace it with @unbound-force/cyborg-swarm

uf doctor (internal/doctor/checks.go)

  • Update plugin array check from opencode-swarm-plugin to @unbound-force/cyborg-swarm (~line 423)
  • Update check result messages (~lines 432, 438)
  • Update swarm install hint (~line 343) to npm install -g @unbound-force/cyborg-swarm@latest

uf doctor hints (internal/doctor/environ.go)

  • Update managerInstallCmd for swarm (~line 248) to bun add -g @unbound-force/cyborg-swarm
  • Update homebrewInstallCmd for swarm (~line 272) to npm install -g @unbound-force/cyborg-swarm
  • Update genericInstallCmd for swarm (~line 293) to npm install -g @unbound-force/cyborg-swarm

uf setup (internal/setup/setup.go)

  • Change swarmForkSource constant from github:unbound-force/swarm-tools to @unbound-force/cyborg-swarm@latest
  • Consider restoring the early-return skip (no longer needed to force-overwrite upstream since the names are different)

opencode.json (repo root)

  • Update plugin array entry from opencode-swarm-plugin to @unbound-force/cyborg-swarm

Tests

  • internal/scaffold/scaffold_test.go -- update ~15 assertions and fixture data
  • internal/doctor/doctor_test.go -- update ~5 assertions and fixture data
  • internal/setup/setup_test.go -- update ~10 assertions and fixture data

Documentation

  • AGENTS.md -- add Recent Changes entry

Migration Considerations

  • Engineers with opencode-swarm-plugin already installed will have both packages after running uf setup. The old package is harmless but could be cleaned up manually (npm uninstall -g opencode-swarm-plugin).
  • uf init should handle existing opencode.json files that have the old name -- replace, do not duplicate.
  • uf doctor should recognize the old name as stale and suggest running uf setup to update.

Files Modified

File Changes
internal/scaffold/scaffold.go Plugin name constant (2 refs)
internal/doctor/checks.go Plugin check + install hint (3 refs)
internal/doctor/environ.go 3 install hint functions
internal/setup/setup.go Install source constant
opencode.json Plugin array entry
internal/scaffold/scaffold_test.go ~15 test assertions
internal/doctor/doctor_test.go ~5 test assertions
internal/setup/setup_test.go ~10 test assertions
AGENTS.md Recent Changes entry

Activity

  1. jflowers commented on Apr 5, 2026

    @jflowers
    ContributorAuthor

    Superseded by #82 (replace Swarm plugin with Replicator). The CLI updates for a renamed npm package are no longer needed since we are switching to the Go-native Replicator binary distributed via Homebrew.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions