## Summary
- Remove `prime` (the Prime CLI) from prime-rl's runtime dependencies.
No prime-rl code imports `prime_cli`. The CLI only tied prime-rl's lock
to the CLI's releases, and gave `prime-sandboxes` a second path into the
lock next to `verifiers`.
- `Dockerfile.cuda`: install the CLI as a uv tool in its own venv
(`/opt/uv-tools`, executable in `/usr/local/bin`), pinned by `ARG
PRIME_CLI_VERSION=0.19.2`. The platform keeps running `uv run --no-sync
prime env install '<id>'` unchanged. Since prime CLI 0.8.0, `prime env
install` installs into `$UV_PROJECT_ENVIRONMENT`, `$VIRTUAL_ENV`, or the
`.venv` next to the nearest `pyproject.toml`, so Hub envs still land in
`/app/.venv`.
- `scripts/install.sh`: run `uv tool install prime` for local use. The
docs already tell users to install the CLI this way.
- `uv.lock` drops `prime`, `prime-evals` and `gitignore-parser`.
`pyproject.toml` drops their now-unused `exclude-newer-package` entries.
Source overlays on older images keep working: the entrypoint syncs with
`--inexact`, so the CLI already in those images' `/app/.venv` stays in
place.
## Breaking
- `uv sync` no longer installs the `prime` command into the project
venv, so `uv run prime …` in a prime-rl checkout fails until the CLI is
installed. Migration: run `uv tool install prime`, then call `prime …`
directly.
## Verification
- Local check, `prime==0.19.2` installed with `uv tool install` and
absent from the target project venv: `uv run --no-sync prime env install
primeintellect/gsm8k` installed `gsm8k` into the project `.venv` and not
into the tool venv. A plain `prime env install` from the project root
did the same.
- Hosted e2e: pending (reverse-text from the Hub with `prime train`, on
an image built from this branch).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Packaging and install-path changes only; runtime training code is
untouched, with a documented migration for local CLI usage.
>
> **Overview**
> **Removes the `prime` CLI from prime-rl’s Python dependencies and
lockfile**, so CLI releases no longer force lock updates and transitive
packages like `prime-evals` and `gitignore-parser` drop out of
`uv.lock`.
>
> **Docker and local setup now install the CLI separately** via `uv tool
install`: the CUDA image pins `PRIME_CLI_VERSION=0.19.2` into
`/opt/uv-tools` with `prime` on `PATH`, and `scripts/install.sh` runs
the same after `uv sync`. Hub env installs (`prime env install` / `uv
run --no-sync prime env install`) are unchanged in intent—the CLI still
targets the project `.venv`, not the tool venv.
>
> **Breaking for devs:** `uv sync` no longer puts `prime` in the project
venv, so **`uv run prime …` fails until you run `uv tool install
prime`** and invoke `prime` directly.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
82cac44caaa77bd77c1b2796186e74264068b873. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>