
Mets Mystery Manager
If you’ve been hanging out with us on Bluesky lately, you might have noticed some strange, retro-flavored activity. After a few weeks of "Spring Training" (and clearing out the test posts), the Mets Mystery Manager is officially live.
What is it?
It’s a "digital dugout" built with Python and a heavy dose of Mets obsession. Every day, a script wakes up in the cloud, raids the historical archives of Baseball Reference, and assembles a completely randomized, statistically accurate New York Mets lineup from the franchise’s entire 60+ year history.

Inside The Manager’s Mind
To create a lineup that feels like a real day in Queens history, the bot follows a strict "Front Office" protocol every afternoon:
The Data Raid: The bot connects to our master database, which contains every single player, stat line, and defensive record pulled from Baseball Reference.
The "Draft": Using a process called random sampling, the bot reaches into the bucket of 1,000+ historical Mets and pulls out 14 players. It’s careful to keep hitters and pitchers separate—you won't see a pitcher hitting clean-up unless the 1960s were feeling particularly weird.
The Logic Filter: Once the 14 players are chosen, the bot sorts them. It picks one starting pitcher, four relievers, nine starters, and five bench players.
The Position Assignor: This is the most complex part. The bot looks at every position a player actually played during their time with the Mets. It then runs an optimization check to find a configuration where everyone is at a spot they’ve stood before. It prioritizes the "primary" positions but keeps things spicy by allowing for those rare utility appearances.
The Amazin’ Index
The heart of the project is the Amazin’ Index, a 0–100 score that tells you exactly how much hope to have for today’s squad. We calculate it using a triple-threat formula:
The Bats (40%): Based on the lineup’s average OPS.
The Arms (40%): Based on the staff's ERA+ (where 100 is league average).
The Star Power (20%): A "Legacy Bonus" based on All-Star appearances.
The "Superstar" Clause: We’ve capped the Star Power bonus at 10 points. As any fan of a struggling team knows, a few elite icons can't always carry a roster with a thin bottom half. We give just +0.5 points per All-Star nod to ensure the legends give the team a floor, but the "grunts" have to earn the rest of the score.
Depending on the math, the bot assigns one of these labels:
90+: World Series Favorites 🏆
80–89: The 1986 Vibes 🍏
70–77: Solid Wild Card Contender ⚾️
55–69: The '73 Ya Gotta Believe Era 🏗️
Under 55: Panic Citi 😱
An Example Squad
Let's look at a hypothetical "Mixed Era" lineup the bot might generate:
The Lineup: Features David Wright (.870 OPS) and Mike Piazza (.900 OPS), but the rest of the cards are "filler" players averaging around .700 OPS.
Hitting Score: 23 pts (Solid, but reflects a top-heavy order).
The Pitcher: We draw 2022 Jacob deGrom (154 ERA+).
Pitching Score: 45 pts (Elite—deGrom is doing the heavy lifting here).
Legacy Bonus: Wright (7) + Piazza (12) + deGrom (4) = 23 All-Star Games.
The Math: $23 \times 0.5 = 11.5$, which hits our 10-point cap.
TOTAL SCORE: 78 — Label: "The 1986 Vibes 🍏"
Whether it's a squad of icons or a "Year from Hell" lineup that makes you want to hide under the covers, the Mystery Manager is here to remind us that every day is Opening Day somewhere in Mets history.
Follow along daily on Bluesky!
Technical Note: This project is a collaboration between human obsession and artificial intelligence. The Mets Mystery Manager code and parts of the project’s documentation were developed with the assistance of AI. While the machine crunches the numbers and writes the scripts, every lineup and "Amazin’ Index" score is reviewed and contextualized by a human Mets fan to ensure it meets our standards for "Amazin'" chaos.
