stolon

Guide

Undo what an agent wrote

Every past version stays readable, and a branch can be put back to any moment. Cheapest first.

1. It worked on its own branch: drop it

psql "postgresql://app:<password>@db.stolondb.com/acme.main" -c 'DROP DATABASE "agent-9"'

main never saw any of it (review guide).

2. See what it was before

Read any table, on any branch, as it was at a moment:

SELECT * FROM accounts FOR SYSTEM_TIME AS OF '2026-09-26 19:09:27+00' ORDER BY id;

Unix seconds work too: AS OF 1790449767.

3. Put the branch back to a moment

In the console's Time Machine, choose Restore at the moment. It keeps the present as a branch first, so the restore can be undone; a dropped table comes back with its rows. The history guide walks through it.

4. On MCP: checkout

Over MCP, checkout to an earlier version is undo; the line it leaves stays readable.