Why your observability stack is making your agents stupid (and ours isn't anymore)
Devcon·Sun, Nov 8, 2026, 12:00 AM
Transcript
[music]
Hello, can you hear me? Welcome to my talk on why agents are not getting smarter always. You don't always have to worry about the psychosis. Agents can actually get very dumb if you just give them too much information. And for that we're going to look into how can we marry a lot of observability, a lot of telemetry data that we have with agents so they can efficiently get insights and don't get lost.
Maybe you've had it a few times that they just get lost on some track and do random stuff. We don't want that to happen. And so this is kind of our journey that we undertook to have one tool called Panda that allows us to very efficiently reach out to data that we have in devnet and to debug different clients. And so I'm going to be asking three main questions in this talk and I'm going to try to answer them. So why do agents drown in observability data?
If there is just too much information, if you just query your database and you get like 20 rows back, why is that bad? How do you find out what a client really did? So we have many many different clients, many different implementations, many different ways to log the same information and that really gets difficult to figure out what did the client really do because there is often no structure that we can rely on. And how do you once you have the results, once the agent has really figured out what is the issue, how do you properly communicate that because the agent produces so much information or the technical term slop that it's very difficult to pass that on to someone else and for them to really grasp uh what happened, um and to really be uh picked up where you had your contacts, where you had your information, and where you knew what was going on, maybe the next person doesn't, um and how is the easiest way to do it, especially because now it's very easy to have very tailor-made dashboards, very tailor-made um kind of uh communication of information that previously previously wasn't possible. So, why don't we leverage that to the best of its uh ability?
And to start off with uh this kind of a whole journey is we often get links. Uh Dora is a explorer on the beacon chain, and also now recently it added execution information um during uh our Glamsterdam development. And we get like a link to a Dora page which shows really nicely, "Okay, this block was missed. There was an orphan block. Something went wrong here, and we want to figure out which client uh did something wrong, um and what they did wrong, and who is at fault."
Uh because oftentimes in Ethereum, the client that logs that something went wrong is probably not the one that actually had the issue. It was probably some other client in the network, um and we have to figure out which one it was. One example of an error that um in Glamsterdam was very um much uh widely spread, and we got a lot of them, was that we got a invalid block access list. And a block access list basically um is a whole JSON document with different information, um and it has, for example, which uh storage slots were read uh in it. And clients, uh they did the bookkeeping, and sometimes they might have uh done the accounting a little bit differently than another client, and we had to figure out which client uh was at fault.
Um and so, we wanted to figure out how to do that efficiently. And because we're running the devnets, we have um infrastructure running on different virtual machines in the cloud, um and we don't want to just SSH to each one of them, uh get a dump of the logs, which used to be a very standard process. Would be to SSH onto a machine to just dump the logs for this specific time period, to hand that over to the client. And now maybe we can do that a little bit more efficient. And so we started out building a tool called Panda, and Panda, I will go into more detail, is something that is like an interface for the developer, but also for the agent.
So we didn't want to discriminate there. And we started out as a like a MCP tool, where we just gave every resource we had, like ClickHouse we had information, Prometheus we had information, just many different sources. And then we just had a like a very simple tool, MCP tool for each one, and we ran into quite a bit of issues there because these tools, they were not really composable. They just returned a lot of rows into the context, and we had a lot of context rot very quickly. And then the agent got confused.
It didn't really wasn't able to focus on what was happening. It wasn't very easy to get semantic meaning out of just JSON dumps. And so we had to kind of reinvent that. We wanted to add composability. And so we created this very nice tool that we distributed across the core developers, which is called Panda, and it allows you to interface very easily with any of the tools we have.
And we started out with ClickHouse, Prometheus, Loki, also the RPC endpoints of all of the nodes. There is some authentication, but if you just authenticate at one place, if you authenticate against Panda, then you can reach anything else that needs authentication, and you don't have to do it for each service separately. That makes it a lot easier for the user to use this, and it also makes it easier for the agent to use this. And we had a MCP initially. Downside of MCP is also the setup.
You need to install it into your agent environment. Um And that's why I kind of also advocated that we should have a CLI, and the CLI allows you to just use the same tooling. So, MCP and CLI go through kind of the same gate. We don't discriminate. It doesn't really matter what you want to use.
Both is great. Um and that really helped also with the uh getting people on board it because the CLI you don't need to install it you um extra into the agent um into cloud into the agent environment. You can just say use Panda CLI for this network and then it will go off and it will investigate whatever you need. Uh and that was really nice. And since the launch of Panda we've added a lot of different tooling and we plan to add much more because it should really be the central point for you to interface with any network that we run with any infrastructure that we have to make it as accessible and easy easy as possible.
We now have uh Panda built so that you can build images um and it waits for that to run in the CICD and then you can just use the new Docker image uh to test out the uh the code change that you've made so that uh in the talks before it was talking about agentic loops. So, you can iterate very quickly. Uh you can create uh any kind of loop with Panda and it can work by itself. It can figure the loop out by itself uh as well. You don't have to have a predefined loop for anything.
Then we also have Panda EVM. If you want a ephemeral address, you can just get yourself uh funds um via the Panda EVM. We added a faucet so the agent can try out different transactions directly against the development networks. If you want to try out frames transaction for example on Bogota Devnet 2 that we have running right now, uh you can just tell it uh please use Panda uh uh get some money on an ephemeral address and send some frame frame transactions which is really nice, very convenient. And it's quickly to iterate and try out different ideas.
Then from Raphael we have uh benchmarker. So, we have a lot of uh benchmarks to improve the performance of clients especially with the gas repricing that we've done and uh Panda Benchmark or let's you quickly get benchmarking information on your client to understand maybe if there are some bottlenecks. And finally, one of the most used by myself is Panda upload. If you want to share any context as a HTML file, then you can just tell it use Panda upload. It will create HTML like artifacts from cloud.
It will add and load all of the information into this HTML file. It can create charts from our metrics on demand, so you don't need to create Grafana dashboards. You can just tell it Panda, please investigate XYZ and create a report for me to understand it with visuals. And then it will create very nice charts. You can tell it XY axis, whatever you want.
And you can really understand what was going on and we get different Prometheus metrics from all of the different clients and you can also compare the different metrics. You can look and query what kind of metrics there are. And so, going back to kind of the benefit of having Panda have not just MCP tool for everything, but to have just one MCP tool called execute, which allows um Panda CLI to just run any code against the resources that we have. It allows you to really compose anything that you can imagine and it allows the AI to just load the most important information into its context. And in this example, we can see just pseudo code where it will get the slot from Dora.
It will query ClickHouse for logs. It will get metrics from Prometheus and then it will just pretty print it with a function that it writes itself. And then you get just the semantic information. You get that the slot is missed, who the proposer was and you can see that the proposer was offline. You don't have to load any more into the context than is necessary and you kind of marry code these Python scripts with the data and the resources we have available.
And previously, like you can see we have 93,000 lines of logs in ClickHouse. It just really doesn't make sense to load that into the limited resources of a context window of an LLM, which is getting bigger, but 1 million tokens is really not that much if you compare it to the amount of telemetry and metrics that we have. So, the thing that you really need to do to start out is you need to give the AI to manage this 1 million context window efficiently a way to discover the most relevant information that is important for whatever report or for whatever investigation you want to do. And for that, we added a semantic search, which allows you to search through different runbooks that have different standardized processes in the devnet, and you can ask it something like execution divergence. It will have like a runbook how to investigate something on the execution layer.
And here you can see kind of how semantic relevant each of these are. We also have the identical thing with EIPs, so you can basically use a semantic search to find relevant information for something that is specified in an EIP, so it can really see if something in the network is behaving the way that the specification says that it should work. And so, this is really the most important way to prevent context rot when using very a lot of data. And the next thing is kind of to give the LLM a way to discover what data sources there are. The great thing about a CLI or skills is that it's procedural.
Like you discover what you need when you need it. You don't just load everything in at once. And that's kind of what we tried to also do here. When you search for something, uh example, you search through the runbooks, it doesn't just return the whole content of the runbook, it just returns it like a nice overview of each of the runbooks that might be relevant, and then a link to the runbook um if you want to read more about it. So, it's really like procedural also, like what data sources we have.
We don't just dump into the context all of the data sources, uh but the LLM can just use the minus minus help flag, for example, it can query what data source we have, and then it can actually go uh to the data sources and use them. Uh and we found that to be very efficient, and you can do very targeted uh debugging. And so, kind of like uh once it's asking like what data sources do you have, um then you can kind of use the Dora for um what happened uh in this block. Uh Prometheus kind of like the metrics, why is the node struggling? Uh clickout logs can be pretty much anything.
It can also depend on the log level that is configured. And Exatu has a lot of different information, especially uh on mainnet if you want to doing any debugging there. And kind of like the whole overview, so um I first now described kind of the look like to the discover. The next step would be kind of like trying out. So, you kind of know what resources you need.
The next step is you interact and change actual state on the network. You build clients, you change the source code of the clients, and then you join the network, for example, you debug what's going on. And the last step that that Panda CLI allows is you can share any information in an efficient way. And I think these are kind of the three steps of any AI loop that you would want to make. Um and the idea is that you can just use Panda CLI um and create any kind of loop that you're uh interested in uh building.
And uh here like a example of something that happened during Clanstad debugging, we have a Besu and Nethermind, and uh there was uh a case where the uh block level access list differed. So, we have uh a read uh that Besu uh had in its block access list, but Nethermind did not have that read in its block level access list. And that could be because we are doing some fuzzing, and in that fuzzing, we have a revert, and after the revert, Nethermind removed it, for example, and Besu kept this read in, and then we have to figure out, okay, who is doing it right, and who is doing it wrong compared to the specification. And we can't just really say which one is right, which one is wrong, so we need to get the block level access list from the client. We need to get the one that the other one calculated, which might not be easily available, so we need to maybe add a log line on something that is not easily available.
Rebuild the client, rerun the transaction that we determined is the root cause of this discrepancy, and then we can fix the issue. And that's kind of a lot of the iteration that we did to speed up development, to speed up reporting. We didn't just say like, there's something wrong in the source code, but we actually said, "Hey, there's something wrong. Can you verify what it is? Can you modify the code?
Can you iterate? And can you then report to the client with proof?" And the nice thing about the Panda CLI is that you can just copy the command as source of truth. So, you can kind of be sure that there is no hallucination. And another example here on the Panda build that I kind of explained in here a little bit more detail.
Like, we have this command. You don't need to have the resources on your machine. So, we had LLMs that were pretty slow, that your laptop might be fast enough to build clients while you're waiting for token generation, but the models are getting faster and faster, and you can't just rely anymore on running everything, building everything from your laptop. So, the idea would be that you have cloud resources, and I think more and more projects are going in that direction, where you build and iterate in the cloud, and you have basically a fan out possibility, and that's kind of like one of the first step. So building is a form of compute that you can then outsource and then the LM can just wait until that is done and then it can continuously loop.
You're not wasting any context, you're not really wasting any money on the LM. The LM will just be waiting and that works really efficiently and that's kind of what we want to enable with Panda builds and kind of modifying and finding the root cause along the way. with that. And this is kind of the the overview. So you instrument the image, you modify some flags, you try to figure out with maybe Pprof, you add some log lines or whatever.
You then join the network with your node or you run Kurtosis locally that you can also do and then you just try to reproduce the issue, you capture the issue and then you try to find a fix. And I think more and more bots will be doing this, more and more compute will be thrown at this kind of setup and this is a really nice way to iterate and improve. And kind of I think something that might be missing from this is kind of how can you feedback into our testing stack, how can you create tests that results out of these? Maybe something from the report side. And here is kind of an overview of this process.
So you run kind of like the discover phase, you run the search run books, you want some divergence, you have like execute command where you can compare two balls, you can see the discrepancy and then you can upload the report on what was going on there. And this is kind of what one of those reports looks like. So this was Ethrax issue with block level access list. They had a issue with when block building where they would keep a storage reads in the ball that should have been removed um and uh this was reported and they could quickly fix it. I mean, now the question is does the developer even look at it or does he just send it to his AI?
Maybe there is a forum where you can just pass it on to some other agent as well um and people don't necessarily have to read uh the context because it's a lot of uh slop basically. Um so that we're kind of looking into how to improve the communication there as well. And kind of what we learned is uh try to keep uh irrelevant data out of the context. Um let the agent kind of discover what it needs um and then verify and test uh what you're looking at. Don't just uh trust that the agent will figure out uh what it was doing.
Um and leave evidence if you're creating reports so people can verify and can kind of get their own picture on what they were doing there. Yeah. And maybe something that we're looking into um is that we could add for example a webhook uh event that Dora fires on every orphaned or miss block and then we can have a uh agent uh using Panda investigate what happened and create a report for that. I think that's pretty much it and if you want to try out Panda, it's currently mostly for core devs but we might be looking into making it more available um but here are kind of the getting started uh commands to look into it. I think that's pretty much it.
Thank you very much.
Great tips for improving your observability stack with uh Pandas. Thank you so much, Stefan. Let's see what questions we have. Would standardizing specific client log messages help optimize uh the token usage spin jar for the analysis of logs?
Um I think for logs it would be nice but I think um open uh telemetry um traces would be I think uh nicer if we added that uh in the future uh because then we have kind of like the whole call stack and we can really see when what happened and it can also be traced across different uh boundaries of the program. Um so, if we have better open telemetry, uh I think that would be uh a little bit better than structured logging necessarily.
Next question, can Panda resolve tool call failures in any way?
I mean um that's very unspecific. Uh it depends how your tool is defined. I mean, the tool itself is deterministic. Um there are a lot of ways to tell the LLM to use the tool better. So, you can either have like a gotcha section um in the system prompt.
Uh you can in your cloud MD tell it uh maybe some tips. Uh we tried to have the help um section of the CLI uh explain uh common misconceptions about using uh Panda CLI. Uh but, yeah, it it really uh depends also on your setup, but generally it shouldn't be an issue.
Uh could we automate client divergence analysis with checking against the canonical spec uh to verify which is right and which is wrong assuming the specification is correct?
I mean, this is kind of what we uh what we did with Panda. Um the only thing that I suggested in the end that we could do is that we could have uh an automatic trigger that triggers the analysis whenever something that we know to be wrong, miss block, orphan block, um we could then start an analysis with as much context as possible um and then figure out what went wrong. And we also in the definite specs, we have which EIPs are relevant. And these can then also be loaded into contacts by the agent or discovered depending on what the investigation is about. Yeah.
Next question is on MCP. Do you need both Panda and MCP?
Um no, you can use the Panda CLI and you can optionally also install it as an MCP server. So, both of them go through a local server that is run on your machine and that doesn't discriminate. It's both It's just API calls basically. So, you don't need both.
What features are you planning next for Panda?
Um so, for Panda there is uh kind of a lot of different resources that we want to make available. Um it's a little bit hard to see which ones make the most sense. I I'm thinking about uh like adding spammer or certor as well as something. Uh we're figuring out the authentication on that side. Um I'm also thinking about maybe adding code search to it.
I think from the testing side we we're having some interest to add some tooling there for Hive as well. So, there is a lot that we can add and I think it will the features that will grow a lot. Yeah.
Someone would like to know about use cases, any potential use cases for non-core developers or even non-technical people, non-developers.
Um I think it's really nice if we decide to make it more generally available that you can use it to maybe understand what is going on on mainnet with Xatu for example. You can maybe investigate what happened with Binance because blockchain kind of records everything that happens and you can do investigations to also help you develop your application on top of Ethereum as well.
Maybe we do one last question. What's your favorite tool in your observability stack?
Um cool. My favorite I don't I think ClickHouse is SQL probably. I don't ClickHouse with SQL is pretty good.
[music]
Automatic transcript — names and jargon may be misspelled.