Speeding Up Ethereum Client Development with LLMs
Devcon·Sun, Nov 8, 2026, 12:00 AM
Transcript
[music]
Hello everyone. Thanks for being here. Thank you for the lovely introduction. I'm that lion core developer at Ethereum in Sigma Prime. And today I'm going to talk recap first what the hell happened with AI in core development this year.
Did we actually achieve to be faster or not? And what can we do to do so? Let's see. Well, I guess I'll need to click the computer then. So, also I want to acknowledge this is the last day.
We are all so tired, probably sleep deprived. And our dopamine is very short, so so you all be attention to me. I'm going to put a phone on screen, so you don't have to um look at your phone. So, this year all clients have adopted AI progressively. Some clients have adopted it more than others.
Like I've talked with clients informally. Don't blame me for this graph. But yeah, Teku, Lodestar, Lighthouse, Prism have heavy adoption. Nimbus, they are the OGs, still writing my hand. And security reports, yeah, heavy heavy use.
So, unfortunately, we have not been able to ship Gnosis faster. Like as you see these headline numbers, I define as time to first definite as the main bulk of the implementation. And time to testnet as the refinement stage where we go from like definite, iterating the spec until delivering something that we believe to be enough for mainnet. So, as you can see the timelines are roughly similar from Fulu, which no AI, Gnosis, significantly AI, and Hedera, we are on track. Here we can see that something that we have begun being better at is parallelization.
So, there was a moment in time that we were doing Fulu, Gloas, and Hedera at the same time. And here you can see, at least in my house code, Gloas, what makes it unique is the massive amount of code and output that we produce in such a short amount of time. So, Hedera, you can see like we've been what debating this for 357 days and still we are. So, now we'll touch on how AI should go into the governance side to like speed things up. So, I would split, to have an idea of what can we do faster, where does time go?
So, fork, first we need to research. We need to prototype to inform spec decisions. Then we need to do all the yapping in all core devs to scope, write the specs, hopefully formally verify them, write spec tests, review the design, then do the actual implementation, review the code, then do the devnets, testing, spec changes, reward, and finally security. So, this table, like don't blame me. I got like a bit of survey from parties to understand like what is the AI usage today.
[snorts]
Uh probably this is like an undercounting. But you can see that we still have like a lot of opportunities to penetrate AI into the core development stage uh to increase efficiency. Cuz I don't I don't think so. There is this hope that we will like formally verify things, which we will get to that eventually.
[clears throat]
But I think what we can like definitely get improvements is like by these small incremental improvements. How can we do like spec writing better? How can we use definite iteration from nine to four? How can we make implementation take three months instead of four? So, in this direction, let's talk about Glorious in particular.
What happened? Why it took so long? And some insights for external people on what happened that caused this like delay. So, yeah. Governance in Glorious was really long and very painful.
If you guys remember, we were debating if doing EPBS at all or not for a while. We had like round tables and debates and was like, "Yes, no, yes, no." Um so, it was it was pretty painful. Um eventually, we we settled on on doing it, but then after that, EAPs kept like coming through into the fork, extending the kind of the the goalpost. Uh Also, Glorious was massive, as I'm saying here.
Like, in Lighthouse, it was like 2.4x the size of the previous fork. And we kind of handled that by throwing more like kerosene to the fire. We devoted a significant portion of the team to it and managed to achieve like much better efficiency. This chart is not very relevant, but it's fun, so I will include it anyway.
Uh but it's kind of how something that looks small on the spec amplifies into a lot of code depending on architecture. Um Silver here gets like a pass because they don't have validator clients, so not that much to implement. But every language have different peculiarities, and due to the way that cobases are structured and a lot of legacy code, it takes kind of like a lot of effort to implement something that doesn't look as complex on the spec. And I think this is the spec. This is the slide that I want to give the most attention to.
So, it looks like, "Hey, we have frozen the fork. We have a final spec." Na na na na.
[snorts]
Things move quite forward and we keep adding things. We keep adding new refinements. We keep adding new EIPs. So, it's this goal post that keeps moving. Like I we will discuss later, hopefully we can use AI or like better processes to like shorten this loop.
But, I don't know. It seems like human nature. We are always like so eager to add new things and keep stuffing forks. So, I don't know. Maybe like a mandate on committing to not adding more stuff to the fork would be great.
Uh but yeah, it's crazy. Like we we doubled the size of the spec like from freeze to ending. Uh it And that's the point. Like spec revisions after devnets are expensive because they take more coordination. We all need to agree on exactly what we're doing.
Get a spec release, label it like alpha 13. Then, everyone coordinates to implementing it. We need to get branches. We need to deploy.
[snorts]
Now, the coordination time is quite slow for this. We also wait for all core devs testing. So, this goal post kind of has a lot of uh latency. Uh potentially, if all core devs testing, testing EF, and the clients are all agenda, we can like agree on a change and just just just just do everything in one go. Potentially, it's going to be cheaper to do spec revisions.
But, as of now, every spec revision adds like one or two weeks of delay. This is an This is an example that I want to surface because it it exemplifies like what happened with those. Those was this like massive complex change where we took the block, moved the payload away, and now we have these two entities. The checkpoint state and the payload state. For the mm not experience I, it may not sound like a big difference, but at least internally in Lighthouse, this required a massive massive rewrite of understanding our architecture of everything that happens inside of Lighthouse.
We had to change how the store works, our caching, checkpointing, block production, a lot of assumptions on how we reason our go to be safe were broken by this distinction. So, we had to spend a lot of time of our most senior developers thinking through all of these changes and finding a solution. Finally, after a month or something, we found a solution. Uh Nico, shout out, he came up with a brilliant solution to delay payload processing to the next block. Thanks to that, we could get rid of this annoying separation.
But that means that all that like 1 month of development time and architecture just got thrown away into the bin. So, what I thought this week is could an agent have come across this idea before? Like, could we have had an agentic Nico that looked at the spec and surfaced, "Hey guys, this is a terrible idea. This is terribly complex in clients. Let's find an alternative design that works better."
So, I did a bunch of tests with Sandbox and another previous kind of to April, and the agents did find this Nico optimization autonomously. So, I'm hopeful that there's promise on how we can leverage agents much earlier on the design to prevent to have these costly iterations later on that delay things so much. Also, shout out Teku, they are doing great job on that of like heavy prototyping with AI [snorts] and surfacing like design decisions early. So, and to recap, close definite, we had a lot of them. Most of them were like either crashes or EP bugs or splits.
So, if we can think deeper on how we can catch these things early, that would be great. Uh let's see on the next slide. Yes, this one. We have amazing spec test coverage for the state of transition and for choice. Like amazing, brilliant, great job everyone.
But for all these other components, we don't. So, it has happened twice that we go to a definite and then the definite dies for the lack of surability or sync. Testing these things regularly is complicated. There has been efforts by the brilliant testing team. But my hope is now with the I can we find some way that maybe with kurtosis or some new tooling, we can arrive to a test net with the guarantee that clients can sync.
So, we don't have to, yeah, lose one more definite cycle because the clients died because they couldn't sync. Another point I want to touch is this idea of agents on the team. Everyone is using agents in different ways, but one powerful one that maybe you guys don't know, it's Lodestar and Reth. They have explicit agents that run inside of the team. They do benchmarking, testing, kind of collaborate like in a team member in UIs that we already used to, like Slack and GitHub.
I talked to them and they are extremely happy and it helps like efficiency significantly. So, in Lighthouse, we are in the process of adopting the same idea. We will have by next week uh a light keeper not with that name because it's taken, but something like that and long-running agent that we can interact with and it should offload much of these annoying bits like keeping up with devnets spec bumps, simple fixes take this away from engineers so we can focus on the spicy bits, which is mostly like review and architecture. So for head say I want to be hopeful, but we are kind of doing the same mistakes over again.
[snorts]
We are taking forever to agree on the on the scope. We are probably going to change the scope again after we try to freeze it and God knows what's going to happen. So if you want to ship head say faster we should freeze things as soon as possible. Uh when implementing fossil, I noted that we had no spec test for four choice which this should be something easy that AI can cover or even potentially require when you do the spec. If you do the spec, you need to add spec test vectors with coverage.
I don't see why we shouldn't do that. Then all the devnets should be like as generic as possible, even more than we do now. And yeah, hopefully reduce the the number of devnet cycles we need to do. So for the long term I'm a big believer on formal verification and here is where we can have the big and look. And though I want to put a caveat cuz formal verification has been talked as this like silver lining formally verified, we're good.
But it depends on what you do. Formal verification is proving statements on a model of something. So, it's very dependent on what assumptions do you make on your code that you want to prove. And that gives different levels of safety. What we're doing now, for example, we're trying to prove equivalence of the spec and the state transition.
These are like pure functions with not network or like sync and conditions or weird things. So, it's kind of reasonable to do. But, when you move to things like peer-to-peer or consensus things, it becomes pretty hard. Francesco has done an amazing job at formally verifying the couple consensus, but even that it's given a model and some assumptions of synchrony that do not reflect like the perfect complete model of how the thing is going to behave at the end. Even that, Lighthouse, we are trying to formally verify as much as possible today.
We have successfully proven our state is uh transition. We're working close to being an epoch processing. We're also trying to prove now SSZ caches and slashing protection. These are like very important bits that are pure functions, so it's good. And next we're going to try to go for sync.
That's going to be the harder one cuz again, you need to model have some implications. It gets complicated, but yeah, we'll see if this is possible today, what's possible next year, what's possible in 2 years. Maybe a full verified client, who knows? So, with Lighthouse, we have two ways of proving. So, for the deep library we have written statements with Lean and then we generate C code directly.
It's a library that just interacts with binary data. So, we don't care that much about structured data. Interacting with it is easy. For the rest of bits, we are using existing Rust code and going through the Ines pipeline to translate and produce proofs. And this is a loop that's kind of easy to give to an agent.
And you can throw in then a benchmarking and just like iterate, hey, given Rust code, find something that satisfies the proof and is performant. Loop, loop, loop, loop, so. Cool stuff. Um but it's very expensive. But yeah, proofs are getting cheaper and cheaper.
So, it's okay. Headset, uh I'm going to commit myself to be the leader in our efforts to use headset as a testnet for all these ideas. Um again, headset, we are still in the governance process. There's big shifts happening in the background. So, we need to still freeze, but fossil is close to being developed.
I have personally written a PR for test vectors using I that I'm very happy with, has test coverage. We should use it also to write more hardnesses internally to cover like optimistic sync and sync itself. [snorts] Um and then if we have free time, we can use it like to to start to cover like the state transition, the SSZ with formally verified proofs. And uh next year we'll publish numbers and see if we succeeded or not. And we are almost there.
[snorts]
Thank you so much for your attention. We are so back.
[laughter] [applause]
I saw everyone appreciated not only the content of the presentation, but also what was happening in the background. I heard a lot of you laughing. Let's see what we have in terms of questions. How do you measure whether LLMs are actually making development faster rather than simply helping developers write code faster?
That is subjective, but the two metrics I chose here were like time to definite and time to testnet. So, they do help write code faster, but as I showed here today, writing code has always been a small part of the time to our client APIs of what we get in Ethereum. There's so much more than those. So, I do believe that LLMs are helping everywhere. I'm helping in governance.
I'm helping in speaking, prototyping, testing, review, deployment. So, yes, they are helping development faster because writing code is not the the critical part and they help everywhere across the stack.
If AI generates code much faster, how do you ensure that the time saved during implementation isn't lost later during debugging and security reviews?
That's a great question. We have encountered in Lighthouse cases where for critical components like for choice, it's actually faster to write code by hand because the ultimate goal is to provide code that we can understand and we believe to be safe. So, some components like the API, it's kind of very straightforward, the same architecture, the same boilerplate. You can throw AI at it. Probably going to give something that you like.
But for things that are more nuanced, sometimes it's easier to do it by hand as you can [snorts] come like faster to the conclusion that this is safe. I like this good architecture everything.
Do you think uh frontier models like Opus Fable have been useful in doing performance optimization on memory storage and coming up with innovative ways to implement blob sharding?
Blob sharding, I don't know. But uh for memory storage, yes. Yes, 100%. That's like such an easy thing to go to. If you can give the AI like a carrot, like a simple number to optimize, it's really really good at that.
Don't forget to upvote your favorite uh questions cuz we have a bunch. Uh next up, do you think AI will eventually be capable of independently implementing and testing an entire protocol upgrade or will human expertise always be essential?
It depends what do you want like Potus has a fully AI written client. And it works. The the question is, do you trust it? So, can it do it? Yes.
But what guarantees, what properties do you want to know or be certain about that in the client? So, because Ethereum has so much at stake, so much depends on Ethereum, we uh score developers, we have a responsibility to I don't know, give like five nines of confidence that this this thing will not break or as much as we can't. So, if we believe that human expertise contributes to this safe safety, we should stay on the loop. We should only leave the loop the moment that our contribution becomes negative. And I think that's only remotely possible with formal verification if we get to that point.
I see people are dying to find out about your budget for AI in the next question.
[snorts]
Your slide shows that AI has potential in generating test cases. How you can ensure
Oh, this one or the previous one?
Do you
What's What's your budget for AI individual or team? Less than you imagine.
Do you think Let's see which one. Maybe some upvotes.
When Glansturdom on main net? Turn into ACD. Yeah, 24th of December 8:00 p.m.
[music]
Automatic transcript — names and jargon may be misspelled.