Skip to main content
Every write is kept as an immutable version. The artifact points at the latest one, while older versions stay addressable for history, diffs, and restores.

List versions

Read version content

Read the latest source, or a specific version number:
The REST route returns raw source text with helpful headers:

Compare versions

Restore a version

Restoring never mutates old versions. It creates a new head version whose content comes from the version you selected.

Retention

How long version history is kept depends on your plan:

A reliable agent loop

For agents that update the same artifact repeatedly:
1

Resolve the artifact

Look it up by path with artifacts path artifact.
2

Read the current state

Fetch the latest metadata and version before writing.
3

Guard concurrent writes

Send expectedLatestVersion through REST or MCP when other writers may be active.
4

Describe the change

Include a concise changelog explaining why the content changed.
5

Verify before sharing

Run a diff before announcing a major update.