PrimeIntellect-ai/verifiers

Our library for RL environments + evals

What is verifiers?

verifiers is a Python library that lets you build environment definitions for training and evaluating large language models (LLMs) with reinforcement‑learning style loops. Think of it as the “game world” where an LLM‑based agent can take actions, receive observations, and be scored.

Core ideas

  • Environment‑first: The library focuses on describing tasks (e.g., single‑turn code generation, multi‑turn reasoning) rather than the learning algorithm itself.
  • Tight integration: Works out‑of‑the‑box with Prime Intellect’s Environments Hub, the prime‑rl training framework, and the hosted training platform.
  • Modular design: Each environment lives under verifiers/v1/... and follows a simple interface (reset, step, reward, done) that any RL loop can consume.

Key components

Component Purpose
verifiers/v1/ Reference implementations of common LLM evaluation tasks (single‑turn QA, code‑generation, tool‑use, etc.).
skills/ Re‑usable “behaviour modules” that agents can call – e.g., a Python‑execution skill or a web‑search skill.
AGENTS.md Guidelines for writing coding agents that interact with the environments.
Docs (docs/) Short, human‑written guides covering architecture, how to add a new environment, and how to run evaluations.

How to get started

# Install the Prime CLI (recommended entry point)
curl -LsSf https://astral.sh/uv/install.sh | sh
uv tool install prime

The CLI lets you list, launch, and monitor environments from the Prime dashboard. After installing the CLI you can pull the library itself with a standard Python package manager (e.g., uv pip install -e . or pip install .).

Running tests

  • Unit tests – fast, no network, validate the isolated components:
    uv run pytest tests/unit -n auto
    
  • Integration tests – execute real evaluations; require a PRIME_API_KEY:
    uv run pytest tests/integration -n 8
    
    You can target a single test, a specific runtime (e.g., docker), or a specific harness (e.g., codex).

Ecosystem connections

  • Environments Hub – a web UI where community‑submitted environments are catalogued and can be launched with a click.
  • prime‑rl – the reinforcement‑learning framework that consumes verifiers environments to train LLM policies.
  • Hosted Training – Prime Intellect’s SaaS platform that runs large‑scale training jobs; it pulls environments directly from this repo.

Contributing

  1. Install pre‑commit hooks (uv run pre-commit install) to keep code formatted and type‑checked.
  2. Open an issue for bugs or feature ideas.
  3. Submit PRs in Draft mode until they are ready for review, linking any related issues.
  4. Ensure the relevant unit or integration tests pass.

Citation

If you use verifiers in research, cite it as:

@misc{brown_verifiers_2025,
  author       = {William Brown},
  title        = {{Verifiers}: Environments for LLM Reinforcement Learning},
  howpublished = {\url{https://github.com/PrimeIntellect-ai/verifiers}},
  year         = {2025}
}

The library is a genuine, actively maintained piece of infrastructure for LLM‑centric RL research, not a mere tutorial or curated list.

Related

  • Project
  • Project
  • Project
  • Project
  • Project