Originally published on gregale.dev. I build Gregale, so read this as a vendor's page. This post was written with AI assistance. Gregale can reverse what an AI agent…

Originally published on gregale.dev. I build Gregale, so read this as a vendor's page. This post was written with AI assistance. Gregale can reverse what an AI agent changed with one command. It keeps every write an agent makes for 7 days, and gregale mcp connection undo lists the agent's changes newest first, says what undoing each will do, and reverses them once you confirm.

That covers more than code: settings, scaling, variables, traffic splits, and the apps, crons, domains and databases the agent created or deleted. Undo an agent's changes gregale mcp connection list # find the agent's id gregale mcp connection undo --plan # show what undo would do, change nothing gregale mcp connection undo # the last 24 hours gregale mcp connection undo --since 2h gregale mcp connection undo --entry What undo puts back Deploys and rollbacks.

A deployment the agent started is cancelled while it builds; once it serves, the app goes back to the deployment that served before it. Promotions and traffic changes. Live deployments get back the exact traffic split they had. App settings and scaling, such as min_instances, ram_mb, idle_timeout_s, egress and CORS settings. Variables of the app and of its project's environments. Things the agent created, such as apps, crons, domains and Postgres databases, are removed.

An app is parked and can be restored for 7 days; a database can be undeleted for 7 days. Things the agent deleted come back: an app or database within its 7-day restore window, a cron or custom domain created again as it was. Undo runs through the same API as any other change, with your access, so it is validated the same way.

What it can't undo The plan says so, and why, before anything changes: a secret the agent set or removed (Gregale keeps no copy of a replaced secret, so set it again), an app's first deploy, an individual canary step, and a deleted bucket. If a person changed a resource after the agent did, undo leaves it alone unless you pass --force, so it never overwrites someone's later fix.

Source disclosure

This is a source-linked briefing. Read the original report from Dev Community .