A deterministic legal contract and lease diff checker with a predatory-clause trap extractor and counter-draft generator.
Standard diff tools only catch character-level changes. clause-guard understands asymmetric
legal traps — indefinite non-competes, IP assignments that claim your weekend side-projects,
hidden deposit forfeitures — and generates the pushback language to negotiate them away.
pip install -e .# Scan a single contract for predatory clauses
clause-guard scan contract.pdf [--category employment|lease|freelance]
# Diff a custom contract against a standard model template
clause-guard diff standard_lease.txt custom_lease.txt
# Generate a ready-to-send counter-draft redline email
clause-guard counter contract.txt [--output email.txt]pip install -e ".[dev]"
pytest tests/ -v
ruff check .