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

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.2
File Size Uploaded Provenance Actions
evalsi_harness-0.3.2.tar.gz 417.6 kB With provenance Details for evalsi_harness-0.3.2.tar.gz

Built distribution (wheel)

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

Total release size: 703.7 kB

Release files / evalsi_harness-0.3.2.tar.gz

Download URL evalsi_harness-0.3.2.tar.gz
Size 417.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6640f7bdd3c9324d8cc3d30a0f4c3893d9ed93945b9694aa6f252b466f46f8d4
BLAKE2b-256 checksum
How to use checksums
bc355a7b97217980b6e3f15b0092e4fe9593e752037e8aec438dbbcc6c6daf5c
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 28, 2026.

Transparency log

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

Download URL evalsi_harness-0.3.2-py3-none-any.whl
Size 286.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
495a523ed3f89ab920df9f52f236d5eb0a0566f09dedc1d6f8e371e330ce341a
BLAKE2b-256 checksum
How to use checksums
4cd03ae12a989d1482a565587d5acc6ea188b246beeea1e35577d0fa21957c0a
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 28, 2026.

Transparency log

Security for evalsi-harness 0.3.2

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.2.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 28, 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