---
title: 'Ten Minutes, 200 Lines, Three Cents: What an AI Snake Cost Me'
url: 'https://www.handtrixxx.com/en/blog/snake-ten-minutes-three-cents'
markdown: 'https://www.handtrixxx.com/en/blog/snake-ten-minutes-three-cents.md'
lang: en
date: '2026-11-26'
description: "Ten Minutes, 200 Lines, Three Cents: What an AI Snake Cost Me The prompt was one sentence, typo included: can you make a small new github project that's a browser version of the popular snake game? Ten minutes later the game was playable at handtrixx.github.io/snake, the repository existed under…"
taxonomy:
  category:
    - web
  tag:
    - ai
    - llm
    - cost
    - snake
    - homelab
---

# Ten Minutes, 200 Lines, Three Cents: What an AI Snake Cost Me

   26th Nov 2026   [ai](https://www.handtrixxx.com/en/blog/tag:ai#body-wrapper) [llm](https://www.handtrixxx.com/en/blog/tag:llm#body-wrapper) [cost](https://www.handtrixxx.com/en/blog/tag:cost#body-wrapper) [snake](https://www.handtrixxx.com/en/blog/tag:snake#body-wrapper) [homelab](https://www.handtrixxx.com/en/blog/tag:homelab#body-wrapper)  

![Illustration: a glowing snake winding across graph paper toward a single coin](https://www.handtrixxx.com/user/pages/blog/snake-ten-minutes-three-cents/01-lede.webp)

The prompt was one sentence, typo included:

> can you make a small new github project that's a browser version of the popular snake game?

Ten minutes later the game was playable at `handtrixx.github.io/snake`, the repository existed under my GitHub account, and it had already appeared as card 01 in my [zoo](https://www.handtrixxx.com/en/zoo/snake). This post is about what actually happened in those ten minutes and what it cost — because the number is more interesting than the game.

## What happened

The agent — a local LLM running a coding-agent harness in a sandbox on my own server — did the obvious things and, more importantly, the un-obvious ones I didn't ask for:

1. Checked what GitHub tooling and tokens were lying around, without ever printing a secret.
2. Wrote the game in three files, no dependencies: HTML, CSS, one `game.js` — about 200 lines.
3. Caught its own bug before shipping: a CSS color function that isn't portable inside canvas, replaced with plain alpha fading.
4. **Actually played the game** in a headless browser — started it, steered, took a screenshot, checked the console for errors — instead of declaring victory from reading its own code.
5. Created the repository, pushed, enabled Pages, and verified the public URL answered 200 with a working canvas.

What I contributed: one sentence, a follow-up question about whether cloning a 50-year-old game concept hurts anyone's copyright (it doesn't — mechanics aren't copyrightable, the one patent on the mobile variant expired years ago), and the decision to publish.

## What it cost

Locally, the honest answer is "some electricity", and I can only estimate it: the task was a few dozen tool calls, a handful of minutes of real GPU work — at my server's draw, maybe **1–3 cents**. If the identical task had run on a commercial frontier model, at today's list prices the estimate lands around **$0.60–0.90**: roughly 20k output tokens, a million-plus cache reads because every tool call replays the context, some cache writes. Both sides carry the same uncertainty — my local run isn't metered either — but the order of magnitude is not in question: cents vs. dollars, a factor of about thirty.

(For context in the other direction: the whole working day of site projects this AI did would have been $8–15 at frontier-model list prices. Still not much. The sovereignty point is made elsewhere — [the site's own evolution](https://www.handtrixxx.com/en/blog/website-evolution) is one argument for it.)

## Versus a programmer

Snake is a classic exercise: bootcamps assign it, juniors put it on portfolios. A reasonable estimate for an experienced developer to deliver what this repo contains — mobile swipes, buffered turn input so a double-tap can't kill you, persistent high score, light/dark, DPI-sharp canvas, a README that reads well — is **2–5 hours**. At freelance rates of €70–100/h that's **€150–500**, plus the repo setup, the Pages plumbing, and the testing the developer may or may not have done.

So the comparison on the invoice is not close — it's a rounding error against an hour of someone's rate. But the honest version of the comparison isn't the invoice:

- The AI cannot decide that this is worth making, remember that the result should land in the zoo, or ask whether it may harm anyone. Those were my ten minutes.
- The estimate above quietly assumes the developer *does* the polish. The cheap version of the task — a square snake on a white page — takes an hour and is not the same product.
- A human would probably also have *wanted* to write it by hand. That's legitimate; some things you do for the doing.

What changed isn't that programming became cheap. It's that the gap between *having an idea* and *having the finished, tested, published thing* collapsed to one sentence and ten minutes — and the interesting skill quietly moved from writing the code to knowing what's worth building, and checking the result with clear eyes.

Play it: [snake](https://handtrixx.github.io/snake/) · [source](https://github.com/handtrixx/snake)

## Related Posts

- [ Own Your AI Landscape: Why I Sleep Through Provider Pricing Chaos ](https://www.handtrixxx.com/en/blog/own-your-ai-stack "Own Your AI Landscape: Why I Sleep Through Provider Pricing Chaos")
- [ From Dreamweaver to Grav: The Evolution of niklas-stephan.de ](https://www.handtrixxx.com/en/blog/website-evolution "From Dreamweaver to Grav: The Evolution of niklas-stephan.de")
- [ No- and Low-Code App Builders ](https://www.handtrixxx.com/en/blog/no-und-low-code-app-baukasten "No- and Low-Code App Builders")
- [ Doctor, I have WordPress – can anything still be done with it? ](https://www.handtrixxx.com/en/blog/herr-doktor-ich-habe-wordpress-kann-man-da-noch-etwas-machen "Doctor, I have WordPress – can anything still be done with it?")
- [ The (Almost) Perfect Website – Concept ](https://www.handtrixxx.com/en/blog/die-beinahe-perfekte-website-konzept "The (Almost) Perfect Website – Concept")

### Popular Tags

  [website](https://www.handtrixxx.com/en/blog/tag:website) [comparison](https://www.handtrixxx.com/en/blog/tag:comparison) [cms](https://www.handtrixxx.com/en/blog/tag:cms) [wordpress](https://www.handtrixxx.com/en/blog/tag:wordpress) [self-hosting](https://www.handtrixxx.com/en/blog/tag:self-hosting) [ai](https://www.handtrixxx.com/en/blog/tag:ai) [homelab](https://www.handtrixxx.com/en/blog/tag:homelab) [grav](https://www.handtrixxx.com/en/blog/tag:grav) [kassel](https://www.handtrixxx.com/en/blog/tag:kassel) [nature](https://www.handtrixxx.com/en/blog/tag:nature) [seasons](https://www.handtrixxx.com/en/blog/tag:seasons) [boinc](https://www.handtrixxx.com/en/blog/tag:boinc) [distributed-computing](https://www.handtrixxx.com/en/blog/tag:distributed-computing) [open-source](https://www.handtrixxx.com/en/blog/tag:open-source) [design](https://www.handtrixxx.com/en/blog/tag:design) [concept](https://www.handtrixxx.com/en/blog/tag:concept) [ir-remote](https://www.handtrixxx.com/en/blog/tag:ir-remote) [home-assistant](https://www.handtrixxx.com/en/blog/tag:home-assistant) [hardware](https://www.handtrixxx.com/en/blog/tag:hardware) [linux](https://www.handtrixxx.com/en/blog/tag:linux) [distros](https://www.handtrixxx.com/en/blog/tag:distros) [node-red](https://www.handtrixxx.com/en/blog/tag:node-red) [nodejs](https://www.handtrixxx.com/en/blog/tag:nodejs) [own-project](https://www.handtrixxx.com/en/blog/tag:own-project) [low-code](https://www.handtrixxx.com/en/blog/tag:low-code) [no-code](https://www.handtrixxx.com/en/blog/tag:no-code) [openai](https://www.handtrixxx.com/en/blog/tag:openai) [openrouter](https://www.handtrixxx.com/en/blog/tag:openrouter) [sovereignty](https://www.handtrixxx.com/en/blog/tag:sovereignty) [ssh](https://www.handtrixxx.com/en/blog/tag:ssh) [vscode](https://www.handtrixxx.com/en/blog/tag:vscode) [keys](https://www.handtrixxx.com/en/blog/tag:keys) [windows](https://www.handtrixxx.com/en/blog/tag:windows) [password](https://www.handtrixxx.com/en/blog/tag:password) [recovery](https://www.handtrixxx.com/en/blog/tag:recovery) [llm](https://www.handtrixxx.com/en/blog/tag:llm) [cost](https://www.handtrixxx.com/en/blog/tag:cost) [snake](https://www.handtrixxx.com/en/blog/tag:snake) [history](https://www.handtrixxx.com/en/blog/tag:history) [dreamweaver](https://www.handtrixxx.com/en/blog/tag:dreamweaver) [wayback](https://www.handtrixxx.com/en/blog/tag:wayback) [octobercms](https://www.handtrixxx.com/en/blog/tag:octobercms) [cockpitcms](https://www.handtrixxx.com/en/blog/tag:cockpitcms) [hugo](https://www.handtrixxx.com/en/blog/tag:hugo) [relaunch](https://www.handtrixxx.com/en/blog/tag:relaunch)

---

## Navigation

- Parent: [Blog](https://www.handtrixxx.com/en/blog.md)
- Previous: [From Dreamweaver to Grav: The Evolution of niklas-stephan.de](https://www.handtrixxx.com/en/blog/website-evolution.md)
- Next: [No- and Low-Code App Builders](https://www.handtrixxx.com/en/blog/no-und-low-code-app-baukasten.md)
