• DIFFS
  • HISTORY
  • ANALYSIS
  • HUMAN

How to compare legislative statute versions with your AI

Connect OpenLaws to your AI client to track legislative changes. Your agent handles the version history and redlining so you can focus on the legal implications.

Ask AI about this page

Short answer

How can I compare different versions of a statute using AI?

Your AI uses OpenLaws to pull specific historical versions of a federal law and generate a redline comparison between them. This shows you exactly what text was added, removed, or modified. You'll get a clear view of the legislative evolution through the following breakdown.

The outcomes

What you get from the comparison

The AI processes the raw statute data into actionable insights.

DIFFS

Redline comparisons

The AI generates a side-by-side view of text changes. You see exactly where words were swapped or deleted.

HISTORY

Statute timelines

The agent pulls the full chronological history of a law. You can see every version that has existed.

ANALYSIS

Impact summaries

Your AI interprets the redlines to explain how a change affects the meaning of the law. You get the context behind the edits.

HUMAN

Legal verification

The AI provides the raw diffs, but you must verify the legal weight of the changes. You remain the final authority on the law's application.

The workflow

What your AI does when the request arrives.

The AI moves from finding the right law to highlighting the specific changes.

  1. Locate the law

    The agent searches for the specific federal statute you need and identifies all available historical versions.

    get_statute_history
  2. Select versions

    You tell the AI which two points in time you want to compare, and it prepares the data for comparison.

    get_statute_history
  3. Generate redlines

    The AI runs a direct comparison between the selected versions to find every textual deviation.

    get_redline_comparison
  4. Summarize changes

    The agent presents the redlined differences in a readable format, highlighting the most significant shifts in language.

    get_redline_comparison

Try it

Copy these to start.

Use these prompts to trigger the comparison workflow immediately.

Starting points

Swap the bracketed text for the specific statute or year you are researching.

OpenLaws Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_9lJiAbUmMMfe0J30gi6K1hWuX9NA2fO2s1RmCda0/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — OpenLaws capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "openlaws-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_9lJiAbUmMMfe0J30gi6K1hWuX9NA2fO2s1RmCda0/mcp"
    }
  }
}
Copy into chat04
  • Get the history for [Statute Name] and show me how it has changed.

  • Compare the version of [Statute Name] from [Year] with the current version.

  • Show me a redline comparison between the [Year] and [Year] versions of [Statute Name].

  • What are the main differences between the original [Statute Name] and the version passed in [Year]?

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect OpenLaws once, then ask.

Click the link to connect the MCP to your client. Your credentials stay encrypted, and you can start asking questions right away.

Connect OpenLaws to your AI

FAQ

How this task behaves

  • 01

    Can the AI change the text of the statute?

    No. The AI only reads and compares existing legal text. It cannot modify the actual statute.

  • 02

    Does the AI provide legal advice?

    No. The AI provides redline comparisons and summaries of text changes. You must perform your own legal analysis.

  • 03

    Can I compare state laws with this?

    No. This specific connector is built for federal statutes.

  • 04

    Will the AI remember the history of a law I asked about earlier?

    Yes, as long as it is within your current chat session, your agent can reference previous versions you discussed.

  • 05

    Can the AI generate a PDF of the redline?

    No. The AI provides the redline comparison as text within your chat interface.

  • More questions about OpenLaws? The Connector page answers them. See everything the OpenLaws Connector can do

Connect OpenLaws to Claude, Cursor, ChatGPT & more