What Codexe does behind the scenes
The steps between your request and a Ready project: continuing cut-off replies, the no-output retry, platform checks, repair with the real API, and what you pay for.
Updated
On this page
A lot happens between pressing Generate and a Ready project. Most of it is work Codexe does at its own cost so you get a complete, building project.
#1. The generation
The model writes the project in one reply, starting with a plan of the files it's going to write. You're charged for this reply.
#2. Continuation
Models sometimes stop mid-file, or skip a file they planned. Codexe detects this (an unfinished code block, a missing planned file) and asks the same model to continue, up to four times, until every planned file exists. You'll see Writing remaining files…. Continuation is billed like the generation reply, at the same rate per token. Before each round Codexe checks that your balance covers it: if it doesn't, continuation stops and Codexe moves on to the build and repair with the files already written. Your balance never goes negative.
#3. The no-output retry (free)
If the first reply describes the project instead of writing files, Codexe asks once more, explicitly, for the files. The same pass also cleans up placeholders such as // TODO. The retry itself isn't billed; if its reply is cut off, the continuation is billed as above.
#4. Platform check (free)
Before building, Codexe checks the files are for the platform you asked for. A Fabric mod delivered for a Spigot request would compile, but it isn't what you wanted. If the platform is wrong, Codexe regenerates it once with a stronger model. If that still fails, the project stops and, on a first generation, your tokens are restored.
#5. Build or load test (free)
Plugins and mods are compiled; datapacks and Skript are loaded on a real test server. See Compile.
#6. Repair with the real API (free)
When the build fails, the repair model sees the exact errors and the real public signatures of the library classes involved, read from the same JARs the build used. That's how it fixes "method not found" errors for the API version you're actually on, rather than guessing. See Auto Repair.
#What you pay for
| Step | Who pays |
|---|---|
| The generation reply | You (tokens) |
| Web searches the model actually completes (Business+) | You (tokens) |
| Continuation of a cut-off reply | You (tokens, same rate as the reply) |
| No-output retry, platform regeneration | Codexe |
| Builds, load tests, repairs, the escalation to a stronger model | Codexe |
| Extra output on a Free first generation above the 4,000-token cap | Codexe |
| A first generation that delivers nothing usable | Restored to you. See Credit restoration |