---
title: "Autoresearch isn’t just for training models"
description: "Generalizing Karpathy's Autoresearch beyond model training, Shopify built pi-autoresearch, an extension for the Pi agent harness that runs an agent in an endless loop against a single measurable metric: establish a baseline, form a hypothesis, test it, keep improvements and discard crashes or regressions."
url: "https://swe.quest/articles/autoresearch-isn-t-just-for-training-models-00e59e41077ad95c"
canonical: "https://shopify.engineering/autoresearch"
source: "Shopify Engineering"
published: "2026-04-15"
difficulty: "easy"
kind: "Case study"
reading_minutes: 8
tags: ["ai-agents","performance","build-systems","ci-cd","developer-productivity"]
---

# Autoresearch isn’t just for training models

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2026-04-15, 8 min read, Case study. Original: [https://shopify.engineering/autoresearch](https://shopify.engineering/autoresearch)

## Summary

Generalizing Karpathy's Autoresearch beyond model training, Shopify built pi-autoresearch, an extension for the Pi agent harness that runs an agent in an endless loop against a single measurable metric: establish a baseline, form a hypothesis, test it, keep improvements and discard crashes or regressions. Applied to the Polaris build, it cut build time 65% by skipping a redundant full component pipeline before Storybook and limiting a TypeScript transform to the 105 of 580 files that needed it, though humans still had to discard hacks like deleting files. Tobi Lütke added multi-metric support and auto-commits, then ran it on Liquid for 53% faster parse+render and 61% fewer allocations. The open-sourced tool has been used internally to speed up unit tests, React mounting, Playwright tests and pnpm.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)

## Prerequisites

- AI coding agents ([easy posts on AI for coding](https://swe.quest/tags/ai-coding.md?difficulty=easy))
- CI pipelines ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))

## Keywords

Autoresearch, pi-autoresearch, Pi, Polaris, Storybook, Liquid, Shopify

## Related posts

- [Agent-driven development in Copilot Applied Science](https://swe.quest/articles/agent-driven-development-in-copilot-applied-science-57df9b7433878456.md): GitHub Engineering · 2026-03-31 · Medium · 9 min read · AI for coding, AI agents, Developer productivity, Evaluation, Testing
  A Copilot Applied Science researcher built eval-agents, a set of Copilot SDK-based agents that automate analysis of coding-agent trajectories from benchmarks like TerminalBench2 and SWEBench-Pro, and developed it primarily through coding agents.
- [Harness engineering: leveraging Codex in an agent-first world](https://swe.quest/articles/harness-engineering-leveraging-codex-in-an-agent-first-world-2c11ac81997bc6aa.md): OpenAI · 2026-02-11 · Medium · 14 min read · AI for coding, AI agents, Developer productivity, Static analysis, Observability
  A small OpenAI team built and shipped an internal product of roughly a million lines over five months with zero manually written code, merging about 1,500 Codex-authored PRs at around 3.5 PRs per engineer per day, an estimated 10x faster than writing it by hand.
- [DevEx matters for coding agents, too](https://swe.quest/articles/devex-matters-for-coding-agents-too-3cf5bcfa910d65e5.md): incident.io · 2025-12-19 · Medium · 11 min read · Developer productivity, TypeScript, Build systems, AI for coding, Developer tools
  incident.io cut its typical lint-plus-compile feedback loop from over 90 seconds to under 10, arguing that fast toolchains matter even more when AI coding agents generate code faster than slow tools can validate it.
- [Agents, Randomness, and Receipts: Notes from trivago's QA Meetup](https://swe.quest/articles/agents-randomness-and-receipts-notes-from-trivago-s-qa-meetup-6bb8ef93642d84a1.md): trivago tech · 2026-08-12 · Easy · 5 min read · Testing, AI agents, AI for coding, Developer productivity
  Recap of three QA meetup talks on verifying testing and delivery.
- [How The New York Times is scaling Unit Test Coverage using AI Tools](https://swe.quest/articles/how-the-new-york-times-is-scaling-unit-test-coverage-using-ai-tools-a3609468d4649a31.md): NYT Open · 2026-01-13 · Medium · 10 min read · AI for coding, Testing, AI agents, Developer productivity
  The New York Times Web Platforms team used an AI coding agent to raise unit test coverage across its News monorepo, taking six projects from an average of 28% to 83% coverage and the Story template from 53% to 83%, with an estimated 70% reduction in effort.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
