Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

wp-autoplugin

> DevOps
Open source

Quickly create functional plugins from simple descriptions, addressing specific needs without unnecessary bloat.

389 stars0 likes1 views
WebsiteGitHub

About

Quickly create functional plugins from simple descriptions, addressing specific needs without unnecessary bloat.

WP-Autoplugin

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:

  • create complete WordPress plugins from a description;
  • diagnose and fix an installed plugin or theme;
  • add features to existing code without rebuilding it from scratch;
  • create a separate extension plugin using the target’s hooks;
  • understand an unfamiliar codebase through an ongoing conversation; and
  • review, test, package, install, fork, apply, or roll back changes from one workspace.

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.

What WP-Autoplugin helps you do

Build a new plugin without leaving WordPress

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.

Modify existing plugins and themes safely

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.

Extend third-party code without editing it

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.

Understand unfamiliar codebases

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.

Iterate without losing earlier work

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.

Source-aware agents inside WordPress

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:

  • inspect target metadata and the project structure;
  • list and page through source files;
  • read only the relevant sections of a file;
  • search for literal text across supported source files;
  • discover WordPress actions and filters with their locations and surrounding code; and
  • inspect an installed parent theme separately when working with a child theme.

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.

Focused edits instead of unnecessary rewrites

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.

One workspace for every project

Every task opens as an IDE-style workspace tab. The same interface supports:

  • new plugins;
  • installed plugins;
  • standalone and child themes;
  • hook-based extension plugins; and
  • codebase explanation projects.

The workspace is designed for tasks that may take more than one request or browser session:

  • tabs and their active jobs survive navigation and reloads;
  • closing a tab does not delete the project or cancel its work;
  • the project browser can search and paginate across open and closed projects; and
  • closed projects can be reopened with their Plans, conversations, revisions, Reviews, usage, and release history intact.

Background work runs through the bundled Action Scheduler integration, so longer operations do not depend on keeping one browser request open.

Plan → Code → Review

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.

1. Plan

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:

  • ask questions about the proposed approach;
  • clarify requirements;
  • request a revised Plan;
  • edit the Plan manually;
  • regenerate the structured file map after an edit; and
  • inspect the full lineage of earlier Plans.

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.

2. Code

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:

  • browse the project as a file tree or a list of changes;
  • inspect Add, Update, and Delete operations;
  • edit files with WordPress CodeMirror;
  • compare staged files with their original versions;
  • review sanitized unified diffs;
  • follow per-file generation and validation progress;
  • edit several files and save them as one coherent successor revision;
  • navigate validation problems directly to the affected file;
  • restore an earlier revision without destroying later history;
  • regenerate from the latest Plan; and
  • work with PHP, JavaScript, CSS, JSON, HTML, SVG, XML, Markdown, and plain-text files.

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.

3. Review

AI Review evaluates one exact code revision.

The Reviewer produces a structured report containing:

  • an overall verdict;
  • a summary of the implementation;
  • suggested manual test cases; and
  • actionable findings ranked from P0 to P3.

A finding can include the affected source location, an explanation of the problem, and a suggested fix.

You can:

  • discuss the report with the Reviewer;
  • ask it to inspect a concern more closely;
  • request reconsideration or reprioritization;
  • dismiss and reopen findings with durable history;
  • fix one finding, a selected group, or all findings;
  • verify fixes against the resulting successor revision; and
  • see when a Review became stale because the code changed afterward.

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.

Continue the conversation at every stage

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:

  • ask a question without changing the current Plan, revision, or Review;
  • request a change and create a validated successor artifact;
  • refer to earlier context with messages such as “Please make that change”;
  • override an earlier requirement with a newer, explicit instruction;
  • ask the Coder about an untouched target file before deciding to modify it; and
  • reload or reopen the project without losing the conversation.

Use screenshots and mockups as part of the request

Every free-form composer accepts text, images, or both when the selected model supports vision.

Images can be attached to:

  • initial Create, Modify, Fix, Hook Extension, and Explain requests;
  • Plan follow-ups;
  • Code questions and change requests;
  • Review conversations; and
  • Explain follow-ups.

This is useful for tasks such as:

  • recreating an interface from a mockup;
  • fixing a layout shown in a screenshot;
  • explaining a visible error;
  • matching an existing admin screen; or
  • discussing a diagram alongside the code.

WP-Autoplugin accepts verified JPEG, PNG, and WebP files and checks the selected model’s image capability before queueing the request.

Choose how a finished revision is released

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:

  • build a private ZIP containing one exact revision;
  • install a new plugin or hook extension in an inactive state;
  • activate an installed plugin as a separate action;
  • create

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPaianthropicartificial-intelligenceclaude

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理