Guides · Updated 20 November 2026
How to check code written by AI before you trust it
Never trust AI code just because it runs once. Run it with normal, empty, wrong and very large inputs; read every place it handles money, logins or user data; check that every library it imports really exists; and keep tests that prove each requirement.
Mistakes AI-written code often makes
- Happy-path only: it works for the example and breaks on empty or wrong input
- Buttons or features that look finished but do nothing
- Imports of packages or functions that don't exist
- Missing permission checks: one user can see another user's data
- Money rounding and time-zone mistakes
- Secrets such as API keys written into the code
A 10-minute checklist
- Run it with an empty input, a wrong type ("abc" where a number goes), and a huge input.
- Click every button and link. Anything that does nothing is a bug.
- Search the code for keys and passwords; move them to environment variables.
- For logins and data: sign in as two users and check that neither can see the other's data.
- Check every package it installs on the official registry (npm, PyPI).
- Write a small test for each rule the code must follow, and keep it.
How SPLEX does this for you
SPLEX is built for one thing: code that works. It checks every file after it is written, opens the finished app in a real browser and clicks through it, and fixes what fails before you see "Ready".