<?xml version="1.0" encoding="UTF-8"?><oembed><type>video</type><version>1.0</version><html>&lt;iframe src=&quot;https://www.loom.com/embed/3fd7a3cfa7f5461b982ff799f49dc817&quot; frameborder=&quot;0&quot; width=&quot;1728&quot; height=&quot;1296&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</html><height>1296</height><width>1728</width><provider_name>Loom</provider_name><provider_url>https://www.loom.com</provider_url><thumbnail_height>1296</thumbnail_height><thumbnail_width>1728</thumbnail_width><thumbnail_url>https://cdn.loom.com/sessions/thumbnails/3fd7a3cfa7f5461b982ff799f49dc817-9a1d40563f91cfa4.gif</thumbnail_url><duration>390.435</duration><title>Preventing AI Agent State Drift with Rewind</title><description>This Loom explains how Rahul Balakanti’s Rewind Python SDK mitigates state drift in AI coding agents by checkpointing memory and filesystem changes for safe rollbacks. He describes using a Linux container and overlay FS stacking so developers can add a few lines of code to automatically revert when agent commands fail, even for non-text data like databases. In a demo migration script, the agent fails verification twice, and Rewind rolls back to restore the database and supplies patch notes so it can succeed without restarting. He says the $1000 MediGrant would help expand distribution and speed development, especially under strict free tool rate limits.</description></oembed>