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

  • A tool-calling agent: OpenAI-compatible and Anthropic models with thinking, streaming and prompt caching; bash, file, edit_file, glob, grep and apply_patch tools; MCP tools over HTTP and stdio; mocked tools; versioned minimal, standard and code-mode profiles so a score names the harness it was measured on.
  • Multi-agent runs: a delegate tool starts a sub-agent with a clean context; its steps hang under the call as a tree and its spend comes out of the parent's budget (one level today).
  • Escalation requests: request_escalation asks for a wider policy; the harness decides, and every request is recorded for safety evaluators. Approval gates with human-in-the-loop events are on the roadmap.
  • Users: an LLM-simulated user for multi-turn tasks, and scripted mid-run messages that test whether the agent takes a correction into account.
  • Long runs and budgets: context strategies (compact, clear-tool-results, fresh-rounds, evidence-state) and caps on steps, tokens, spend and wall-clock time.
  • Record and replay: model calls and tool I/O are logged as they happen; replay, resume a killed trial, or fork from step N.
  • Faults and hooks: deterministic fault injection (errors, timeouts, malformed output, prompt injection) and Python hooks at the loop's lifecycle points.
  • Grading: exit-code, JSON, JUnit or Python checkers, clean checker isolation, reward-hacking signals and state-based assertions.
  • Your own agent: A2A, MCP, OpenAI Responses, HTTP, or a CLI inside the sandbox, with trajectory readers for Claude Code, Codex, Gemini CLI and pi.
  • Observability: every step becomes an OTel span, and the agent's diff is recorded for the code-quality evaluator when the workdir is a git repository.
  • Benchmarks: SWE-bench, τ-bench, Terminal-Bench, Harbor datasets and BFCL.

See The built-in agent harness for what is built and what is not.

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.1

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.1
File Size Uploaded Provenance Actions
evalsi_harness-0.3.1.tar.gz 282.7 kB With provenance Details for evalsi_harness-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 473.3 kB

Release files / evalsi_harness-0.3.1.tar.gz

Download URL evalsi_harness-0.3.1.tar.gz
Size 282.7 kB
Tags Source
SHA-256 checksum
How to use checksums
615f9e29b0ee3f80387455de9fb2e29f1377d1ecfac1ca1ca1f0cd576f772e87
BLAKE2b-256 checksum
How to use checksums
2bc28ec918e7e9a2e82f9b511b3a946a64b9ae6994998f06d76429f153fc8c00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

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

Download URL evalsi_harness-0.3.1-py3-none-any.whl
Size 190.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
585361b2a6731a008e831fb87bb63d57a74641934cc4bd4c6e4ddef4de5da7a9
BLAKE2b-256 checksum
How to use checksums
030005bd496597f963cafbf4390a32eb8f8ace0dc7fd9ac79a1aa035163062b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

Security for evalsi-harness 0.3.1

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.1.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 22, 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