I pressed play in Godot and got a power check instead of my game.
Codex had left one of its own test tools on the play button. The test checked whether my computer was plugged in, failed, and quit. No game.
Every new task starts with an agent that remembers nothing about the last one, so the same kind of bug can come back anytime.
The fix went into a header, one block of rules I paste above every task. It now includes these three lines:
- Remove every test tool you added.
- Commit after every step that works.
- Before you report, launch the project the normal way and confirm it's still running after 60 seconds.
The third one is my favorite. "All tests pass" and "the game opens" are two separate claims, and that bug lived exactly in the gap between them.
A mistake the agent makes once becomes a line it reads before every task after.
The full header is in my article on the 8 rules to set before an AI writes any code. Scroll to rule 8, the last one. Prompt 4 sits right under it. Add line 3 from above to its "Clean up" step.
8 decisions to make before Codex writes a single line I skipped a few and paid with a full round of rework All 8 are in the article, with 4 prompts you can paste into your agent https://x.com/i/article/2127435254314967040在 X 查看被引用的帖子
来源:LvlForge | AI for game devs · x.com