How to Undo AI-Generated Website Changes: Version History and Rollbacks
When an AI agent changes the wrong thing, how do you put it back? Git, deploy rollbacks and CMS content history each fix different mistakes. What to look for, and a 15-minute rollback drill.
Aditya Kadam
Garchi CMS
You asked an agent to tighten the homepage hero. It did, and it also dropped the line about the free trial needing a card. Or it updated three FAQ answers when you asked for one. Or a teammate's agent rewrote a page you'd finished last week.
AI agents make content changes cheap, which is the point. They also make mistakes cheap to produce. The question that decides whether your team will trust an agent with real content is simple: when it gets something wrong, how do you put it back?
This guide covers the three kinds of history your site has, which one fixes which mistake, and how to rehearse a rollback before you need one.
Three kinds of history, three kinds of mistake
| Layer | What it records | Fixes | Won't fix |
|---|---|---|---|
| Git | Changes to your code files | A broken component, a bad route, a wrong config | Text that lives in your CMS |
| Deployment rollback | Earlier builds of your app | A release that broke the site | Content edits made after that build |
| CMS content history | Changes to pages, sections and items | A wrong headline, a deleted caveat, a bad FAQ answer | Bugs in your code |
Reverting a Git commit won't bring back a paragraph stored in your CMS. Restoring a CMS article won't repair a broken component. Before you reach for a fix, work out which layer holds the mistake.
If your content still lives in code, you only have Git. That works until a non-developer, or an agent acting for one, needs to undo a copy change. Moving content into a CMS gives it a history of its own.
A content rollback, step by step
Take the hero example. An agent shortened the hero and removed the sentence "Card required for the free trial."
- A reviewer notices the missing sentence in the draft.
- They open the page's history and find the change, with a timestamp and a label showing who made it.
- They restore the earlier version of the page.
- They compare the restored draft with the live page to confirm nothing else changed.
- They make the intended edit by hand and publish.
The same steps work when the change has already gone live: the final publish replaces the live version. Restoring puts content back into a known state, and publishing that state stays a deliberate act.
What a useful history shows you
A Restore button alone isn't enough. To trust a rollback, you need four things for each change:
- Which object changed: the page, template or item.
- When it changed.
- Who or what changed it, ideally down to which AI client.
- What it looked like before.
Agents add one more need. A single instruction such as "refresh the pricing story" can touch a page, two FAQ items and a template in one session. Restoring one of those objects can leave the site inconsistent. You want to see the session as a group and undo it as a group, with a check that you won't overwrite someone's newer work along the way.
What Garchi CMS provides
We build Garchi. Here's what it does today, with the limits stated.
Restore points on every plan. Changes to pages, section templates and data items leave restore points for 30 days. Each one is labelled with who made it. You restore from the content history in the dashboard. Agents connected over MCP can't restore anything themselves, so the decision to roll back stays with a person.
AI agent activity and session recovery on Pro and above. The Agent activity view shows what connected AI agents changed across a space, grouped into sessions of related calls. Each session names the AI client, such as Claude, and the connection it used, lists what changed, and tells you which changes have restore points and which can't be reverted. You can restore the supported changes from a session together, and Garchi checks first that nothing newer would be overwritten.
Drafts as the first line of defence. Agent changes land as drafts, and your site only shows published content. Review catches many mistakes before history matters.
What it can't undo:
- A social post already published to LinkedIn, Instagram or a Facebook Page. Remove or correct it on the network.
- Code changes and deployments. Use Git and your host's rollback.
- Changes in other services your site connects to.
- Anything older than the 30-day window.
Run a rollback drill before you need one
Fire drills work because people rehearse before the fire. Do the same with content. It takes about fifteen minutes.
- Create a test page and publish a baseline version.
- Ask a connected agent to change the heading and remove one sentence.
- Open the history. Check you can see the change, the time and who made it. On Pro and above, check the Agent activity view shows which AI client made it.
- Restore the baseline and compare it with the live page.
- Make a manual edit, then try restoring the agent's change again. Note how the system handles a newer edit.
- Write down what you learned and the date you tested.
That record beats a screenshot of a Restore button. It tells your team what recovery looks like in practice, on the plan you use, today.
Recovery makes experiments cheaper
Teams try more with AI when three things hold: the public site stays stable during review, everyone can see what changed, and mistakes have a known way back. Version history doesn't replace approval. It covers you when a mistake slips through approval.
For the approval side, read how to let AI agents edit your website without giving them publishing control. For page structure that makes changes easier to review, see editable landing pages with reusable sections.
Create a free Garchi space and run your first rollback drill
Enjoyed this article?
Get the next one in your inbox, with new Garchi features and practical ideas for running content operations with your team and AI agents. No spam, and you can unsubscribe at any time.