AI agents can now work on your WordPress site directly. Since WordPress 6.9, plugins register abilities — “update a product”, “change an order status” — and agents such as Claude Desktop or your own scripts can discover and run them over the REST API or MCP. WooCommerce exposes products and orders this way too.
That is powerful, and a little unnerving. Out of the box there is no way to say “this agent may read orders but never refund one”, no off switch, and no record of what an agent actually did.
Raqvio Agent Guardrails adds that missing layer. It sits in front of every ability your site runs, works out which agent is calling, decides whether the call is allowed, and writes it down.
wp-config.php or environment variables — without Raqvio Agent Guardrails ever reading them — plus which abilities are publicly exposed and which administrators have application passwords.raqvio-ag/get-my-permissions ability lets an agent ask what it is allowed to do before it tries.raqvio-ag/order-create-refund (WooCommerce 10.9 or newer) lets an agent refund an order by amount or per line item, with optional restock. It is classified as Financial, so no agent can use it until you allow it, and money only goes back through the payment gateway if the agent explicitly asks and the gateway supports automatic refunds.When an agent is blocked it gets a clear error (raqvio_ag_denied, or raqvio_ag_blocked while the kill switch is on) with a reason that starts with “Blocked by Raqvio Agent Guardrails:”, so both the agent and you know why.
Raqvio Agent Guardrails needs WordPress 6.9 and PHP 8.1. To actually block agents it needs WordPress 7.1, which added the hook Raqvio Agent Guardrails uses to stop an ability before it runs. On WordPress 6.9 and 7.0 it runs in audit-only mode: it logs every agent call and what it would have decided, and tells you so.
WooCommerce is optional. Governance works for any ability; the catalog readiness score and the refund ability need WooCommerce.
Everything Raqvio Agent Guardrails stores stays in your own database:
The compiled admin app in build/ is generated from the readable JavaScript and SCSS sources included in this plugin under assets/src/. The build configuration (package.json and webpack.config.js) is included too. To rebuild it, run npm install and then npm run build in the plugin folder (Node.js 20 or newer). The build uses @wordpress/scripts.
Bundled third-party libraries:
vendor/woocommerce/action-scheduler/. It runs background jobs when WooCommerce is not active. If another plugin loads a newer copy, Action Scheduler uses that one.freemius/. Its compiled pricing page script, freemius/assets/js/pricing/freemius-pricing.js, is built from github.com/Freemius/pricing-page. When several plugins bundle the SDK, it loads only the newest copy.