Skip to content

noamrazbuilds/redline-summarizer

Repository files navigation

Contract Redline Summarizer

Analyze contract redlines and track negotiation rounds. Upload two versions of a contract (.docx) and get a plain-English summary of all material changes, organized by clause type, with risk assessment.

Getting Started

Option 1: Hosted Version

Coming soon

Option 2: Run Locally

./start.sh        # macOS/Linux
start.bat          # Windows

Option 3: Docker

docker compose up

Features

  • Upload two .docx contract versions for comparison
  • AI-powered identification of material legal changes (not just word-level diffs)
  • Changes classified by clause type (indemnification, liability, IP, termination, etc.)
  • Traffic-light risk assessment for each change
  • Structured reports in HTML, PDF, and DOCX formats
  • Negotiation round tracking to show how positions evolve across exchanges
  • Auto-detection of contract title and parties with manual override

For Developers

API Documentation

Start the API server and visit http://localhost:8000/docs for interactive Swagger documentation.

Project Structure

rs_app/              # FastAPI backend
  api/               # Route handlers
  models/            # SQLAlchemy database models
  schemas/           # Pydantic request/response schemas
  services/          # Business logic
  templates/         # Jinja2 report templates
rs_frontend/         # Streamlit frontend
data/sample/         # Synthetic sample contracts
scripts/             # Utility scripts
tests/               # Test suite

Running Tests

pip install -e ".[dev]"
pytest

Tech Stack

  • Python 3.11+, FastAPI, Uvicorn
  • Anthropic API (Claude) for legal analysis
  • python-docx for document parsing
  • SQLAlchemy 2.0 with SQLite
  • Streamlit for frontend
  • WeasyPrint for PDF generation

License

MIT License - Copyright (c) 2026 Noam Raz and Pleasant Secret Labs

About

AI-powered contract redline analyzer that compares two .docx contract versions, identifies material legal changes by clause type with risk assessment, and tracks negotiation rounds across exchanges.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors