Skip to content

Rewrite Prime CLI around Pydantic configs#760

Draft
xeophon wants to merge 20 commits into
mainfrom
codex/prime-verifiers-process-adapter
Draft

Rewrite Prime CLI around Pydantic configs#760
xeophon wants to merge 20 commits into
mainfrom
codex/prime-verifiers-process-adapter

Conversation

@xeophon

@xeophon xeophon commented Jun 24, 2026

Copy link
Copy Markdown
Member

Overview

This PR rewrites Prime CLI around a small command registry and strict Pydantic leaf configs, while drawing a clear boundary between Prime's platform control plane and Verifiers' local runtime.

High-level changes

  • Replaces Typer routing with a data-driven registry and longest-path dispatcher.
  • Gives every Prime-owned leaf a strict Pydantic Config model and run(config) entrypoint.
  • Uses explicit paths such as prime eval run, prime eval submit, prime train run, and prime lab view.
  • Keeps Rich responsible for output and prompts without coupling interaction to argument parsing.
  • Makes Prime responsible for account contexts, Hub CRUD and publishing, public/private acquisition, downloads, wheel caching and installation, hosted evaluation and training, Lab, compute, and account workflows.
  • Delegates local eval, environment initialization and validation, serving, and GEPA to Verifiers with unchanged native argv.

Command architecture

A central registry maps complete command paths to leaf modules. The root dispatcher owns only global context, version, plain mode, and root/group help. Prime-owned leaves parse with prime-pydantic-config; Verifiers-owned commands execute through the selected workspace interpreter.

Deprecated aliases, default-command groups, Typer contexts, and implicit routing are removed.

Prime and Verifiers boundary

Hub packages are acquired explicitly:

prime env install owner/environment@version
prime eval run environment

Prime resolves the selected account and passes explicit environment variables to the Verifiers process. Verifiers receives an installed local module and remains responsible for its run configuration, plugin loading, execution, lifecycle semantics, and native artifacts.

Companion change

Verifiers CLI and local-runtime surface: PrimeIntellect-ai/verifiers#1857

@xeophon xeophon changed the base branch from codex/verifiers-v1-cli to main June 24, 2026 15:43
@xeophon xeophon changed the title [codex] consume Verifiers eval process protocol Consume Verifiers eval process protocol Jun 25, 2026
@xeophon xeophon changed the title Consume Verifiers eval process protocol Delegate local evaluations directly to Verifiers Jun 26, 2026
@xeophon xeophon changed the title Delegate local evaluations directly to Verifiers Delegate Verifiers lifecycle commands from Prime Jun 26, 2026
@xeophon xeophon changed the title Delegate Verifiers lifecycle commands from Prime Rewrite Prime CLI around Pydantic configs Jun 26, 2026
@xeophon xeophon mentioned this pull request Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant