Prompt Diff
Diff two prompt versions line by line.
About this tool
Paste the old prompt and the new prompt and see which lines changed. Unchanged lines are shown with two spaces, removed lines start with -, and added lines start with +. It compares line n against line n, so it is best for edits within lines.
How to use
How it works
The two texts are split into lines and compared position by position. When a line differs, the old one is shown with - and the new one with +. Lines past the end of the shorter text appear as pure additions or removals. If everything is the same the output is (identical).
Worked example
A tightened instruction and a new line
- Input
- Old: You are a tutor. Be concise. Use examples. New: You are a tutor. Be detailed. Use examples. End with a quiz.
- Output
- You are a tutor. - Be concise. + Be detailed. Use examples. + End with a quiz.
- Walkthrough
- Line 2 changed from concise to detailed, and the quiz line was added at the end.
Limitations
- Not a smart diff: inserting a line near the top makes every later line look changed.
- No word-level highlighting inside a changed line.
- Whitespace differences count as changes.
Questions
How do I compare two prompts?
What do - and + mean?
Why is every line after my insertion marked changed?
Is there a word-level diff?
Features
- Line-by-line
- - and + markers
- Local only
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
TensorFlow 2.0 Complete Course
freeCodeCamp.org
Practical ML stack context next to AI utilities.
Watch on YouTubeBig-O Notation in 100 Seconds
Fireship
Complexity intuition when estimating training/inference cost.
Watch on YouTube
- Data Index
Math is Fun
Stats primers when reading ML evaluation outputs.
- OpenAI Research
OpenAI
Research notes for people exploring AI tooling trends.