Colourful code on a computer screen
Photo: Godfrey Atima / Pexels

CODING

AI writes the code now, but people still have to check it

The head of code quality company Sonar says AI has made code cheap but trust in it scarce. In one test, an AI reviewer found 40 issues, then 11, then 18 in the same code. He believes humans must still set the rules and check important work.

By the expl-AI-n news desk · · 2 min read

AI can now write most of the code in a software project. The hard part is knowing whether that code is any good.

That was the message from Tariq Shaukat, chief executive of code quality company Sonar and a former president of Google Cloud, at a developer conference in New York this week.

Plenty of code, not enough confidence

Shaukat says AI coding demos look impressive because they run in clean, simple setups. Real businesses have messy systems built up over years. An AI can check a small piece of code well, but checking a system with a million lines is much harder.

He shared a telling example. In one codebase, an AI coding tool reported 40 issues on its first review, 11 on the second and 18 on the third. Research also shows AI reviewers often change their minds when another model disagrees, or simply when asked the same question twice.

More AI is not the answer

Adding more AI agents to check each other costs more time and money, and does not reliably fix the problem. Shaukat's advice is to give AI clear instructions instead: exactly what kind of problem to look for, and what good and bad results look like.

He describes "dim factories" for software. Low-risk parts can be fully automated. Parts that the law says a human must check need close human involvement. For everything in between, people review the overall result rather than every line.

He compares it to a washing machine. You do not check every load, but you trust it because experience shows it works.

The lesson for business owners

The same thinking applies whenever you use AI for real work, from writing to spreadsheets to simple apps:

  1. Give clear instructions about what a good result looks like.
  2. Check high-risk work yourself, especially anything involving money, customers or the law.
  3. Spot-check the rest until you have evidence the AI gets it right.
  4. Ask twice. If AI gives different answers to the same question, do not trust either without checking.

Share this story

Spotted a mistake? Tell us.

Get the day's AI news by email

Free. One email a day. Unsubscribe any time.

We only use your email to send the expl-AI-n news. We never share it. See our Privacy page.