Novamira and Code Snippets: Let Your AI Agent Build Snippets the Right Way
AI can write a PHP function in seconds. Getting that code onto a WordPress site safely is the hard part. Paste it into a theme file and the next update wipes it. Run it blind and one bad line can take the site down.
Our friends at Dynamic.ooo have built a tool that closes that gap. It’s called Novamira, and with Novamira Pro, your AI agent can work with your Code Snippets library directly. So here’s what it is, how the two fit together, and how to try it.
What Novamira is 🤖
You may already know the Dynamic.ooo team from Dynamic Content for Elementor and Dynamic Shortcodes. Novamira is their answer to the WordPress and AI question. It’s a free, open-source plugin that lets AI agents work inside WordPress at the PHP level.
Under the hood, Novamira is a Model Context Protocol (MCP) server. MCP is the open standard that lets AI clients connect to outside systems and do real work there. That means Claude Code, Cursor, VS Code with Copilot, Windsurf, Zed and other MCP-compatible clients can connect to your site. Terminal-based agents can connect through the Novamira CLI.
The difference is in the approach. Most WordPress AI tools give your agent a fixed menu of actions. Novamira gives it access to the PHP runtime itself. Your agent sees what’s actually installed, whether that’s WooCommerce, ACF or Yoast, and works with it.
The free plugin covers PHP execution, file operations, database access and WP-CLI. It needs WordPress 6.9 or later, connects only admin users through WordPress Application Passwords over HTTPS, and ships disabled until you switch it on.
Where Code Snippets fits in
Code Snippets runs on more than a million WordPress sites, and it’s exactly where AI-generated code belongs. Save that code as a snippet instead of a theme edit and you get everything we’ve built over fourteen years:
- Safe Mode built in. If a snippet breaks, your site recovers without FTP.
- Custom code, managed like plugins. Every snippet gets a title, description, tags and an on/off toggle. When AI is producing lots of custom logic, a clean dashboard stops being a nice-to-have.
- Cloud Sync (Pro). Save a proven snippet to your cloud library and sync it to every site you manage.
- More snippet types (Pro). CSS and JavaScript snippets, plus conditional logic that controls exactly where each snippet runs.
The Code Snippets specialization in Novamira Pro 🧩
This is where it gets interesting. Novamira Pro includes a dedicated Code Snippets specialization, so your agent works with your snippet library directly instead of writing raw PHP files.
Here’s what your agent can do:
- Manage snippets. List, create, edit and delete snippets in your Code Snippets dashboard.
- Control the lifecycle. Validate, enable and disable snippets.
- Read your setup first. It checks whether you run Code Snippets or Code Snippets Pro and which snippet types are available before writing anything.
- Use the right scope. Global, admin, front-end or single-use. Single-use snippets suit one-off jobs like a data migration and deactivate on their own.
- Build conditions (Pro). Create a condition, such as administrators only, and attach it to a snippet.
Which snippet types it can create depends on your plan. PHP and HTML snippets work with free Code Snippets. CSS, JavaScript and conditions need Code Snippets Pro.
How a snippet gets made
- You ask your agent for something, like “Add a filter that strips query strings from script and style URLs.”
- The agent creates the snippet in Code Snippets, inactive by default.
- It validates the PHP without running it.
- It shows you the code and only enables it once you confirm.
You end up with a named, tagged snippet in your dashboard, and nothing goes live until you say so. On Code Snippets Pro, you can then sync it to your other sites.
The split is simple. Novamira handles the connection between your AI agent and WordPress. Code Snippets handles the safe, organised management of the code itself.
What else Novamira Pro adds
Pro adds two things on top of the free plugin.
- Memory between sessions. Tell your agent your conventions once and it keeps them, so you stop re-explaining your setup every time.
- Specialized knowledge of your stack. Over 50 specializations cover page builders such as Elementor, Bricks and Divi 5, forms like Gravity Forms and WPForms, field managers like ACF and JetEngine, SEO plugins like Yoast and Rank Math, plus WooCommerce. Instead of guessing how a plugin stores its data, the agent works from tested knowledge of it.
One thing to keep in mind: Dynamic.ooo positions Novamira Pro for development and staging sites, not production. Pro plans range from 3 sites up to 1,000 sites, billed yearly or as a one-time lifetime option. See the Novamira Pro page for current pricing.
Try it on staging this week 🚀
Set up Novamira on a staging site, connect your AI client, and ask it to build a snippet. Then check your Code Snippets dashboard and see what landed. We’d love to hear what you build.



