Skip to main content

A CLI to get training data from your own coding agents. Track rollouts and codebase snapshots at every turn. The data can be used for SFT, RL, and Continual Learning.

Project description

Rollouts

A CLI for Continual Learning with your own coding agent sessions. Track rollouts and codebase snapshots at every turn. The data can be used for SFT, RL, and Continual Learning. Currently supports OpenCode and uses Prime Intellect for hosted RL training.

Quick Start

# Install rollouts
uv tool install agent-rollouts

# Install the OpenCode Rollouts plugin.
# If GitHub repo defaults are not configured yet, setup will prompt for them.
rollouts setup

# Start a learn session
rollouts learn start my-session --config /path/to/rl.toml

# Continue from the latest run, reusing its config and the latest available checkpoint
rollouts learn continue my-session

# Continue from a specific run with a different config file
rollouts learn continue my-session --from-run 2 --config /path/to/another-rl.toml

# Restart the latest run in the same session if it failed or was stopped
rollouts learn restart my-session

# Or override the config path when restarting
rollouts learn restart my-session --config /path/to/rl.toml

# Inspect learn sessions
rollouts learn list
rollouts learn status my-session

Make sure prime, opencode, git, gh, and hf are installed first.

If you plan to use rollouts learn, make sure your Prime environment is also configured.

Installation

Using uv

Install from PyPI:

uv tool install agent-rollouts

Upgrade later:

uv tool upgrade agent-rollouts

Usage

Learn Sessions

  • rollouts setup installs the OpenCode Rollouts plugin and prompts for GitHub repo defaults if they are not configured yet.
  • rollouts remote defaults set is required before rollouts learn start because learn sessions push tracked snapshots and may auto-create GitHub repos.
  • rollouts learn start <session> --config <path> creates the learn session, stores the config, syncs the dataset, creates run #1, and starts the initial Prime run.
  • rollouts learn list shows your learn sessions.
  • rollouts learn status <session> shows the latest run, current Prime state, config path, and run lineage.
  • rollouts learn restart <session> restarts the latest failed or manually stopped run in the same session after confirmation.
  • rollouts learn restart <session> --config <path> overrides the stored config path for the restarted run.
  • rollouts learn continue <session> starts a new child run from a previous run, reusing the stored config and the latest available checkpoint by default.
  • rollouts learn continue <session> --from-run <n> continues from a specific run instead of the latest run.
  • rollouts learn continue <session> --checkpoint none starts the new run without setting checkpoint_id.
  • rollouts learn continue <session> --checkpoint <id> warm-starts from a specific Prime checkpoint id.

If an older run was created before config-path tracking existed, rollouts learn restart may require --config the first time you retry it.

Local Repo Setup

For local development:

uv sync --extra dev

To install the current checkout as a tool:

uv tool install --editable .

You usually do not need to pass --python here as long as uv selects a compatible interpreter for the project.

Development

Quality checks:

uv run ruff check .
uv run ty check src

Pre-commit hooks are configured for:

  • ruff --fix
  • ruff format
  • ty check src/

Install the Git hook locally with:

uv run pre-commit install

Run hooks manually with:

uv run pre-commit run --all-files

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_rollouts-0.1.4.tar.gz (133.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_rollouts-0.1.4-py3-none-any.whl (41.6 kB view details)

Uploaded Python 3

File details

Details for the file agent_rollouts-0.1.4.tar.gz.

File metadata

  • Download URL: agent_rollouts-0.1.4.tar.gz
  • Upload date:
  • Size: 133.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for agent_rollouts-0.1.4.tar.gz
Algorithm Hash digest
SHA256 204a7d4a490aa1cb16add65d1657ae3b8e69e4513ba7992ab64df18592163f09
MD5 2e096229cdca0e22c2f62d17583e1162
BLAKE2b-256 51a1ec8e69ff949acb9744570c1bd05f707e7a84826e01a935f2c1e9b3e9a857

See more details on using hashes here.

File details

Details for the file agent_rollouts-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_rollouts-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 af5f3b1c6e3044d65dad8fb3d26a29b3e7cb9a0a52dfa475891f3cebc59e3025
MD5 73591c2d0a0257b35b27b7447729eef9
BLAKE2b-256 f3b6facf155bc1e0a3601ab22a7e2377926e5f70e201fcc117c34cf7e6167e94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page