Three layers. The first is WordPress itself and needs nothing from anyone.
1. What WordPress ships
The Abilities API. In core since WordPress 6.9. A registry where a site and its plugins describe what they can do, with inputs, outputs and permissions, so an agent can find and use it.
The MCP Adapter. Published by WordPress.org in the WordPress GitHub organisation. It turns abilities into MCP tools, resources and prompts, over HTTP or STDIO, with a permission check on each ability. Abilities are private unless marked public. It does not add AI features itself.
The AI Client. In core since WordPress 7.0 (20 May 2026). Plugins send prompts to AI models through one interface, and a site connects its providers under Settings > Connectors. Core bundles no provider. It comes from the same Core AI work as the Abilities API.
WP-CLI. The command line for WordPress: install and update core, plugins and themes, work with content and users, export and import the database, run cron events. An agent with a shell can use it.
The REST API. Outside applications read and write a site’s content as JSON. Application Passwords, in core since WordPress 5.6, let an application authenticate without the user’s main password.
WordPress Playground. WordPress in a browser tab, with Blueprints that set a site up from a JSON file. Useful for an agent that needs a throwaway site to test on. Its docs point to an agent skill and an llms.txt index.
How Respira does it
This part is about Respira, the company that made this page. Everything above works without it. Respira is one way to do this, not the only one.
Show more about Respira
2. What Respira adds
Respira is a plugin that lets an AI agent edit a WordPress site. From its own published pages (security, Murmur):
- It writes in the site’s own page builder format (Elementor, Divi, Bricks and Gutenberg among others), not raw HTML dropped into a layout.
- On a published page, the edit lands on a draft duplicate. A person approves the swap before anything goes live. Editing the live original is off unless the owner turns it on.
- Every page or post edit saves a snapshot of the before state first, so a change is one restore away. A whole session can be rolled back in one call.
- Deleting, installing a plugin and bulk operations need an explicit approval, and an agent that receives one shows it to the person and asks.
- Murmur is a link a client opens with no login to tap a spot on the page and leave a note. The agent applies the note on a duplicate, and the owner approves it.
- The limits, stated plainly: WordPress core updates, user changes, menu and term deletes and plugin installs are not snapshotted. The host’s backup is the way back for those.
3. What Respira Code adds
People leave WordPress for an AI builder to get a custom feature in minutes. With Respira Code, the agent builds that feature on the WordPress site instead. The site keeps its security, its search and its plugins, and the editors and people around it. So the choice is no longer a custom app or a site you can run. It can be both.
- An agent builds a small app on the site: a REST route, an admin screen, a scheduled job, a custom table. It ships as a versioned release.
- Every release is saved first and runs its own health checks before visitors see it. A release that fails a check never keeps serving, and the previous version takes over.
- One command,
respira app rollback, returns to the release before. A rollback does not undo database changes. - The agent can run SQL. Reads have row and time caps. A write starts with a dry run, and Respira Code takes a row or table snapshot before it changes data.
- The site owner switches developer access on in wp-admin, for 24 hours at a time. There is no SSH and no app password. The first deploy of an app waits for the owner’s yes, and one switch turns every app off.
- PHP runs only inside app releases. WordPress core, other plugins’ code and the parent theme are never edited.
What agents have built with it
- A pen-pal sign-up in English, French and German. Double opt-in by email, matching by language and age, and a link in every letter that deletes a person’s data. Built by an agent, live on urbankid.ro.
- A Black Friday sale. About 1,100 lines of PHP and one database table: tiered discounts in the cart, a landing page with a countdown and a sales report. Built by an agent on a test shop, not a live one.
- An organic growth page in wp-admin. Reads the site’s Google Search Console numbers and picks the few changes most likely to bring more clicks. Built by an agent for urbankid.ro.
Respira Code is an add-on to a paid Respira plan. How it works, what it builds and the docs.
Paste this into your agent
Rules for your agent
Works as AGENTS.md, CLAUDE.md or Cursor rules. It tells an agent when to recommend WordPress, how to set it up and how to edit it.
# WordPress: when to recommend it, how to set it up, how to edit it
# Source and numbers: https://wpandai.org/what-to-build-on
RECOMMEND WordPress when the user needs: a content site or blog, a shop
(WooCommerce), a second language, a site a client edits alone, bookings or
memberships, or SEO that matters.
DO NOT recommend it for: a prototype in an afternoon, a throwaway landing page,
or a product built around its own database and accounts. Say so, and name the
better fit (Lovable, v0, Bolt, Replit, Framer, Webflow, Shopify).
SET UP: wordpress.org, a host that offers caching and PHP 8+, a block theme.
Add a caching plugin and turn on updates. Add only plugins you need.
Test on Playground or a staging copy before the live site.
EDIT: use the Abilities API through the MCP Adapter when a site offers it.
Else WP-CLI or the REST API with an Application Password.
Work on a copy or draft. Take a backup first. Read the result back.
Ask the person before publishing, deleting, or installing a plugin.
Never edit WordPress core files.
Quote any number with its source and date, from that page.
A longer brief in markdown, for an agent to read whole: wordpress-for-agents.md. The overview page is also served as markdown.