Compare all models on this prompt →
Snake · gpt-5.1-codex-mini
Output generated Cost / run $0.0052 Runtime 18.8s
Prompt for this run
Build a playable Snake game on a canvas with arrow-key controls, a growing tail, food, score, and a game-over and restart state.
⛨ sandboxed Open in new tab ↗
TAKE IT TO CODE
A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.
RUN
modelgpt-5.1-codex-mini
vendorOpenAI
harnesspi-agent
generated2026-08-01
METRICS
runtime18.8s
tokens in6.8k
tokens out2.2k
cached4.2k
cost / run$0.0052
Transcript · 8 messages
user
Build a playable Snake game on a canvas with arrow-key controls, a growing tail, food, score, and a game-over and restart state.
assistant
→ bash
{"command":"pwd"}toolResult
/tmp/ws
assistant
→ bash
{"command":"ls"}toolResult
(no output)
assistant
thinking
**Creating the game file** I’m getting ready to create an index.html for a snake game. I’ll remember to include the canvas, style, and script all in one file. It seems I need arrow controls for movement, a growing tail, food, a score display, and also conditions for game over and restart. I’ll write everything inside the script tag. I should also provide a final message to let the user know the file is created.
→ write
index.html (6168 bytes)toolResult
Successfully wrote 6168 bytes to index.html
assistant
Created `index.html` containing a fully self-contained Snake game with inline styling and scripting.