# Agents still misdiagnose their own traces

Markdown copy of https://realalpha.app/s/agents-still-misdiagnose-their-own-traces/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [Jeff Barg](https://realalpha.app/builders/jeff-barg/) · Jeff Barg is head of AI at Clay. · Co-founded Avenue, an operations observability platform, and built low-latency entity-resolution systems for Amazon’s Alexa AI team.
- Host: [Shawn Wang (swyx)](https://realalpha.app/people/swyx/) · Co-founder, AI Engineer · Wrote “The Rise of the AI Engineer” and founded Smol AI, maker of AI News.
- Show: Latent Space
- Episode: [How Clay Builds GTM Agents — Jeff Barg, Head of AI](https://realalpha.app/v/qjPcaZf_plo/), Nov 26, 2026
- Moment: 1:06:43 to 1:11:13 of the episode (5 min), playing on https://realalpha.app/s/agents-still-misdiagnose-their-own-traces/; the episode from there: https://realalpha.app/v/qjPcaZf_plo/?t=4003

## Quote

> “trying CLI commands with the same inputs over and over again and just **not correcting them every time**.”
> — [Jeff Barg](https://realalpha.app/builders/jeff-barg/) at [1:07:08](https://realalpha.app/v/qjPcaZf_plo/?t=4028) · Latent Space

## Takeaways

1. Agents repeat commands without correcting their inputs.
2. Long traces can be valid, but agents may blame their duration.
3. Clay is still handwriting many agent skills.

## About this segment

Jeff Barg says agents often repeat failed CLI commands or misread why a trace took time. Clay still handwrites many skills because asking agents to fix their own performance does not work reliably.

From “How Clay Builds GTM Agents — Jeff Barg, Head of AI”, Nov 26, 2026. [Watch the full episode](https://realalpha.app/v/qjPcaZf_plo/)

## Transcript

From the transcript Latent Space publishes with the episode.

[1:06:50](https://realalpha.app/v/qjPcaZf_plo/?t=4010) Let's say, you know, we have GPT-6 now and, you know, the, the 5.5 series sort of for Claude. Uh, let's say the next gen. Is there something that you're holding back on that you would love to build and it's not ready? Oh, it's a great question. You know, I, I mean, one of the things that I, just from looking through so many agent traces is, one, like, the, the models are still kind of dumb. Like, there- Yeah...

[1:07:10](https://realalpha.app/v/qjPcaZf_plo/?t=4030) like, so [laughs] Yeah, what's, what's an example that comes to mind? I can, I can obviously- And just, like, you know, like, trying CLI commands with the same inputs over and over again and just not correcting them every time. Yeah. You know, it's like things that aren't... It's not rocket science, but I'm like, "Oh, there's still room just even on the, the kind of basic kind of what you would think is solved." Do you have that partnerships...

[1:07:27](https://realalpha.app/v/qjPcaZf_plo/?t=4047) Like, I, I assume you have a shared Slack with all these guys, right? Yes. Can you just give them, like, a Legsmith, like, thread ID and just go like, "Hey- Yeah, I, I, s- I mean, there's, there's always an interesting relationship. Uh, yeah, we, we probably could do that. I think there's- Yeah. Yeah. It's a-- this is how, like, they ask for feedback, right? Yeah. They just go, like- Yeah... give me the, the feedback ID.

[1:07:43](https://realalpha.app/v/qjPcaZf_plo/?t=4063) But I, I do think, like, you guys as agent builders basically need your own version of that to share back with the labs, and then the more, the more powerful version of this is you wrap all your bug reports up and call it a benchmark. Yes. [laughs] Yeah. And then just be like- That's right... "Look, you, you guys are bad on this." Yeah, what do you, what do you think about that? I think it's good. It...

[1:07:59](https://realalpha.app/v/qjPcaZf_plo/?t=4079) Look, it takes a bit more work, but you could probably have, like, a grad student work on it with you- Yeah... and just go like, "Hey," like, "these are my past, like, 500 bug reports." Like, categorize them up, group them up- Yeah... clean them up, remove PII, and that's a benchmark, and that's a paper for you. Yeah. Yeah. Yeah. Uh, th- this is, like, an area where, I mean, we're, we're thinking about this. Uh, I think it's a great area to partner with companies. Like, I feel like there are companies- Yeah...

[1:08:19](https://realalpha.app/v/qjPcaZf_plo/?t=4099) who do this all day, and, like- Like, Sierra was super early to this- Yeah... 'cause obviously Karthik was GPT-3, and, like, they were like, "Okay," like, "these are my main verticals. We'll do a tail bench, uh, airline retail telecom- Yeah... and, like, please optimize for this." And, like, l- it's basically the- [laughs]... please make my business better for me. Thanks. Yeah, I mean, the... we, we, we do spend some time thinking about, like, what does performance in go-to-market or performance in sales look like? Like, kind of what is, you know... what would a sales optimized model look like?

[1:08:45](https://realalpha.app/v/qjPcaZf_plo/?t=4125) But yeah, I mean, we're, we're, we're early on. Like, we haven't looked into doing a public benchmark, but I think it could make sense. Yeah. No, I think the grad students would love to work with you. And look, New York has tons of them. Like, yeah, you- Okay... you'll find, you'll find somebody. I just think, like, this is one of those things where, like, uh, as a marketing guy, and you know, I'm primarily a marketing guy, and maybe- Yeah...

[1:09:01](https://realalpha.app/v/qjPcaZf_plo/?t=4141) a bit of community, maybe a bit of, like, content and, and all, all, all that, um, this achieves your goals- Mm... and it achieves the, the lab's goals. This is, like, a very much a win-win, uh, win in terms of community understanding of your problems too. So this is one of those things that if I can encourage you to publish those- Okay... kind of things, you know, it's... it, it can be high leverage. You'll get all the, uh, engineers in New York to, like, come out of their dens- [laughs]... to do that. [laughs] Yeah. Yeah. Yeah. Yeah.

[1:09:24](https://realalpha.app/v/qjPcaZf_plo/?t=4164) I mean, it's, it's... it is just another way of, like, forcing them to look at data and, like, do evals and label them and- Yeah... uh, which they don't wanna do. So you have to come up with creative ways to make them enjoy their work that they actually normally wouldn't do. [laughs] Yeah. Yeah. Uh, yeah. I, I do think we have a good flywheel of this internally, where, like, we have real good market engineers who- Yeah. Yeah...

[1:09:44](https://realalpha.app/v/qjPcaZf_plo/?t=4184) you know, spend a lot of time thinking about, like, oh, like, like how would we find pockets of customers that we should reach out to? Or like, hey, who... like, how would I build scoring for my customers or whatever, like, all of these things. And so have some in-house talent there, but we probably haven't connected that flywheel as much as we should. Um, actually, you talked about coding agents a lot. Do you have any, you know, things you want coding agents to get a lot better at over the next, you know, six months, 12 months, that would help the Clay CLI?

[1:10:09](https://realalpha.app/v/qjPcaZf_plo/?t=4209) Uh, y- yes, and may- maybe this connects to the question, but, like, model capability is being able to look at an agent trace and figure out what's wrong with it. I mean, maybe it's just, like, too self-reflective, but it still really doesn't work. So, like, we're, we're trying to build, you know, the, the loose forms of continual improvement, but it's not even continual improvement, but like, "Hey, here's a trace. It was really long.

[1:10:29](https://realalpha.app/v/qjPcaZf_plo/?t=4229) The agent probably got confused. Can you tell me where it got confused?" And I think agents are still not good at this. Like, they just are... they have the wrong intuition about what's wrong. They're like, "Oh, well, like, this took a long time," but just like, "No, no, that, that makes sense." They're just, like, completely wrong, I think, most of the time. Um, and so if, like, you try to connect it the whole way, where it's like, "Hey, just download the bad, bad traces," like, have agents look at those, and then, you know, improve those over time, uh, that just, like, doesn't work.

[1:10:54](https://realalpha.app/v/qjPcaZf_plo/?t=4254) I think it... You know, it is similar to, like, you know, agents writing their own prompts. Maybe works in some sense, but, like, if you're just like, "Hey, fix the agent performance based on this thing," that doesn't really work. So, like, I don't know, we're still handwriting a lot of skills.
