Skip to content
RustPress

Documentation Build

AI agents

AI agents in the RustPress admin: providers, abilities, ready-made roles, skills, the chat, guard rails and how agents work as a team.

Updated

This page explains the AI agents built into the RustPress admin: how to connect a provider, what agents can do, and the guard rails that keep a person in charge of every live change.

What the AI menu does

The AI menu in the admin opens a chat where a team of agents builds themes, plugins and content for your site. Describe what you want in plain words. Upload a WordPress theme or plugin .zip and an agent studies it and rebuilds it natively. Attach a screenshot or a document and agents can work from it.

Providers

Set providers up under AI › Agents:

  • Claude
  • OpenAI
  • Gemini
  • Any OpenAI-compatible endpoint, such as OpenRouter, Groq, or Ollama and LM Studio for local models
  • Claude Code installed on the server. It needs no API key and uses its own login.

API keys are stored encrypted with the site’s secret key and are never shown again. Each agent picks a model and an optional fallback model. What you type, and the site content an agent reads, goes to the provider you chose; use a local model if nothing may leave the server.

Agents and abilities

Each agent gets a set of abilities: read the site, write content, build themes and plugins, review code, and propose installs. Agents can also, when you allow it:

  • Read web pages, for research or to study a design you point to
  • Use files you attach to the chat
  • Draw icons and images (share images, site icons, illustrations) and save them to the media library
  • Use tools from other services connected under AI › External tools (see MCP and AI tools)

Ready-made roles

RustPress comes with these agents ready to use: Site Builder, Theme Designer, Plugin Developer, Content Writer, Product Owner, Security Reviewer, QA Tester and WordPress Migrator. The Product Owner gathers requirements before anything is built: it asks you the questions that matter and writes acceptance criteria.

Skills

Skills are instruction packs that agents load for a kind of work. Manage them under AI › Skills. Built in:

  • Design taste
  • Theme building (option-driven themes, no generic AI look)
  • Plugin building
  • Data access
  • Accessibility
  • SEO
  • Web performance
  • Copywriting
  • Responsive layout
  • WordPress migration
  • Secure plugins (an OWASP Top 10 checklist)
  • Memory safety

You can add your own, or download a SKILL.md from a URL. The SDK references and the plugin protocol are built in, so agents know every API in this release.

The chat

The chat shows every step: the tools an agent calls, their results, hand-offs between teammates, and approval cards for changes. Replies stream as they are written, an activity line shows what the agent is doing, and opt-in browser notifications call you back when an agent needs you or finishes. From Tools › Logs, Ask an agent hands an error straight to an agent.

Guard rails

Who can run agents

  • Only administrators run agents.
  • An agent never has more rights than the person using it.
  • A teammate never gets writing abilities the asking agent lacks.

Where agents can write

  • Agents write only in rp-content/ai-workspace/<project>/, with checked paths, text files only and size limits.
  • There is no tool for configuration, raw SQL, users, secrets or other plugins’ settings files.
  • The core is compiled Rust, so agents can’t edit it.

Every live change is approved by a person

  • Anything that changes the live site (installing, activating, editing or publishing content) is a change a person approves after seeing the complete diff.
  • A project is frozen when it is proposed, so what gets installed is exactly what was shown.
  • Applying a change keeps a snapshot, so every change can be rolled back under AI › Changes, and the site rolls a change back by itself if pages start failing.

Previews and builds are sandboxed

  • Workspace themes are previewed privately. Previews run in a sandbox, so scripts in an unapproved theme can’t act as the administrator.
  • Theme templates, Tailwind CSS and Rust plugin builds can’t read files outside the project or run code on the server. Rust builds run in bubblewrap.

Content is data, not instructions

  • Uploaded files, posts, comments, logs, web pages, tool results and teammates’ reports are treated as data, never as instructions.
  • Agent drafts are HTML-filtered like those of any untrusted author.

Audit, limits and bug reports

  • Every tool call goes to an audit log (rp-content/ai/audit.log, shown under AI › Changes).
  • A daily token limit stops runaway agents.
  • When an agent traces a problem to RustPress itself, it gives you a link to a pre-filled GitHub issue. Secrets, emails, the site address and server paths are masked, and nothing is sent until you submit it.

Teamwork

Teammates

Agents hand sub-tasks to each other with ask_agent, up to two levels deep and without loops. The Security Reviewer and QA Tester are read-only. When reviewers exist, builders must get their review before proposing an install.

Questions

Agents ask you for a choice (with one option marked Recommended, such as which language a plugin should be written in), for information or for permission, then wait for your answer.

Checks

check_project lints PHP, JavaScript, JSON and templates, builds Tailwind and Rust plugins, and scans for:

  • Remote code execution, XSS, injection, SSRF and open redirects
  • Weak randomness, XXE and unsafe deserialization
  • REST routes without permission checks
  • Hard-coded secrets
  • Memory-leak patterns
  • Missing permissions
  • Oversized files

Installs with errors or high findings can’t be proposed, and the Security Reviewer and QA Tester go through the OWASP Top 10 before one is.

Logs and project docs

Agents read the site log with read_logs when something breaks and after previews. Every project carries a compressed AGENTS.md (files, hooks, data, permissions, decisions, changelog) kept up to date for the next agent or developer.

To use the same tools from Claude Desktop, Claude Code or your own AI app, see MCP and AI tools. The full list of safeguards is in Safety and limits.