Skip to main content

Reading your link audit with an AI agent

Link & Image Health Audit has an agent interface. An AI agent working on your site, such as Claude, can read what each scan found, link by link and page by page, in the same words the Dashboard uses. It can also read and change your settings, the pages left out of scans, the links you ignore and the links you marked as checked, and save them as one file to apply again later. It works through two doors WordPress already has: WP-CLI, and on WordPress 6.9 or later the Abilities API.

The interface is part of the plugin. Nothing on your pages or your screens changes until an agent applies a change.

What an agent can and cannot do​

An agent canAn agent cannot
Read every finding with its page, severity, the word and sentence you see on the Dashboard, and its evidence: the link's check, its anchor text, an image's alt state and file nameEdit a page or change a link on it
Read every link, image and resource one page holds, each with its checkChange the log level, how long log entries are kept, or the Share settings usage switch
Read the health of the last scan and the links waiting for a second lookRead or set a Safe Browsing key
Change settings, exclude pages, ignore links, mark not checkable links as checkedOverwrite a change you made in the admin since its file was saved, unless told to
Scan up to five pages by their addressScan every page at once without being told yes

An agent narrows the findings by the page they are on (--page=/about/), by the link target (--target-url=https://example.com/old-page/, or a path such as --target-url=/old-page/ for a link on your own site), by severity, by kind of reference, by code and by whether they are ignored. Before 1.8.0 the link target filter was called url. WP-CLI keeps --url for itself, so that filter never reached the plugin. The old name is now refused.

What to do about a finding is your decision. The interface tells the agent what each finding means. It never tells the agent what to change.

Scans run only when asked​

Applying settings, exclusions, ignores or checked marks never starts a scan. A change that shows in findings only after the next scan says so in the agent's report. An agent can scan one page or a few (wp liha scan run /about/), and each is scanned there and then. A scan of every page replaces every stored result, so it is refused until the agent says yes (wp liha scan run --all --yes).

Who may use it​

Every ability and command needs the capability liha_agent. The plugin gives it to administrators, and to the shared plugupp_agent role when your site has one.

The site file​

The file holds your settings, the pages left out of scans, the links you ignore and the links you marked as checked. Pages are named by their address, such as /about/, and a link on your own site by its address too, so the file works on another copy of the same site. It never holds the log level, how long log entries are kept, the Share settings usage switch or a Safe Browsing key.

wp liha site export --file=links.json
wp liha site diff --file=links.json
wp liha site apply --file=links.json --dry-run
wp liha site apply --file=links.json

A second apply of the same file reports every item unchanged and writes nothing. A setting the file leaves out keeps its value. An excluded page, an ignore or a checked mark the file leaves out stays as it is, unless the agent passes --prune. A file the plugin exported says prune itself, because it holds the whole list.

A link you marked as checked travels with the time you marked it. A mark stands for 180 days, so a mark older than that is refused as expired when the file is applied.

The agent sees only what your site has. A setting your site does not have is refused with its name, such as "report_send_mode is not a setting on this site." The agent's schema lists everything your site does have.

With a paid plan the file also holds your exclusion rules and saved rule sets. Report recipients are email addresses, so the agent sees them only when it asks for them (--with-personal-data).

Changes you make in the admin​

When you save the Settings screen, a parameter list or the Logs tab, ignore or un-ignore a link, mark a link as checked, exclude or include a page, or save your exclusion rules, the plugin records that you edited it. If you did that after the agent's file was saved, the agent's next apply is refused, so your change is not lost. The agent can save the file again and carry your change over, or apply with --force to replace it.

Which pages say more​