I review NDAs for classmates, so I built a contract-risk scanner that never lets the contract leave your laptop
Description and use
ClauseGuard is a local contract‑risk scanner that automates NDA reviews with a rulebook and a local LLM, keeping sensitive documents on the user’s laptop.
Problem
Freelancers, students, and small studios need quick, low-cost NDA reviews without uploading sensitive contracts to third‑party services.
Outcome
ClauseGuard catches all classic NDA traps with a rulebook and adds a local LLM pass for novel risks, running entirely offline with no third‑party dependencies.
Workflow
- 1. Pull a local LLM (e.g., qwen3:4b) via ollama
- 2. Clone the ClauseGuard repo
- 3. Run clauseguard scan on a contract file
- 4. (Optional) Use --no-llm for rule‑only pass
- 5. Review the generated report (markdown or JSON)
- 6. (Optional) Hand the contract to a human reviewer for final advice
Evidence
ClauseGuard · risky_nda_zh.txt · 10 项发现 🔴 critical [rule] 无上限赔偿责任 — 乙方违反本协议的,应赔偿甲方因此遭受的全部损失…
On synthetic NDAs with planted traps, measured on my M-series MacBook: ... 9/9 caught with rulebook only, 9 (+0 new) with hybrid
The model that invented a quote. One run flagged a clause — with a quote that appears nowhere in the document.
- Record date: 2026-10-13T07:55:58.639Z