The alpha, twice a week
That was 4 min.
Get the best new moments in your inbox every Wednesday and Saturday. It's free.
Check your inbox
We sent a link to your address. Click it to finish signing up. Not there in a minute? Look in spam.
or
Sourcery · 4 min · Jun 18, 2026
Harvey turns partner expectations into legal agent tests
Gabe Pereyra explains how contracts and a partner’s broad request become a diligence memo graded against legal checks.
In this episode
Full analysis- 23:44Token pricing will recreate the billable-hour problem5 min
- 18:57Agent usage is driving sharply higher inference costs5 min
- 6:29Harvey open-sources general legal AI while protecting client data4 min
- 1:10Harvey turns partner expectations into legal agent tests4 min
- 10:25Harvey's research strategy borrows from DeepMind's top-down plan2 min
- 12:27Harvey planned for both seat-based and token-based sales3 min
- 36:35Harvey built legal benchmark data with agents and lawyer review2 min
“we use both of those to create essentially legal unit tests”
Gabe Pereyraat 3:37 · SourceryTakeaways
- A diligence task starts with contracts and a high-level partner request.
- The rubric checks whether the memo flags material provisions.
- Harvey is mapping tasks and grading criteria across practice areas.
About this segment
Gabe Pereyra explains how contracts and a partner’s broad request become a diligence memo graded against legal checks. The method extends across law-firm practice areas.
Co-founder & President, Harvey
Co-founded and leads Harvey, the legal AI platform, after research roles at DeepMind and Meta.

Molly O'Shea, Host · Founder, Sourcery
Ex-Upfront Ventures investor; has interviewed Alex Karp and Palmer Luckey.
From “Harvey Co-Founder Gabe Pereyra on the Token Pricing Reckoning Coming for AI”, Jun 18, 2026. Watch the full episode
Thanks. We'll look at and fix what's off.
Transcript
Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.
- 1:18
and I think the thing that we're super excited about is we have done a bunch of benchmarking in the past so before Legal Agent Bench we had Big Law Bench which was more of a chat-based benchmark which was kind of a QA data set and we shared some of that we worked with kind of labs and the providers but at the time we're a smaller company and we didn't have the bandwidth to like fully open source it and support it and so what we wanted to do with Legal Agent Bench was fully open source this so anyone working on agents could run their agents and kind of work with us in the community to evaluate these things. And the way I would think of this data set is we tried to really mimic what the coding agent benchmarks did. And the way to think of the coding agent benchmarks is with things like SWE bench, terminal bench, you have a GitHub repo,
- 2:14
which is kind of all the code for a project. You have an issue which is someone said hey this doesn't work can you fix it and then you have a bunch of unit tests that will tell you you know if you write a bunch of code and run it the unit test will tell you you know you broke this thing or this thing passed and the way the agent gets scored is did it write all this code that passed all the unit tests and I think there's a bit of a misconception that oh legal subjective so you can't do this and I think the thing for especially big law is a lot of the work you can actually quantify and this is what senior associates and partners are doing when their junior associates do a bunch of this work and so as maybe an example of a task in the legal agent bench it would be can you do diligence which is you get a data room so you're trying to buy a company and you'll get
- 3:05
all of that company's contracts and what the law firm needs to do is go through all the contracts and make sure that there's nothing you know questionable or that might blow up the deal in there and so the way we set up this data set like one of these tasks is you have a data room that's all the contracts you have a partner request which is a very high level instead of instructions you would get from a partner if you're an associate and usually for something like diligence it would be hey we got the data room can you look at it right and you need to infer I know what I need to do based on that and then I think part of the like novelty here is we use both of those to create essentially legal unit tests and so what are all the things that a partner would be looking for when they're trying to assess an associate's work product
- 3:57
And so you would take that data room and you would generate a diligence memo which is what the law firm gives to their client to basically say here's all our findings on this diligence and the things you would look for so one section is going to analyze all the change of control provisions which is basically if i'm buying a company there's going to be a change in control of the company and many contracts have things that can be triggered and most of them don't matter but there can be ones where this important vendor contract will change in a material way and you need to flag this and so that would be like a unit test if like you want to check that and then the the challenge with scaling this benchmark is that's just for diligence and then as you scale this to every practice area that these large law firms help their clients in
- 4:43
you have to think about how to do this for fund formation and ip litigation and capital markets and so a lot of what we're building is essentially this taxonomy of here's all the tasks that a law firm would do. And here's all the subtasks that associates would do and how partners or senior associates would grade that work. And I think what's nice is that framing is kind of the same thing you need to evaluate these agents to do these tasks. Benchmarking makes things a lot more