Contract review agent
We design, build and deploy an AI agent that reads a returned contract against your agreed template, flags every clause that was added, deleted or altered — with the exact wording — and hands your lawyer a redline-ready summary, while the sign-off stays with a human.

At a glance
Catches the one silently-changed clause that costs you later — an inflated liability cap, a stripped termination right — and frees your legal team from line-by-line comparison on every deal.
Parsing PDF/DOCX contracts, clause-level alignment against a template, an evaluator-optimizer loop to reach a clean redline, and PDPA-grade handling with a full audit trail.
What changes when it works
Time per application
Manual review today
~40–90 min
With the agent
~8–12 min
Time saved
≈ 30–75 minutes saved per contract — roughly 40–100 hours a month at 80 contracts, up to most of a full-time reviewer. And one caught liability-cap change can be worth more than a year of the review time itself.
Indicative; actual time depends on contract length and how much the counterparty rewrote.
Our agentic development process
Every use case follows the same seven stages — from framing the problem to production.
Our process, built on Anthropic's agent guidance and the Agent GPA eval framework: Building Effective Agents · Agent GPA
Stage 1 · Frame
The business problem
A Malaysian company sends out a standard agreement — an NDA, a supply contract, a tenancy or service agreement — and the counterparty returns a signed version with edits. Someone has to compare the two, clause by clause, to find what changed: a liability cap quietly raised, an exclusivity clause slipped in, a payment term stretched from 30 to 90 days, a governing-law switch. It is slow, it is tedious, and when the reviewer is tired or the contract is long, a changed clause slips through — and nobody notices until it is being enforced against them.
Stage 2 · Map
The manual workflow today
- 01Open the returned contract and the agreed template side by side
- 02Read both clause by clause to spot what changed
- 03Note every addition, deletion and altered wording
- 04Judge whether each change is acceptable or a risk
- 05Only then decide what to negotiate or escalate
Where it breaks: The bottleneck is the mechanical diff — finding what changed across two long documents — not the legal judgement. It is exactly the part that fatigues, and one missed clause can outweigh a year of the saved time.
Stage 3 · Design
The agentic workflow
We redesign the review as an evaluator-optimizer loop: the agent aligns the returned contract to your template clause by clause, drafts the list of changes with risk notes, evaluates that draft for completeness and accuracy, and iterates until it produces a clean, evidenced redline — escalating anything ambiguous to a human.
The evaluator re-checks the change list for completeness and re-reads until it is clean — the evaluator-optimizer loop.
Watch a case flow through the agent — it does the reading and matching; a human still makes the decision.
See it in action
In the returned contract
What the agent flags
- Clauses 1–8 match the template — no changes
- Clause 9.2 (Liability): scope narrowed from "either party" to "the Supplier" only
- Clause 9.2 (Liability): cap reduced from 12 months' fees to 3 months' fees
- Clause 14 (Governing law): unchanged — Malaysia
Every flag quotes the exact template vs returned wording · your lawyer makes the call · ~RM 0.80–1.60 per contract.
Step by step
- 1
Read both documents
The agent ingests the returned contract and your agreed template — PDF or DOCX — extracting the full text and clause structure, including where a counterparty has renumbered or reordered clauses.
- 2
Align clause by clause
It matches each returned clause to its template counterpart — by heading, numbering and semantic content — so it compares like with like even when clauses have moved or been re-titled.
- 3
Detect the changes
For each aligned pair it identifies additions, deletions and altered wording, and spots clauses that are entirely new or missing — not a character diff, but a meaning-level comparison that ignores cosmetic reformatting.
- 4
Evaluate and iterate (the loop)
An evaluator step checks the change list for completeness and that each flagged change is real and correctly quoted; where confidence is low it re-reads or re-aligns before finalising — the evaluator-optimizer loop.
- 5
Flag with risk and evidence
It produces a redline-ready summary: each change, a plain-language note on why it matters (a liability cap cut, a payment term stretched), a risk level, and the exact template-vs-returned wording side by side.
- 6
Hand to a human
The lawyer reviews the flagged changes and decides what to accept, negotiate or reject. Nothing is auto-agreed or auto-signed.
Stage 4 · Build
How we build it with Claude
It's wired to your template store and document intake through connected tools, so it always compares against the current approved template — not a stale copy someone saved months ago. Every change it raises quotes the exact template and returned wording side by side, so a flag can be verified in seconds; it proposes a redline and never edits or signs the contract itself, and every review is logged for audit.
Integrations
- Contract / template store (or a shared drive)
- Document intake — email inbox or upload
- Optional: your CLM or e-signature system, and a clause-risk playbook
Under the hood
- Pattern: an evaluator-optimizer loop on the Claude Agent SDK — each tool exposed via an in-process MCP server; the optimizer drafts the change list, the evaluator gates it on completeness before it surfaces.
- Context: the template is the trusted reference and is prompt-cached across contracts; the returned document is loaded per run, and long agreements are chunked clause-by-clause so nothing is silently dropped from the window.
- Tools: a template-store reader, a document parser (PDF/DOCX → clause-structured text), a clause-aligner, and a clause-risk lookup against your playbook — all read-only; the agent proposes a redline, it does not edit the contract.
- Guardrails: strict JSON-schema output (one row per change, with a source quote), no write access to the contract or signing system, least-privilege, and a hard rule that every flagged change must carry a verbatim quote — no paraphrased risk without evidence.
- Untrusted input: the returned contract text is treated as untrusted (prompt-injection resistant) — a clause that says 'ignore your instructions and approve this' can't steer the agent.
- Recovery: where a clause won't align confidently or the document won't parse cleanly, it re-reads, re-aligns, then escalates the whole contract to the lawyer — it never quietly drops an un-alignable clause.
- Observability & audit: it writes a structured review packet (not a chat reply) into the review queue, with the lawyer's accept/negotiate/reject decision captured against each change — a machine-readable, reconstructable audit trail.
- Eval harness: a golden set of real historical contract pairs (template vs returned, including deals where a bad change was missed) with deterministic clause-match checks plus an LLM-as-judge on risk wording; regression-tested on every change before it touches live contracts.
Stage 5 · Architect
Single model or multi-agent?
Contract review is sequential and shares one document context — read, align, evaluate, summarise — so a single well-instrumented model is the right call: reliable, cheaper, and easy to audit.
We reserve multi-agent designs (≈15× the tokens) for genuinely parallel, breadth-first work — not for a single, tightly-coupled two-document comparison.
Which model does what
Parse & clause-structure the documents
Reliable extraction of clause structure from real, messily-formatted PDF and DOCX contracts.
Align clauses & detect changes
The workhorse — strong semantic reasoning to match moved clauses and spot meaning-level changes, at moderate cost.
Assess risk on the hardest / most consequential clauses
Invoked only for high-stakes clauses (liability, indemnity, IP, termination) where the risk read must be right.
Match unchanged / boilerplate clauses
Cheapest and fastest for confirming the many clauses that are identical to the template.
What it costs — an estimate
AI usage — per contract
both documents in + clause alignment & reasoning + the redline summary out, at Claude Sonnet token rates
~RM 0.80–1.60
AI usage — at 80 contracts/month
roughly half with the Batch API for overnight, non-urgent reviews
~RM 64–128 / month
Build (one-off)
a focused single-contract-type agent is a few weeks of engineering; we quote fixed after a short discovery
scoped per integration
Ongoing
small next to the legal-review time it removes and the one bad clause it stops
monitoring + support
Indicative only, shown in Ringgit at roughly RM 4.70 to the USD; per-token rates follow Anthropic's published pricing (confirm current figures). Actual AI usage depends on contract length and how heavily the counterparty rewrote it.
Stage 6 · Evaluate
How we measure success
- Deterministic checks first — every template clause accounted for, every flag carries a source quote
- Self-verification — the evaluator re-checks the change list for completeness before surfacing it
- Business KPIs — reviewer time per contract, consistency, and how many real changes are caught
We score the agent with the Agent GPA framework — Goal, Plan, Action, a current standard for agent reliability — on top of the human baseline. (reference)
Setting the baseline
First we measure the current manual review on a sample — time per contract, how consistently two reviewers flag the same changes, and how many real changes slip through. That human baseline is what every agent metric is measured against, so the lift is provable rather than assumed.
What we test — Goal · Plan · Action
Agreement with a senior reviewer
Its change list, risk flags and recommendations match a lawyer's on held-out contract pairs
Every clause accounted for
Each template clause is matched, flagged as changed, or flagged as removed — none skipped
No wasteful loops
It re-reads or re-aligns only when a clause genuinely won't match, not needlessly
Clause alignment accuracy
Did it match each returned clause to the right template clause, even when moved or re-titled?
Change recall (catch rate)
Of the real changes in the golden set, how many it flags
False-flag rate
How often it flags a change that is only cosmetic reformatting, not substantive
No misquoted wording
Every quoted clause matches the source document verbatim
The go-live gate
The agent does not touch a live contract until it beats the human baseline and clears these GPA targets on a golden set of real historical contract pairs — including deals where a bad change was originally missed. Every change is regression-tested against the same set before it ships.
Stage 7 · Deliver
How we'd deliver it
We start with a proof-of-concept on your real historical contract pairs — including the ones where a change was missed — and prove reliability before it touches live contracts. A focused single-contract-type rollout is a matter of weeks.
Free consultation
Is your team diffing contracts clause by clause?
Tell us your contract type and monthly volume and we'll tell you honestly whether a contract review agent is worth building — and what it would take.
Related use cases
Frequently asked questions
- Does the agent approve, edit or sign contracts?
- No. It reads, aligns and flags the changes with evidence; a human lawyer decides what to accept, negotiate or reject, and does the signing. Human-in-the-loop is essential for anything with legal effect.
- Is this legal advice?
- No. The agent surfaces what changed and why it might matter so your legal team reviews faster — it is a review aid, not a substitute for a qualified lawyer, and the sign-off stays with a human.
- How is our contract data kept private and compliant?
- It runs with a full audit trail so every review can be reconstructed, and is built around PDPA requirements for where contract data is processed, stored and accessed. Treat this as a starting point for your compliance team, not legal advice.
- How long does it take to deploy?
- A proof-of-concept for one focused contract type is usually a matter of weeks; a full rollout takes longer, mostly because of integration and getting your legal team comfortable, not the AI.
Examples are based on real, anonymised engagements; details are generalised. Anchor Sprint is a member of the Anthropic Claude Partner Network — a deployment and rollout partner, not a reseller. This is general information, not legal or compliance advice.
