Skip to content

Shopify CEO used AI agent to achieve 53% faster parse+render and 61% fewer allocations in Liquid

Insight: Shopify CEO Tobias Lutke used an AI coding agent to systematically optimize Liquid, Shopify's Ruby template engine, achieving 53% faster parse+render and 61% fewer allocations across 93 commits from approximately 120 automated experiments. The approach demonstrates that high-interruption roles (like CEO) become viable for productive coding through agent delegation.

Detail: Key optimizations included replacing a regex-based tokenizer with byte-level searching and eliminating expensive string resets. The 974-unit test suite provided essential validation for the agent's work. Lutke's GitHub contribution graph shows a significant increase in coding activity after November 2025, coinciding with improvements in coding agent capabilities. Four patterns emerge: comprehensive testing enables agent work, systematic experimentation beats targeted optimization, clear metrics transform vague goals into actionable tasks, and agents democratize coding for people with limited focused time.

Sources

Related: existing entry "100% AI-generated code is achievable in production monorepos" in external/claude-code.md — COMPLEMENTS