Repository navigation
Closed as not planned
Closed as not planned
Copy link
Description
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-pluginto@unbound-force/cyborg-swarm(2 refs at ~lines 572, 579) - Handle migration: if existing opencode.json has
opencode-swarm-pluginin plugin array, replace it with@unbound-force/cyborg-swarm
uf doctor (internal/doctor/checks.go)
- Update plugin array check from
opencode-swarm-pluginto@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
swarmForkSourceconstant fromgithub:unbound-force/swarm-toolsto@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-pluginto@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-pluginalready installed will have both packages after runninguf setup. The old package is harmless but could be cleaned up manually (npm uninstall -g opencode-swarm-plugin). uf initshould handle existingopencode.jsonfiles that have the old name -- replace, do not duplicate.uf doctorshould recognize the old name as stale and suggest runninguf setupto 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 |
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
jflowers commentedon Apr 5, 2026
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.