Skip to content
mentoor

Topic 3 of 5 · 4 min read

Versioning prompts with a change log

Goal: Keep a change log for a template and use it to roll back a change that made results worse.

Give every change to a template a version number and a log line, so you can see what changed, why, and go back if the new version is worse. Without that, an edit that feels like an improvement can silently ruin a template that worked.

Check yourself · 1 of 3

What is the main reason to keep old versions of a prompt template?

Choose one answer

Why it matters

Prompts are fragile. Adding one sentence can change the length, tone or structure of every answer. If you edit the saved text in place, the old version is gone. Two weeks later the results look worse, and nobody remembers what was different. A change log turns that mystery into a quick check.

How to do it

Keep a simple table next to each template. A document, a spreadsheet or a notes page is enough. Each row records one change:

  1. Version. v1, v2, v3. Increase it on every edit, even a tiny one.
  2. Date. The day you changed it.
  3. What changed. One line, specific. "Added a 100-word limit" beats "improved".
  4. Why. The problem you were fixing. "Answers ran too long for the newsletter."
  5. Result. What happened when you ran the new version on your test inputs. "5 of 5 under 100 words, but two lost the call to action."
  6. Who. The person who made the change.

Keep the old versions' full text, not just the latest. You cannot roll back to a sentence you did not save.

Change one thing at a time. If you add a limit, change the tone and swap the example in one edit, you cannot tell which change helped or hurt.

Before and after

Before: The template says "Summarise this in 3 bullets." Someone edits it to add five new rules. Results get worse. No one knows which rule caused it, and the old text is lost.

After: The log shows v4 added a rule about "formal British English" on 3 November. The result column says "bullets now often exceed 20 words." The team restores v3, then re-adds rules one at a time.

What goes wrong

  • Editing in place. The fix feels quick, but there is nothing to return to.
  • Log lines like "tweaks". They record that something happened, not what, so they cannot help you.
  • Changing several things at once. You learn only that the combination was better or worse.
  • No result column. A change is only an improvement if the output got better. Write down what you saw, even briefly.
  • Rolling back too late. If the log shows the problem started with a version, go back to the previous one at once, then investigate.

Tools for developers, such as Langfuse prompt management, store versions for you and let you point your app at a chosen one. For everyday use a table does the same job.

Examples

A change log table

Version Date Change Why Result
v1 3 Nov First version Weekly update Works, a bit long
v2 10 Nov Added a 100-word limit Too long for newsletter 5 of 5 under 100 words
v3 17 Nov Added formal tone Client request Bullets grew long; restored v2

Rolling back

Results got worse after 17 November. The log shows v3 was the only change that week and the result column already says bullets grew long. Restore the text of v2, mark v3 as rejected with the reason, and carry on.

Key points

  • Give every edit a version number and keep the full text of old versions.
  • Each log line records the date, what changed, why, and what happened to the results.
  • Change one thing per version so you know which change helped or hurt.
  • Specific log lines such as "added a 100-word limit" are useful; "tweaks" is not.
  • With a log you can restore the last good version in minutes instead of guessing.

Common mistakes

  • Editing the saved prompt in place and losing the old version.
  • Writing vague log lines such as "improved" or "tweaks".
  • Changing several things in one version.
  • Skipping the result column, so no one knows if a change helped.

Check yourself · 2 of 3

Which change log line is the most useful?

Choose one answer

Check yourself · 3 of 3

You changed the tone, added a word limit and swapped the example in one edit, and results got worse. What is the best next step?

Choose one answer

Practice items, not counted towards your mastery.

Start here