Skip to content
Back to home

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.

  • AI agents
  • AI evaluation
  • Writing

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.

  1. 01Request

    • A requestA task to carry out for a Fortnite game.
  2. 02Reading

    • The AI reads the handbookIt looks up the entries it needs.
  3. 03Code

    • It writes the codeBased on what it has read.
  4. 04Grade

    • A judge gradesThe result gets a grade out of 10.
  5. 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.

  • Before4 out of 10
  • After7.7 out of 10

03How it works

  1. A handbook to read first

    186 entries that the AI reads before writing code.

  2. Agents put to the test

    AI agents carry out tasks using the handbook.

  3. A judge who grades

    Each result gets a grade out of 10.

  4. 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.