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.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
opencodeformula linked, so/opt/homebrew/bin/opencodeis the single OpenCode command.oc2launches with its isolated config.OPENCODE2_BINstill overrides it.opencode-aiinstall fromrebuild.shand uninstall leftoveropencode-aiand@opencode-ai/clipackages during rebuild, without failing when npm is absent.homebrew.onActivation.upgraderefreshes formulae on every rebuild, so the linked binary tracks the latest release.Verification
bash -n rebuild.shnix-instantiate --parse configuration.nix