<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tanvi Reddy on Medium]]></title>
        <description><![CDATA[Stories by Tanvi Reddy on Medium]]></description>
        <link>https://medium.com/@reddyplayer22?source=rss-de15546c47fc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kByk8bwj8UXGvm3WqDxHfA@2x.jpeg</url>
            <title>Stories by Tanvi Reddy on Medium</title>
            <link>https://medium.com/@reddyplayer22?source=rss-de15546c47fc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:59:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@reddyplayer22/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[We know how to profile CPU’s. Why don’t we profile AI Agents?]]></title>
            <link>https://medium.com/@reddyplayer22/we-know-how-to-profile-cpus-why-don-t-we-profile-ai-agents-f065a43b43dc?source=rss-de15546c47fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f065a43b43dc</guid>
            <category><![CDATA[ai-registry]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[ai-tools]]></category>
            <dc:creator><![CDATA[Tanvi Reddy]]></dc:creator>
            <pubDate>Sun, 06 Sep 2026 15:51:50 GMT</pubDate>
            <atom:updated>2026-09-06T15:51:50.583Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-9W6fjxD4vuHUnSb5r8bQ.png" /></figure><p>When we find a CPU to be running slowly we instantly profile its execution as opposed to guessing what the issue could be. We look at cache misses, CPU cycles, instruction counts and a dozen other metrics to zero in on the problem. This is exactly what we do for GPUs as well. Somewhere along the line, AI agents exploded onto the scene and our idea of observability became focused on tokens, latency and cost, none of which tell us how well an agent actually performed.</p><p>An agent can waste minutes by repeatedly calling the same tool over and over again, misunderstand the task and ultimately come up with the incorrect output while having burnt through thousands of tokens. So that got me thinking, what does it actually mean for an agent to perform well? Two agents can use the same model and the same set of tools but behave very differently. A slight change in the prompt might make one agent more effective over the other, while a larger context window could result in wasting tokens by repeatedly searching through unnecessary information. That’s the interesting part, with traditional software, we have profilers to help us understand where and why something was failing silently or perform the way it did, so why not have the same level of visibility for ai agents?</p><p>Imagine profiling an agent the way we’d profile a program:</p><p>Model: tokens, latency, cost<br>Tools: calls, failures, retries<br>Context: size, repetition<br>Behaviour: loops, unnecessary actions<br>Outcome: task success, human corrections, actual result</p><p>All of these metrics aren’t always independent and tend to run into each other at times. For example, a detailed prompt would cause your reason for a lot longer and produce a more detailed plan that may or may not be an over-engineered solution. An agent profiler would essentially expose all these relationships without keeping them buried under a singular trace. The outcome of the agent is arguably the most important aspect because we often tend to just measure how fast an agent is or how many tokens it used and just leave it at that, while the actual engineering outcome takes the back burner. This distinction that we seem to be missing is causing a lot of bottlenecks because we don’t measure out if our resources actually produce something of value.</p><p>This sent me down a rabbit hole and while digging through open source projects, I found <a href="https://github.com/Observal/Observal">Observal</a>. What caught my attention was that it didn’t just log traces; it connected those traces to the tools called, prompts used, and components involved, turning that evidence into actionable insights. I got to see this firsthand while using Observal with Claude Code to investigate a production issue. On the surface level, I could see that my session lasted for around 26 minutes, consumed 30.4k tokens and made 32 tool calls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZI91eZ_RiI1Dyzh-mMTjow.png" /></figure><p>But when I drilled into the trace, I got a much clearer picture as I could see which tools the agent was using, the errors it encountered, and the evidence it was working with. The agent was performing an RCA on a missing line item and eventually traced the issue through logs, code paths, and database records, while zeroing in on the likely root cause.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*II76zggeGjc_e3fTrIYWSQ.png" /></figure><p>This is also where simply looking at a trace starts to fall short. We can see everything the agent did, but that still doesn’t tell us whether all of that work actually amounted to a good result. That’s where evals become important, they give us a way to look at the actual result and understand whether the work the agent put in was worth it.</p><p>This made me realise that as the agentic ai ecosystem grows day by day, simply knowing that your agent ran or how many tokens it’s consumed isn’t going to be enough. We need to understand the ‘why’ behind the way it performed, what influenced it and whether it actually produced the required outcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f065a43b43dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>