Legal Document Agent
A specialized assistant that rapidly classifies legal documents and automatically highlights high-risk clauses for review — turning hours of first-pass contract review into seconds.
The Challenge
Legal teams and business owners review the same risky clause patterns — uncapped liability, perpetual IP assignment, overbroad non-competes — contract after contract. A junior associate at $250/hour can spend 2–3 hours on a routine NDA that contains nothing novel. At scale, a company reviewing dozens of vendor contracts per month is burning thousands of dollars on work that is largely pattern-matching. Worse, fatigue means things get missed: a perpetuity clause buried in section 14 of a 30-page MSA is easy to overlook on the fourth contract of the day.
The Solution
This agent automates the first pass. Paste in any contract and it immediately identifies the document type, scans every clause against a risk pattern library, highlights the dangerous language with an explanation in plain English, and produces an overall risk score. The lawyer or business owner still makes the final call — but instead of reading 30 pages, they're reviewing a prioritized list of 3–5 flagged clauses and a summary that took the agent 5 seconds to produce.
Key Capabilities
- 📄 Auto-Classification Instantly identifies document type — NDA, Employment Agreement, Service Agreement, or MSA — so the correct risk rule set is applied automatically, without any manual selection.
- ⚖️ High-Risk Clause Detection Flags "trap" clauses: Uncapped Liability ("indemnify without limitation"), Perpetuity (IP assigned forever), and Broad Non-Competes with exact location in the document and a plain-English explanation of the risk.
- 🔢 Risk Scoring Assigns an overall contract risk score (Low / Medium / High) based on the number and severity of flagged clauses — giving reviewers a quick triage signal before they read a single line.
- 📝 Plain-English Summaries Each flagged clause is accompanied by a one-sentence explanation of why it's risky and what a fair alternative looks like — translating legalese into actionable guidance for non-lawyers.
- ⚡ 100% Accuracy on Test Set Validated against a synthetic dataset of 2,000 labeled legal clauses using TF-IDF and Naive Bayes classifiers — zero misclassifications on known risk patterns.
Tech Stack
- Scikit-learn (TF-IDF, Naive Bayes)
- Streamlit
- Regex Pattern Matching
- Anthropic Claude API
- Docker / Cloud Run
Patterns Used:
Business Value
Automating the first-pass review of routine contracts can reduce legal review time by 50–80% for standardized documents. For a startup signing 20+ vendor contracts per month, that translates to thousands of dollars in saved attorney fees — and faster deal cycles because nothing sits in a review queue.
Who this is built for
Any Nashville business that regularly signs or receives contracts — without a full-time legal team reviewing every one.
Try it live
Paste any NDA, service agreement, or employment contract. The agent classifies it, flags every risky clause, and scores overall risk in seconds. No login required.
Launch Live Demo →Stop paying a lawyer to read contracts you could screen in seconds
The demo above is the real tool. If you want this running for your business — customized to your contract types and risk thresholds — let's talk.