Update Cursor Cloud Agent snapshot

Hi!

We’re trying to come up with a workflow where the snapshot for our cloud agents gets automatically updated when the dependency tree of our service changes (after dependency updates, for example). This way, we would have a fresh snapshot automatically for future agent runs.

Looking at the environment.json spec, I noticed there is this undocumented (in the sense of not present in Cursor’s public docs) flag agentCanUpdateSnapshot.

From what I’ve read so far, updating the snapshot requires re-running the install script from the agent setup UI (rebuilding the environment), creating a new snapshot from there and setting the new snapshot ID in environment.json.

Does the existence of the flag I mentioned above somehow hint to an alternative, in other words a way for a Cloud Agent to update the snapshot by itself ?

Also happy to hear if anyone else has found a solution to this problem!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.