Skip to content

packages/coding-agent: track official Homebrew core submission readiness #843

Description

@fettpl

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

  • Shared ZeroMQ handling is accepted by Homebrew review.
  • The formula uses a complete, immutable, reproducible stable release input.
  • Native dependencies and self-update ownership are verified.
  • The canonical Homebrew pull request is merged.
  • A clean API-backed brew install prime-agent passes runtime and linkage checks.
  • The verified result is reported here and this issue is closed.

References

Activity

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions