Advent of Code 2026: Preparations and the AI Challenge

Nov 28, 2026 min read
TL;DR TL;DR — Quick Summary & Key Takeaways

This December, I’ll be tackling all 12 days of Advent of Code 2026 in Python and publishing daily walkthroughs comparing my own code against AI-generated solutions. Once the puzzles wrap up mid-month, I’ll be taking a winter break from the blog before returning in January 2027.

  • Human vs AI head-to-head: I’ll solve every puzzle solo first (with AI autocomplete enabled), then test Google Gemini 4 Hydrogen on Medium effort, escalating to Neon and then Carbon until a model solves it, and compare its efficiency against my own code.
  • Proven Python tooling: Solutions will live in my AdventOfCode2026 GitHub repository, powered by uv and ruff.
  • Daily December posts: Expect a post each day covering the puzzle logic, my Python implementation, and how effective each Gemini 4 model proved until one solves the problem.
  • Winter break: After Advent of Code finishes, I’ll pause publishing over Christmas and New Year before kicking off my 2027 schedule.

December is just days away, which means Advent of Code is about to return for another twelve days of festive algorithmic puzzles. Last year I focused purely on execution speed in Python, documenting my setup in Advent of Code 2025: Preparations and publishing daily walkthroughs under the Advent of Code tag. This year I’m returning with Python to tackle all twelve days again, but I’m adding a head-to-head AI comparison to every daily post before taking a winter break until 2027.


From Retrospective Question to 2026 Experiment

In my Advent of Code 2025 retrospective, I reflected on having GitHub Copilot enabled while writing my puzzle solutions. Having AI autocomplete repetitive boilerplate saved plenty of typing while still leaving the algorithm design to me, and I noticed myself wondering what would happen if I handed the entire puzzle over to an agentic coding tool instead. As I noted at the end of last year, describing what an application needs to do and verifying the generated code increasingly mirrors how senior engineers work.

For 2026, I’m turning that curiosity into a side-by-side experiment. I’ll still design and write my own solutions first (keeping AI autocomplete on to save writing boilerplate), and once I’ve solved the day’s puzzle, I’ll ask an AI model to solve the whole thing independently from scratch. That way, I still get the full mental workout of working out the algorithms myself, while turning each daily blog post into a practical benchmark of human-designed code versus autonomous AI problem-solving.


The Human vs AI Format

The model lineup: Gemini 4 Hydrogen, Neon, and Carbon

For the AI side of the experiment, I’m using a three-tier escalation strategy rather than jumping straight to the heaviest frontier model on day one. Every day, the first model in the hot seat will be Google Gemini 4 Hydrogen on Medium effort. I expect Hydrogen won’t even break a sweat for the first few days, though it’ll likely start getting stuck once the later puzzles ramp up in complexity.

If Gemini 4 Hydrogen gets stuck, hallucinates an invalid approach, or fails to produce the right star on either part, I’ll step up to Gemini 4 Neon. If Neon also falls short, I’ll escalate once more to Gemini 4 Carbon.

In day-to-day development, I like to right-size the model by using lighter models where I believe they can achieve the task, and defaulting to larger models when the problem is clearly hard. In each daily post, I’ll report how effective Gemini was on every model I tried until I reach the one that solves the problem. That progression should reveal exactly which puzzle mechanics trip up smaller models as the difficulty ramps up across the twelve days.

Rules of engagement

To keep the comparison fair and enjoyable, I’m sticking to a strict order of operations each day:

  1. Design and code my own Python solution for Part 1 and Part 2 first, using AI autocomplete only to speed up repetitive boilerplate.
  2. Record my solution’s runtime and commit the working code.
  3. Hand the puzzle description and input to Gemini 4 Hydrogen on Medium effort, escalating to Gemini 4 Neon and then Gemini 4 Carbon if needed until a model produces a working standalone Python solution.
  4. Benchmark the winning Gemini solution on the same puzzle input, report how each attempted model fared, and compare its efficiency against my hand-written implementation.

What I’ll be comparing

Getting the right answer is only half the story in Advent of Code, especially when Part 2 scales the input size up by several orders of magnitude. In terms of Big-O notation, an $O(N^2)$ brute-force loop that finishes Part 1 in milliseconds will often grind to a halt on Part 2. In each daily post, I’ll report how each Gemini tier performed and compare the efficiency of the winning AI solution against my hand-written code across three main dimensions:

  • Algorithmic approach: Did the model spot the underlying mathematical shortcut, graph traversal, or dynamic programming state, or did it try to brute-force the problem?
  • Execution speed: Using Python’s time.perf_counter, how many milliseconds does each solution take to run both parts?
  • Readability and style: Which solution is cleaner, more Pythonic, and easier to understand when you read it back?

Tooling and Repository Setup

I’m keeping the streamlined project structure that served me well in last year’s preparations. All of my code and the AI-generated solutions will be published in my AdventOfCode2026 GitHub repository so you can follow along and run the benchmarks yourself.

The project uses uv for dependency management and script execution, paired with ruff to keep formatting consistent. If you want to learn more about either tool, you can check out my earlier guides on migrating to uv and using Ruff for Python code quality. Just like last year, the test runner reloads the raw input file between Part 1 and Part 2 so that any in-place list or grid mutations in Part 1 never cause subtle bugs in Part 2.


Daily Posts and a Winter Break

Ever since creator Eric Wastl streamlined Advent of Code to twelve days of puzzles in 2025, keeping up with a daily December blog series has become much more manageable. Starting on 1st December, I’ll aim to publish a post each day breaking down the puzzle, walking through my Python solution, reporting how effective each Gemini 4 model was until one solved it, and comparing its efficiency against my own code.

Once the Advent of Code series concludes, I’ll be taking a break from blogging over the Christmas holidays and New Year. After a full year of weekly posts and twelve daily puzzle write-ups, I’m looking forward to recharging before kicking off my 2027 articles in January.


Wrapping Up

I’m really looking forward to kicking off Advent of Code 2026, sharpening my Python skills, and seeing where Gemini 4 Hydrogen shines or where Neon and Carbon have to step in. If you’re taking part this December, feel free to star or fork my AdventOfCode2026 repository and compare your own solutions along the way.

You can catch up on all of my previous puzzle write-ups under the Advent of Code tag, or browse my other AI experiments under the Agentic AI tag. Look out for my Day 1 solution and the first human-versus-AI showdown on the 1st of December!

Last Updated: Nov 28, 2026