Shopify Rebuilds Theme Architecture to Suit AI Agents

AI-generated image · US National Wire
By replacing complex JSON structures with readable HTML and Liquid templates, the e-commerce giant is reducing code volume to improve efficiency for both bots and humans.
Shopify is redesigning its storefront theme architecture to be more digestible for AI agents, a move that simultaneously simplifies the experience for human developers. According to reporting from The Register, the company is developing a successor to its current JSON-heavy base theme, Horizon, which will rely primarily on HTML and Shopify's block-based Liquid templating language.
Ben Sehl, Shopify product director for storefronts, explained via X that leading AI models find HTML to be expressive, local, and token-efficient. The shift addresses a growing reliance on AI; Shopify reports that 20% of its merchants use the AI assistant Shopify Sidekick, which has facilitated 25 million theme edits this year. Sehl noted that while previous JSON-based templates offered high flexibility, they created a developer-experience cost where pages could no longer be understood by reading a single file.
The new architecture focuses on readability and explicit contracts. Key technical changes include:
* **Code Reduction:** The new theme contains 93% fewer lines of code than Horizon. * **New Primitives:** The introduction of a "partial primitive" allows specific page regions to update without a full re-render, which Sehl says will remove thousands of lines of reactivity code from Horizon. * **Enhanced Structure:** The system uses composable block tags and an expanded doc tag for instructions on snippets and contracts.
To maintain quality, Shopify has implemented 20 new rules governing file-size limits, complexity, and validation. While the company will maintain existing Liquid themes via a "forever API," the new approach allows merchants to use simple HTML div tags for layout adjustments rather than relying on a declarative, settings-driven architecture.

