I Built an Agent Harness for the Most Boring Job in Baseball. It Runs While I Sleep.

· 8 min

At 7:51AM on a Thursday in September, I typed one line to Claude that I’d left running overnight: “Why did it not run overnight?”

It had run for a while, reached a merge, and stopped at 11:31PM to ask me a question. Then it waited eight hours. Claude said:

The design anticipated agents working unattended and then routed every decision through a person who was asleep.

This wasn’t my first time handing long jobs to agents. My GitHub shows more than 8,000 contributions in the last year. This whole project was supposed to run without me, and five weeks in, I was the only thing slowing it down.

The project started in August, because I got annoyed at Baseball Savant. It’s MLB’s official stats site, and it’s the best free sports data in the world: every pitch thrown since 2015, tracked by cameras and specialized radars for velocity, spin rate, and lots of other information. The only way to take this data and run your own analysis is to download a spreadsheet and make a program or formula yourself. There’s no official API to pull from programmatically.

So I decided to build my own copy and sync it every night. It’s one of those projects that sounds easy enough, then either never sees the light of day or becomes a second job. You have to babysit the downloads, detect when MLB changes something, and figure out what changed and why. With a background in data science, I know this maintenance burden all too well. The actual people who’ve done this in public have spent years patching their scripts. The maintainers of one popular scraper shipped a fix this September for a bug that had “silently shifted your data six separate times over two years.”

I realized this maintenance issue early on and wanted to automate it. I wrote a custom agent harness and a set of rules to govern this. Two months later, my pipeline tracks 8.3 million pitches and catches MLB’s changes as they land, and most of what I typed to my harness was “yes.” The agents run on a $200-a-month Claude Max subscription I share with about six other side projects.

The same day I started, Asana published We migrated off Enzyme in 2 weeks. It should have taken five years. They’d estimated the job at about $6M of engineering. Codex agents did it for about $12K, and the post has a section called “The harness is the product now.” Most of the agent wins people shared this year look like that one: a migration, with a last commit. Keeping a copy of MLB in sync is the other kind of job, the one that never ends.

Before lunch

The workflow came from Jesse Vincent’s superpowers plugin for Claude Code, something I’ve used for most of 2026: write a design, write a plan, hand each task to a fresh agent, have another agent review the work, merge. I committed the design doc at 9:29 on a Friday morning in August. By 11:06 agents acting on my implementation plan had merged a working pipeline and pulled nearly two million pitches without a single error.

They’d also found the first trap. Ask Savant for a month of data and it sends back exactly 25,000 rows, covering only the last week of the month, with a 200 OK and nothing to tell you the rest is missing. That’s the bug you find weeks later, take a whole day to account for it and set up validation against it. The agents caught it hours in because the dates didn’t add up.

By 1 p.m. they were checking their totals for a few stats against MLB’s own leaderboards, and all 251 hitters matched.

That check turned into the backbone of the whole project. Every night, every stat the agents rebuild gets compared to the number MLB publishes on its own site, at the precision MLB shows it. The agents can rewrite their own code as much as they like, but MLB’s number is out of their reach, so when the two agree, it means something.

The other nine seasons came down on Monday, and for about a week I thought the hard part was over.

Somebody keeps editing history

Every night the agents re-download the last three days of games and compare. In August, games that had already been played started coming back different, games that we had previously checked and validated.

The raw measurements were the same: same pitch speed, same batted ball metrics, same result. What changed was MLB’s estimate of how likely each ball was to become a hit or other outcome, numbers in the family of expected stats. For two hitters, 287 pitches had new estimates, mostly on ground balls. MLB had retrained a model and rewritten history with it, with no public record of this.

If a vendor has ever backfilled their data on you without a changelog, you’d typically open a Slack thread called “is this us?” and spend an afternoon proving it isn’t. The agents did the same thing without me: pulled the rows, diffed them, worked out the pattern, and wrote it up in a file they keep called savant-behavior.md.

Tom Tango, who works on MLB’s data, warned everyone about this back in 2021:

Each season has 700,000+ pitches, and is subject to update. You should code accordingly.

So the agents coded accordingly. An empty day now gets 36 hours before the agents believe it, and once a week the job re-checks all eleven finished seasons too, in case history moved. One of these weekly checks found six changes sitting in seasons that were already over.

In early September, MLB even disagreed with itself. For three hitters from 2015, our calculations matched MLB’s pitch download to five decimal places, and somehow MLB’s own leaderboard was off from both of us! MLB’s raw data disagreed with MLB’s own leaderboard! Naturally I sent my harness to investigate. Its first fix was a script that re-downloaded the affected players, and of the 64 players it ‘repaired’, all 64 still failed. MLB had started publishing two answers for the same stat, and there was nothing to repair toward.

The biggest one came on September 29. We re-downloaded the entire 2026 season, 716,792 pitches, just to see. 22,003 rows had changed since we first pulled them just two months earlier. Most were re-scored estimates. 2,710 were pitches from 306 pitchers that MLB had renamed, including 393 sliders that were now called sweepers. The agents’ plan had guessed “tens to hundreds” initially. By October the change log had 22 entries, and the agents had written themselves 101 notes about every trap they hit.

The night after

By September I wanted the agents working while I slept. The first night I tried, September 9, they waited for me instead.

It’s the same problem as a new engineer who won’t merge anything without a thumbs-up, and the same fix: write down what they’re allowed to do.

So the permissions moved out of the chat and into a file the agents re-read. Merge after review: yes. Database migrations that only add things: yes. Push or deploy: never. There are four reasons to stop and wake me up: something destructive, something security-sensitive, something that touches the world outside the repo, or a plan so broken that every next step is a guess. For anything else, they decide, and write the decision down with why they made it and what it costs if it’s wrong.

The next night, I went to bed and the agents didn’t. September 11 has 113 commits in the log, a dozen of them between 1 and 2 a.m., and I didn’t send a single message that day.

One commit from that night landed at 12:06 a.m. An agent was working on a plan that ended with a “backfill” of the production database. It read the actual code before trusting the spec’s one-line description of it. The backfill deleted and re-inserted every row in the table, which was exactly the kind of thing the file said to ask about.

My job was planning and typing “yes”

I went back and counted. My transcripts before September 5 are gone, but from then through October 6 I sent the agents 349 messages. The median was four words. The most common message was “yes,” 59 times, then “continue,” 15 times, then “1,” 13 times, which is me picking option one.

The rest were the part only I could do, and almost all of it was baseball or taste.

Back in August, the agents got stuck on exit velocity, how hard the ball comes off the bat. MLB leaves bunts out of that average, and the agents were choosing between a rough guess and dropping the stat. I knew MLB’s search had a bunt filter and pointed them at it. 250 of 251 hitters matched. After that they wrote themselves a rule: when a number looks like MLB is leaving something out, ask me first.

The site I forgot to build

By September 2, the agents could reproduce how often every hitter swung, missed and chased, on 11,491 of 11,491 player-seasons. Docs were 40% of all commits. Work on the actual website, the part anybody would use, was 3.5%. I asked Claude whether we’d drifted from the goal, and it said: “Parity became the product.” Parity was our word for matching MLB.

The site went live on September 23. The next morning I asked Claude to use computer use in order to see the site like someone seeing it for the first time.

The review started nice: “the data engine is stronger than most public sites.” Then: “The product surface is a leaderboard and one chart.” There was no way to search for a player. The pitcher leaderboard was sorted so the worst pitcher in baseball showed up first. And the chart label marking a pitcher’s “arm side” pointed the wrong way for every right-hander. Three days earlier, I had named the site Armside, after that label.

The same week, I checked who was visiting. In one 55-minute stretch the server logged 6,218 requests: 6,172 from GPTBot, OpenAI’s crawler, and three from browsers.

The fixes took a day. Eight agents worked the review in parallel and closed 24 of its 25 findings between 10 a.m. and 6 p.m., and not one of them had to touch the data pipeline.

AI makes the job boring

Airbnb moved its own tests off Enzyme in six weeks, against an estimate of a year and a half, and Gergely Orosz summed up the pattern in The Pragmatic Engineer: “AI makes impractical migrations doable.” Most teams also have a job that never ends, like the nightly sync with a vendor who changes things without telling you, or the scraper someone patched in 2021 that everybody’s afraid to touch. Nobody wants those jobs, so they get done badly or not at all.

That’s where I’d point the agents next. Give them a number to check against that they can’t change, a file that says when they’re allowed to wake you, and another where they write down everything strange the source does. Expect to spend most of your time typing “yes,” plus the occasional “use the site like a stranger.” Then go to bed.

Armside is at armside.ai.

Miami, USA · the club runs on Miami time and Miami weather