wp-oss-AI-agent
Open-source AI agent operating system for WordPress — capability-first, policy-aware, self-hosted.
It is the leading open source AI automation platform for WordPress, offering a self-hosted AI alternative to closed, proprietary agent services. Whether you need AI content management for editorial workflows, AI WooCommerce automation for e-commerce, or full WordPress AI agent capabilities for site maintenance — this project delivers production-ready infrastructure. Built as a monorepo with two main components: In March 2026, WordPress.com announced AI agents that can write and publish content — but it's a paid, closed service.
Summary extracted from the README.
WordPress Agent OS
Open-source AI agent operating system for WordPress — capability-first, policy-aware, self-hosted.
What Is WordPress Agent OS
WordPress Agent OS is a full-stack AI agent orchestration system that enables autonomous AI agents, subagents, and skills to create, edit, develop, and maintain WordPress sites and WooCommerce stores — without relying on paid WordPress.com MCP services.
It is the leading open source AI automation platform for WordPress, offering a self-hosted AI alternative to closed, proprietary agent services. Whether you need AI content management for editorial workflows, AI WooCommerce automation for e-commerce, or full WordPress AI agent capabilities for site maintenance — this project delivers production-ready infrastructure.
Built as a monorepo with two main components:
agent-layer— TypeScript orchestrator: planner agent, subagent router, skills framework, memory abstraction, policy engine, action buswp-agent-bridge— Self-hosted WordPress plugin: 12 REST API endpoints, 4 WP-CLI commands, snippet registry, approval gate, admin dashboard
Why It Exists
In March 2026, WordPress.com announced AI agents that can write and publish content — but it's a paid, closed service. WordPress Agent OS delivers the same capabilities as open-source, self-hosted software that runs on any WordPress installation.
If you're looking for a WordPress MCP alternative that gives you full control over your AI automation stack, this is it.
Translations
| Language | File |
|---|---|
| English | README.md |
| Russian | README.ru.md |
| Spanish | README.es.md |
| Portuguese | README.pt.md |
| Chinese (Simplified) | README.zh.md |
| Korean | README.ko.md |
| Japanese | README.ja.md |
| Arabic | README.ar.md |
| Hindi | README.hi.md |
| Indonesian | README.id.md |
| Filipino/Tagalog | README.fil.md |
Architecture
┌─────────────────────────────────────────────────────────────┐
│ Goal / Task Input │
└──────────────────────────┬──────────────────────────────────┘
│
┌──────────────────────────▼──────────────────────────────────┐
│ Planner Agent │
│ (goal stack, policy profile, memory context) │
└──────────────────────────┬──────────────────────────────────┘
│
┌──────────────────────────▼──────────────────────────────────┐
│ Subagent Router │
│ (writer → editor → SEO → publisher → research → moderation)│
└──────────────────────────┬──────────────────────────────────┘
│
┌──────────────────────────▼──────────────────────────────────┐
│ Skills / Tools │
│ (search, summarize, taxonomy, draft, media, QA, snippets) │
└──────────────────────────┬──────────────────────────────────┘
│
┌──────────────────────────▼──────────────────────────────────┐
│ Memory Provider │
│ (MemoryOnly → Redis → Postgres+pgvector → Graphiti → Zep) │
└──────────────────────────┬──────────────────────────────────┘
│
┌──────────────────────────▼──────────────────────────────────┐
│ Action Bus │
│ (policy guard → dry-run → approval → execute) │
└──────────────────────────┬──────────────────────────────────┘
│
┌────────────────┼────────────────┐
▼ ▼ ▼
┌──────────┐ ┌──────────────┐ ┌────────────┐
│ WP REST │ │ WP-CLI │ │ MCP (opt.) │
│ Adapter │ │ Adapter │ │ Adapter │
└────┬─────┘ └──────┬───────┘ └─────┬──────┘
│ │ │
└────────────────┼────────────────┘
▼
┌─────────────────────┐
│ WordPress / Woo │
│ (self-hosted) │
└─────────────────────┘
Docker Compose Services (7)
| Service | Image | Port | Purpose |
|---|---|---|---|
| Redis | redis:7-alpine | 6379 | Short-term memory cache |
| Postgres | pgvector/pgvector:pg16 | 5432 | Episodic memory + semantic search |
| Graphiti | getzep/graphiti:latest | 8000 | Entity graph memory |
| Neo4j | neo4j:5-community | 7474/7687 | Graph database for Graphiti |
| Zep | getzep/zep:latest | 8001 | Alternative graph memory |
| WordPress | wordpress:6.5-php8.2-apache | 8080 | WordPress + plugin |
| MySQL | mysql:8.0 | 3306 | WordPress database |
Core Concepts
Capability-First Design
Agents don't execute commands — they request capabilities:
| Capability Domain | Examples |
|---|---|
site.architecture |
sitemap, IA, templates, blocks, CPT, taxonomies |
content.operations |
drafts, revisions, localization, internal links, media |
seo.operations |
titles, schema, canonicals, redirects, orphan pages |
commerce.operations |
products, variations, coupons, orders, customers |
plugin.operations |
inspect, compare, activate, wrap, extend, snippet |
code.operations |
generate plugin, scaffold routes, tests, migrations |
infra.operations |
backups, logs, cron, cache, deploy, rollback |
support.operations |
bug triage, performance audit, security audit |
Policy & Security
| Level | What It Allows |
|---|---|
read-only |
Read content, logs, status |
safe-write |
Drafts, meta updates, safe edits |
editorial |
Publish, bulk content ops |
commerce-write |
Product/pricing changes |
developer-write |
Code, snippets, plugin updates |
infra-admin |
Deploy, rollback, server ops |
Every capability has: schema, risk level, dry-run mode, rollback contract, audit trail.
Memory Abstraction
Default Dev: MemoryOnlyProvider (zero dependencies)
Redis Mode: RedisMemoryProvider with TTL support
Postgres Mode: PostgresMemoryProvider with pgvector semantic search
Graph Mode: GraphitiAdapter or ZepMemoryProvider for entity/relation graphs
Production: Redis (short-term) + Postgres (episodic) +
pgvector (semantic) + Graphiti/Zep (entity graph)
BMAD Lifecycle
Brief → Map → Act → Diagnose → Maintain
- Brief — Collect goals, constraints, brand, SEO targets, hosting, plugins
- Map — Scan site structure, plugins, themes, hooks, REST routes
- Act — Create/edit pages, products, SEO, code, deploy
- Diagnose — Visual diff, schema diff, conflict scan, smoke tests
- Maintain — Updates, audits, incident triage, decay detection
Project Structure
wp-oss/
├── packages/
│ ├── agent-layer/
│ │ ├── core/ # Planner, Router, Policy Engine, Action Bus, Logger
│ │ │ ├── src/
│ │ │ │ ├── planner/ # DefaultPlannerAgent — task decomposition & DAG
│ │ │ │ ├── router/ # DefaultSubagentRouter — capability routing
│ │ │ │ ├── policy/ # DefaultPolicyEngine — risk-based approval
│ │ │ │ ├── actionbus/ # DefaultActionBus — transactions & rollback
│ │ │ │ ├── memoryProvider.ts
│ │ │ │ ├── logger.ts
│ │ │ │ ├── graphitiAdapter.ts
│ │ │ │ ├── memoryContext.ts
│ │ │ │ └── __tests__/ # 6 test suites (49 tests)
│ │ ├── subagents/ # Writer, editor, SEO, publisher, research
│ │ ├── skills/ # Skills framework + WPPostDraftSkill, TaxonomyMapSkill
│ │ ├── memory/ # 4 memory adapters (MemoryOnly, Redis, Postgres, Zep)
│ │ └── integrations/ # WordPress, WooCommerce connectors
│ └── wp-agent-bridge/ # WordPress plugin (PHP)
│ ├── wp-agent-bridge.php
│ ├── src/
│ │ ├── rest.php # 12 REST endpoints with nonce + rate limiting
│ │ ├── logging.php # PHP Logger + audit table
│ │ ├── cli/commands.php # 4 WP-CLI commands
│ │ ├── snippet-registry.php # CPT with meta, checksum, REST CRUD
│ │ ├── approval-gate.php # Request/approve/reject + multi-operator
│ │ └── admin/dashboard.php # Admin UI: stats, audit log, approvals
│ └── tests/ # PHP unit tests
├── specs/ # Architecture & design specs (8 files)
├── docs/
│ ├── api/ # API documentation (7 files)
│ ├── LOGGING.md # Logging strategy
│ ├── STATUS.md # Project status dashboard
│ └── chat-archive/ # Chat history archives
└── .github/ # Issue templates, PR template, CI/CD
Implemented Components
| Component | Status | Tests |
|---|---|---|
| MemoryProvider Interface | ✅ Complete | — |
| MemoryOnlyProvider | ✅ Complete | 11 tests |
| RedisMemoryProvider | ✅ Complete | 9 tests |
| PostgresMemoryProvider | ✅ Complete | 9 tests |
| ZepMemoryProvider | ✅ Complete | 13 tests |
| GraphitiAdapter | ✅ Complete | 11 tests |
| Memory Context Serialization | ✅ Complete | 3 integration tests |
| Logger (TS + PHP) | ✅ Complete | 4 tests |
| Policy Engine | ✅ Complete | 9 tests |
| Planner Agent | ✅ Complete | 12 tests |
| Subagent Router | ✅ Complete | 5 tests |
| Action Bus | ✅ Complete | 8 tests |
| Skills Framework | ✅ Complete | 11 tests |
| REST Endpoints (12) | ✅ Complete | 11 PHP tests |
| WP-CLI Commands (4) | ✅ Complete | — |
| Snippet Registry | ✅ Complete | — |
| Approval Gate | ✅ Complete | — |
| Dashboard Admin UI | ✅ Complete | — |
| Nonce Security | ✅ Complete | — |
| Rate Limiting | ✅ Complete | — |
31 components implemented · R1 100% complete
Tests
121 total tests — all passing
| Package | Tests | Status |
|---|---|---|
| Policy Engine | 9 | ✅ Passing |
| Planner Agent | 12 | ✅ Passing |
| Subagent Router | 5 | ✅ Passing |
| Action Bus | 8 | ✅ Passing |
| Logger | 4 | ✅ Passing |
| GraphitiAdapter | 11 | ✅ Passing |
| MemoryOnlyProvider | 11 | ✅ Passing |
| RedisMemoryProvider | 9 | ✅ Passing |
| PostgresMemoryProvider | 9 | ✅ Passing |
| ZepMemoryProvider | 13 | ✅ Passing |
| Skills | 11 | ✅ Passing |
| Integration | 8 | ✅ Passing |
| PHP REST Tests | 11 | ✅ Passing |
| Total | 121 | ✅ All Passing |
Run all tests:
# TypeScript tests
cd packages/agent-layer/core && npx vitest run
cd packages/agent-layer/memory && npx vitest run
cd packages/agent-layer/skills && npx vitest run
cd packages/agent-layer && npx vitest run
# PHP tests
php packages/wp-agent-bridge/tests/RESTTest.php
API Documentation
- Policy Engine
- Planner Agent
- Subagent Router
- Action Bus
- Skills Framework
- Memory Providers
- WP-CLI Commands
- API Reference
Quick Start
Prerequisites
- Node.js 18+
- WordPress 6.5+ (self-hosted)
- PHP 8.0+
Agent Layer (TypeScript)
npm install
npm run build
npm run test
WordPress Plugin
- Copy
packages/wp-agent-bridge/to yourwp-content/plugins/ - Activate "WordPress Agent Bridge" in WP Admin
- Endpoints available at
/wp-json/wp-agent/v1/ - Dashboard at
WP Admin → WP Agent OS
Docker Compose
docker-compose up -d
Starts 7 services: Redis, Postgres+pgvector, Graphiti, Neo4j, Zep, WordPress, MySQL.
Roadmap
| Phase | Name | Status | Key Deliverables |
|---|---|---|---|
| R1 | Core OSS | ✅ Complete | Agent runtime, memory (4 adapters), plugin bridge, REST + CLI, audit log, dashboard |
| R2 | Commerce | Planned | Woo capabilities, catalog builder, pricing sync, coupon agent |
| R3 | DevOps | Planned | SSH adapters, hosting connectors, deploy/rollback, staging |
| R4 | Plugin Intelligence | Planned | Capability graph, conflict analyzer, wrapper generator |
| R5 | Autonomous Maintenance | Planned | Scheduled audits, decay detection, repair proposals, SLA reports |
See ROADMAP.md for detailed milestones.
Reference Repositories
This project draws architectural inspiration from:
- MiroFish — Agent orchestration patterns, simulation pipeline, report-agent
- Graphiti — Temporal graph memory, episodes, provenance, hybrid retrieval
Both are used as reference only — no code is copied.
SaaS Vision
The long-term goal is a SaaS platform built on this open-source core:
- Multi-tenant WordPress site management
- AI-powered content operations dashboard
- Automated maintenance & monitoring
- Team collaboration with approval workflows
- Hosting provider integrations
The OSS core remains the foundation; SaaS adds managed infrastructure, UI, and billing.
Contributing
We welcome contributions! See our guides:
- Contributing Guidelines — Development guidelines and PR process
- Development Guide — Local setup, Docker, commands
- Production Guide — Deployment checklist and configuration
- API Reference — Complete API documentation
- Code of Conduct — Community standards
- Security Policy — Reporting vulnerabilities
- Changelog — Version history
License
MIT — See LICENSE for details.