Skip to main content

evalsi-harness

The built-in agent harness for Evals.si, which evaluates AI before you ship, while it runs and as you train it. It drives an agent through a task in an Evals.si sandbox and grades the end state, so you can evaluate and gate agents in CI, and use the same tasks as RL environments.

Documentation · Agent runs guide · GitHub · Changelog

It runs either of these:

  • the built-in tool-calling agent on any OpenAI-compatible or Anthropic model;
  • your own agent over A2A, MCP, OpenAI Responses or HTTP, or as a CLI run inside the sandbox.

Install

pip install evalsi-harness       # installs the matching evalsi release
evalsi run -f agent-run.yaml

evalsi-harness pins evalsi to the same release; upgrade both together. Python 3.11 or newer.

What it provides

  • Sandbox tools: bash, read_file and write_file, plus an escalation request the harness policy decides on.
  • Other tools: MCP tools over streamable HTTP or stdio; mocked tools; deterministic fault injection.
  • Budgets: steps, tokens, spend and wall-clock time.
  • Simulated user: an LLM user for multi-turn tasks.
  • Record and replay: model calls and tool I/O are captured, replay can branch from step N, and sandbox commands are re-executed so the environment is rebuilt.
  • Environment checkers: exit code, JSON, JUnit or a Python function.
  • OTel spans: every step becomes a span.
  • The agent's diff: recorded for the code-quality evaluator when the workdir is a git repository.
  • Benchmark importers: harbor:// (Terminal-Bench 2 and other Harbor datasets) and terminal-bench:// (Terminal-Bench 1) task directories, with their Dockerfiles translated into environments.

Tasks as RL environments

The same tasks can be handed to trainers that speak other environment specs (install openenv-core or verifiers 0.3.x yourself):

from evalsi_harness.envspecs.openenv import TaskOpenEnv, TaskAction, create_task_app

env = TaskOpenEnv([(record, spec)])  # an OpenEnv Environment
obs = env.step(TaskAction(tool="submit"))  # obs.done, obs.reward

from evalsi_harness.envspecs.verifiers import load_environment

vf_env = load_environment([(record, spec)])  # a verifiers StatefulToolEnv

Apache-2.0.

Metadata

Release files for evalsi-harness 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 evalsi-harness 0.3.0
File Size Uploaded Provenance Actions
evalsi_harness-0.3.0.tar.gz 214.6 kB With provenance Details for evalsi_harness-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 365.6 kB

Release files / evalsi_harness-0.3.0.tar.gz

Download URL evalsi_harness-0.3.0.tar.gz
Size 214.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b3e12dbab81d502cb7d4d67254e96428abcc7e774b9adebf0b9f3b13f53438da
BLAKE2b-256 checksum
How to use checksums
d80cc603df689875ff4f4882bd2a90b257dc845ddbd924210a3f67e6e2d5fda5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

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

Download URL evalsi_harness-0.3.0-py3-none-any.whl
Size 151.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed7598a10ce28680f245c328982122c942ce5a51c59216a056fd8b499de62757
BLAKE2b-256 checksum
How to use checksums
ae57a7dd2bb249a19ba0829c61afbc634124ed45d82547769ebab439e35bb732
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for evalsi-harness 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for evalsi_harness-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

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