Introducing Magento Boost
I've ported Laravel Boost to Magento. It gives coding agents like Claude Code, Cursor and Codex the rules, skills and tools they need to write good Magento code. Free and open source.
Coding agents write decent PHP and poor Magento. Ask one for a plugin and it won't check which plugins already wrap that method. Ask for a storefront change on a Hyvä store and you get RequireJS and Knockout, which don't run there. Ask about the database and it invents a table name that sounds right.
None of that is the agent being careless. It doesn't know which edition you run, which theme is active, or what your other modules do. Laravel fixed this for its own framework with Laravel Boost: a package that writes guidelines for your project and runs a small MCP server so the agent can look things up. I use it every day on Laravel work, and I wanted the same thing on Magento. So I've ported it. Magento Boost is free, MIT-licensed and on GitHub.
Install it
composer require --dev upturnstudio/magento-boost
bin/magento module:enable UpturnStudio_Boost
bin/magento setup:upgrade
bin/magento boost:installThe installer finds the agents you use and asks what to set up. It supports Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Junie, Kiro, OpenCode and Zed. It works on Magento Open Source, Mage-OS and Adobe Commerce from 2.4.6, on PHP 8.2 to 8.5, with Hyvä, Luma or Breeze. All of that is detected for you.
It's a development tool, which is why the command uses --dev. Keep it off production.
Three parts
- Guidelines: short rules written into CLAUDE.md, AGENTS.md or GEMINI.md.
- Skills: longer guides the agent loads only when the job calls for one.
- An MCP server: local tools that look answers up in your running application.
Guidelines that match your store
The guidelines are built from what Boost finds. A Hyvä store gets the Hyvä rules: Alpine and Tailwind, no RequireJS, register inline scripts for CSP. A Luma store gets the Luma rules instead. Adobe Commerce Cloud and B2B get their own sections, and so does Mage-OS.
Commands are written for your environment too. On DDEV the agent is told to run ddev magento cache:clean. On Warden it's warden env exec -T php-fpm bin/magento cache:clean. That one detail saves a lot of failed commands.
Your own rules go in .ai/guidelines. A file at the same path as a built-in guideline replaces it. They're plain Markdown with a few conditions, so a rule only appears where it applies:
---
when: hyva && magento>=2.4.7
---
# Checkout rules
- Clear the cache with `{{ magento:cache:clean }}` after changing layout XML.
@if(hyva-checkout)
- Checkout components are Magewire. Don't add Knockout.
@endifSkills for the bigger jobs
A guideline is a line or two. Some jobs need a page. Boost ships 23 skills for those: module development, plugins, declarative schema, CLI commands, GraphQL and REST endpoints, unit and integration tests, PHPStan and PHPCS, Hyvä compat modules, Alpine components, Tailwind, RequireJS mixins, child themes, Cloud deploys and upgrades.
The agent only loads a skill when it needs it, so they don't fill its context on every task.
Tools that look things up
This is the part I use most. Laravel has artisan commands for routes and config. Magento doesn't, so Boost adds tools for them. A few I reach for:
- plugin-list shows the plugins on a class, the order they run in, and whether the generated Interceptor is stale. It answers "why doesn't my plugin fire?".
- di-inspect shows what a type resolves to, with its preferences and arguments.
- layout-merged and resolve-view-file show the layout for a handle and which theme a template comes from.
- database-schema lists tables and columns, plus the module whose db_schema.xml declares each one.
- hyva-compat-coverage lists the installed extensions that aren't Hyvä-ready yet.
- last-error returns the newest exception from var/log or var/report, with its stack trace.
- search-docs reads your installed vendor code first, so the answer matches your exact version.
There are 47 in all. You can run any of them by hand to see what the agent sees:
vendor/bin/magento-boost tools
vendor/bin/magento-boost execute-tool database-schema --pretty --json '{"filter":"sales_order"}'It works when Magento is broken
An agent most needs the logs and the last error when something has gone wrong. That's also when bin/magento won't start, because a DI compile error or a fatal error in another module stops the whole application.
So Boost has a standalone mode. The MCP server starts from its own small binary, which needs only Composer's autoloader. Tools that need Magento bootstrap it themselves. The rest keep working.
{ "mcp": { "standalone": true } }Each tool call also runs in a fresh PHP process. Change a di.xml or run setup:upgrade and the next call sees it, with no need to restart the agent.
What an agent can and can't see
Giving an agent tools into your application deserves some care, so here is exactly what it gets:
- Secrets are masked in every tool: env.php credentials, encrypted config values, and password and token columns.
- Database queries are checked against a read-only allow-list, then run in a READ ONLY transaction that is always rolled back.
- The server runs locally. Only search-docs calls out, and it sends your query text and library ids, never project data.
- php-eval, the equivalent of Laravel's tinker tool, is off by default. If you turn it on, it runs real PHP in your application. It is not a sandbox.
How it differs from Laravel Boost
I kept the shape and changed what had to fit Magento:
- Commands are bin/magento boost:install, boost:update and boost:mcp, rather than php artisan.
- Guidelines are Markdown with @if() blocks and {{ }} placeholders, not Blade. They can't run PHP, so a guideline shipped by a third-party module is safe to render.
- There are far more introspection tools, because Magento has no route:list or config:show to lean on.
- Logs include var/report error pages as well as var/log.
- Modules and packages can ship their own guidelines and skills in resources/boost, the same as on Laravel.
References
- Laravel Boost source: github.com/laravel/boost
- Magento Boost source: github.com/brideo/magento-boost
- Magento Boost module page: upturnstudio.com.au/modules/magento-boost
The short version
- Magento Boost is a free, MIT-licensed port of Laravel Boost for Magento 2, Mage-OS and Adobe Commerce.
- It writes guidelines for your edition, frontend and dev environment, and ships 23 skills for the bigger jobs.
- A local MCP server gives the agent 47 tools to look things up, and it still starts when Magento won't.
- Secrets are masked, the database is read-only, and it belongs on your dev machine, not production.
Grab it from the modules page or GitHub. If you want a hand setting your team up with AI coding agents on Magento, get in touch.