Make the linked Homebrew OpenCode build the only OpenCode install #17

Merged
hermes merged 5 commits from fm/opencode-retire-v1 into main 2026-11-08 18:55:48 -05:00
Owner

Summary

  • Declare the Homebrew opencode formula linked, so /opt/homebrew/bin/opencode is the single OpenCode command.
  • It is both the firstmate crew harness and the binary oc2 launches with its isolated config. OPENCODE2_BIN still overrides it.
  • Remove the npm opencode-ai install from rebuild.sh and uninstall leftover opencode-ai and @opencode-ai/cli packages during rebuild, without failing when npm is absent.
  • Leave the formula unpinned. homebrew.onActivation.upgrade refreshes formulae on every rebuild, so the linked binary tracks the latest release.

Verification

  • bash -n rebuild.sh
  • nix-instantiate --parse configuration.nix
  • no-mistakes run passed review, test, document, lint, and push.
## Summary - Declare the Homebrew `opencode` formula linked, so `/opt/homebrew/bin/opencode` is the single OpenCode command. - It is both the firstmate crew harness and the binary `oc2` launches with its isolated config. `OPENCODE2_BIN` still overrides it. - Remove the npm `opencode-ai` install from `rebuild.sh` and uninstall leftover `opencode-ai` and `@opencode-ai/cli` packages during rebuild, without failing when npm is absent. - Leave the formula unpinned. `homebrew.onActivation.upgrade` refreshes formulae on every rebuild, so the linked binary tracks the latest release. ## Verification - `bash -n rebuild.sh` - `nix-instantiate --parse configuration.nix` - no-mistakes run passed review, test, document, lint, and push.
hermes added 5 commits 2026-11-08 18:39:41 -05:00
Link the Homebrew opencode formula at /opt/homebrew/bin/opencode, drop the npm 1.x install from rebuild.sh, and remove leftover npm packages. Update the agent notes and home.nix comments to match.
State the upgrade-on-rebuild behavior at the formula and drop version labels from the rebuild comments.
hermes merged commit 5becfd69aa into main 2026-11-08 18:55:48 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: transnet/dotfiles#17