How Can an AI Agent List Only What Changed Between Two Rule Texts?
Build an AI agent in Gumloop that reads an old and a new rule or policy text you paste and lists only the changed sentences, old wording beside new.
Paste the old and new text into an AI agent built in Gumloop and it lists only the sentences that changed, each as the old wording and the new wording on two lines, in order. It ends with questions for you to decide. Its instructions bar a legal reading and tell it to read only your pasted text.
Put the old text in one window and the new text in another, side by side, and your eye goes down the left, then across to the right, looking for the line that moved. A changed word can sit in a sentence you've already read twice.
The text reaches you from wherever you already get it: a trade association's summary, your counsel's note, your own policy document. You paste both versions into the AI agent, and its list ends with a line headed For you to decide, which turns each change into a question.
What comes back when the two texts differ?
One numbered entry for each changed sentence, then the questions. This sample is invented and cites no real rule:
1. Old: Records are kept until the file is closed. New: Records are kept until the file is closed and the review is complete. For you to decide: 1. Which of our own documents use the old wording?
The list answers none of the questions, and one about what a change means for you is one for your own counsel. A sentence that's new has no old counterpart, so its Old line says it isn't in the old text. A sentence that's gone gets the same in reverse. Sentences that match are left out of the list.
If you're not sure your company lets you paste a counsel's note or a policy into an AI agent, read Can I Use an AI Agent at Work When My Company Restricts the Data I Can Connect? first. If the new text is a vendor's renewal terms, use An AI Agent Can Audit Vendor Agreements Before They Renew to read one agreement at a time and quote the clauses you named.
What do you paste into the instructions for the two-text comparison?
You compare two versions of a text for me, [YOUR NAME], [YOUR ROLE] at [COMPANY]. I'll paste the old text under the label "Old text" and the new text under "New text". Read only what I paste. Open no pages, search for nothing, and cite no law, rule, agency or other authority. Go through the new text from the top. For every sentence that is new or worded differently from the old text, number it and write the old sentence on one line beginning "Old:" and the new sentence on the next beginning "New:", both quoted exactly. If the new sentence has no old counterpart, write "Old: not in the old text". After that, continue the numbering with each old sentence missing from the new text, in the order it appears in the old text, with "New: not in the new text". Leave out sentences that match. Don't paraphrase or judge any change, and don't say whether I'm covered, compliant or exposed. End with one line that begins "For you to decide:". For each change, in order, give one question asking what the change puts in front of me, such as which of my own documents use the old wording. Write each question so it doesn't hint at the answer, and answer none of them. If the two texts match, write "No sentence changed."
How do you build the two-text comparison in Gumloop?
- 01
Copy each version into its own window and label it.
Label one window Old text and the other New text. Copy each as plain text from where you get it: the association's summary, your counsel's note, your own policy document. Match like with like, two versions of the same document or two versions of the same summary.
- 02
Start a new AI agent with the block in its instructions.
In Gumloop, start a new AI agent. On the tab named Agent, paste the block above into the instructions box, add your name, role and company, and press Save. Checked on 2026-11-09 against Gumloop's AI agent builder page.
- 03
Switch off Web Search, Web Fetch, the browser and Edit Own Instructions, and hold Reflections for review.
In Abilities, switch off Web Search and Web Fetch, and add no connector. If the Browser section shows the browser on, turn it off there. Then turn off Edit Own Instructions, beneath the instructions box. With it on, you can tell the AI agent in chat to update its instructions. Next, open Reflections on the AI agent's Performance page. If it's on, turn it off or set Apply Suggestions to Review Queue, which holds each suggestion until you accept it. Checked on 2026-11-11 against Gumloop's AI agent builder page, Gumloop's AI agent browser page and Gumloop's Reflections page.
- 04
Compare the last two versions of your own policy.
Take the last revision and the one before it, two versions whose edits you remember. Type "Old text" in the message bar and paste the old version, then "New text" and the new one. Count the changes it lists against the edits you remember. Then change one word in the new version and paste both again. That sentence should be on the list.
I am an ambassador for Gumloop. Code VENTURENYC takes 20% off your first month.
Do the Old and New lines match your texts word for word?
Every Old and New line is a quotation. Take the last entry on the list and read both lines against your two texts. A line that isn't there as written was reworded, and the block's rule about quoting exactly is the sentence to reread.
Look through the For you to decide line for the words covered, compliant and exposed. A question that uses one has broken the block's rule against a legal reading.
Scan one section of each text side by side and tick every difference against the list.
If you'd rather label your pastes differently, change the two label names in the box.
Frequently asked questions
What if I only have a summary of the old text?
Then you've got two different kinds of text. Ask the source for the old full text, or find a summary of the new version from the same source, and compare like with like.
Can it tell me which changes matter?
The block bars that. It lists the changes and the questions each puts in front of you, and you'll do the ranking.
Does the order of the list follow the new text?
Changed and new sentences follow the new text from the top. Sentences that are gone follow after them, in the old text's order.