wp-agent-harness is a local WordPress development environment for coding agents, primarily aimed at tools such as Claude Code, Codex, and Cursor. Its core purpose is to let agents perform operations on a local WordPress site that can be discarded at any time, without touching production data.
In terms of main capabilities, the project is built on the official MCP Adapter and Abilities API and provides MCP support out of the box, which differs from wp-env or Playground. It includes 29 built-in abilities from MS WordPress Abilities, and all versions are pinned. In Claude Code and Cursor, every change requires user approval, and all attempted changes are logged.
In terms of usage, the environment runs via Docker. Run ./bin/setup to complete the build, and run ./bin/reset to reset to a fresh state with one command. The site address is http://localhost:8080,使用 admin to log in to wp-admin; the password is stored in WP_ADMIN_PASSWORD in the .env file. If you want to log in with lower privileges instead of as an administrator, run ./bin/connect --role publisher. For how to connect Codex and Cursor, refer to their setup guides. Docker Compose v2, Git, Bash, curl, and jq are required before running.
The applicable scenarios are mainly local WordPress development and agent-assisted coding tests, especially development workflows that require MCP integration and change approval logs. In terms of limitations, the project is explicitly for development only: localhost only, disposable data, and no production data. The project uses the MIT license; agent skills, WordPress, and plugins each retain their own licenses, as detailed in the NOTICE file.