PATRONby MateMatic Solutions

PATRON · by MateMatic Solutions

A local AI platform for lawyers

Case-file analysis, legal research and document work - with source control, an audit trail and human oversight. PATRON runs locally, on your own hardware. Open source.

Open source (AGPL-3.0) · Local-first · Learns with you · Audit trail

The PATRON application interface - the legal assistant's welcome screen
Why it exists

Three things that keep a lawyer away from AI

Not a lack of will. A lack of trust. PATRON is built around the three fears we hear most often in law firms - and around an answer to each.

AI invents with a confident face

ProblemThe model writes falsehoods in an expert's tone. You sign off on it, not the model.

PATRONEvery claim drawn from the file gets a footnote to a verbatim quote and a page number. What isn't in the document, it doesn't invent.

Case files in someone else's cloud

ProblemUploading a case folder to an external service raises a professional-secrecy question.

PATRONIt runs locally, on your computer. Sensitive matters need never leave the machine at all.

A black box

ProblemYou have an answer, but not where it came from or how to defend it.

PATRONIt shows the source of every claim and records an audit trail you can check without having to trust us.

Source control

Quote, paraphrase, no basis

This is the heart of PATRON. When it relies on a document, it attaches a footnote to the source. You click the quote and see the verbatim passage with its page number - before you build a filing on it. What isn't in the file, it doesn't invent.

Hover over a footnote to see what PATRON shows beneath each one

The court found the clause unfair1QuoteContract, p. 14Passage found in the file word for word. Illustrative example., and the doctrine concurs2ParaphrasePATRON's summaryFaithfully rendered, but not a quote. Verify before relying on it.. The claim that the entire contract is void3No basisNot in the filePATRON flags it and does not pass it on. has no basis in the file.

Quote

The passage exists in the document word for word. You click the footnote, see it with its page number, and paste it into your filing.

Paraphrase

When PATRON summarises or draws on general knowledge, it sets that apart from the file's content. Check it before you cite.

No basis

What it can't find in the document, it doesn't invent. It says plainly that there is no basis for it in the file.

PATRON - an answer with a footnote to the source: the quote panel shows the verbatim contract passage with its page number

The mechanism supports verification; it does not replace the lawyer's judgment.

Scale

The whole matter at once, not a dozen notebooks

Large matters don't fit into cloud tools. You cut the folder into pieces, spread it across several notebooks and lose the context between them. PATRON takes the whole matter at once - thousands of documents in a single Project.

It runs locally, so the limit is your disk and memory, not an account quota. A six-hundred-page scan goes in whole, without trimming.

The stronger the hardware, the larger the matter. Scale grows with your machine.

  1. The whole matter in one Project
  2. Thousands of documents at once
  3. No file-size limit
  4. The limit is your hardware, not a price tier
What PATRON does

All your case-file work in one place

From a question to the folder, through field extraction, to your choice of model. Each feature kills a specific daily pain in the firm.

Assistant - chat with the file

ProblemA question to a six-hundred-page folder means hours of reading.

SolutionYou ask in plain language and get an answer with a quote and a page number.

Projects - the matter as context

ProblemCase documents scattered across drives, emails and scans.

SolutionOne Project is one matter. You import a folder in one move; PATRON keeps everything in context.

Table view

ProblemCopying dates, amounts and penalties from dozens of contracts into Excel.

SolutionPATRON extracts fields from many documents into one table. Each cell links back to its source; export to Excel.

Import and OCR - every format in the folder

ProblemA scan or phone photo is a dead image, not searchable text.

SolutionIt reads PDF, DOCX, DOC, scans and photos (OCR) - from a court letter to a snapshot of a document. It indexes the whole folder for search.

Pseudonymisation and input scan

ProblemSensitive data shouldn't reach the model uncontrolled.

SolutionPersonal-ID numbers and names pass through pseudonymisation; documents pass a security scan before the model.

Models - bring your own

ProblemA single AI provider means lock-in and a question of where the data lands.

SolutionYou connect your own model: Claude, Gemini, a local Ollama or OpenRouter. Sensitive matters stay fully offline.

Memory

It learns with you - the firm's second brain

Every matter starts from zero, and knowledge leaks away into emails and people's heads. PATRON builds a local memory that grows with your practice - it remembers documents, matters and the links between them. Like a personal Obsidian, except it understands case files.

Underneath, three layers work: vector search (RAG) over your documents, a local SQLite database for matters and decisions, and a knowledge graph linking parties, matters and sources. The longer you work together, the more context it has at hand.

All local, on your own hardware. The graph grows under supervision - a human approves the links within it.

  1. Vector search (RAG) over your files
  2. Local SQLite database: matters, documents, decisions
  3. Knowledge graph: parties, matters, sources and links
  4. It grows with every matter - and stays with you
PATRON - the workflow library: a table of repeatable procedures (NDA Review, SPA Review, Credit Agreement Review) with type and practice area
Workflows

Build the procedure once, then one click

The same lease-agreement review comes back every week, and every time you click through it from scratch. You save the sequence of steps as a workflow and run it on each new matter.

Set up a first-pass contract review once, then one click on a new folder.

Skills library

Ready-made skills out of the box

Starting from a blank page is the same fight over wording every time. PATRON ships with built-in skills - a document reviewer, a devil's advocate, an editor - always on, locally. You start from a tested one and adapt it to your practice.

Add more skills from the MateMatic Boutique catalogue, one file at a time.

PATRON - the skills library: built-in skills (Reviewer, Devil's advocate, Write plainly), always on, locally
Connectors

Polish and EU legal sources, mid-answer

Searching across six open tabs means copy-pasting and losing citations. Six MCP connectors (open, MIT-licensed) link PATRON to authoritative sources - it reaches into them while answering.

SAOS

Common, Supreme and Constitutional Court rulings, plus the National Appeals Chamber.

NSA

Administrative courts (Supreme + 16 regional, CBOSA).

ISAP

Statutes and acts (Journal of Laws + M.P., Sejm ELI).

KRS

Company register: relationships, governing bodies, shareholders.

EUR-Lex / CJEU

EU law and Court of Justice case law (live SPARQL).

EU-Compliance

GDPR, AI Act, DORA, NIS2, eIDAS 2.0, CRA.

Audit trail

A log you can check, not one you have to believe

Compliance asks "how did this answer come about", and all you have is a chat thread. PATRON records every interaction with the model in a hash-chain, with a Merkle tree above it. An auditor verifies consistency offline, without trusting us and without access to the content.

You export an audit package as evidence of due diligence under AI Act art. 12 - who, when, with which model, on which source.

MateMatic's reading of the AI Act / GDPR, not a position of the Polish bar associations.

  1. The question, the model and the run parameters
  2. The sources the answer relied on
  3. A hash of each event, chained together
  4. A Merkle tree over the chain (RFC 6962)
  5. Offline verification, independent of MateMatic
Where it differs

PATRON vs cloud legal AI

The difference is architectural, not cosmetic. Where the case files live decides what a firm can promise its client.

 PATRONTypical cloud legal AI
Where data livesThe firm's own hardware (local-first)The vendor's cloud
Sensitive mattersCan run fully offline on a local modelSent to the provider
Source controlQuote / paraphrase / no-basis, per claim, with page numberVaries; often unattributed
Audit trailHash-chain + Merkle (RFC 6962), verifiable offlineVendor-controlled, where present
LicenceOpen source (AGPL-3.0)Proprietary
Jurisdiction6 Polish & EU legal-source connectors built inGeneral-purpose

"Typical cloud legal AI" describes a common architecture, not any single named product. Compare against your chosen vendor's current terms.

FAQ

Questions lawyers ask first

Is PATRON a European alternative to Harvey?

PATRON is a European, local-first take on legal AI. Where cloud platforms such as Harvey, Legora and others process a firm's documents on their own servers, PATRON runs on the firm's own hardware - case files need never leave the building - and it shows the source behind every claim. Different architecture, same goal: legal AI a firm can actually defend.

Is PATRON GDPR-safe?

PATRON is built local-first, so personal data can stay inside the firm. Sensitive matters can run on a local model (Ollama) fully offline, and personal-ID numbers and names pass through pseudonymisation before any model sees them. This is MateMatic's reading of GDPR and the EU AI Act, not a position of the Polish bar associations.

What is local AI for law firms?

Local AI runs the model and your documents on your own hardware instead of a vendor's cloud. For a law firm that means case files don't leave the office, professional secrecy becomes a property of the architecture rather than a promise, and the work can run fully offline. PATRON is built this way.

Will the AI make up something I have to sign off on?

PATRON attaches to every claim drawn from the file a footnote to a verbatim quote and a page number. What isn't in the document, it doesn't invent - and where there is no basis in the file, it says so plainly.

Download it, or talk to us about deployment

PATRON is free and open. MateMatic handles deployment, configuration and training.