Working demo fictional data Client: A law firm in Bogotá (demo on fictional case files)

Six litigation agents for a law firm, with a lawyer approving every step

Outcome: Six agents audit the file, verify sources, draft the brief and attack it. Code checks every citation; a lawyer approves each step. Demo on fictional files.

evidence: Architecture document, about 1,100 tests, evaluation results of the first agent and a full-chain run; the screens below run on fictional case files ⓘ

6 agents chained with a lawyer approval between steps ⓘ
~1,100 automated tests, under a minute ⓘ
5 of 5 fictional case files where the first agent met its milestone with a real model ⓘ
Litigation tool · demo
Litigation tool with the six-agent chain and approval gates, fictional case file fictional data

For the owner

Business outcome

  • A partner at a law firm had designed six AI agents in a chat window and hit its limits: files uploaded by hand, the case retold every time and confidential material in a personal account..
  • Working demo on fictional case files: about 1,100 tests, the first agent met its milestone on 5 of 5 files with a real model, and the full chain passed validation. Not used with real files.
  • I can turn a client's own agent design into a system with verification, permissions and an audit trail, and say plainly what is missing.

The short version

Six AI agents work a litigation case file the way a junior legal team would. One audits the file, one checks the law, one proposes strategy, one drafts the brief, one attacks the draft and one tracks deadlines. Code checks every citation against the real page. A lawyer approves each step before the next agent runs. It is a working demo on fictional case files, built for a law firm in Bogotá. It has not touched real files.

Context

This is forward deployed work. A partner at the firm had already designed the six agents in a chat window. He hit its limits: uploading files by hand, retelling the case every time, a cap on instructions and confidential material in a personal account. I took his design as the spec and built it as a system, inside the rules of a law firm: confidentiality, Colombian data law (Law 1581) and the rule that a lawyer, not a model, makes the legal call.

The problem

  • Every run started with uploading documents and retelling the case. Slow, and easy to mix two cases.
  • A chat answer can cite a law or a page that does not exist. In litigation that is a risk, not a typo.
  • Six agents in sequence need hand-offs, approvals and a record of who decided what. A chat has none of that.

The approach

The model proposes, code verifies, the lawyer decides. Every agent returns JSON with a schema. Code checks it before anyone reads it: schema, citations, laws, case numbers, dates and personal data. What fails is flagged in place.

One case file, one room. An agent only receives documents from the active case. A canary file in the test bank proves that content from another case never leaks; if it does, the output is quarantined and an alert is logged.

Every claim with document and page. Code opens the cited page and checks that the quoted passage is really there. Laws come only from a closed, verified list; anything else is marked “not verified”.

Deadlines by code, not by AI. The judicial calendar and business days are computed in code. Agents only propose deadlines; a person confirms them.

A pluggable engine with hard cost caps. The same flow runs on a simulated engine, on Claude Code for tests with fictional files only, or on the Claude API with the firm’s own account. API runs stop before a call that would pass USD 3 per agent run or USD 10 per session.

What I built

  • Six agents, each with its own protocol, rules and output contract.
  • ARGOS audits the file. THEMIS verifies sources against the closed list. HADES proposes strategy and risks. ARES drafts the brief with support for each claim. CERBERO attacks the draft and scores it out of 100. EDNA handles deadlines and firm operations.
  • A local web interface with the step-by-step chain and an approval gate between agents.
  • A document viewer that highlights the cited passage, with “what the AI saw” next to the original.
  • Roles and permissions by case: partner, lawyer, assistant and read-only. Only a lawyer approves or returns an output.
  • A hash-chained activity log, so every step and every approval leaves a trace.
  • Every AI output carries the mark “AI draft. Mandatory lawyer review.” Nothing is filed or sent.

Evaluation

  • About 1,100 automated tests that run in under a minute, plus a check of the fictional test bank.
  • ARGOS, run with a real model, met its first milestone on 5 of 5 fictional case files, scored against answer sheets.
  • The full six-agent chain on one fictional labor case passed validation. CERBERO then scored the ARES draft 57 out of 100 and recommended “do not file”. That is the system working: the adversarial agent caught that the file lacked evidence, not wording.
  • ARES costs about USD 0.30 to 0.37 per case with Sonnet, measured on stored inputs.
  • A separate model ran an adversarial security review, and its findings were fixed with regression tests before moving on.

What broke and how I found it

  • A clean chain still said “do not file”. Every step passed validation and CERBERO still rejected the draft. The fictional file did not have enough evidence, and better wording could not fix that.
  • “Close enough” citations were not enough. A later round tightened validation to exact passages and exact ids, with its own tests.
  • Security came from attacking it. The review by a second model found real gaps. The fixes shipped with tests; the open items are listed in the architecture document.

What is pending before real files

  • Pseudonymization of names, IDs and sensitive data before anything reaches the model, validated by the firm.
  • Read-only connection to the firm’s Microsoft 365, sign-in with Microsoft Entra ID and MFA.
  • A business Anthropic account for the firm with zero data retention and a signed data-transfer agreement.
  • OCR for scanned and long files, and legal validation of calendar, sources and scales by the firm.

What I learned

  • Respect the client’s design. The partner already knew how his team should think. The value was in giving his design hands: files that arrive alone, checks that run alone and a record of who decided.
  • Verification is a feature. Lawyers do not trust an answer; they trust a citation they can open.
  • Saying “not yet” is part of the delivery. The pending list is in the repo, in the demo banner and on this page.

Similar work in your firm?

If your team already designed how an AI assistant should work and hit the limits of a chat window, let’s talk. I’ll show you this demo on fictional files before quoting anything.

Message me on WhatsApp

For the team that hires

Technical notes

Architecture
Python standard-library server with plain HTML, CSS and JavaScript on 127.0.0.1; an orchestrator connects permissions, the case room, the engine, validation, storage and the log.
Data
Fictional case files only (six, one of them a canary); outputs stored as "AI draft for review"; hash-chained activity log; deadlines computed by code with the judicial calendar.
Tests
About 1,100 unit tests, a test-bank check, an answer-sheet evaluation for the first agent, a full-chain run and an independent reviewer model.
Where AI runs and its guards
Claude drafts each agent output as JSON with a schema; code verifies schema, citations, laws, case numbers, dates and personal data; a lawyer approves or returns every step.
Monthly running cost
Measured: about USD 0.30 to 0.37 per case for the drafting agent on Sonnet. Hard caps of USD 3 per agent run and USD 10 per session on the API engine.
Repo and status
Private repo. Working demo on fictional files; real files need pseudonymization, the firm's own accounts and its legal validation.

Stack

Python standard libraryClaude APIClaude Code CLIPlain HTML, CSS and JavaScriptJSON Schema

Next case

Pilot A voice sales advisor for Empire Essence that recommends, quotes and takes the order See the case→

What does your team repeat every single day?

Tell me in one message. I'll reply with a concrete idea of what can be automated, or an honest no. The first meeting, 20 to 30 minutes, is free.

I reply personally, usually within one or two business days. · Bogotá, Colombia (UTC-5)

Let's talk Work→