# Models may write the agent scaffolding they need

Markdown copy of https://realalpha.app/s/models-may-write-the-agent-scaffolding-they-need/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [Oriol Vinyals](https://realalpha.app/builders/oriol-vinyals/) · Oriol Vinyals is VP of Research at Google DeepMind and co-lead of Gemini. · Co-founded Discovery Loop after leading Gemini's technical work at Google DeepMind; known for seq2seq and AlphaStar.
- Host: [Jacob Effron](https://realalpha.app/people/jacob-effron/) · Managing Director, Redpoint · Growth investor in Abridge, Ramp and Physical Intelligence; ex-Flatiron Health.
- Show: Unsupervised Learning
- Episode: [Gemini Co-Lead on World Models, RL's Next Domains & Continual Learning](https://realalpha.app/v/NQczevdpxq0/), May 22, 2026
- Moment: 18:37 to 22:02 of the episode (3 min), playing on https://realalpha.app/s/models-may-write-the-agent-scaffolding-they-need/; the episode from there: https://realalpha.app/v/NQczevdpxq0/?t=1117

## Quote

> “That system itself is a piece of code that eventually the model itself could **write on the fly**.”
> — [Oriol Vinyals](https://realalpha.app/builders/oriol-vinyals/) at [19:11](https://realalpha.app/v/NQczevdpxq0/?t=1151) · Unsupervised Learning

## Takeaways

1. Models could write scaffolding on the fly for each task.
2. The right scaffold may depend on task complexity.
3. Long-running agents need training for long contexts, not prompts alone.

## About this segment

Oriol Vinyals expects models to generate task-specific agents and scaffolding rather than rely on fixed coded systems. That could make orchestration more adaptive and efficient.

From “Gemini Co-Lead on World Models, RL's Next Domains & Continual Learning”, May 22, 2026. [Watch the full episode](https://realalpha.app/v/NQczevdpxq0/)

## Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

[18:41](https://realalpha.app/v/NQczevdpxq0/?t=1121) And I'm curious, as you look out at the field, are there places where you think it's not currently being followed? Or basically places where you look out and you see kind of structure or clever scaffolding that you think scale is just kind of eventually going to wash out? Yeah, I think so. I mean, one area that I find exciting, there's some research on this already kind of published, is that in the limit, the system that we build now by coding, sometimes a complex scaffold around the model, multi-agents, sub-agents, delegation, very long-running. That system itself is a piece of code that eventually the model itself could write on the fly. So you could imagine not having just a system that is very general, but actually maybe no system and just the model being able to write those depending on what it's being asked to do.

[19:37](https://realalpha.app/v/NQczevdpxq0/?t=1177) Like almost the most token-efficient, highest-quality output set of sub-agents and whatever it is around a set of problems. Yeah, exactly. We've seen this also in one of the paradigm shifts we've seen in the last one year and a half or so is, of course, the reasoning models that can reason for a long time in token space. Of course, eventually what becomes more important is should you reason for how long should you reason and adding that level of intelligence based on the complexity of what a user might be asking will make it more efficient.

[20:14](https://realalpha.app/v/NQczevdpxq0/?t=1214) So I think what you do around these systems, there is going to be a level of not sure exactly if it's going to be right from scratch or some automation that will make it smart to create the right scaffold for the right task. On the agent side, I think there's a lot of, and everyone's messing around and experimenting with building these kind of long-running agents. And I think, obviously, they run into all sorts of issues, trying to get them stable across hundreds of steps.

[20:40](https://realalpha.app/v/NQczevdpxq0/?t=1240) How do you think about what's required to get to further agentic reliability? Yeah, I mean, I think the answer to these questions in the most obvious way is kind of improving both the scaffold around the model. If you think of how you train a neural network, it trains on some distribution of tasks or modalities or how to connect different words to video or whatnot. All these are all about how you train or pre-train or post-train these weights.

[21:11](https://realalpha.app/v/NQczevdpxq0/?t=1271) So if you think, well, there's a new type of work or modality that requires these very long-running systems that need to somehow learn from this very long context, which we have always kind of innovated and pushed in 1.5 was kind of our long context breakthrough, then it becomes obvious that the model also will catch up to meeting the users and the futuristic use cases. And that's a bit of the researcher challenge, right?

[21:44](https://realalpha.app/v/NQczevdpxq0/?t=1304) Predicting what can be possible and then focusing not only on building a system that is robust to that, but also how would the weights get less unhappy or happy about when you push all the context and all these crazy things that you do
