Summary
Prime Agent already has an official homebrew/core submission for v0.7.0. The formula passed the current Homebrew macOS and Linux CI matrix, but review is blocked on the vendored ZeroMQ dependency. This issue tracks the remaining upstream and packaging work through merge and final installation verification.
homebrew/core is the correct route because Prime Agent is open-source, command-line-only software. Homebrew normally requires that category to be built from source as a formula; a rejected core formula would not automatically become eligible for homebrew/cask.
Current state
Homebrew/homebrew-core#297372 is open and remains the canonical submission.
- Its current CI passed on Linux arm64, Linux x86_64, macOS arm64, and macOS x86_64.
- Homebrew review requested use of the existing
zeromq formula instead of the native library vendored by the zeromq npm package.
zeromq/zeromq.js#736 now tracks that request. A ZeroMQ maintainer says the zmq_shared npm option exists but has not been tested recently.
- The formula installs the published
prime-agent-0.7.0.tgz asset with SHA-256 88b6578518c72cd51a825bc80f28e0fef9a64c67de4a7d6fd7afd7ca1b34da0b.
#751 reports that this exact v0.7.0 tarball is missing dist/bundle/amazon-bedrock.js, so --version passing is not enough to establish that the release artifact is suitable for Homebrew.
Work required before merge
1. Build the Node binding against Homebrew ZeroMQ
- Test the exact
zeromq@6.5.0 package used by Prime Agent with its zmq_shared configuration.
- Declare the Homebrew
zeromq formula and only the build dependencies demonstrated by a clean build.
- Verify the installed native module with
otool -L on macOS and ldd on Linux.
- Confirm no private
libzmq copy remains in the keg.
- If the existing option is broken, prepare a focused
zeromq.js fix linked to zeromq.js#736.
2. Use a complete stable release artifact
- Resolve
#751 and publish a corrected stable release rather than asking Homebrew to merge a formula around a known-broken tarball.
- Update the formula URL and checksum if a new release is required.
- Validate representative provider/runtime assets in addition to
prime-agent --version.
3. Verify formula reproducibility and native dependencies
- Confirm the formula does not resolve moving dependency versions during installation. The published package tarball does not contain the repository lockfile.
- If necessary, use the immutable GitHub source archive and the repository lockfile instead of the npm-style release tarball.
- Inventory ZeroMQ, Koffi, clipboard, Photon/WASM, and other native or platform-specific dependencies as source-built, Homebrew-linked, portable output, or an explicit vendoring exception.
4. Verify Homebrew-owned updates
- Confirm
prime-agent update cannot mutate a Homebrew-managed keg.
- Confirm it directs Homebrew users back to their package manager.
- Confirm startup notices do not encourage a Homebrew installation to bypass Homebrew upgrades.
Validation gates
The actual submitted formula revision should pass:
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source prime-agent
brew test prime-agent
brew audit --strict --new --online prime-agent
brew style --fix --formula prime-agent
brew lgtm --online
prime-agent --version
prime-agent --help
prime-agent doctor
prime-agent update
brew linkage --test prime-agent
brew uninstall prime-agent
Local results will be reported with their platform limits. The updated Homebrew pull request must also pass its complete supported macOS and Linux matrix.
Maintainer support
@kennethnym @badlogic — I can own the Homebrew preflight, shared-ZeroMQ experiment, formula validation, review tracking, and final public-install verification. Support may be needed from you for:
- resolving
#751 and publishing a corrected stable release;
- reviewing any small Prime Agent source change needed for Homebrew-owned update behavior;
- updating the existing Homebrew contributor branch with the tested formula changes;
- creating and applying the
pkg:coding-agent label required by this repository's contribution instructions; that label is currently absent and the filing account cannot create repository labels.
I will keep tested findings and state changes in this issue and avoid duplicate Homebrew submissions or status-only comments.
Completion criteria
References
Summary
Prime Agent already has an official
homebrew/coresubmission forv0.7.0. The formula passed the current Homebrew macOS and Linux CI matrix, but review is blocked on the vendored ZeroMQ dependency. This issue tracks the remaining upstream and packaging work through merge and final installation verification.homebrew/coreis the correct route because Prime Agent is open-source, command-line-only software. Homebrew normally requires that category to be built from source as a formula; a rejected core formula would not automatically become eligible forhomebrew/cask.Current state
Homebrew/homebrew-core#297372is open and remains the canonical submission.zeromqformula instead of the native library vendored by thezeromqnpm package.zeromq/zeromq.js#736now tracks that request. A ZeroMQ maintainer says thezmq_sharednpm option exists but has not been tested recently.prime-agent-0.7.0.tgzasset with SHA-25688b6578518c72cd51a825bc80f28e0fef9a64c67de4a7d6fd7afd7ca1b34da0b.#751reports that this exactv0.7.0tarball is missingdist/bundle/amazon-bedrock.js, so--versionpassing is not enough to establish that the release artifact is suitable for Homebrew.Work required before merge
1. Build the Node binding against Homebrew ZeroMQ
zeromq@6.5.0package used by Prime Agent with itszmq_sharedconfiguration.zeromqformula and only the build dependencies demonstrated by a clean build.otool -Lon macOS andlddon Linux.libzmqcopy remains in the keg.zeromq.jsfix linked tozeromq.js#736.2. Use a complete stable release artifact
#751and publish a corrected stable release rather than asking Homebrew to merge a formula around a known-broken tarball.prime-agent --version.3. Verify formula reproducibility and native dependencies
4. Verify Homebrew-owned updates
prime-agent updatecannot mutate a Homebrew-managed keg.Validation gates
The actual submitted formula revision should pass:
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source prime-agent brew test prime-agent brew audit --strict --new --online prime-agent brew style --fix --formula prime-agent brew lgtm --online prime-agent --version prime-agent --help prime-agent doctor prime-agent update brew linkage --test prime-agent brew uninstall prime-agentLocal results will be reported with their platform limits. The updated Homebrew pull request must also pass its complete supported macOS and Linux matrix.
Maintainer support
@kennethnym @badlogic — I can own the Homebrew preflight, shared-ZeroMQ experiment, formula validation, review tracking, and final public-install verification. Support may be needed from you for:
#751and publishing a corrected stable release;pkg:coding-agentlabel required by this repository's contribution instructions; that label is currently absent and the filing account cannot create repository labels.I will keep tested findings and state changes in this issue and avoid duplicate Homebrew submissions or status-only comments.
Completion criteria
brew install prime-agentpasses runtime and linkage checks.References