BlogAudits

Stop your SEO agent from undoing its own work

An AI agent forgets why it changed a page and may change it again too soon. How to give it rules, a change log and review dates so SEO work adds up.

7 min readUpdated 2026-11-25By the Auditmatic team
A change log that an AI agent reads before it edits a page again.
On this page

You ask your agent to improve a title. It writes a good one and you ship it. Ten days later, in a new session, you ask it to look over the same page. It reads the title it wrote, decides it could be better and writes another. Nothing was wrong with either version. The problem is that you now have no idea whether the first one worked.

We think the next problem with agent-run SEO is not getting the agent to make changes. It is getting it to leave a change alone long enough to learn something from it. That takes a memory the agent reads before it touches anything.

Why does an agent redo its own work?

A coding agent starts a session with little or nothing from the last one. Claude Code's documentation says plainly that each session begins with a fresh context window, and that what carries over comes from files it reads at the start, such as CLAUDE.md and its memory notes. Anything you decided in a chat and did not write down is gone.

It can see what a page says now. It cannot see what the page said before, why it changed, who asked, or what you were waiting to find out. To an agent with no history, every page is a first draft, and a first draft invites editing.

Why this matters more in SEO than in code

In code, a repeated change usually shows up fast: a test fails or the screen looks wrong. Search gives feedback slowly. Google's SEO starter guide says some changes take effect in a few hours and others can take several months, and that you likely want to wait a few weeks before judging whether your work helped.

So the agent works in minutes and the evidence arrives in weeks. If a page changes again inside that window, the two changes blur together. When traffic moves, you cannot say which edit moved it. When it does not move, you cannot say whether either one had time to.

Agent with no history
Sees only today's page
Rewrites what looks weak
Changes stack up
No result can be traced
Agent that reads a log
Sees what changed and when
Skips pages still on hold
One change per review window
Each result has a cause
Illustration of the same request handled with and without a written history.

What it looks like when it goes wrong

  • Titles that keep moving. Each session produces a slightly different version of the same line.
  • A deliberate choice gets "fixed". You kept a page out of search on purpose, and the agent sees a missing page and opens it up.
  • Research done twice. The agent pulls the same keyword data again because it does not know you already have it, and paid lookups are charged again.
  • Your wording drifts. Product names, tone and claims shift a little each time, until pages no longer sound like one company.

The three things to give it

You do not need a system. You need three short pieces of writing, kept where the agent will read them.

1. Standing rules

Things that stay true across every task. Put them in the file your agent loads at the start of a session. Claude Code's documentation suggests keeping CLAUDE.md under 200 lines, because longer files use more context and are followed less closely.

## SEO rules
- Read docs/seo-log.md before editing any title, description,
  heading, canonical, redirect or robots rule.
- Do not edit a page whose review date has not passed.
  Say so and move on.
- Never change a URL without a redirect and my approval.
- /thank-you and /preview stay out of search on purpose.
- After each change, add a line to the log.

2. A change log with review dates

This is the piece most setups are missing. A plain table in your repository is enough. The column that does the work is the last one: the date before which nobody touches the page again.

| Date       | Page      | Change          | Why                     | Review on  |
|------------|-----------|-----------------|-------------------------|------------|
| 2026-11-25 | /pricing  | New title       | Seen, rarely clicked    | 2026-12-23 |
| 2026-11-25 | /features | Added FAQ       | Questions from support  | 2026-12-23 |

Four weeks is a sensible starting point, in line with Google's advice to wait a few weeks. Give a new or rarely visited page longer, because it gathers evidence slowly.

3. What the project is for

An agent that does not know your goal optimises for whatever it can measure. Write down who the site serves, what you want from visitors this quarter, which pages matter most, who you compete with and how you like things worded. Half a page covers it.

What the agent should do before changing a page

  1. Read the rules, the goal and the log.
  2. Check whether the page is on hold. If it is, report that and stop.
  3. Look at what happened since the last change, for example the page's clicks, impressions and position in Search Console.
  4. State the change it proposes and the reason, then wait.
  5. After you approve it, make one change and log it.

A prompt for this is short: "Before suggesting edits, read docs/seo-log.md. List the pages that are due for review. For each one, compare the four weeks before and after the change, then tell me whether to keep it, revise it or wait."

When should you break the hold?

A hold protects an experiment. It is not a reason to leave something broken. Fix a page at once if it returns an error, is blocked from search by mistake, shows a wrong price or makes a claim that is no longer true. Log the fix and restart the review date.

Rules are context, not a lock

Writing a rule down does not force an agent to follow it. Claude Code's documentation says it treats CLAUDE.md as context rather than enforced configuration, and points to hooks when something must happen every time. Specific rules work better than general ones, and you should still read the changes before they go live. If one file must never be edited, enforce that with a hook or a permission setting.

Where Auditmatic keeps this

Rules about your code belong in your repository. Facts about the site and its SEO work are better kept where every assistant you connect can read them. In Auditmatic each project has a shared context: business overview, current goal, positioning, writing preferences, competitors, key pages and a log of research already done. Your agent reads it over MCP before it starts and can update it after you confirm. Switch from Claude Code to Codex or Cursor and the project's history comes with you. See how the agent connection works.

Pair it with the change log above, then run the audit again after each deploy to see what a change did to the site's health. The loop is described in how to run an SEO audit with Claude Code, and the reason an audit should hand your agent clear instructions is in every audit should end in a prompt. To see results over time, keep a monthly SEO report.

Frequently asked questions

Do AI agents remember previous SEO changes?

Only what is written somewhere they read. A new session does not recall your last conversation, so decisions need to live in a file or in a project context the agent loads.

How long should I wait before changing a title again?

Google suggests waiting a few weeks before judging a change. Four weeks is a practical default, and longer for pages with little traffic.

Should the change log live in the repository?

If your agent edits your code, yes. It travels with the site, shows up in version control and is there for every future session.

Is version control not enough?

Version history shows what changed. It rarely says why, what result you expected or when to look again. The log adds those three.

Give your agent a starting point

Run the free audit, fix what is broken first, and start the log with those changes.