Back

[Analysis]

NCSC vibe coding spectrum: reviewing AI-assisted code

The NCSC's new vibe coding spectrum makes a simple point: how much you let AI write should depend on what the code does. Here's how we review AI-assisted pull requests, and where we insist on slowing down.

The pointed prow of the Nova South building, clad in red glass and pale metal fins, against a clear blue sky.
Nova South in Victoria, London, home of the National Cyber Security Centre. Contains public sector information licensed under the Open Government Licence v3.0. Cropped from the original. Photo by HM Government, OGL v3.0.

A growing share of the pull requests we review were written, at least in part, by an AI assistant. Sometimes the author tells us. Often they don’t need to. The question we’re asked most is whether that should change how code is reviewed. The short answer is yes, and the NCSC has just given us a useful way to explain why.

The NCSC’s position

In March 2026, the NCSC’s chief executive Richard Horne used his keynote at the RSA Conference to argue that “vibe coding” is an opportunity as well as a risk:

The attractions of vibe coding are clear, and disrupting the status quo of manually produced software that is consistently vulnerable is a huge opportunity, but not without risk of its own.

In June, the NCSC followed up with a blog post describing a vibe coding spectrum. At one end, you write the code and your editor offers AI-powered autocomplete. At the other, you give a high-level prompt and the AI has autonomy over the architecture, code, modules and tests. Most real work sits somewhere in between.

The NCSC’s advice is to decide where to sit based on what’s at stake. Slide towards writing it yourself for authentication and authorisation logic, sensitive personal data, secrets and credentials, and safety-critical systems. Slide towards the AI for prototypes, demos and internal tools with no sensitive data. And for security-critical code, the NCSC is explicit that you must review what the AI produces, understand the code, check for vulnerabilities and verify it does what you expect.

[The vibe coding spectrum]

You write it; AI autocompletesAI owns the architecture, code and tests

Stay left for

  • Authentication and access control
  • Sensitive personal data
  • Secrets, tokens and credentials
  • Safety-critical systems

Slide right for

  • Prototypes and proofs of concept
  • Demos to communicate an idea
  • Internal tools with little exposure
  • No sensitive data or security functions
Adapted from the NCSC's vibe coding spectrum. Contains public sector information licensed under the Open Government Licence v3.0.

The risk, in other words, isn’t using AI. It’s using it without safeguards where the stakes are high.

How we review AI-assisted code

Here’s what that looks like in practice for us:

The NCSC notes that you could use another AI agent to help with that oversight, and we do. Automated review catches a lot. But a person stays accountable for what gets merged, and for code on the left of the spectrum, that person needs to have actually read it.

Designing for mistakes

The NCSC makes one more point that’s easy to miss: architect the wider system around your code to minimise the impact if it is exploited. That was good advice before AI, too. Least-privilege access, separated environments, secrets kept out of code, and logging you’d notice something in all limit how far one bad line can reach, whoever wrote it.


Sources

Back