Quickly create functional plugins from simple descriptions, addressing specific needs without unnecessary bloat.
Quickly create functional plugins from simple descriptions, addressing specific needs without unnecessary bloat.
WP-Autoplugin brings an agentic coding workflow into WordPress. From the WordPress admin, it can explore an existing codebase, understand how it works, plan a change, write or revise the code, review the result, and prepare it for release as a new plugin, a fork, or a direct modification of an installed plugin or theme.
It is completely free and bring-your-own-key: you can connect it directly to OpenAI, Anthropic, Google Gemini, xAI, or a compatible API endpoint and choose the models you want to use. It can also work with your ChatGPT subscription, using the subscription’s Codex credits instead of an OpenAI API key.
In practical terms, it is similar to having Claude Code or any other coding agent inside WordPress, but with a workflow designed specifically for plugins and themes. It works with the code already installed on the site, keeps every generated revision recoverable, and never modifies a live target unless an administrator explicitly approves the release.
Use it to:
Version 2 is a complete rewrite for WordPress 6.6+ and PHP 8.0+. It replaces the separate v1 workflows with one durable Plan → Code → Review workspace built for real development work: exploring source code, making focused changes, iterating safely, and deciding exactly how a finished revision should be released.
Describe the plugin you need, refine the Plan, generate the files, inspect every change, and download or install the result. The output is a normal WordPress plugin that you can continue maintaining with or without WP-Autoplugin.
Ask WP-Autoplugin to fix a bug, add a feature, update an integration, or explain where a change should be made. It inspects the target code and stages the result separately rather than editing the installed files immediately.
This makes it practical to work on custom plugins, internal tools, abandoned projects, and site-specific modifications without manually moving code between an editor and WordPress.
WP-Autoplugin can inspect the actions and filters exposed by an installed plugin or theme and plan a separate extension plugin around them.
This is useful when you want to preserve update compatibility. When the requested behavior cannot be implemented reliably through the available hooks, the Plan explains the limitation instead of pretending that an extension is possible.
An Explain project gives you a durable conversation about an installed plugin or theme. You can ask where functionality lives, how data flows through the project, which hooks are available, or what would be involved in making a change.
The agent can inspect additional files as the conversation develops, so you do not need to know which source files are relevant before asking.
Plans, generated revisions, manual edits, Reviews, conversations, usage records, and release actions are retained as part of the project.
You can return after a reload, reopen a closed project, compare revisions, restore an earlier result as a new revision, or see exactly which Review applied to which version of the code.
When working with an existing plugin or theme, WP-Autoplugin does not need to place the entire codebase into one oversized prompt.
Instead, supported models can progressively explore the project using bounded, read-only source tools. The agent can:
This allows the agent to follow the code where it leads. A task that begins with a REST route, for example, can continue into the callback, supporting classes, validation logic, and related hooks without sending every project file on every request.
The tool loop runs through PHP, JavaScript, the WordPress REST API, and durable background jobs. It can pause between model turns, survive a page reload, and resume with the same model, reasoning effort, instructions, source fingerprint, and remaining tool budget.
The loop is deliberately bounded. Agents receive a limited source scope and tool budget rather than unrestricted access to the WordPress installation.
WP-Autoplugin v1 regenerated an entire file even when a task required changing only a few lines.
For existing plugins and themes, v2 can generate exact, bounded search-and-replace operations. The server applies those operations to an immutable snapshot of the original file, validates the complete result, and stages only the approved Add, Update, and Delete paths.
This reduces unrelated changes, makes diffs easier to review, and lowers the risk of the model accidentally replacing working code outside the requested scope.
Every task opens as an IDE-style workspace tab. The same interface supports:
The workspace is designed for tasks that may take more than one request or browser session:
Background work runs through the bundled Action Scheduler integration, so longer operations do not depend on keeping one browser request open.
The workflow separates deciding what should change, producing the change, and evaluating the result.
This makes each stage easier to inspect and gives administrators clear control over when the project moves forward.
Start by describing what you want to create, change, fix, or understand.
The Planner turns that request into a readable implementation Plan and, where applicable, a validated map of the files that should be added, updated, or deleted.
Before any code is generated, you can:
Plans are immutable and versioned. Revising one creates a successor instead of silently overwriting the original.
This matters when a project changes direction. You can see what was originally proposed, what changed during discussion, and which Plan produced a particular code revision.
For Hook Extension projects, planning begins by inspecting real actions, filters, and other integration points in the target. The result is a Plan for a separate plugin rather than a modification of the original code.
When the requested behavior cannot be implemented safely through the available hooks, the Planner explains why.
Code generation begins only when an administrator selects Generate Code.
Generated code is staged inside WP-Autoplugin. It is not written directly to the installed plugin or theme.
The Code workspace lets you:
Each generated result is an immutable revision. Manual edits create another revision rather than altering the existing one in place.
Generation is atomic. Files are checked individually and then validated as a complete project or change set. A failed, cancelled, conflicted, or noncompliant run does not leave behind a partial revision.
For existing targets, WP-Autoplugin also checks whether the source changed after the task began. This helps prevent an older generated change from being applied over a newer plugin or theme version without warning.
AI Review evaluates one exact code revision.
The Reviewer produces a structured report containing:
A finding can include the affected source location, an explanation of the problem, and a suggested fix.
You can:
Because each Review is tied to a specific revision, an all-clear result cannot silently carry over after further edits. The workspace always shows whether the current code is still covered by the report.
Plan, Code, Review, and Explain each include a durable conversation.
This lets you work naturally instead of trying to fit every requirement into the first prompt.
You can:
Every free-form composer accepts text, images, or both when the selected model supports vision.
Images can be attached to:
This is useful for tasks such as:
WP-Autoplugin accepts verified JPEG, PNG, and WebP files and checks the selected model’s image capability before queueing the request.
A generated revision remains separate from the installed target until an administrator chooses a release action.
This gives you several ways to move forward depending on the project and the level of risk you are comfortable with.
WP-Autoplugin can:
No open issues yet, or sync has not completed.