Skip to main content

evalsi-harness

The built-in agent harness for Evalsi, which evaluates AI before you ship, while it runs and as you train it. It drives an agent through a task in an Evalsi 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.4.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.4.0
File Size Uploaded Provenance Actions
evalsi_harness-0.4.0.tar.gz 417.6 kB With provenance Details for evalsi_harness-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 703.6 kB

Release files / evalsi_harness-0.4.0.tar.gz

Download URL evalsi_harness-0.4.0.tar.gz
Size 417.6 kB
Tags Source
SHA-256 checksum
How to use checksums
467d98064310bbdded9a33b9d72cdfe11895f36d270ef5f0e05493c029119ee4
BLAKE2b-256 checksum
How to use checksums
b034c42394d5edbe430e84c68e41bed3af5e80da5c348977e593c7204563564a
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 Nov 14, 2026.

Transparency log

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

Download URL evalsi_harness-0.4.0-py3-none-any.whl
Size 286.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
476ec54dbb80b03806588846a3f8364d27cb41467f74a81d14ff459dd1020386
BLAKE2b-256 checksum
How to use checksums
945524c5fa358afc21630c019bb9ba862e0fb8cbd606b9f315946f49a0a4e0d4
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 Nov 14, 2026.

Transparency log

Security for evalsi-harness 0.4.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.4.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 Nov 14, 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