> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://humanloop.com/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://humanloop.com/docs/_mcp/server.

You can compare Prompt versions interactively side-by-side to get a sense for how their behaviour differs; before then triggering more systematic [Evaluations](/docs/guides/evals/run-evaluation-ui).
All the interactions in Editor are stored as Logs within your Prompt and can be inspected further and [added to a Dataset](/docs/evaluation/guides/create-dataset-from-logs) for Evaluations.

### Prerequisites

* You already have a Prompt — if not, please follow our [Prompt creation](/docs/development/guides/create-prompt) guide first.

## Compare Prompt versions

In this example we will use a simple support agent Prompt that answers user queries about Humanloop's product and docs.

![Support agent base prompt.](/docs/_fern-img/fa2079118a5aeecb28ad405e48688f2ba4c5d9fd09a5fb76374648f8cf3ddbac.webp)

### Create a new version of your Prompt

Open your Prompt in the Editor. Under **Parameters**, change some details such as the choice of `Model`.
In this example, we change from `gpt-4o` to `gpt-4o-mini`.

![Support agent change model](/docs/_fern-img/d28ab6f720436f3a3c625a2063fe4d948689587c1aca7724a48675d03d434e65.webp)

Now save the new version of your Prompt by selecting the **Save** button in the top right and optionally provide a helpful version name (e.g. "Simple Support Agent v2") and/or description (e.g. "Changed model to gpt-4o-mini").

### Load up two versions of your Prompt in the Editor

To load up the previous version side-by-side, select the menu beside the Load button and select the **New panel** option (depending on your screen real-estate, you can add more than 2 panels).

![Support agent add panel](/docs/_fern-img/10f857b9eb3ac4f244a5bb0b7304afc0944876c47c36c48e6b83e24d313ab3f5.webp)

Then press the *Load* button in the new panel and select another version of your Prompt to compare.

![Support agent load version](/docs/_fern-img/00b742a7e4ef0d147412715edf8fe96b977d1c1bd7f58373e3eea1f345e20fd2.webp)

### Compare the outputs of both versions

Now you can run the same user messages through both models to compare their behaviours live, side-by-side.

![Support agent compare version](/docs/_fern-img/84a9f92ab0b1f2ffe1600c0acaa1892c27c9aee6ade4472869d0ee8664132b4b.webp)

## View Prompt diff for debugging

When debugging more complex Prompts, it's important to understand what changes were made between different versions. Humanloop provides a diff view to support this.

### Navigate to your Prompt dashboard

In the sidebar, select the **Dashboard** section under your Prompt file, where you will find a table of all your Prompt versions.

![Support agent dashboard](/docs/_fern-img/8444c525d38884d11b9390d122a7f77eacfdb6fe6b49bbce2d5798018bd2b2e3.webp)

### Select the versions to compare

In the table, select two rows you would like to see the changes between. Then select the **Show diff** button above the table.

![Support agent diff view](/docs/_fern-img/a14972000264b7e2d36a7183f4b3b824ceab3de85f18e7b68b904fa57afcc12a.webp)

1. In the comparison view, you'll see a diff that highlights the changes between the selected versions.
2. The diff shows additions in green and deletions in red. Modified content appears as a combination of red (for removed text) and green (for added text).
3. Use this view to understand how specific changes affect the output.

By following these steps, you can effectively compare different versions of your Prompts and iterate on your instructions to improve performance.