- MATCH
- MISMATCH
- ERROR
- HUMAN
Short answer
How can I check if minification broke my code?
Your AI compares the minified output against your original source files to identify missing logic or attributes. This process catches errors where minifiers strip necessary code. You'll see exactly where the files diverge.
Where every issue lands.
The outcomes of a comparison
The AI processes the files and organizes the results into these categories.
MATCH
Identical logic
The AI confirms the minified file preserves all original functionality. You get a clean bill of health for your build.
MISMATCH
Attribute loss
The AI flags specific attributes or properties that disappeared during minification. You'll know exactly what was stripped.
ERROR
Broken logic
The AI detects structural changes that alter how the code actually runs. This highlights critical bugs introduced by the build process.
HUMAN
Manual review needed
The AI identifies ambiguous differences that require a developer to decide if the change is intentional. You decide if the diff is a bug or a feature.
The workflow
What your AI does when the files arrive.
Your agent uses the Text Diff Engine to perform a deep structural comparison.
Ingest files
Your agent pulls the original source code and the minified production file into its context.
compare_textsRun comparison
The AI executes a text comparison to find every character-level and structural difference.
compare_textsAnalyze diffs
The agent interprets the differences to see if they represent lost data or just whitespace removal.
compare_textsReport findings
The AI presents a clear list of what stayed the same and what changed.
compare_texts
Try it
Copy these to start.
Use these prompts to kick off a verification task.
Starting points
Swap the file names or repository paths with your actual project files.
Diff Library Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_DMCIFplCMI3ua9QqBPl0eJqMbavy6e2NunWJFUXf/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — Diff Library capabilities are ready to use.
{
"mcpServers": {
"text-diff-engine-mcp": {
"url": "https://edge.vinkius.com/vk_preview_DMCIFplCMI3ua9QqBPl0eJqMbavy6e2NunWJFUXf/mcp"
}
}
}Compare the minified file in /dist/app.min.js with the source in /src/app.js.
Check if any critical attributes were lost when minifying the main.css file.
Compare the contents of my production build against the original source in the current repo.
Verify that the minified version of index.html still contains all the original data attributes.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Text Diff Engine once, then ask.
Just link the MCP to your client. Your credentials stay encrypted, and you can start comparing files immediately.
Connect Text Diff Engine to your AIFAQ
How the task behaves
- 01
Can the AI fix the minification errors automatically?
No. The AI identifies the discrepancies, but you must manually fix the minification settings or source code.
- 02
Does the AI delete my original source files?
No. The AI only reads the files to perform the comparison. It has no permission to modify or delete your files.
- 03
Will it flag whitespace changes as errors?
The AI is designed to distinguish between meaningful code changes and simple whitespace removal, but you can ask it to be more strict.
- 04
Can I use this to compare two different versions of a file?
Yes. You can provide any two pieces of text or files for the AI to compare.
- 05
Does it work with files in my local folder?
Yes, as long as your AI client has access to your local file system or the files are provided in the chat context.
More questions about Text Diff Engine? The Connector page answers them. See everything the Text Diff Engine Connector can do
Connect Diff Library to Claude, Cursor, ChatGPT & more
