Site icon Christina Ljungberg

What happens to Software Architecture when AI can generate unlimited code?

This is an AI generated text, a ChatGPT question with an answer that is just too interesting to throw away. My question was something like: When using AI to generate code we will be significantly more productive and therefore end up with a much bigger codebase. How do we architect our systems so that we can maintain the increased amont of code? The answer I got describes a paradigm shift, identifying a very different way of working with systems development.

1. Less “code as text,” more code as structure

When AI can generate thousands of lines instantly, raw text becomes the wrong abstraction.

Architectural shift

Effect


2. Strong modularity + contract-first design

If code volume explodes, comprehension becomes the bottleneck, not generation.

Key principles

Architectural implications

Analogy

Think of modules as replaceable organs, not intertwined tissues.


3. Generated code is disposable

A big mental shift: most AI-generated code will not be “maintained”.

Instead

Architecture supports

Result


4. Tests and invariants become the real product

As code quantity increases, tests become more valuable than code.

Architectural response

AI is good at generating code.
It’s less good at violating constraints that are machine-checked.

So architecture evolves toward

“Everything is allowed unless proven unsafe.”


5. Layered autonomy (human ↔ AI boundaries)

You’ll see architectures that explicitly define who is allowed to change what.

Example layers

Mechanisms

This mirrors how safety-critical systems already work—but scaled.


6. Tooling becomes architectural, not just supportive

IDEs, CI, and repos will evolve into active architectural enforcement systems.

Expect:

Architecture moves from diagrams to live constraints.


7. The return of high-level system design

Paradoxically, more AI-written code increases the value of classic architecture skills.

Humans focus on:

AI handles:


A concise mental model

Think of future systems as:

Code volume can grow without collapsing complexity only if architecture moves up a level of abstraction.

Links

When sharing the above I got the following interesting links on the same subject:

On the same theme, but better described: https://medium.com/@craig_32726/agile-is-out-architecture-is-back-7586910ab810

A detailed example of code generation: https://gist.github.com/bemafred/3654d1e988ebfcf2c5d5433d7450049b

Exit mobile version