07 — Contract Redline

Freelancers sign bad contracts because contract review is slow, expensive, and most people don’t know what to look for.

Contract Redline — AI contract risk analyser for freelancers
Role Designer & Developer
Year 2026
Type Claude API · FastAPI · React · Vercel
$300 per hour — what a lawyer charges to review what a freelancer needs reviewed in ten minutes. Most skip it entirely. That’s where they get hurt.

A missing kill clause means working for free when a client ghosts. A vague IP clause means surrendering work you didn’t intend to. The information to catch these exists — most freelancers just can’t access it.

Contract Redline runs a freelance contract through a three-stage AI pipeline and returns a severity-ranked report across the eight risk categories that actually matter in project-based work — with the verbatim clause and a specific suggested fix for every finding.

Paste a contract. Every finding includes five things — not just a flag.

Each result in the report surfaces: a verdict (FLAGGED / PARTIAL / CLEAR), a severity level (HIGH / MED / LOW), a plain-English explanation of the risk, the verbatim clause that triggered it, and a concrete suggested fix — what specifically to ask for in negotiation. Not a summary. Not a score. Actionable output.

Flagged — High

Kill Clause / Early Termination

No termination provision found. Client can end the engagement at any point with no obligation to pay for work completed.

Partial — Med

IP Ownership

Work-for-hire clause present but no carve-out for pre-existing tools or frameworks. Everything you bring to the project transfers on delivery.

Clear

Payment Terms

Net-15 payment terms with a 1.5% monthly late fee. Standard and enforceable.

Opinionated scope. Deliberate exclusions.

The eight categories cover the highest-frequency risks in project-based freelance work: Payment Terms, IP Ownership, Kill Clause & Early Termination, Scope & Revision Limits, Liability Cap, Non-Compete & Exclusivity, Indemnification, and Dispute Resolution.

NDA and non-solicitation were deliberately excluded from v1. NDA analysis requires understanding what’s actually confidential — which needs more context than a general-purpose tool can reliably provide. The disclaimer on every report is explicit: not legal advice, not tailored to any specific jurisdiction, and the operator accepts no liability for decisions made based on the output. It leads the footer of every result — not buried as fine print.

Three stages. One request. No streaming required.

01

Extraction — Claude Haiku via tools parameter

A single Haiku call extracts every legally significant clause and tags each one by type (payment, ip, termination, scope, liability, noncompete, dispute, indemnification, other). Structured output is enforced via the Anthropic SDK’s tools parameter — not JSON prompting. If no clauses are found at all, the tool returns a distinct error immediately rather than fabricating eight FLAGGED results for blank input.

structured output · no hallucinated results
02

Evaluation — 8 parallel asyncio tasks

Eight concurrent tasks evaluate each risk category simultaneously via asyncio.gather(return_exceptions=True). Each task only receives the clauses whose type matches that category — extraction tags gate evaluation, so evaluators never re-scan the full document. If a category has no matching clauses, the verdict is constructed deterministically with no LLM call. If a task fails, it returns an ERROR sentinel — one bad category never blanks the full report.

parallel · isolated failures · zero-clause short-circuit
03

Assembly — pure Python, no LLM

Results sorted HIGH → MED → LOW → CLEAR → ERROR. Flagged count and high-severity count computed. Report returned. No third AI call.

deterministic · no extra latency

Small calls that add up.

v1 is the pipeline. v2 is the product.

A working risk analyser. Built from real experience, not averaged legal standards.

The pipeline runs end-to-end: extraction, parallel evaluation, and deterministic assembly in one request. Structured output enforcement means the tool fails loudly on bad input rather than returning fabricated confidence. The scoring is opinionated because vague tools give vague advice — and freelancers negotiating a contract need something actionable, not a disclaimer.