Skip to main content

Casebench

Casebench measures the legal accuracy of an AI system against real court decisions and lawyer-written references, in any jurisdiction.

Status: early development. There is no release yet; it runs from this repository, as below, and the first release will be announced here. Casebench follows SemVer, and while the version is 0.x any minor release may break the command line, the file formats or the Python interface. The changelog names every break.

What it will do

  • Build evaluation cases from court decisions a team already holds: the ruling, the statutes applied and the precedents relied on, each fact pointing at a passage in the decision.
  • Take lawyer-written cases from a spreadsheet, for question answering, research, drafting, editing and extraction tasks.
  • Check every citation in every answer against the corpus: does the authority exist, and does it say what the answer claims?
  • Show where in a multi-step system the right authority was lost: retrieved, kept, read, cited, characterised.
  • Report per task, per metric and per reference source, with the failing example beside every rate. There is no single accuracy number.

Set it up

Paste this into the coding agent you use in your project:

Set up Casebench for this project. Run uvx --from git+https://github.com/Frontier-Legal/casebench casebench guide and follow it.

The guide has the coding agent read your project and write two things: casebench.yaml and an adapter in .casebench/ that starts your agent the way your production does. Nothing else in your project changes, and no key's value is read or written. It ends when casebench check passes, and it asks you one question: which judge model to pay for. Without a coding agent, casebench init asks the same things in the terminal.

Jurisdictions

Casebench works in any country with no country-specific code. Models read the decisions and the answers, and your corpus resolves every citation, whatever its format. A data provider that serves several countries needs one connector. PLUGINS.md explains how to add a data provider or a model API.

Principles

  • Nothing leaves your machines except calls to the system under test and the judge you configure. There is no telemetry.
  • The grader never asks the system it grades.
  • Every result reruns on your own corpus with the open-source code. A shared server, hosted or self-hosted, stores and shows results and never computes a score.
  • Frontier Legal, which maintains Casebench, publishes no rankings of products, and neither does the project.

Documentation

Contributing

See CONTRIBUTING.md. The rules for changing the code are in AGENTS.md. Everyone taking part follows the code of conduct. Report security issues as SECURITY.md describes.

Licence

Apache-2.0, except the ee/ directory, which holds the multi-user team server under its own source-available licence. LICENSE states the boundary.

Metadata

Release files for casebench 0.1.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 casebench 0.1.0
File Size Uploaded
casebench-0.1.0.tar.gz 191.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for casebench 0.1.0
File Interpreter ABI Platform
casebench-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 466.6 kB

Release files / casebench-0.1.0.tar.gz

Download URL casebench-0.1.0.tar.gz
Size 191.0 kB
Tags Source
SHA-256 checksum
How to use checksums
57e50b1b98503a72a40c0b1d8b0d21bb78d64b57a58db5b9913d8b30d5cf48e1
BLAKE2b-256 checksum
How to use checksums
51bf18e7bfdb25debcf4b2beb88edc6dc2d2aca5e5ddf5ff4b256d662e56b4f3
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 14, 2026.

Transparency log

Release files / casebench-0.1.0-py3-none-any.whl

Download URL casebench-0.1.0-py3-none-any.whl
Size 275.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c39ee7e7568f77ee129eff99fb791f9d86d967d20a1c1be086f26e9733578f81
BLAKE2b-256 checksum
How to use checksums
5e986f5b5ef92708d3dcc9eff235d28d81ba96e9af9925cb4acc7d63e8019530
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 14, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

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