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
rollouts setup

# Configure default GitHub archive repo settings
rollouts remote defaults set --owner github-username --prefix rollouts-

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

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

# 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

Make sure 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.
  • rollouts remote defaults set is required before rollouts learn start because learn sessions push tracked snapshots and may auto-create archive 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 restart 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.

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.2.tar.gz (128.8 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.2-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agent_rollouts-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6e219f1f3da24c696d6cd5dd70714898d7b7c01086556141741669a9fcffc74f
MD5 2e675aefb565fd218428bfe0e29139ef
BLAKE2b-256 09634dee05ac79857b3f6e96e0e0e7b88ca84661b8ac5c6096dc43a845cfd22d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_rollouts-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c5bb278fba38d444c6252344ace0555917d36e2796f2d6c898a8a25029d2d8b3
MD5 1eca507eeb19d37dd487b9f5f62cbe46
BLAKE2b-256 ed58e2d121d391105d2667e8a09d4aad4429bdefda1ca8991dfef70c94bbff18

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