How I Used Codex to Get Back Into Magic

I hadn’t played Magic in well over a decade. Then I opened two Hexhaven Invigorators and started thinking about the deck I used to play in the Ravnica days. I still remembered the feeling of dropping a two-mana Tarmogoyf and watching it get bigger as cards piled up in the graveyard. Now Tarmogoyf was back in Standard, and I had a new card I wanted to build around. Reality Fracture release notes

I opened Codex and started with the beginner questions. Where could I play the cards I remembered? What belonged in a 60-card Standard deck? How did Commander work? I asked about Modern and Pioneer, too. Whenever an answer sent me off to change a deck, I could pull up the card text or the official rules and see if it held up. Wizards’ guide to Magic formats

A rules chat turned into a little research project. I used Codex to write the scripts, set up the comparisons, and read the game logs. Forge played the games. The ledger eventually hit 25,510 simulated games across several versions and studies. One of the best things I got out of all that work was knowing when to leave a single card alone.

What Would Make a Card Worth the Slot?

I had a trick I wanted to try. Hit my own Hexhaven, pull lands into play, and make Tarmogoyf huge. I had a much harder time answering what belonged in the slots around it. A card can sound great when you imagine drawing it at just the right moment. I wanted to know what happened when it showed up in an ordinary hand.

Early on, I kept asking Codex for more cards to try. After a while I asked it to zoom out and read the results we already had. What job was each swap meant to do? Where had we actually seen that happen? Which leads deserved another run? We kept a reference list, changed one slot at a time for the close comparisons, and wrote down what a card needed to do before we looked at the results. Forge simulation docs

My favorite example was trading a Close Encounter for a fourth Earthbender Ascension. I’d said the swap had to win more games and at least keep pace at getting both key creatures cast by turn six. It won 22 more games, and I almost had the answer I wanted. Then I saw the other column. It was three games short on the turn-six check. I left the saved list alone.

For the next test I asked a narrower question. If I cared about wins first, would I see the edge again? I wrote that down up front and kept the turn-six numbers so I could see what happened to the original plan. Codex set up a fresh comparison against the same field of 64 published opponent lists for both versions, with matched starting conditions and both versions getting turns on the play and on the draw. Each played 1,024 games. The old list won 598. The swap won 616, a gain of about 1.8 percentage points.

We used a bootstrap to check how much that edge depended on the games we happened to draw. The script sampled groups of games 10,000 times, keeping the two deck versions paired. The one-sided 95% lower bound was a gain of 0.68 percentage points in that Forge test. That cleared the bar I’d set and gave me a reason to try the swap myself.

Forge’s built-in players follow heuristics, and combo decks give them trouble. So I got the cards in MTG Arena and played Standard myself. An opening hand was mine to keep or throw back. I wanted to see whether I could recognize what the deck needed without a log or a spreadsheet in front of me. How Forge plays

I Wanted to Play the Boss

I’ve always loved RPGs, especially Final Fantasy. When I started getting into Commander at Rune & Board in Beaverton, I wanted to sit down with a party I’d picked myself. I could ask Codex for help with the deck and still be quite particular about who got to be in it. Rune & Board on Cardboard

For Bartz Klauser, the Final Fantasy printing of Winota, Joiner of Forces, I asked for birds, bats, and little flying machines that could attack early. Every attacking non-Human gives me a shot at finding a Human in the top six cards and sending them in. I wanted a tiny Ornithopter to go first and someone like Éowyn to come charging in behind it. I kept coming back with questions about how many flyers to run, how often the top six would hit, and what I could do when someone removed Bartz. We went card by card. I’d send a suggestion back if it started turning the deck into a token factory. Bartz and Winota rules

I have hundreds of days of playtime in Final Fantasy XI. When Absolute Virtue got a Magic card, I remembered the boss that went about three years without a widely accepted player win. Square Enix made the fight easier in 2008. I wanted to put the card on the table and have somebody across from me go, Oh. That fight. Square Enix’s 2005 timeline · The 2008 changes · Square Enix’s account of the fight

I had the ending in mind. Get to eight mana, cast Virtue, equip the Genji Glove, and get a second combat. I asked Codex to help me work backward from there and write a play guide I could use from turn one. Which hands could get me there? What do I spend mana on while I wait? How do I get past a blocker, and what do I hold to protect my creature? I could tell when a suggestion made the build better because I knew the scene I wanted to play. Absolute Virtue and Genji Glove rules

From Chat to a Hundred Cards

My deck list says Winota, Joiner of Forces. The card I want says Bartz Klauser. I love that there’s a difference. I like it a lot less when I’m about to buy a hundred cards and need to know which versions I’m ordering.

I built the deck tool I wanted for Cardboard. I can ask Codex for an importable list, paste it in, and see what every line matched. I can change quantities, pick the art and finish, then copy the purchase list into Card Kingdom’s builder and check stock and prices. I already shopped there, so I used AI to help write them an email about what I’d built. They replied and set me up with affiliate links. That was a cool email to get. I can earn a commission on qualifying purchases through those links. Cardboard’s Magic deck builder

Learning Rust on the Edge

I was already opening Codex to work on the decks. When I started building Cardboard in Rust, I opened it in the codebase, too. I wanted Cardboard to be a tool I’d actually use. I also wanted to see if I could run the Rust web server itself on Cloudflare’s edge.

I compiled Leptos to WebAssembly so it could render HTML inside workerd, the engine behind Cloudflare Workers. When I paste a hundred cards, the Worker can look up their names in batches in D1 and send back a page I can use right away. R2 holds the images and media. I’d bring Codex a build error and ask it to show me where the boundary was between Rust, WebAssembly, and the Worker. Then I could change one piece and run it again. I had a deck list I knew well, so I could tell when a lookup returned the wrong card even if the code built fine. Leptos · workerd · D1 · R2

Here’s one week in production, November 22–28, 2026 UTC. At P95, about 95 out of 100 operations finished within the stated time. The four golden signals

Production serviceTrafficLatencyResource use
Workers / workerd1.55 million invocations381 ms median and 927 ms P95 for HTTP 2xx–3xx responses36 MB isolate memory at P99, with a 128 MB limit
D1 / Magic catalog6.93 million read queries and 194 million rows read0.63 ms median and 4.86 ms P95 per query batch2.12 GB of the 10 GB database limit
R2 / Card images1.19 million operations and 37.5 GB returned140 ms median and 501 ms P95 per operation39.2 GB stored across about 487,000 objects
R2 / Site assets49,264 operations and 6.3 GB returned108 ms median and 421 ms P95 per operation2.9 GB stored across about 2,900 objects

Every printing gets a page. The sitemap helps crawlers find it, D1 indexes help look up the exact edition, and when R2 is missing an image, Cardboard can fetch and save a copy from Scryfall. I was surprised by the work that generated. Cloudflare’s separate traffic report for the same week attributed roughly three quarters of the domain’s 1.48 million HTTP requests to identified crawlers. GPTBot, Meta’s crawler, and Amazonbot led the list. The site can be quiet at human scale while the card catalog keeps the Worker busy. Cloudflare’s crawler metrics

The Sound of Opening a Pack

Draft starts with a single choice. You open a pack, take a card, and pass the rest. I built a 3D pack opener so I could practice that first pick on my own. I’d open another pack from the same set and see if I still liked my first choice. The opener labels boosters with estimated odds. How Booster Draft works · Cardboard’s pack opener

I watched Magic pack-opening ASMR videos frame by frame. The wrapper bends before it tears. The foil keeps crinkling after the cards slide free. There’s a little wait before you see the next card. I used AI to turn those observations into a script for the movements and the sounds. I modeled the wrapper and the cards in Blender, using MCP to let the AI work with the scene, then generated the foley in ElevenLabs. If the rip sounded early, I could go back to the frame where the seam actually opened. I kept opening the virtual pack myself to see if the timing felt right. Blender · ElevenLabs Sound Effects

Can Cardboard Pay for Itself?

A million requests from crawlers tells me the catalog is being read. For the business, I want to see people find a page and come back to build another deck. I’m learning AEO and GEO, the work of making a page easy for search and answer engines to find and cite. I want Cardboard to show up near the top of Google when someone looks up the card in their hand. A guide to reading the set code at the bottom of the card gives me something specific to try. I can use AI to help put the guide together, then look for people actually finding it and using the site. Google’s guide to AI in search

I want to market the deck builder to Commander players who are already shopping and see how often a finished deck list leads to an affiliate sale. I’d also like to pitch Secret Lair on an early digital pack opening before a drop goes on sale. Let people tear the wrapper, see what’s in the drop, and go straight to the official page if they want to buy it. I’m still looking for other ways to fund a site this big. Secret Lair

Two copies of a card got me to open Codex. Somehow I ended up learning how to make foil tear in a browser. And when I’ve been staring at Blender long enough, I still have that deck to go play.

The 60-card Standard list from Forge

This is the four-Ascension list from the 2,048-game comparison.

Copy the deck for Arena
Deck
4 Llanowar Elves
4 Tarmogoyf
4 Mossborn Hydra
4 Hexhaven Invigorator
3 Icetill Explorer
1 Formidable Speaker
4 Earthbender Ascension
4 Self-Destruct
1 Close Encounter
1 Monstrous Emergence
3 Something Worth Saving
1 Defend the Rider
4 Stomping Ground
2 Commercial District
3 Roiling Canopy
4 Elven Passage
12 Forest
1 Mountain

Make a quote card

Use a passage from this article in a slide or team discussion. Select text in the article first to choose a different passage.

ENG MANAGER

Matthew Harwood

How I Used Codex to Get Back Into Magic

https://engmanager.xyz/articles/two-hexhavens

Copy the quote and its source link, or select the passage above to copy it yourself.