SEO automation: one reviewed change per run, as a pull request

SEO automation that is safe to run: a scheduled agent reads your search data, makes the one change worth the most and opens a pull request for you to review.

Brady Heinrich
5 min read
Your agent callsseo_checkingsc_querysite_notesbuilt-in workflow: autopilot
On this page
  1. What is worth automating in SEO, and what is not
  2. How the autopilot run works
  3. How to schedule it
  4. Why one change per run
  5. What a human still does
  6. Before you turn it on

SEO automation means software doing the repeatable parts of SEO: reading the data, finding the page worth working on, making the change. With a coding agent that can read your search data and edit your repo, all three can run on a schedule. The version worth running is narrow: each run makes one change, backs it with evidence, and leaves it as a pull request for a person to merge.

This page describes that setup, how to schedule it, and where automation should stop.

What is worth automating in SEO, and what is not

The parts of SEO that are mechanical automate well:

  • Pulling clicks, impressions and position and comparing periods.
  • Finding queries ranking just off page one, and pages losing clicks.
  • Reading the page and the top results and proposing a specific edit.
  • Making that edit in the repo the way the repo already builds pages.
  • Writing down what was changed, so it can be judged later.

The parts that carry risk do not:

  • Publishing without review. An agent can state something false about your product with complete confidence. Somebody who knows the business has to read the change.
  • Volume. Fifty generated pages a week is how a site fills up with pages that compete with each other and help nobody. Google's spam policies name scaled content made mainly to manipulate rankings as abuse.
  • Changing what already works. A page that ranks and converts should be edited deliberately, not because a scheduled job ran.
  • Strategy. What the business sells, to whom, and which topics to stay away from are decisions, not data.

So the design goal for automated SEO is not "no human". It is to shrink the human part to one good decision: read a small pull request with its evidence, and merge it or close it.

How the autopilot run works

AgentGrown ships a workflow called autopilot. It is a set of plain-text steps that takes your agent through the tools. Each run does this:

  1. Check in. It calls seo_checkin and reads the site notes: what was shipped before, what to avoid, what to watch. If a note records a change from 14 or more days ago that nobody has judged, it checks that page's numbers and adds a note saying whether it worked.
  2. Collect candidates from three places: striking-distance queries (positions 5 to 20 with real impressions), pages losing clicks over 90 days, and, once a month, tracked prompts where the brand is missing from AI answers.
  3. Pick one. The candidate with the most clicks to gain for the least work. It skips any page changed in the last 28 days, prefers improving an existing page to adding one, and never adds a page that competes with one you have.
  4. Find out why the top results win. It searches the query, opens the top three results and names the reason for each. Then it checks which queries the page already ranks for, so the edit keeps them.
  5. Make the change in the repo. One finished change, with facts and prices taken from the repo and the notes, never invented.
  6. Open a pull request. The title names the page and the query. The body has the evidence, what the top results do that the page did not, and what changed.
  7. Record it in site notes, so a later run can judge it.

If nothing is worth changing that day, it says so and changes nothing. That is a correct outcome, not a failure.

Flow of one scheduled SEO autopilot run in seven agent steps, from check-in to a recorded pull request, ending with a person reviewing and merging

One run. Everything up to the pull request is the agent; the merge is yours.

The candidates come from the same analysis you would do by hand in page-two wins and traffic drops, and the monthly AI step from AI citations.

How to schedule it

AgentGrown does not run the autopilot for you. It answers when your agent calls it, and it does not start your agent. Scheduling happens where the agent runs: your machine, a server, or CI.

Every workflow is public as plain text at https://agentgrown.com/workflows/<name>.md, so a script can fetch it and pass it as the prompt. From your site's repo, with your AgentGrown API key configured in .mcp.json (the docs cover that), the command for Claude Code is:

claude -p "$(curl -fsS https://agentgrown.com/workflows/autopilot.md) The site is example.com." \
  --permission-mode acceptEdits \
  --allowedTools "mcp__agentgrown,WebSearch,WebFetch,Bash(git *),Bash(gh pr create *)"

Put that in cron, or in a scheduled GitHub Actions job:

name: SEO autopilot
on:
  schedule:
    - cron: "0 13 * * 1-5"
  workflow_dispatch:
permissions:
  contents: write
  pull-requests: write
jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm install -g @anthropic-ai/claude-code
      - run: |
          git config user.name "seo-autopilot"
          git config user.email "seo-autopilot@users.noreply.github.com"
          claude -p "$(curl -fsS https://agentgrown.com/workflows/autopilot.md) The site is example.com." \
            --permission-mode acceptEdits \
            --allowedTools "mcp__agentgrown,WebSearch,WebFetch,Bash(git *),Bash(gh pr create *)"
        env:
          ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
          AGENTGROWN_API_KEY: ${{ secrets.AGENTGROWN_API_KEY }}
          GH_TOKEN: ${{ github.token }}

That schedule runs on weekdays at 13:00 UTC. In the repository's Actions settings, allow GitHub Actions to create pull requests. The allowed tools list is deliberately short: the AgentGrown tools, web search and fetch, git, and creating a pull request. The agent cannot merge.

Other agents work the same way if they can connect to an MCP server and run from a script. The workflow is only text.

Anthropic builds a scheduled Claude Code routine that reads a repo and opens a pull request, the same shape as the job above: Build a proactive agent workflow with Claude Code, Claude (Anthropic).

Why one change per run

One change is a rule that makes everything else work.

It can be reviewed. A pull request that edits one page for one query, with the numbers in the description, takes a few minutes to read. Ten pages at once get approved without being read.

It can be measured. If one page changed on one date, a later comparison of that page before and after means something. If twenty changed in the same week, you cannot tell which change did what. Measuring is covered in did the change work.

It limits the damage. A wrong change to one page is easy to revert.

The 28-day skip rule exists for the same reason. A page that was just edited needs time for Google to pick up the change and for position to settle. Editing it again next week destroys the measurement.

Timeline of the 28 days after a merged change: no further edits to the page for 28 days, and the change judged from day 14

The two waiting rules on one page: judged from day 14, left alone until day 28.

What a human still does

Review and merge. Read the diff as a customer would. Check every fact, price and claim. Check that the page still sounds like you. Close the pull request if it is not an improvement. A closed pull request costs nothing.

Set the boundaries. Site notes are how you steer an unattended run. Record what the business sells, which pages make money, topics to avoid, and anything that must not be touched. The setup workflow interviews you and saves the answers as notes. The run reads them every time.

Watch the trend. Keep doing a weekly check-in yourself. The autopilot judges its own past changes, but you should know whether the site as a whole is going the right way.

Before you turn it on

Run things by hand first. Do a check-in, run the striking-distance workflow once and make that change yourself. When the manual output is something you would merge, schedule it.

Check that your repo is where pages live. The autopilot edits files and opens a pull request, so it suits sites built from a repository (a framework, a static site, markdown content). If your pages live in a hosted CMS with no repo, the agent can still do the analysis, but the change has to be made another way.

Start slowly. A weekly run on a small site is plenty. Raise the frequency only while you are still reading every pull request. For more on working this way, see SEO with Claude and the reusable SEO prompts.

Questions

What is SEO automation?

Having software do the repeatable parts of SEO: collecting data, finding the pages worth working on, and drafting or making the change. The useful versions keep a person in the loop for the decision to publish.

Does AgentGrown run the autopilot for me?

No. AgentGrown answers when your agent calls it and does not start your agent. You schedule the run where your agent runs, for example with cron or a scheduled GitHub Actions job.

Does the autopilot merge its own changes?

No. Each run opens a pull request and stops. You review it and merge it, unless you explicitly instruct the run otherwise.

How often should an automated SEO run happen?

Often enough that you review every pull request and no more. Weekdays works for a site with many pages. Weekly is plenty for a small one, since a changed page needs about four weeks before it can be judged.

What should not be automated in SEO?

Publishing pages in bulk without review, inventing facts or prices, rewriting pages that already perform, and merging changes nobody has read. Automation should narrow the work to one decision, not remove the decision.

Which coding agents can run it?

Any agent that can connect to an MCP server and be started from a script. The documented example uses Claude Code in headless mode; the workflow itself is plain text any agent can follow.

Guides and tools for this. SEO autopilot