AI & tools
A guide so AI makes fewer mistakes when it codes
A handbook of 186 entries that AI reads before writing code for games in Fortnite, the video game where creators can publish their own games. I test it, I measure, I fix.
01The need
When AI writes code for Fortnite games, it makes mistakes: when it lacks information, it makes things up.
02What I built
I wrote a handbook of 186 entries that AI reads before writing code for Fortnite games.
I test it with AI agents: they carry out tasks, a judge grades their work, then I fix the handbook wherever they go wrong. After a series of fixes, the three lowest-scoring tasks went from 4 to 7.7 out of 10 on average.
The guide · at a glance
A loop: test, grade, fix
Every mistake the judge spots becomes a fix in the handbook.
01Request
- A requestA task to carry out for a Fortnite game.
02Reading
- The AI reads the handbookIt looks up the entries it needs.
03Code
- It writes the codeBased on what it has read.
04Grade
- A judge gradesThe result gets a grade out of 10.
05Fix
- I fix the handbookWherever the AI went wrong. Then we go again.
- 186 entries
- One grade out of 10 per task
- We go again after every fix
The result
The three lowest-scoring tasks
Average grade, before and after a series of fixes to the handbook.
03How it works
A handbook to read first
186 entries that the AI reads before writing code.
Agents put to the test
AI agents carry out tasks using the handbook.
A judge who grades
Each result gets a grade out of 10.
I fix the handbook
Wherever the agents go wrong, I fix the handbook, then test again.
04What I took away
AI makes things up when it lacks information. The right answer: give it checked sources, then test it.