Prompt Versioning
Every prompt in MutagenT has full version history, allowing you to track changes, compare versions, and rollback when needed. Version control ensures you never lose a working prompt and can always trace how your prompts evolved.How Versioning Works
- Each prompt has a
promptGroupIdthat links all versions together currentVersionindicates the active version number- Creating a new version increments the version number automatically
- Previous versions are preserved indefinitely for comparison and rollback
- Version history includes timestamps and metadata for auditing
Create New Version
When you update a prompt’s content, create a new version to preserve history:Version History
Retrieve the complete history of a prompt to see all changes over time:Compare Versions
Via Dashboard
- Open a prompt in the MutagenT dashboard
- Click Version History in the sidebar
- Select two versions to compare
- View side-by-side diff of changes
- See evaluation scores for each version (if available)
Via SDK
Rollback to Previous Version
If a new version causes issues, rollback to a known working version:Best Practices
Version on significant changes
Version on significant changes
Create versions for meaningful changes that affect behavior:
- Changes to instructions or tone
- Adding/removing sections
- Structural reorganization
- Typo fixes (update in place)
- Whitespace changes
Test before deploying
Test before deploying
Run evaluations on new versions before setting as active:
Document changes
Document changes
Use descriptions to note what changed and why:
Use evaluation gates
Use evaluation gates
Set minimum scores that new versions must meet:
- Prevents regressions from being deployed
- Automated quality assurance
- Tracks improvement over time
Version States
| State | Description | Can Deploy? |
|---|---|---|
draft | Work in progress | No |
tested | Passed evaluation | Yes |
published | Active in production | Yes (current) |
archived | No longer in use | No |