A WordPress plugin that uses the WP 7.0 AI Client to generate, install, and iterate on WordPress plugins through a chat interface. From your WordPress admin. Using AI. Yes, really.
- WordPress 7.0+
- PHP 8.1+
- An AI provider plugin configured under Settings → Connectors (official options: Anthropic, Google, OpenAI)
- Node.js + Docker (for local development via
wp-env)
- Go to Tools → Plugin! Plugin! Plugin!
- Describe what you want in plain English
- The AI generates a complete, single-file WordPress plugin
- Review the code — the panel is editable, in case you have notes
- Click Install & Activate
- Ask for changes. The AI remembers the conversation. Click Update Plugin.
- Go to Tools → Saved Plugins to revisit past conversations.
npm install
npm run env:startWordPress will be available at http://localhost:8888. Admin credentials are admin / password.
npm run env:stop # stop the environment
npm run env:clean # wipe the database and start freshwp-plugin-builder.php # Plugin entry point & bootstrap
system-prompt.md # AI system prompt — edit freely
includes/
class-admin-page.php # Tools > Plugin! Plugin! Plugin! UI
class-conversations-page.php # Tools > Saved Plugins UI
class-rest-controller.php # REST API endpoints
class-chat-service.php # Core chat/generation logic
class-code-generator.php # AI prompt building & response parsing
class-conversation-store.php # Conversation persistence (custom post type)
class-plugin-installer.php # WP_Filesystem install & activate
class-job-queue.php # Async job queue (transients)
assets/
builder.js # Chat UI
builder.css # Styles
| Method | Endpoint | Description |
|---|---|---|
POST |
/wp-plugin-builder/v1/chat |
Send a message, get a response |
GET |
/wp-plugin-builder/v1/conversations |
List saved conversations |
GET |
/wp-plugin-builder/v1/conversations/{id} |
Get a single conversation |
DELETE |
/wp-plugin-builder/v1/conversations/{id} |
Delete a conversation |
POST |
/wp-plugin-builder/v1/install |
Install & activate a generated plugin |
All endpoints require manage_options capability. Install requires install_plugins and activate_plugins.
Edit system-prompt.md in the plugin root. The file is loaded at runtime, so changes take effect immediately without reactivating the plugin. The default personality is dry and slightly resigned. You can change this if you want. That's fine.
Generated plugins are written to wp-content/plugins/ via WP_Filesystem and require an explicit install action — nothing runs automatically. The code review step exists for a reason. The AI instructs itself to follow WordPress security best practices (nonces, capability checks, sanitization, escaping), but you should still read what you're installing.
This tool is restricted to administrators. It should not be accessible to untrusted users. You knew that already.
GPL-2.0-or-later