Field Notes

The End of Programming?

Martin Odersky used his Scala Days 2026 keynote to explore what programming might look like when AI agents write more of our code, and why types, capabilities and stronger compiler guarantees could become increasingly important.

By Lorenzo MugnaiCustom Software & Integrations7 min read
On this page

Martin Odersky opened Scala Days 2026 in Berlin with a question that is probably on the minds of quite a few software developers at the moment: are AI coding agents eventually going to bring about the end of human programming?

His answer isn't really yes or no.

Instead, he argues that if agents are going to write, and potentially review, large parts of our software, we need to reconsider what programming languages are for and where humans fit into the development process.

I found the talk particularly interesting because it moves the discussion away from whether AI can generate good code. Odersky largely accepts that agents are going to become increasingly capable at producing implementations. His concern is how we retain control over the software they produce.

That leads him towards something Scala has always put considerable emphasis on: types.

Watch Martin Odersky's Scala Days keynote

If agents write the code, what should humans review?

Software development has traditionally involved humans working at several different levels.

We decide what software should do, design it, write the implementation and then review somebody else's implementation to make sure it does what we expect.

AI coding agents start to change that arrangement.

If an agent can take a requirement and produce hundreds or thousands of lines of implementation, asking a developer to verify every generated line starts to undermine some of the productivity benefit of using the agent in the first place.

Odersky's suggestion is that humans may increasingly concentrate on the interfaces and contracts around software rather than every implementation detail.

Types become particularly important in that model.

A type signature can provide a concise description of what a piece of software accepts and what it produces. More expressive types can describe considerably more than that.

The idea is that instead of reviewing everything an agent has generated, a developer could spend more time reviewing a smaller, understandable contract and allow the programming language and compiler to ensure that the generated implementation respects it.

That's quite a change from the way most of us currently think about types.

Types become a contract between us and the agent

Odersky has described types as a possible contract between humans and AI.

For that to work, though, our existing type systems aren't necessarily strong enough.

Most mainstream languages have ways around their type systems. Developers can cast values, use reflection or access lower-level facilities that bypass some of the guarantees provided by the compiler.

That's manageable when a developer deliberately chooses to do it and somebody can review the resulting code.

It becomes more problematic if we're relying on the type system to constrain code generated automatically by an agent.

Odersky's argument is therefore that programming languages may need stronger and more precise types, with fewer ways to escape the guarantees they provide.

This isn't just a theoretical idea. Some of the recent work on Scala is already heading in this direction.

Capture checking

One of the technologies Odersky discusses is capture checking, which has been under development as part of Scala 3.

The basic idea is that the type system can track not only the values used by a piece of code, but also the capabilities it has access to.

A capability might represent access to something such as the file system, a network connection or another resource that can have an effect outside the program.

The compiler can then reason about which capabilities a function needs and prevent code from accessing capabilities it hasn't been given.

That becomes particularly interesting when the code isn't being written by a human.

Odersky and researchers at EPFL have been experimenting with using capture checking to constrain AI agents. Their research describes a system called TACIT, or Tracked Agent Capabilities In Types.

Rather than allowing an AI agent to call tools directly, the agent generates Scala code.

That code is compiled before it runs.

The Scala compiler checks which capabilities the generated program attempts to use. If the program tries to perform an operation it hasn't been given permission to perform, the type checking fails and the code doesn't execute.

So the programming language itself becomes part of the security boundary around the agent.

Why would we need that?

Today's agents are increasingly being given access to tools.

An agent might be able to read files, search a database, call an API, execute a command or update information in another system.

Giving an agent those capabilities creates an obvious problem.

The agent might misunderstand an instruction. It might hallucinate. It could be affected by a prompt injection attack contained in information it reads. Or it might simply perform an action that the person using it didn't intend.

The usual approach is to try to instruct the agent not to do those things.

Odersky's proposal is different.

Rather than relying entirely on the agent behaving correctly, the environment in which it operates should restrict what it is technically capable of doing.

If an agent is allowed to read confidential information but isn't allowed to send that information over the network, the programming language can potentially enforce that restriction.

The agent can generate whatever code it likes, but code that violates the rules won't compile.

Odersky's research with Yaoyu Zhao, Yichen Xu, Oliver Bračevac and Cao Nguyen Pham tested this approach against agent benchmarks and attacks designed to leak information. Their reported results found that the capability restrictions prevented the tested leakage attacks without significantly reducing the agents' ability to complete normal tasks.

It's still research rather than a proposal that Scala developers should start rewriting their applications around tomorrow, but it demonstrates what Odersky means when he talks about programming languages needing to change for AI.

Humans don't disappear from programming

This is probably the part of the talk that's easiest to miss because of the title.

Odersky isn't proposing a future where developers disappear and agents independently produce software.

In fact, his argument is almost the opposite.

He believes it's important that humans remain involved even if agents eventually write and review a large proportion of the implementation.

What changes is where that human involvement happens.

If developers don't need to spend as much time writing implementations, they can spend more time defining what those implementations are allowed to do.

That means designing interfaces, defining types, specifying capabilities and deciding the boundaries within which generated software operates.

The implementation may increasingly belong to the agent. The constraints surrounding that implementation remain something humans need to understand.

Programming languages may become more important, not less

There's an interesting consequence to all of this.

It's tempting to think that programming languages become less important if AI writes most of the code.

If humans don't have to type the implementation, perhaps it doesn't particularly matter whether the software is written in Scala, Java, Rust, Python or something else.

Odersky reaches almost the opposite conclusion.

If we're going to read less of the implementation, we need stronger ways of knowing what that implementation can and cannot do.

The guarantees provided by the language become more important because we're relying less on somebody manually inspecting the code.

A language with a sufficiently expressive type system can potentially establish boundaries that both the human and the agent understand.

The human defines and reviews the contract. The agent produces an implementation. The compiler verifies that the implementation stays within that contract.

That is the direction Odersky appears to be exploring for Scala.

So is this the end of programming?

Not in the way the title might suggest.

Odersky isn't predicting that programmers disappear or that programming languages become irrelevant.

He's proposing that the job of programming could move up a level.

Rather than humans expressing every implementation detail, we may spend more of our time expressing intent, defining interfaces and specifying constraints. Agents can then produce more of the implementation within those boundaries.

For that to work safely, programming languages need to provide stronger guarantees than many of them do today.

Scala's capture checking work is one attempt to explore what those guarantees might look like.

There's still a lot to work out. Odersky describes the keynote itself as the start of a discussion rather than a finished solution. Capture checking is still developing, and nobody yet knows how much software development will actually move towards this model.

But it gives a useful explanation for why some of the work happening in Scala today is concentrating on types, capabilities and stronger compile-time guarantees at exactly the point when AI appears capable of writing more of our code.

Perhaps the interesting question isn't whether AI will eventually be able to program.

It's what we need programming languages to do when it can.

Share this note

Need help with an existing Scala application?

I work with organisations maintaining and developing production Scala applications.

That might mean modernising an existing application, improving its architecture and dependencies, or providing experienced technical support for a development team.

Practical advice before you invest in new technology.

Get in touch

Mugnai Digital Field Notes

Want to see more of our Field Notes?

If you find these Field Notes useful, you can add Mugnai Digital as a Preferred Source on Google so more of our articles are easier to find when you search.

Add as a Preferred Source

Continue reading

Custom Software & Integrations

Upgrading to Scala 3.9 and sbt 2

Scala 3.9 is the new LTS release and sbt 2 is now stable. Here's what the upgrades mean for existing Scala applications, what to check before moving, and how I'd approach the migration.

5 October 2026Read note
Custom Software & Integrations

AI's impact on rewriting old software

AI coding agents are making large software rewrites much faster. But the difficult part of replacing an old system may never have been writing the code.

2 October 2026Read note