Versioning and Rollback
almyty tracks versions of your agent pipelines, letting you save snapshots, compare changes, and roll back to a previous configuration.
In the UI
Saving a Version
- Open the agent in the builder
- Click the Versions tab in the agent detail header
- Click Save Version
- Enter a changelog describing what changed
- Click Confirm — the snapshot is stored with an auto-incremented version number
Viewing Version History
- Open the agent detail page
- Click the Versions tab
- The version list shows each snapshot with its version number, changelog, author, and timestamp
Rolling Back
- Open the Versions tab
- Find the version you want to restore
- Click Rollback next to that version
- Confirm the rollback — the agent’s pipeline is replaced with the snapshot
- The rollback is recorded in the audit log as a separate event
Rolling back does not delete newer versions. You can roll forward to any later version at any time.
Via the API
Save a Version
curl -X POST /agents/{id}/versions \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"changelog": "Added error handling branch and retry logic"
}'Response:
{
"success": true,
"data": {
"versionIndex": 3,
"changelog": "Added error handling branch and retry logic",
"createdAt": "2026-03-20T14:30:00Z",
"pipeline": { "..." }
}
}List Versions
curl /agents/{id}/versions \
-H "Authorization: Bearer $TOKEN"Returns an array of version snapshots:
| Field | Type | Description |
|---|---|---|
versionIndex | number | Sequential version number |
changelog | string | Description of changes |
createdAt | string | ISO 8601 timestamp |
pipeline | object | Full pipeline snapshot at that version |
Roll Back
curl -X POST /agents/{id}/versions/{versionIndex}/rollback \
-H "Authorization: Bearer $TOKEN"Audit Log
Every agent change is recorded in the audit log:
curl /agents/{id}/audit-log \
-H "Authorization: Bearer $TOKEN"| Event | Description |
|---|---|
created | Agent was created |
updated | Pipeline or metadata was modified |
activated | Agent status changed to active |
deactivated | Agent status changed to inactive |
version_saved | A version snapshot was created |
rolled_back | Pipeline was restored from a previous version |
invoked | Agent was executed |
Each entry includes the timestamp, the user who performed the action, and relevant metadata.
Best Practices
- Save versions before major changes — create a snapshot before restructuring the pipeline
- Write meaningful changelogs — future you will thank present you
- Test after rollback — verify the agent works correctly with the restored pipeline
- Review the audit log — understand how an agent evolved over time