Why a murder mystery Christmas advent calendar?

Arthur Ashbourne - PortraitMy wife loves Murdles. If you haven’t seen them, they’re logic puzzle books where you work out who did it, with what, and where, using a grid and a pile of clues. She has a shelf of these books and similar ones, and she’s good at them.

She also started making her own. She used AI to write puzzles she could then solve herself, which is a clever trick. The AI builds the constraints, and she gets to play detective on a case that didn’t exist an hour earlier. Her favorite AI to use is Meta Muse.

She wanted an advent calendar for December and had given me some links, including one that I did purchase: Merry Murdle.

That made me think, what if I built her something personalized? Based on her home town. Using some of the puzzles she enjoys enough to have an AI create them for her!

So I did. It’s a 25-day Christmas murder mystery, built as an alternate reality game. It opens with a voicemail from a frightened stranger on Thanksgiving. From December 1 to December 25, a new puzzle arrives every morning. There are emails, dossiers, photos, a real phone line she can call, and a few physical props that show up in the mail. It ends with a padlocked gift on Christmas morning.

This post covers how it got built: the tools, who checked whom, the plumbing underneath, and what I bought.

Where the idea came from

I started with what she had already made, plus the books she had finished and enjoyed. I wasn’t hunting for a twist. I wanted to know what she actually likes: the closed-world logic, a cast of suspects, the click of a clue landing. From that I settled on a base idea. An advent calendar, built as an alternate reality game (ARG). Every morning in December, a new piece of the case shows up. Emails, dossiers, photos, a tip-line voicemail, a postcard. She solves, the story moves, and the next day opens.

One input mattered more than any tool. She found one commercial mystery too hard because it needed outside science knowledge. That became a rule for the whole game: no outside knowledge, ever. Everything you need is on the page.

The tools, including the one that didn’t fit

Toby Ainsworth - CCTVThe first draft of the idea came from Gemini. I was using the Argon model, and it was not the best fit for this job. It copied, name for name, characters from Murdle Mysteries, and had some inconsistent logic. It asked for “six items whose letters spell LOGBOOK,” and LOGBOOK has seven letters. It also had the victim found in a locked greenhouse and then poisoned in a bell tower, with no explanation for how he got from one to the other.

A newer Gemini model might have done better. I would expect that Neon would not have had the same issues.

But Gemini gave me the start, and showed me that it was viable. I’m a BIG fan of loops and verifications. So, of course I took what Gemini gave me (via a GitHub repo) and then used Claude and Codex to refine the initial idea. We had a few long conversations about what the game is, how the puzzles chain together, and how answers get verified. That’s where the project spine originated.

From there, Claude built it. Codex checked the work.

The roster

Stage Tool Role
Original idea Gemini The seed concept
Refinement Claude, Codex Pressure-testing the idea into a design
Build Claude Writing, structure, continuity, scheduling
Verification Codex Second reader throughout
Visuals Nano Banana Pro, ChatGPT Image Character photos, dossier images
Sourcing GrokBot Hunting for a vintage book (see below)

One builder, one checker

Ray Lindqvist - At the scene - plus BarnabyEarly on, Claude and Codex bounced back and forth writing and updating each other’s work. Later, as I was confident in the puzzles, I had Claude take over and Codex was the second reader. Its job was to catch what the builder couldn’t see: continuity slips, clues that gave away their own answers, dates that didn’t line up.

I like this split for a practical reason. A model reviewing its own work tends to share its own blind spots. A different model reads differently and misses different things.

For one, I wanted to bring her interests and things we have done together into the story. We went to a lavender farm last summer. That is where the recipe that integrates lavender came from. Codex had some major pushback, because the original idea from Gemini had a LOT of her interests baked in, and it diluted the impact of them. Some of the story elements were tightened up between the Claude and Codex versions. They both caught a few Gemini mistakes, like naming some of the characters the same.

Early on, the feedback ran both ways. They would work on story, and then look at each other’s work and reconcile it. Some things would stay from Codex, some from Claude. I was the mediator in between. I think this really strengthened the story AND the individual daily puzzles.

Claude did most of the building after that, mostly Opus 5.5 with some Sonnet 5.5. Here is what Codex caught:

  • A receipt is not an alibi. The main red-herring suspect needed to be cleared fairly, and a receipt didn’t prove where he was. Codex insisted on a witness. The fix used canon already in place: a craftsman who could vouch for him, with a dated photo in his gallery. The photo appears days earlier for a different reason, so the clearing day feels earned rather than withheld.
  • A recipe card with all the clues printed can be solved early. An item that arrives in the mail can’t carry the whole puzzle. The fix: print only the shuffled steps on the card, and put the ordering clues in the email that activates it. The card alone is incomplete by design.
  • A paw print can’t fix a time. A print identifies a page, not a moment. It now authenticates the original document, which is all it can honestly prove.
  • Every day needs a real puzzle. Claude’s draft treated delivery days and phone days as rest days. Opening a package or entering yesterday’s code is an interaction, not a puzzle.
  • Elimination is not proof. The final accusation had to be built on positive evidence, not on “the other suspect is cleared, so it must be this one.”
  • December 20 is a Sunday. US mail doesn’t deliver then. A package scheduled to arrive that day would have failed. Claude missed this.
  • It re-solved her own puzzle. Codex re-ran her 1,200-name elimination puzzle to confirm its answer, which set the standard for every day: re-derive the answer from the material the player actually sees.

It went both ways. Claude was right about name collisions with characters in her own puzzles, about using scheduled deploys instead of a server, and about her interests. Claude also conceded real errors. I decided every disagreement. No day ships while two documents disagree about its answer.

The plumbing

GitHub

The repo is private, because it holds every answer. It’s also the single source of truth and the way the agents talk to each other.

  • The repo is the conversation. Each agent writes its own clearly labeled files, and neither edits the other’s. Responses go in new files or new sections. Pull requests carry the discussion.
  • Merge gates. Agents merge their own documentation. Anything that changes the story or an answer waits for me.
  • It worked from anywhere. The Claude Code session lives in the cloud and the work lives in GitHub, so I could pick it up at work or at home.
  • One canon, one answer registry. Every answer is logged in one place with its exact input format: case, spaces, leading zeros.
  • A scheduled GitHub Action triggers the daily release. On December 1 we found that GitHub may have trouble running automations at the top of the hour. It started out at 7:00 a.m.  It is now at 6:30, and has 3 retries before 7am.

Cloudflare

The game’s archive site is static, hosted free on Cloudflare Pages. The design problem was keeping future puzzles off the site until their date.

A static site can’t hide a file it ships, and hidden URLs aren’t secret. So the build script only copies in records whose release time has already passed, and publishes only their answer hashes. Each morning a GitHub Action calls a Cloudflare deploy hook, the site rebuilds, and the new record appears. There’s no server and no login, and nothing to leak early. A record goes live at 6:30 a.m. Mountain, with several scheduled tries between 6:32 and 7:04. The daily emails carry the PDFs too, so a late site never blocks her. Nobody runs the game by hand.

The answer check is a hash in the page, not a server. Someone determined could brute-force a short answer. That’s fine for a gift game. It exists so she can confirm a solve.

What went wrong, for anyone doing this:

  • Turn DNSSEC off before moving nameservers. After the switch, Cloudflare’s resolver answered correctly while Google’s public DNS returned errors until its cache expired. Nothing was misconfigured. Check with more than one resolver.
  • A domain move dropped records the import missed. Write down every DNS record before you switch.
  • The project name is public. A Pages project name becomes part of a public hostname, so don’t name it after the player or the repo.
  • Turn off preview deployments, or every branch push gets its own public URL.

ElevenLabs

The voicemail and the phone recordings use an AI voice, so my wife doesn’t recognize mine. I used Eleven v3, which reads bracketed audio tags like whispers and sighs, though results vary by voice. Generate four to six takes and pick the best one.

Two small lessons. Her name gets mispronounced, so the text I gave the generator spelled it the way it’s said, while the transcript on the site keeps the real spelling. And I ran the final audio through loudness normalization and added a half-second lead-in, so the start of the message isn’t clipped when it plays through a phone.

Twilio

One Twilio number does two jobs. It places the Thanksgiving voicemail, and it works as an inbound tip line she can call during December. She enters a code from a solved puzzle and hears a recording. A wrong code gets a friendly “no record under that number.”

  • Cost. A US local number runs about $1.15 a month, with voice at roughly a cent a minute (checked in mid-November, so verify before you rely on it). Upgrading off the trial requires a $20 prepaid top-up, which covers the whole game with room to spare.
  • Upgrade off the trial. Otherwise calls open with a trial-account announcement.
  • Unknown numbers go to voicemail, so I designed the Thanksgiving call as a voicemail from the start. Twilio’s machine detection waits for the beep before it plays.
  • Click Deploy All. I uploaded the audio, tested the call, and saw “an application error has occurred.” Twilio assets aren’t live until you deploy them and set them to public. Test the asset URL in a private browser window first.
  • No texting. Texting from a new US business number needs carrier registration that takes weeks, so I used voice only.
  • Everything on the phone also exists as a transcript on the site, so the phone is never required.

The images

Season's Greetings PostcardThe photos in the game are a mix of Nano Banana Pro and ChatGPT Image. The AI-generated images are just part of it. They add an enrichment layer.

Claude wrote the prompts for each character and scene. The image models rendered them. I actually used the same prompt on both ChatGPT and Gemini, and chose my favorite. I will say, Holy Cow, Nano Banana is fast at image generation.

One rule I learned early: don’t let the image model write words. AI lettering garbles. I generate emblems and illustrations with no text, then add names, numbers, and puzzle keys in real fonts. And Claude is the one that adds those items over the generated images.

I just prompt one main character dossier image and then just keep referencing back to that image for other images and keep it in the same conversation.  I don’t need a ton of images.

The physical pieces

As an Amazon Associate I earn from qualifying purchases. Some links in this post are affiliate links, so if you buy through them I earn a small commission at no extra cost to you. These are the exact products I bought. Feel free to choose your own. The links are here so you can see what I used.

The game mostly runs on a website and printable PDFs. Almost everything I bought is an upgrade, and I’ll say which ones. Two pieces are different, because I wanted at least a couple of keep-sakes from this. Ok, realistically, you DON’T need the physical items, at all.  But, I think they really upgrade the experience.

Mailed props ship early and stay incomplete until that day’s email supplies the missing piece: an ordering clue, a cipher key, a lock code.

What the game needs

  • Wood Treasure Chest with 3-Digit Lock: She opens it with a code she earns from a puzzle.
  • Hollow Wood Christmas Ball Ornament: It sits locked in the chest and holds a note with the clue for another puzzle. The ball ships with paper and a small envelope that fits inside, so there’s nothing else to buy. This is the one place where the physical object carries information the website doesn’t.

What made it more fun

The book

Claude recommended Agatha Christie’s Five Little Pigs (published in the US as Murder in Retrospect) as the date-night reading, a bit of foreshadowing. I wanted a vintage copy. Most of the vintage editions I found ran hundreds of dollars, and some ran into the thousands. Grok helped with the search, and then AbeBooks came through with an older London-printed copy from 1963. It’s a later printing, not a first edition, and it still has the feel I wanted. Any edition works for the game itself. The vintage copy is just a nicer thing to hold.

What’s next

This covers the setup and the build. Next up is what happens when a real person plays it, and then a postmortem after Christmas on what I’d do differently or what I learned, if you want to try this.  I plan on also providing prompts for this, then.