Posted on ::

I discovered the advent of code in 2021, and did it in bash. Then I learned Go, and since then I do the challenge, and the previous years too, in Go (see my starting the 2015 challenge post). All my solutions live in my GitHub repository: advent-of-code-my-solutions.

So, as usual, I started the 2026 edition in Go: go/2026.

But this year is a bit different. As I use more and more AI in my daily life — I even got my first AI-assisted pull request accepted — I realized that my AI-less programming skills need refreshing. So I now see AoC as a way to keep them sharp, and I want to continue solving the puzzles by hand (or should we say: "by wet brain").

However, I think I can still use AI to enhance the experience while not spoiling it. So I decided to make my AI play the role of a teacher that evaluates me but does not give me solutions. I posted about it on Reddit: [2026] How do you use AI with AoC?, and I was curious to hear how others plan to do it.

My AI is my local model, Qwen-Flash-Next served by my Strata server, so nothing leaves my machine. The full instructions I gave it are in the repo: TEACHING-PROMPT.md — a teacher, reviewer and rubber duck, not a solution generator. In short, the golden rules:

  • Never solve a puzzle for me unless I explicitly ask for it, and then only after offering the idea first.
  • "Is my answer right?" means PASS/FAIL only. Never print the expected value for my personal input.
  • Never rewrite my code; the puzzle logic stays mine.
  • Questions about the language, the standard library or the tooling: answer fully and directly — that is not a spoiler. Questions about puzzle logic: a hint ladder only, from "what invariant do you think holds after each step?" up to pseudocode with blanks, and the full solution only after an explicit request.
  • Never pre-solve a day I have not shown yet.
  • Short answers: I should spend more time coding than reading the AI.

So far it works well. The AI is a good rubber duck, and its code reviews — style, correctness risks, missing tests — are useful precisely because they stay out of the puzzle logic.