Glossary

Agent rollback

Returning the data an AI agent changed to its state before a run, using a recorded history of what the agent created, edited, moved or deleted.

Agent rollback is returning the data an AI agent changed to the state it was in before a run, after the agent has done something you did not want. It relies on a recorded history of the agent’s writes, such as snapshots or version history, so you can see what changed, compare it with an earlier point in time and restore what was lost. Rollback is what makes it reasonable to give an agent write access to real data.

Why agents need rollback

An AI agent with write access can rename hundreds of files, move them into the wrong folders or delete a customer’s documents in a single run. Most teams respond by limiting the agent: confirmation prompts on every write, a draft mode where a person applies each change, or no write access at all. Each of these caps what the agent is worth, which is the argument in read-only agents are a dead end.

Rollback changes the question from whether you trust the agent enough to act to whether you can recover if it gets something wrong. Human in the loop review still suits high-stakes actions, but it does not scale to every write; human-in-the-loop doesn’t scale, rollback does makes that case in more detail.

How agent rollback works

Rollback needs three things. The first is a record of state over time: a filesystem snapshot, a version history per file, or a log of each operation. The second is a way to compare two points, so you can see what one run renamed, moved, edited or deleted before changing anything. The third is a way to restore, either the whole workspace to a moment or individual items to their earlier state.

Restoring individual items is usually more useful. If an agent ran at 10:00 and a colleague did real work at 10:30, reverting the whole workspace to 09:59 throws away both. That is the main difference from a nightly backup, covered in snapshot vs backup. Point-in-time recovery applies the same idea to databases, and soft delete keeps deleted items recoverable for a period instead of removing them at once.

Rollback, checkpoints and sandboxes

Several related ideas get called rollback. Checkpointing saves the agent’s own execution state, such as its plan and messages, so a run can resume or rewind; it does not restore the data the agent changed. Durable execution replays workflow steps after a failure. An agent sandbox isolates the machine the agent’s code runs on. Agent rollback concerns the shared data the agent writes to: files, folders, notes and records that people rely on after the run ends.

What rollback cannot undo

Rollback reverses changes inside the system that recorded them. It cannot recall an email the agent sent, refund a payment it processed or reverse a call to a third-party API. Those side effects need their own controls: agent permissions and guardrails that limit which tools an agent may call, approval for irreversible actions, and an audit trail. Our guide to what can’t be undone lists the side effects to plan for, and the recoverability checklist turns them into design steps.

Agent rollback in Exabase

Exabase handles rollback at the data layer through agent undo, built on filesystem snapshotting in Bases. Snapshotting is off by default and enabled per Base with the snapshot settings endpoint. Once it is on, Exabase records the name, description, kind, icon, folder and deletion state of every resource and space in the Base, starting from each resource’s next change.

To review a run, pass a snapshotAt timestamp to the resource filter endpoint and compare the Base as it was before the run with how it is now, including resources that have since been deleted. Records are hourly for the last 24 hours and six-hourly up to seven days. Deleted resources stay in the bin for 30 days and can be restored with the recover endpoint or through snapshot history. The filesystem snapshotting guide covers the details.

Snapshots record metadata rather than file content, and notes keep their own content history. Each tenant’s Base is versioned independently, and snapshotting is included on paid plans at no extra cost. Exabase versions what the agent changes inside the Base and does not run the agent itself; Exabase vs E2B covers that split. The agent context versioning use case shows the pattern in practice.

FAQs

What is the difference between agent rollback and agent undo?

They describe the same goal from two sides. Agent undo is the outcome a user sees, and rollback is the mechanism of returning data to an earlier recorded state.

Can you roll back an AI agent’s actions automatically?

Partly. Changes inside a versioned system can be inspected and restored, but deciding what to restore usually needs a person or a rule, because one run can mix good and bad changes. Actions outside the system, such as sent emails, cannot be rolled back.

Is agent rollback the same as restoring a backup?

No. Restoring a backup returns a whole system to the time of the backup and discards later work. Rollback works from frequent snapshots or per-item history, so you can restore only what one run changed.

Does rollback replace human review?

It reduces how much review you need. Keep approval for irreversible actions such as payments or customer emails, and rely on rollback for changes to data you can recover.

How far back can Exabase roll back?

Up to seven days, with hourly records for the last 24 hours and six-hourly records after that. You can set a shorter retention period, and deleted resources stay recoverable from the bin for 30 days.

Related pages: Filesystem snapshot, Point-in-time recovery, Version history, Soft delete, Checkpointing, Snapshot vs backup, Agent undo, Agent context versioning, Undo is the most important agent feature nobody built, Best AI agent sandboxes, Copy-on-write, Agent file system.

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.