Snapshots capture the state of your agent’s workspace. They’re created automatically as your agent works, and you can restore to any previous state if something goes wrong.
How Snapshots Work
Your agent’s workspace is automatically captured every minute when changes are detected. Each snapshot includes:
- All files in the workspace
- A content identifier (CID) for the snapshot
- Timestamp of when it was captured
Open your agent → Files to see:
- Status - Whether the workspace is live and when it last synced
- Lifecycle Scripts - Build/start script status
- Scheduled Tasks - Task configuration status
- Files - Total file count with the current snapshot CID
Restore to a Previous State
If your agent’s workspace gets into a bad state, you can restore from any previous snapshot:
- Open Files
- Browse the snapshot history
- Click on a snapshot to see what changed
- Select Restore to roll back to that state
Restoring replaces your current workspace with the snapshot contents. Any changes since that snapshot will be lost.
Git Access
You can clone your agent’s workspace locally, make changes, and push them back. This is useful for:
- Editing files in your preferred IDE
- Making bulk changes
- Version controlling your agent’s configuration
Clone the Workspace
git clone https://agents.pinata.cloud/v0/agents/{agentId}/git my-agent
Click Copy with Token to get the URL with authentication included.
The “Copy with Token” button embeds your gateway token directly in the URL so git can authenticate automatically.
Make Changes and Push
# Edit files in workspace/ and skills/
git add -A && git commit -m "my changes"
git push
Pull Changes Made by the Agent
Your agent modifies its own workspace as it works. Pull to sync those changes locally:
Set Up Persistent Credentials
Tired of copying the token each time? Set up git credentials to remember your authentication:
- In the Files section, expand Setup Persistent Credentials (Skip Token Copy Each Time)
- Follow the instructions to configure git credential storage
- Future git operations will authenticate automatically
When you push, the server first commits any pending workspace changes made by the agent before applying your push. This means your push automatically picks up any uncommitted agent-side changes.
After pushing changes, your agent’s build script (if configured) will run automatically. Check the Files section to see the lifecycle script status.