Over Christmas I had an agent build me a game from scratch.
If I can't look at the code, how do I know it's working?
If I need observability...
so does the agent.
It's writing visual code. Shaders, lighting, physics.
It can't just print() its way through this.
"How do I design the codebase so the agent can succeed?"
So we had a back-and-forth:
The agent designed its own debugging system.
Then documented it in AGENTS.md for next time.
Make room for solutions you didn't anticipate.
The agent needed visual feedback. I didn't build that.
But the codebase had:
So it built:
--debug-script "frames 3; screenshot test.png; quit"
# Test jump pad mechanics map assets/maps/fjord_jump.map god on frames 5 # Teleport near the jump pad teleport 13.0 7.0 screenshot debug-temp/near_pad.png # Walk onto pad, wait for jump input +right frames 20 input stop frames 80 screenshot debug-temp/landed.png quit
It's tempting to write instructions like:
You don't know what solution the model will naturally gravitate toward.
The model has been RL'd on... something.
I didn't say "build a debug script system."
I said:
The agent built a 1200-line debug scripting system:
Would I have designed it that way?
Maybe not.
Does it work?
Absolutely.
The agent builds tools.
Sometimes it doesn't use them.
When a session fails, feed it back:
When the agent isn't using its tools:
Only one of those scales.
The tank game was built with pi — a minimal, hackable coding agent.
My advice:
github.com/badlogicgames/pi-mono
Code is free now. This changes everything.
This presentation was made fully by an agent — directly to HTML.
The presentation software was built from scratch by an agent.
github.com/mitsuhiko/mini-presenter
Rethink everything.