What does an AI code audit check?
It checks everything a normal code review would (structure, tests, error handling, security) plus the parts that only AI systems have. That means how prompts are built and versioned, whether user input can steer the model somewhere it should not go, whether model outputs are checked before they are used, and what happens when a model is slow, wrong or down.
It also checks the money. Many AI products send far more tokens than they need, call a large model where a small one would do, or repeat the same request without caching. Those show up as findings with an estimated saving.
Should we fix our AI project or rewrite it?
Most of the time, fix it. A rewrite throws away the parts that work along with the parts that do not, and brings new problems of its own. An audit shows which parts are sound, so the team can keep them and fix the rest in order of risk.
A rewrite makes sense when the foundations themselves are wrong: a data model that cannot hold what the product needs, or a design that cannot be secured. The audit says so plainly when that is the case.
What are the most common problems in AI applications?
The ones we look for first: API keys and secrets in the code or the browser; user input passed straight into prompts; model outputs trusted without checks; no timeouts or fallbacks when a model call fails; no record of which prompt version produced which answer; and no tests that run real questions against the system after a change.