Attack the contract before they do.
AI-powered adversarial contract review that finds loopholes, exposes risks, and generates safer redlines.
Live App: https://lexrisk-rho.vercel.app/
The LEXRISK landing dashboard provides a clear starting point for adversarial contract review.
Launch the โ๏ธ Attack Contract workflow to stress-test contract clauses from an opposing counsel perspective.
Review identified risks alongside Opposing Counsel, Client Counsel, and Neutral Reviewer perspectives.
Visualize the distribution and severity of risks across the contract.
Validate the prototype through the built-in test suite and review system performance.
LEXRISK is an AI-powered contract review platform designed to stress-test contracts before opposing counsel does.
Instead of simply asking:
"What does this contract say?"
LEXRISK asks:
"How could the other side use this contract against me?"
It simulates three legal perspectives to uncover weaknesses, evaluate competing interpretations, and recommend fixes.
Contract
โ
Clause Extraction
โ
โ๏ธ Opposing Counsel Attack
โ
๐ก๏ธ Client Counsel Defence
โ
โ๏ธ Neutral Review
โ
Risk Assessment
โ
Recommended Fix
โ
AI Redline
โ
Lawyer Accept / Reject
- โ๏ธ Adversarial Contract Review โ Simulates opposing counsel looking for exploitable weaknesses.
- ๐ก๏ธ Client Counsel Defence โ Builds the strongest defence of the client's position.
- โ๏ธ Neutral Reviewer โ Evaluates competing interpretations using contract evidence.
- ๐จ Risk Detection โ Identifies and prioritizes critical, high, medium, and low risks.
- ๐ Evidence Grounding โ Connects findings to specific contract clauses.
- ๐ฅ Worst-Case Scenarios โ Explains how identified weaknesses could affect the client.
- ๐ ๏ธ Recommended Fixes โ Provides practical remediation suggestions.
- โ๏ธ AI Redlines โ Generates proposed safer contract language.
- โ Human-in-the-Loop โ Lawyers can accept or reject AI-generated changes.
- ๐ค Export โ Export analysis for further review and sharing.
Traditional contract review is often defensive.
LEXRISK introduces an adversarial mindset:
Read the clause
โ
Find the weakness
โ
Attack the wording
โ
Defend the position
โ
Determine the stronger interpretation
โ
Fix the weakness
Attempts to find the strongest interpretation that benefits the other party.
Develops the strongest defence of the client's position.
Evaluates both arguments and determines which interpretation is better supported by the contract.
Each finding can follow:
Risk โ Severity โ Clause โ Evidence โ Attack โ Defence
โ Neutral Finding โ Worst Case โ Recommended Fix โ AI Redline
When sufficient evidence is unavailable, the system can indicate that rather than presenting an unsupported conclusion as fact.
LEXRISK can identify potential issues involving:
- Liability
- Indemnity
- Termination
- Payment
- Material breach
- Notice
- Definitions
- Cross-references
- Confidentiality
- Data protection
- Intellectual property
- Missing protections
- Dispute provisions
- React
- TypeScript
- Vite
- Python
- FastAPI
- Pydantic
- Google Gemini AI
- PDF / DOCX / TXT extraction
- ReportLab
- python-docx
- Vercel
- Render
LEXRISK/
โโโ frontend/
โ โโโ src/
โ โโโ public/
โ โโโ package.json
โ โโโ package-lock.json
โ โโโ index.html
โ โโโ vite.config.ts
โ
โโโ backend/
โ โโโ main.py
โ โโโ requirements.txt
โ โโโ ...
โ
โโโ sample_contract/
โโโ screenshots/
โโโ README.md
โโโ .gitignore
git clone https://github.com/Aurenox/LEXRISK.git
cd LEXRISKcd backend
python -m venv .venvWindows:
.venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtCreate backend/.env:
GEMINI_API_KEY=YOUR_GEMINI_API_KEY
GEMINI_MODEL=gemini-2.5-flashStart FastAPI:
uvicorn main:app --reloadOpen another terminal:
cd frontend
npm install
npm run devFor the deployed frontend:
VITE_API_URL=https://lexrisk-api.onrender.com1. Open LEXRISK
2. Upload Contract
3. โ๏ธ Attack Contract
4. Opposing Counsel
5. Evidence
6. Client Counsel Defence
7. Neutral Finding
8. Risk Assessment
9. Recommended Fix
10. AI Redline
11. Accept / Reject
LEXRISK is not another contract summarizer.
It changes the question from:
"What does the contract say?"
to:
"How could the other side exploit it?"
The goal is to help legal professionals identify weaknesses before they become negotiation leverage or disputes.
- Contract-to-contract comparison
- Company-specific legal playbooks
- Negotiation intelligence
- Clause benchmarking
- Continuous contract monitoring
- Obligation and deadline tracking
- Collaborative legal review
- Expanded legal-source grounding
LEXRISK is an AI-assisted legal review prototype.
It is designed to support contract review and identify potential issues. It does not replace qualified legal advice, professional judgment, or independent legal review.
Don't wait for opposing counsel to find the weakness. Find it first.
Attack the contract before they do.




