Documentation Index
Fetch the complete documentation index at: https://docs.mutagent.io/llms.txt
Use this file to discover all available pages before exploring further.
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
promptGroupId(UUID) that links all versions together - Versions use semantic versioning (e.g.,
1.0.0,1.1.0,2.0.0) - The
isLatestflag marks which version is the active version - On first creation,
isLatestis automatically set totrueif no other version with the same name exists - When updating a prompt, the version number is automatically incremented
- Previous versions are preserved indefinitely for comparison and rollback
The
isLatest flag is automatically managed. When you create the first version of a prompt, it is marked as latest. When you create a new version and mark it as latest, the previous latest version is automatically unflagged.Create New Version
When you update a prompt’s content, create a new version to preserve history:Version History
Retrieve prompts filtered by version or latest flag:Compare Versions
Via Dashboard
- Open a prompt in the MutagenT dashboard at app.mutagent.io
- 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
Best Practices
Use semantic versioning
Use semantic versioning
Follow semantic versioning conventions:
- Patch (
1.0.1): Minor wording fixes, typo corrections - Minor (
1.1.0): Added instructions, new variable support - Major (
2.0.0): Structural changes, different output format
Test before deploying
Test before deploying
Run evaluations on new versions before setting as active:
Document changes
Document changes
Use descriptions and metadata to note what changed and why:
Use isLatest for deployment control
Use isLatest for deployment control
The
isLatest flag controls which version is active:- Only one version per prompt name can be
isLatest: true - Setting a new version as latest automatically unflags the previous one
- Use this to implement blue-green deployments for prompts