default to compiled agent installs on macos and linux - #2140
default to compiled agent installs on macos and linux#2140kevinjosethomas wants to merge 14 commits into
Conversation
Refs ENG-6027; fixes #2140
Refs ENG-6027; fixes #2140
Refs ENG-6027; fixes #2140
Refs ENG-6027; fixes #2140
Prime Agent performance — completedPR Overall: 0 regressed · 0 improved · 17 no clear change.
Python runtime
Sandbox cost: ~$0.0859 — no inference calls. Methodology and samplesMain resolved at 2026-09-11T01:35:36.494001+00:00. Harness
|
Refs ENG-6047; fixes #2140
fb1582a to
81322c1
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 81322c1. Configure here.

This is part of the PR stack migrating us to use Bun to compile Prime Agent for releases. This makes supported installations self-contained, removing the need to download and install Node.js and npm packages separately.
This PR changes the installer to use the compiled version by default, so new users on supported Macs and Linux machines get the self-contained Prime Agent. The installer checks the download and confirms it runs before making it active. Machines that can't run it automatically use the existing Node.js installation.
Tested fresh installs and failed or interrupted downloads across Debian 12, Ubuntu 18.04/20.04/22.04/24.04, and Alpine 3.24. CI also tested compiled packages on macOS 15 and Ubuntu 24.04, on x64 and ARM64. Actual macOS 13/14 execution remains untested.
ENG-6027 · Stack: #2140 → #2165 → #2166. Ship all three together.
Note
High Risk
Changes the default install path and release artifact set for all supported macOS/Linux users; installer and R2 publishing logic are security- and availability-sensitive despite broad automated coverage.
Overview
Ships four-platform standalone
prime-agentarchives (darwin/linux × arm64/x64) built with Bun 1.4.0, assembled via new scripts, and validated in CI on native runners—including tests with JS runtimes removed fromPATH.Release and CI wiring: a reusable
standalone-binariesworkflow feeds build-binaries (download verified artifacts, stage underpackages/coding-agent/binaries, pass--binary-dirinto release pack). Production/beta uploads now checksum-verify artifacts and publish both npm.tgzand platform.tar.gzfiles; manifests gain abinariesarray.install.shbehavior change: on macOS 13+ and glibc Linux, auto mode prefers the compiled archive (checksum, safe tar validation, executable probe) into a locked managed install with atomicprime-agent/previoussymlinks; Node/npm remains for unsupported platforms, npm-only releases, or failed probes (PRIME_AGENT_INSTALL_METHOD=node|binary). Adds--native-platformand optional bootstrap viaprime-agent --prime-agent-bootstrap.Agent packaging:
build:binary/ asset copy move intobuild-binary.mjsandcopy-binary-assets.mjs; kernel bootstrap resolvesprime-agent-runtimebeside the flat binary layout.Reviewed by Cursor Bugbot for commit ac5d8fb. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Default agent installer to compiled binaries on macOS and Linux
install.shauto mode now prefers native compiled installation on supported macOS 13+ and glibc Linux platforms;packages/coding-agent/package.jsonbuild:binaryandcopy-binary-assetsscripts are now functional.Macroscope summarized db14f90.