Skip to main content

AgentRivet

AgentRivet is an agentic workflow for turning a HEP arXiv paper into a Rivet analysis routine. It combines deterministic paper and metadata lookup with a small set of focused LLM agents:

  • an Analyst agent that converts the paper into a structured analysis summary
  • a Coder agent that writes or revises the Rivet routine
  • a CodeReviewer agent that checks Rivet and C++ correctness
  • a PhysicsReviewer agent that checks physics fidelity against the analysis summary

What the package does

Given an arXiv identifier, AgentRivet:

  1. checks whether a Rivet routine already exists for the analysis
  2. downloads and extracts the paper text
  3. builds a structured analysis summary from the paper
  4. generates a Rivet C++ draft
  5. reviews that draft with two separate reviewers (Coder then Physicist)
  6. iterates up to a fixed number of review rounds
  7. writes the final .cc file and a review report

The important design choice is that the full paper text is used only by the Analyst agent. The iterative code-generation loop runs on the structured analysis summary plus the most recent review outputs, not on the full paper text every time.

Take me to the installation instructions!

How to run

After installing and setting an API key (see Environment variables), run:

agent-rivet -p anthropic

You will be prompted for an arXiv ID.

You can also pass the arXiv ID directly:

agent-rivet -a 2511.15569 -p anthropic

You can choose a provider explicitly:

agent-rivet -a 2511.15569 --provider anthropic
agent-rivet -a 2511.15569 --provider google
agent-rivet -a 2511.15569 --provider openai

You can also override the model:

agent-rivet -a 2511.15569 --provider google --model gemini-3.1-pro-preview

Environment variables

agent-rivet detects the provider and model from either CLI flags or environment variables.

Supported environment variables:

  • LLM_PROVIDER
  • LLM_MODEL
  • GOOGLE_API_KEY
  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY

Examples:

export LLM_PROVIDER=google
export GOOGLE_API_KEY=...
agent-rivet -a 2511.15569
export LLM_PROVIDER=openai
export LLM_MODEL=gpt-5
export OPENAI_API_KEY=...
agent-rivet -a 2511.15569

Metadata

Release files for AgentRivet 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AgentRivet 0.3.0
File Size Uploaded Provenance Actions
agentrivet-0.3.0.tar.gz 42.7 kB Without provenance Details for agentrivet-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for AgentRivet 0.3.0
File Interpreter ABI Platform Actions
agentrivet-0.3.0-py3-none-any.whl Python 3 none any Details for agentrivet-0.3.0-py3-none-any.whl

Total release size: 82.4 kB

Release files / agentrivet-0.3.0.tar.gz

Download URL agentrivet-0.3.0.tar.gz
Size 42.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c0a9c98e6613eaa2f5c0a67400422dd4c9997e5aeee39c58018119427204cefd
BLAKE2b-256 checksum
How to use checksums
99c578b5bf528b847cfe5846b72cca7b8aecd8f843fd66f30103d023a4dff253
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / agentrivet-0.3.0-py3-none-any.whl

Download URL agentrivet-0.3.0-py3-none-any.whl
Size 39.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc74e30d0114df0016fa8ed9a71cc2a1c06c014d00f5e8cf20e19e355a496b0e
BLAKE2b-256 checksum
How to use checksums
e4062d261f339b85b6584ed635d55c054af2579f0a7dd8381157c45706627bdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.16

Security for AgentRivet 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page