gitwtfhub

wtf is harvey-labs?

harveyai/harvey-labs — explained in plain English

Analysis updated 2026-08-13

1,197PythonAudience · researcherComplexity · 3/5LicenseSetup · moderate

TL;DR

An open-source benchmark that tests how well AI agents perform realistic legal work, using over 1,600 scored tasks across 24+ practice areas.

Mindmap

mindmap
  root((Harvey LAB))
    What it does
      Legal task benchmark
      Agent scoring
      Rubric evaluation
    Tech stack
      Python
    Use cases
      M&A review tasks
      Agent comparison
      Contribute tasks
    Audience
      AI researchers
      Legal tech teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Benchmark an AI agent's ability to handle realistic legal tasks like M&A document review.

REASON 2

Score agent outputs against rubrics covering 24+ legal practice areas.

REASON 3

Compare performance across different AI agents or model versions using the dashboards.

REASON 4

Contribute new legal tasks or model adapters to expand the benchmark.

What's in the stack?

Python

How it stacks up

harveyai/harvey-labsforsy-ai/agent-apprenticeshipalephaitech/workbuddyguide
Stars1,1971,1891,212
LanguagePythonPythonPython
Last pushed2026-07-03
MaintenanceMaintained
Setup difficultymoderatemoderateeasy
Complexity3/53/51/5
Audienceresearcherpm foundergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 1h+

Follow the tutorial to set up the harness and run an agent against a sample legal task.

Use, modify, and distribute freely, including for commercial purposes, as long as you keep the copyright notice.

Wtf does this do

Harvey LAB is an open-source benchmark for testing how well AI agents can perform real legal work. Instead of measuring general knowledge, it gives an AI agent realistic legal tasks, such as reviewing documents or working through a business deal, and checks how well the agent completes them compared to what a human lawyer would expect. The project has two main parts. The first is a growing collection of tasks, over 1,600 of them, spanning more than two dozen legal practice areas plus contract work. Each task includes instructions for the agent, the relevant documents it needs to read, and a scoring rubric that defines what a correct or complete answer looks like. The second part is an execution harness, the software that actually runs an AI agent against these tasks and scores its output using the rubrics, sometimes with the help of another AI model acting as a judge. The maintainers describe LAB as an ongoing project, meaning new tasks and improvements to the scoring system are expected to be added over time rather than the benchmark staying fixed. The documentation includes a full walkthrough that follows one realistic example, a mergers and acquisitions data review task, from setup through running an agent, scoring its work, and comparing results across different runs. This project is licensed under the MIT license, a permissive license that allows free use, modification, and redistribution, including for commercial purposes. Harvey LAB is intended for AI researchers and engineers who are building or evaluating AI agents meant for legal work, as well as legal technology teams who want a standardized way to measure how capable a given agent actually is at real legal tasks rather than relying on general purpose benchmarks.

Yoink these prompts

Prompt 1
Walk me through the Harvey LAB tutorial using the M&A data-room task.
Prompt 2
Explain how the all-pass rubric scoring and LLM judge work in this benchmark.
Prompt 3
Help me add a new legal task to Harvey LAB following the architecture docs.
Prompt 4
Show me how to run an AI agent against Harvey LAB and generate a report.

Frequently asked questions

wtf is harvey-labs?

An open-source benchmark that tests how well AI agents perform realistic legal work, using over 1,600 scored tasks across 24+ practice areas.

What language is harvey-labs written in?

Mainly Python. The stack also includes Python.

What license does harvey-labs use?

Use, modify, and distribute freely, including for commercial purposes, as long as you keep the copyright notice.

How hard is harvey-labs to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is harvey-labs for?

Mainly researcher.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.