Building Legal Agents When You Can't See the Data - Jacob Lauritzen, CTO of Legora

Latent Space

Legora CTO Jacob Lauritzen: building legal agents with no access to the data

Legora's chief technology officer explains how a company that cannot read a single trace of its agent's work tests it, picks models and keeps law firms comfortable, on the Latent Space podcast.

Jacob Lauritzen, chief technology officer of the legal AI company Legora, joined the Latent Space podcast to describe how the company builds and tests an agent when it is barred from seeing what lawyers do with it. The work belongs to law firms' clients, so it is confidential. Legora started in a Stockholm basement as a chat tool with a Swedish legal search function. Lauritzen says it now has around 100 engineers and a product that drafts and edits Word files, reviews thousands of contracts in one table and coordinates work between lawyers, clients and agents.

Testing an agent without seeing its traces

Lauritzen called the lack of data "extremely frustrating": the team has no idea what people are actually doing with an agent that can do so much. Legora instead runs an evaluation team of about three engineers and three lawyers, drawing on a pool of "legal engineers", former big law lawyers who often hold computer science degrees. They build simulated environments, such as a 10,000-file data room for a due diligence, and score separate steps: finding red flags, then drafting the report.

Tracking models across practice areas produces a heat map. Lauritzen said releases often improve some tasks while regressing others, more often than people expect. The company also runs cheap online checks and compares features behind flags. When it can learn about failures, it classifies them into a known list of 10 or 20 failure modes rather than copying content. Customers can send anonymised examples when something fails.

Podcast hosts and guest seated in a studio during the discussion of evaluation and confidential legal data
Discussion of how Legora evaluates its agent without access to customer data

Tabular review, lists and intake

Tabular review is the feature Lauritzen spent longest on. A lawyer puts, say, 10,000 employment contracts in rows, then asks a question per column: the termination period, whether there is an IP assignment clause, what the person is paid. Every answer links back to the source document. Lauritzen said it handles up to a million cells and runs the first 10 rows first so users can check the question before the full run. The agent can also start a review itself, analyse the results and draft a memo.

Around it sit lists, which he likened to Linear or a Notion database, and intake, which takes requests from Slack into a list that lawyers and agents work through. His aim is a few core primitives that many products can be built on.

Podcast studio conversation about the tabular review feature for bulk contract analysis
Explanation of tabular review, where each contract is a row and each question a column

Models, hosting and fine-tuning

Legora routes different tasks to different models and offers a model picker, which Lauritzen said it resisted for a long time. Early infrastructure ran on Microsoft Azure because law firms already trusted Microsoft and distrusted Amazon and Google with their data. He said that has shifted. The company keeps its list of data processors short, which favours vendors such as Google and OpenAI that cover many needs. He praised an older Gemini model and Microsoft's own model for transcription.

Legora has not fine-tuned models so far, but now plans post-training open-weight models for narrow tasks such as legal research, a retrieval problem where speed and cost matter. He said models improved one citation problem from about 70 percent to 99 percent with no work from the team, and that remaining weak spots include reasoning over very long documents and verbose drafting.

Podcast guest speaking in the studio about post-training models and search
Discussion of fine-tuning open-weight models for narrow legal research tasks

Lawyers, juniors and competition from the labs

Lauritzen expects lawyers to spend more time on judgment and clients and less on document trawling, and said junior lawyers are not disappearing: good ones are worth more. Billing is shifting toward flat project fees for smaller work. On the labs, he does not expect Anthropic to cut Legora off, and argued that a general tool may serve small clients but "if you're doing a $400 million M&A transaction, you're going to want Legora."

Questions and answers

How does Legora test its AI agent in 2025 without seeing customer data?

Legora uses an evaluation team of about three engineers and three lawyers, plus "legal engineers", former big law lawyers who often hold computer science degrees. They build simulated environments, such as a 10,000-file data room for a due diligence, and score separate steps like finding red flags and drafting the report.

Why can't Legora read the traces of its legal AI agent?

Legora cannot see what its agent does because the work belongs to its law firm customers' clients and is confidential. Chief technology officer Jacob Lauritzen called the lack of data "extremely frustrating", because the team has no idea what people are actually doing with an agent that can do so much.

What is Legora's tabular review feature?

Tabular review lets a lawyer put, say, 10,000 employment contracts in rows and ask a question per column, such as the termination period, an IP assignment clause or pay. Every answer links to the source document. Legora says it handles up to a million cells and runs the first 10 rows first so users can check the question.

How does Legora handle model choice and hosting?

Legora routes different tasks to different models and offers a model picker, which it resisted for a long time. Early infrastructure ran on Microsoft Azure because law firms trusted Microsoft. The company keeps its list of data processors short, which favours vendors such as Google and OpenAI that cover many needs.

Is Legora planning to fine-tune its own models?

Yes. Legora has not fine-tuned models so far, but now plans post-training open-weight models for narrow tasks such as legal research, a retrieval problem where speed and cost matter. Jacob Lauritzen said one citation problem improved from about 70 percent to 99 percent with no work from the team.

How does Legora's CTO see competition from AI labs like Anthropic?

Legora CTO Jacob Lauritzen does not expect Anthropic to cut Legora off. He argued a general tool may serve small clients, but for a $400 million M&A transaction, "you're going to want Legora." He also said good junior lawyers are not disappearing and are worth more.

From the YouTube description

Legora can’t read a single trace of what its agent does for a lawyer. The data belongs to the law firm’s clients. How do you build and test an agent when you can’t see its work?

Jacob Lauritzen is the CTO of Legora, one of the fastest-growing companies in legal tech history. The team started in a Stockholm basement with ChatGPT, Swedish law, and a search tool. Today, a lawyer can use Legora to draft and edit Word documents, review 10,000 contracts in a single table, or run due diligence. The agent also coordinates work between lawyers, clients, and other agents. When Legora made its own acquisitions, the team used it for diligence.

What we talked about

• Why Legora resisted adding a model picker for years, and why it finally added one
• Jacob’s estimate that models already do about 60% of legal work well, and why the rest takes a smarter model
• How three engineers and three lawyers build test environments modeled on customers’ work, much like the “worlds” used in reinforcement learning
• A citation problem where the model got it right 70% of the time, then 99% after one release. Legora didn’t have to change anything.
• Why Legora runs everything on Azure and why it doesn’t use ElevenLabs
• Tabular Review, the million-cell spreadsheet the industry copied down to the name
• How intake works, how agents create lists, and how a list can start another agent
• What legal engineers and forward-deployed engineers each do, and who gets to write code
• The 300 Spartans slide Jacob used to argue that 20 engineers would be enough forever. Now there are 100, and he still feels short-handed.
• Why Jacob finds Fable and Opus too chatty for drafting and likes Astra’s concise writing
• Why drafting a long contract is a search problem
• Whether model labs will cut off legal tools the way they cut off coding tools
• What happens to law firm partnerships, the billable hour, and jobs for junior lawyers

Legora is hiring engineers in New York, Stockholm, and London.

Chapters

0:00 Cold open
0:40 Meet Jacob Lauritzen, CTO of Legora
1:05 Starting out as underdogs in a Stockholm basement
1:54 How Legora grew from ChatGPT with Swedish law into a legal agent
4:12 The switch from assistant to agent
5:23 Which models Legora uses and why it added a model picker
7:48 Are today’s models good enough for lawyers?
8:20 What agents couldn’t do nine months ago
9:18 Testing the agent in simulated worlds and a 10,000-file data room
10:07 The evals team and Legora’s 100 legal engineers
11:03 When evals didn’t seem worth it and one release took citations from 70% to 99%
12:18 What legal practice could look like in five to ten years
14:18 Will the law firm partnership model survive?
16:40 What happens to paralegals and junior lawyers?
18:00 The billable hour and why earlier legal tech fell short
19:39 Where the money goes now
22:44 How Legora used its own product for acquisition diligence
23:59 How Swedish and American law firms differ
26:12 Product metrics when you can’t read the traces
27:41 Paraphrasing traces and narrowing failures down to 10 or 20 types
28:42 Why data privacy led Legora to run everything on Azure
30:04 Open-weight models and model arbitrage
30:55 Transcription models and why Legora doesn’t use ElevenLabs
33:33 The agent, Tabular Review, projects, and the Word add-in
34:24 How a lawyer uses Tabular Review
35:51 Why a spreadsheet works and what you learn from the first 10 rows
37:53 How the legal intake bot works in Slack
39:11 How agents create lists and lists start agents
40:15 Building products on those same pieces and acquiring Wexler
42:37 What forward-deployed engineers do at Legora
43:52 How legal engineers and forward-deployed engineers onboard a big client
46:43 What’s next for the forward-deployed team over the coming year
47:24 Why Legora resisted building APIs
49:26 Can the agent be the API?
50:12 The 300 Spartans slide and the plan to stay at 20 engineers
51:32 The bets nobody asked Legora to make
53:05 Post-training open-weight models for legal research
54:05 Search, retrieval, and late interaction
54:51 What makes a good legal agent harness and why drafting depends on search
56:25 Which model writes the best draft?
57:03 Hallucinations and Legora’s citation system
57:41 Do lawyers check the citations?
58:19 MapReduce or one big context window for a million-token contract?
1:00:16 Getting anonymized examples and the idea of buying a law firm for its data
1:01:53 Why Jacob advises against default embeddings
1:02:44 Will lawyers work in Legora or through Claude?
1:03:26 Will the model labs cut Legora off?
1:04:24 Law schools and scholarships for computer science majors
1:05:28 Hiring in New York, Stockholm, and London
1:06:09 Why most work eventually becomes legal work

Guest - Jacob Lauritzen, CTO of Legora
https://legora.com

Co-host - swyx, Latent Space

Host - Basil Chatha, Forward Deployed
https://forwardeployed.com

Watch on YouTube

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.