Pi Coding Agent Observability: HTML Specs with Gemini 3.5 Flash and GPT Image 2 — Transcript
Full transcript
- 0:00What's up, engineers? Andy DevDayn here.
- 0:02So, you're planning a new feature for
- 0:03your product. The first question is,
- 0:05what type of spec should you use? You
- 0:07remember the viral post on the
- 0:09unreasonable effectiveness of HTML put
- 0:11out by Anthropic engineers, and you
- 0:13remember that OpenAI released a
- 0:15benchmark-gapping image model that
- 0:18generates near-perfect images. So, what
- 0:21should you use? Markdown specs, HTML
- 0:23specs, or something else entirely? The
- 0:26answer here is the same as it's always
- 0:28been. More useful tokens outperform
- 0:31fewer useful tokens. The keyword here is
- 0:33useful. As you and I build more
- 0:36engineering agents and product agents,
- 0:38the question isn't just what's better.
- 0:41The question is, what's the trade-off
- 0:43between performance, speed, and cost of
- 0:46this agentic solution? I've got three
- 0:49Gemini 3.5 flash Pi coding agents and a
- 0:52Pi observability dashboard that can help
- 0:55us answer that very question. We're
- 0:58going to test three unique specs,
- 1:00markdown, HTML, and an enhanced HTML
- 1:03version. And here, this is going to
- 1:05enable us to measure the trade-off
- 1:08triangle of three different spec types
- 1:10with the exact same prompt. You can see
- 1:13our agents getting to work here. Every
- 1:15event, every turn, every tool call is
- 1:18coming in with every single agent. Here,
- 1:20we can see everything. We can observe
- 1:22everything. And that means we can
- 1:23improve everything. I've been
- 1:25engineering for over 15 years now, and
- 1:27some rules of engineering never change.
- 1:30This is one of them. If you don't
- 1:31measure, you won't improve. In this
- 1:34video, we measure the trade-off triangle
- 1:36of these three different types of specs
- 1:38using Pi agent observability.
- 1:46Agent observability is simple, and this
- 1:48application is just as simple. You have
- 1:50a centralized server that you stream
- 1:52events to. You have a UI that reads
- 1:54those events, and then you, the
- 1:56engineer, the developer, can intake the
- 1:58information, creating a closed-loop
- 2:00structure where you can then improve not
- 2:02just your engineering agents in the
- 2:04terminal and in your software factory,
- 2:07but also your out-loop products.
- 2:10Observability is essential for
- 2:12understanding the performance, speed,
- 2:14and cost tradeoffs for both your
- 2:16engineering work, but especially your
- 2:18out-the-loop products, right? Your
- 2:20product agents. Our two agents have
- 2:22already completed their work, and you
- 2:24can see the associated cost with that.
- 2:26Surprisingly, our markdown agent has
- 2:28used more tokens than our HTML agent.
- 2:32And our HTML agent has used a little bit
- 2:33more context. This may be variants
- 2:35within the model, but it could also be
- 2:38how the specs were written themselves.
- 2:40Our markdown agent used a total of 29
- 2:42turns, so it could just be that the
- 2:44markdown agent did a much better job of
- 2:46understanding the codebase. This is one
- 2:48of those things where if you don't
- 2:50actually look at what your agents are
- 2:51doing, you'll never know the key
- 2:53differences between any prompt that
- 2:55you're writing. The plan agent looks
- 2:57like it just finished here. This is our
- 2:58V plan agent. This is our HTML plan
- 3:00agent. Here's our markdown planning
- 3:02agent. This agent used 25 turns, HTML
- 3:05agent used 17, and this one used 29. So,
- 3:08what exactly did our agents just plan
- 3:10out? They each created their own spec,
- 3:12and so they're working on this
- 3:13application called Steel Man. Let's go
- 3:15ahead and just open this up. So, this is
- 3:17where we dig into our product agent.
- 3:19Classic engineering agents where you're
- 3:21in the terminal or you're building your
- 3:22software factory, your ADW, so on and so
- 3:24forth. These are great. You and I as
- 3:26engineers, we're going to be using these
- 3:27a lot, but the next kind of very
- 3:29important agent that you and I are
- 3:30building is our product-focused agent.
- 3:33We're going to present a bull thesis for
- 3:35some company, for some stock. Here,
- 3:37we're talking about Apple as an
- 3:38underappreciated AI distribution winner,
- 3:41and this agent is going to do everything
- 3:42it can to counter this, right? It's
- 3:44going to give me the bear thesis of
- 3:46everything. So, we're going to start the
- 3:47Steel Man agent here. It's going to
- 3:48generate a bunch of UI that aids its
- 3:51bear case argument. The whole idea here
- 3:53is to strengthen your thesis as to
- 3:55whether you should invest, you shouldn't
- 3:57invest. It's really here to poke holes
- 3:59in what you think is right or what you
- 4:01think is wrong. Agents of today are very
- 4:04sycophantic, right? So, they're going to
- 4:06by nature, by default, tell you what you
- 4:08want to hear. Some of the great
- 4:09engineering models are a little better
- 4:11at this. By default, these agents want
- 4:13you to be happy with the results, so
- 4:15they lean into everything that you're
- 4:16saying. Here's our executive summary
- 4:18coming in here on why we shouldn't bet
- 4:20on Apple as a AI distribution leader.
- 4:22Great response here. We have generative
- 4:24UI components that were generated here
- 4:26on the left. Back to our engineering
- 4:28agents, what are these actually doing?
- 4:30These are going to create three new
- 4:32generative AI components for us to use,
- 4:34right? So, a quote, a catalyst timeline,
- 4:36and a valuation gauge. They're going to
- 4:38add that to our existing set. So, this
- 4:40is our table, bar chart that our agents
- 4:42can populate arbitrarily with any
- 4:44information. We have scorecards here,
- 4:46and then we have raw HTML. And the whole
- 4:49point here, again, is to steel man the
- 4:51opposite side of whatever you are
- 4:53saying. Our startup prompt here, you
- 4:55know, we said Apple is an unappreciated
- 4:57AI distribution winner. We asked, you
- 4:59know, how valuable was that Mac Mini
- 5:01claw trend to Apple? And then it's
- 5:03breaking it all down here. You know, we
- 5:04can dig into that specific clause here,
- 5:06deconstructing the open claw or claw
- 5:08trend. This was confirmed, however, the
- 5:10financial and strategic value of this to
- 5:13Apple must be heavily qualified. Very
- 5:15interesting here. Mac Mini represents
- 5:17less than 2% of Apple's total corporate
- 5:19revenue. Not a huge impact, right? Not
- 5:21as big as you might think. There's some
- 5:24irony to this, which the agent points
- 5:26out. A lot of people miss this in
- 5:28betting on Apple. The claw trend proves
- 5:30that developers want a decentralized
- 5:32local open source AI that operates
- 5:34independently from anyone, right? Just
- 5:36because Apple's delivering this doesn't
- 5:38mean that selling this cheap, low-margin
- 5:40silicon box is going to be good for
- 5:41Apple over the long term, right? It's a
- 5:43one-time purchase. What Apple is looking
- 5:45for is like repeat revenue, right? And
- 5:46any company is looking for that repeat
- 5:48revenue. But anyway, we have a decent
- 5:49tool, 40 references, so it didn't just
- 5:51make this stuff up out of its ass. It
- 5:53really did research via tool calling,
- 5:55and then it made references and put
- 5:57together a proper bear thesis for us,
- 5:59okay? So, I built this just to really
- 6:01showcase the idea. Well, first off cuz
- 6:03this is actually valuable, but second
- 6:05off because I wanted to showcase this
- 6:06idea of a product-focused agent. If we
- 6:09hop back to our agent observability, we
- 6:11can see that our steel man agent has
- 6:13executed, okay? So, can see everything
- 6:15going on inside of our product-focused
- 6:17agent. Right now, we're in the swim lane
- 6:19view. We can go ahead and switch to our
- 6:21single view, and let me click our steel
- 6:23man agent, and we can see a great
- 6:24breakdown of everything going on here.
- 6:27We got that cracked Gemini 3.5 flash
- 6:30tokens per second speed. So, when you're
- 6:32looking at selecting the model for your
- 6:34product, you're going to want something
- 6:36like this. We have a cost breakdown, we
- 6:38have tokens per second breakdown, and we
- 6:39understand the context of the agent that
- 6:42we're running. You can see here very
- 6:43clearly, Gemini 3.5 flash running. We
- 6:45can see everything that happened, all
- 6:47right? So, a bunch of research happening
- 6:48here. There's the start, here's the end,
- 6:50and you can see all the artifacts
- 6:52generated, right? And of course, we can
- 6:53click into anything, see the exact tool
- 6:56call arguments. We can see everything
- 6:57that built our generative UI components,
- 6:59assistant message. We can see the
- 7:01results and all the thinking, so on and
- 7:03so forth. You know, classic agent
- 7:04observability. If you don't measure what
- 7:07your agents are doing, you cannot
- 7:08improve them. This is just a fact. A lot
- 7:11of vibes out there, a lot of vibe coding
- 7:13going on out there. That will get you to
- 7:14a certain level, a very, you know,
- 7:16low-level performance, but if you want
- 7:17to go all the way, if you want to truly
- 7:19agentic engineer systems, especially in
- 7:22your products and services, but also for
- 7:24engineering work, it's very valuable to
- 7:27understand the tradeoffs between the
- 7:29tradeoff trifecta, performance, speed,
- 7:32and cost. Just a quick note on Gemini
- 7:353.5 flash, having a really great time
- 7:37using this model. It is I would say near
- 7:39state of the art. It really surprised me
- 7:41in a lot of cases because specifically
- 7:43for that cost, if you're thinking about
- 7:45building out product-focused agents, the
- 7:47performance, speed, cost trade-off is
- 7:50really, really great.
- 7:52And I know everyone's complaining about
- 7:53the you know, Gemini 3.5 Flash price.
- 7:56Came in definitely higher than we were
- 7:57expecting. It's not so much a Flash
- 7:59model anymore. I think for the
- 8:01performance you're getting out of this
- 8:02thing, it's pretty fantastic. I'd like
- 8:05to think about cost per intelligence
- 8:08versus cost per token. What you really
- 8:10want is the intelligence and the
- 8:11performance. And if it's worth it, I'm
- 8:13certainly willing to pay more.
- 8:15Obviously, we'd all love every model,
- 8:17all the best models to be dirt cheap,
- 8:18but that's just not the case. Got to
- 8:20play with the cards we're dealt. So,
- 8:21this is agent observability. This is the
- 8:22core idea. If you stop the video now, I
- 8:24think you get the idea. If you don't
- 8:26measure, you can't improve. And this is
- 8:28especially important once you start
- 8:30building products where your agents are
- 8:32executing thousands and tens of
- 8:34thousands and hundreds of thousands of
- 8:36times over the course of some period,
- 8:38right? A day, a week, so on and so
- 8:39forth. If you can run a 3.5 Flash or a
- 8:42DeepSeek V4 Pro, and you can save and
- 8:45still get the results and still call all
- 8:47the right tools, you should absolutely
- 8:50do that. Okay? Like there's just no
- 8:51debate there. Like you should absolutely
- 8:53understand that and make sure that you
- 8:56have that in place in your production
- 8:58system. So, that's the idea, right?
- 8:59That's the core idea here. You know, the
- 9:00architecture is exactly what you would
- 9:02think. You stream events to some server.
- 9:04The server also stores this in a DB, so
- 9:06you know, we can refresh this, get
- 9:07everything back. Couple nice things I
- 9:09built into the system, you know, I have
- 9:10a function mode where we can really get
- 9:12things super compressed. And then I have
- 9:14a form mode to be more visually
- 9:16aesthetically pleasing. We have single
- 9:17lane mode here in our observability
- 9:19system. Let's go to that steel man
- 9:20agent. So, we can really get some more
- 9:22detailed results, right? That one run
- 9:24took 79 events, total 1-minute duration.
- 9:27You can see the cost, so on and so
- 9:28forth. And then we have race mode, which
- 9:29I think is really interesting. So, this
- 9:31is a left-to-right kind of race
- 9:33situation where you can see the events
- 9:34side by side. You can see every set of
- 9:36events chunked by turn, right? And then
- 9:38we can dial into these and again, it's
- 9:40just about understanding what our agent
- 9:42is doing and when it's doing it. And of
- 9:44course, we can stack. So, let's say we
- 9:46want to erase our planning agent and we
- 9:49want to see our HTML and V plan. And
- 9:51we'll we'll go ahead and dive into the
- 9:52results of these agents in just a second
- 9:54here. Again, agent observability is so
- 9:56important because in the start event, if
- 9:58I click into this, you can see we have
- 9:59all the details of this agent on boot
- 10:02up. I'll just pull this out. You want to
- 10:03know what your agent system prompt is,
- 10:06right? And a lot of times, if you're
- 10:08building production agents or you're,
- 10:09you know, customizing your system
- 10:10prompt, you're going to be templating
- 10:11strings into your system prompt. So,
- 10:13you're going to want to see what the
- 10:14real results are. Have you actually seen
- 10:16the full system prompt of your agent?
- 10:18Like, do you know what it looks like?
- 10:19Even the PyCode Agent, which I'm using a
- 10:21lot more now, as you know, if you've
- 10:23been watching the channel, this is a
- 10:24decent-sized prompt. Of course, it has
- 10:25all the skills that I'm adding. A decent
- 10:27chunk of context is just showing off all
- 10:29the skills. You can see your session
- 10:30file, session ID. You're going to want
- 10:32to know all the tools that your agent
- 10:34actually has loaded. You can see our
- 10:36communication tools from a previous
- 10:37video where we talked about flat Py to
- 10:40Py agent communication, not sub-agent
- 10:42delegation. But, you can see that I also
- 10:43have sub-agent delegation ready via
- 10:45another PyCode Agent extension and then
- 10:47I have this session digging capability,
- 10:49all the classic tools, and then, you
- 10:51know, tool snippets, prompt guidelines,
- 10:53and then all my skills here. You can
- 10:54really see here that by loading a bunch
- 10:56of these skills, it's also kind of
- 10:58bloating up my system prompt. Just
- 11:00important small pieces of information
- 11:02like that, you only understand and you
- 11:04only know if you're looking and if
- 11:06you're inspecting your agent.
- 11:13So, PyAgent observability very powerful
- 11:15and how you observe and ingest that
- 11:17information is also very important.
- 11:19Let's see what's going on in turn five
- 11:21here for each agent, right? Looks like
- 11:22they're roughly on the same track,
- 11:24making tool calls, understanding the
- 11:26code base to build the spec. We're on
- 11:28style.css and we're on the app. Everyone
- 11:31understands engineering agents. This is
- 11:33like table stakes. This becomes
- 11:34exponentially more important when you're
- 11:36building out product-focused agents. You
- 11:38know, let's do a couple things here.
- 11:39Let's run another prompt here and then
- 11:40let's understand the differences between
- 11:43the spec markdown prompt, right? A
- 11:45classic markdown prompt, our HTML plan,
- 11:48which is using more tokens to generate
- 11:50HTML, which you can understand better,
- 11:52your team can understand better, and
- 11:54your agents can understand better, and
- 11:56then an expanded, what I like to call V
- 11:58spec or V plan, where we add visuals.
- 12:01So, we'll go ahead and open these up in
- 12:02a second, but first let's kick off
- 12:04question here for our product. What I
- 12:06want to see here, as I'm thinking about
- 12:08purchasing Apple and I want to get a
- 12:10good bear thesis breakdown, is show me
- 12:14Apple's revenue of Mac mini versus all
- 12:17their other product lines. I'll just say
- 12:19visually, just so it's super clear. Of
- 12:21course, we can just dial into this. Let
- 12:23me go ahead and show you the live stream
- 12:24of this steel man, right? Doing
- 12:26research, using tokens inside the
- 12:29product, calling the tools that you set
- 12:31up for your product. There it is,
- 12:33emitting the artifact. Let's go and see
- 12:35what that artifact was. There we go, we
- 12:37got a nice pie chart and, you know, Mac
- 12:39mini sales, basically zero. Was the Mac
- 12:42mini
- 12:43craze really that crazy?
- 12:45No,
- 12:46it wasn't. And, you know, really
- 12:48interesting, you know, you can hear and
- 12:49listen to all the hype, but even with
- 12:51viral events like this, it's not that
- 12:54important to Apple's total top line
- 12:55revenue. Now, of course, things can
- 12:57change, these can grow. The Mac mini
- 12:59claw craze it certainly is a signal and
- 13:01I'm sure Apple is betting on a larger
- 13:04trend of AI in some shape or form. They
- 13:06they certainly need to act on that a
- 13:08little bit more, but just looking at the
- 13:09raw numbers, right? We can see our core
- 13:12references here, right? Apple's first
- 13:13quarter results, right? I mean, we can
- 13:15click into this. This is like legitimate
- 13:17sourcing, right? January 29th. You know,
- 13:19we're getting the latest information
- 13:20here thanks to our agents and our tools.
- 13:23Having a bear, a counter positional
- 13:26agent is super, super powerful for
- 13:27getting that opposite perspective.
- 13:29Anyway, back to our agents. So, we can
- 13:31see again, we're just continuing to
- 13:33trail and understand the tokens per
- 13:35second, which my god, Gemini Flash is a
- 13:37beast here. My tokens per second
- 13:39calculation is a little off here. I had
- 13:40to do some inference on this cuz the
- 13:43Python agent doesn't come with this out
- 13:44of the box, at least that I know of.
- 13:45Comment down below if I missed
- 13:46something. Yeah, just great performance
- 13:48here all around. There's another really
- 13:50powerful tool that I want to show you in
- 13:51addition to the Pi agent observability
- 13:54system, and that is GPT image 2.0. The
- 13:57Anthropic team put out this great post
- 13:58on the unreasonable effectiveness of
- 14:00HTML. It's about using HTML with specs,
- 14:03right? Give your agents more tokens and
- 14:05they'll perform better. That's the top
- 14:06line for this, right? More useful
- 14:08tokens. I've been using and leveraging
- 14:09that idea in a different way,
- 14:11specifically with images. Let's go ahead
- 14:13and just dive into our plans here. So,
- 14:14we have our markdown spec here. We have
- 14:16our HTML spec, and we have our HTML V
- 14:19spec. And you'll notice something here,
- 14:21the V spec contains images. All right,
- 14:23so you can see very very quickly where
- 14:25this is all going. And so, you know,
- 14:26classic markdown spec, tried and true,
- 14:29simple, best for preserving tokens, and
- 14:32having a text-focused result. Okay, so
- 14:35this is my classic spec planning prompt.
- 14:37I have templated my engineering into
- 14:39these sections, right? Task, objective,
- 14:41problem, solution, relevant files, blah
- 14:43blah blah. Classic stuff here. We're
- 14:44building these three new types of
- 14:45generative AI that our Steel Man agent
- 14:48can respond with. So, very important
- 14:50stuff there. Let's go ahead and see
- 14:51another version, okay? So, let's talk
- 14:52about HTML, right? What does that HTML
- 14:55look like? So, I'm going to get the
- 14:56reference of this, and I'm just going to
- 14:57fire Chrome on this. Here is my HTML
- 15:00version of that, okay? And so,
- 15:02relatively bare-bones, you can see I'm
- 15:03not using a ton of tokens to use every
- 15:06HTML tag under the sun. But, you can see
- 15:08here, we're getting a more visual-rich
- 15:11portrayal of, very importantly here, our
- 15:14UIs. With the HTML spec, my agent is
- 15:17starting to dial into what the HTML
- 15:19components look like. Here's our quote
- 15:21component, it mocked out, here's our
- 15:23timeline component, and then here is our
- 15:26valuation gauge that it mocked out. And
- 15:28then a couple more notes. So, I could be
- 15:30doing a lot more here with the HTML
- 15:32spec. You can push this really, really
- 15:33far and be more prescriptive. Basically,
- 15:36I just have my same markdown spec in
- 15:38HTML, which gives it a few additional
- 15:40capabilities to communicate the
- 15:42information in a more accurate way at
- 15:44the cost of tokens. Interestingly, if we
- 15:47go back to our swim lane and we drop
- 15:49Steel Man and we drop V Plan and just
- 15:51compare our markdown and HTML spec, now
- 15:54we can see very clearly markdown
- 15:56actually used uh more tokens this run.
- 15:58It used 170 events versus 100 events,
- 16:02and it used about the same context.
- 16:05Okay, so what happened here?
- 16:07Is this just variance? Is this our agent
- 16:09being more focused on the actual plan
- 16:12and doing more research since it doesn't
- 16:13have to think about outputting in
- 16:15markdown? It's unclear, but now we can
- 16:18see
- 16:19right now we can understand that there
- 16:21is some difference here, and obviously
- 16:23the right thing to do here is to turn
- 16:24this into an eval, run it over and over
- 16:26and over again to look for the average
- 16:28performance results. And, you know, hint
- 16:30hint, that's what comes next. After you
- 16:31have observability, after you're
- 16:33building out your product-focused
- 16:34agents, you're then going to want to
- 16:36scale your repeat work into evals. But
- 16:39step one is just measure, so that's what
- 16:40we're doing here. Okay, so we're going
- 16:41to do Chrome on our HTML V version, open
- 16:44this up. Very similar version, except we
- 16:46have images embedded. that powerful GB
- 16:50Image 2 model, and per plan now you can
- 16:53embed images to enrich your planning
- 16:57experience, not just for your agent. Our
- 16:59agent is going to read this, it is going
- 17:00to execute this. We've updated our build
- 17:02prompt to say if there are any images
- 17:05inside the plan, you must read them.
- 17:06Image tokens are very useful for your
- 17:08agent, especially very powerful
- 17:10multimodal models like Gemini 3.5 Flash.
- 17:14If we jump down to MMLU and all these
- 17:16multimodal benchmarks, this model is
- 17:18going to be really, really great with
- 17:19these V specs, these visual specs, these
- 17:22HTML specs, these image specs. Gemini
- 17:25wins on multimodal. We know for a fact
- 17:27that not only will this improve your
- 17:29agents, but the more I plan with V
- 17:31specs, visual specs, it's so helpful to
- 17:34see interfaces to spec with, and images
- 17:37to spec with, right? I can clearly see
- 17:39exactly what my model's thinking in a
- 17:41visual way. And this is all possible, I
- 17:43think it was nearly impossible before
- 17:45the GPT image 2 model. Now this is a
- 17:47reality. Let me just make this super
- 17:48clear. All my plans now are V specs,
- 17:51they're visual specs. Now HTML is an
- 17:53enhancement to that. Sometimes I use
- 17:55HTML, sometimes I just use markdown that
- 17:57reference images, but I'm always
- 17:59planning with images now. And of course,
- 18:01this is more expensive, you know,
- 18:02something that our observability tool
- 18:04did completely miss is that it's not
- 18:06capturing the costs of generating each
- 18:08image. I mean, this actually costs one
- 18:10or two dollars or three dollars total to
- 18:13generate all the images, but you can see
- 18:15here that this experience of agentic
- 18:18engineering with this type of plan is
- 18:20superior. I mean, it's just better. I'm
- 18:22quickly understanding the plan. Okay,
- 18:24nice. So, thanks to the HTML spec
- 18:26portion of this, we also have a freeform
- 18:29breakdown part of this plan where we're
- 18:31actually writing out what these
- 18:32components will look like. So, same
- 18:34deal, right? We're creating steel man
- 18:36generative AI components. Here's a
- 18:38quote, here's a timeline component, and
- 18:40here's a valuation marker. So, it didn't
- 18:42get a perfect, but you can see here it's
- 18:43even a little bit dynamic. We can play
- 18:45with this a little bit, and this is
- 18:46where HTML specs really shine is that
- 18:48you can get some like demo proof of
- 18:51concepts for specific parts of your
- 18:53work, even if you're doing back end
- 18:55work, devops work, product work, and of
- 18:57course, UI work. It's nice to have HTML
- 18:59prototypes rendered into your plan. I'm
- 19:02using visual prompts a lot more, and I'm
- 19:05throwing in some HTML where it makes
- 19:06sense, right? Especially for front end
- 19:08work, HTML specs very powerful, but a
- 19:10lot of the times text is enough. In
- 19:12agentic engineering, if you're doing it
- 19:14right, you're probably stuck in one of
- 19:16two places, right? There are two
- 19:17constraints of agentic engineering. It's
- 19:19planning and reviewing. These types of
- 19:21visual specs, these HTML specs, they
- 19:24really, really help with the planning
- 19:26side of things. And it just comes down
- 19:28to the fact of do you know the
- 19:30performance, speed, cost tradeoff of
- 19:32using each one of these different plan
- 19:34types with each different prompt you're
- 19:37comparing against, and skills, and
- 19:39agentic workflows and software
- 19:40factories, and so on and so forth. It
- 19:42all comes back to your ability to truly
- 19:44understand the internals and the uh
- 19:47trace of how your agent got to the
- 19:49result and what it cost them to get that
- 19:51result. Agent observability is at the
- 19:53center of this. I myself need this for
- 19:57engineering, but specifically for
- 19:58product work that I have upcoming that
- 20:00I'm working on. I'm getting into that
- 20:02really important phase where I need to
- 20:04compare the performance of different
- 20:05models, not just on can they do the job,
- 20:08but how quickly and how much does it
- 20:10cost. This is the tradeoff trifecta. You
- 20:12need to understand the tradeoffs, right?
- 20:14Engineering is all about making the
- 20:16right tradeoffs for your work, for your
- 20:17products, for your customers, for your
- 20:19users, for your company. Again, just one
- 20:21more time, you know,
- 20:22there's a million observability tools.
- 20:24I'm not trying to sell you on mine. I'm
- 20:26just trying to communicate the
- 20:27importance and the idea here. If you
- 20:29don't measure it, you cannot improve it.
- 20:31Uh if you like this video, if you like
- 20:32this idea, like, subscribe, join the
- 20:34journey with a single PyCoding Agent
- 20:36extension that we can pull up right
- 20:39here, extension Py Observability, and
- 20:42with a single user interface, I'm able
- 20:45to now capture all the events of every
- 20:47one of my agents that executes. And
- 20:49again, you know, refocusing on the
- 20:50PyCoding Agent, this tool allows us to
- 20:52build and use extensible software. It
- 20:56allows us to build our own custom agent
- 20:58harnesses and customize them just like
- 21:00we need to. This really helps us get at
- 21:03that idea of understanding the uh
- 21:06tokenomics of the work we're doing. In
- 21:08our previous video, we talked about the
- 21:10single most important thing for senior
- 21:11engineers to be focused on, and this was
- 21:13one of the key ideas. The first step
- 21:14here is to use more tokens. The next
- 21:17step is to generate value from the
- 21:18tokens you've created, and then the
- 21:20final step is to actually arbitrage your
- 21:23tokens. It's to capture the revenue,
- 21:25right? Capture the value that you're
- 21:26generating, usually in the form of of
- 21:28cash, right? Revenue from your product.
- 21:29This is the agentic value chain, right?
- 21:31This is tokenomics, right? You want to
- 21:33move up this chain. You don't want to
- 21:34just be stuck at the bottom here token
- 21:36maxing. You want to move upwards, and
- 21:38the only way to do this, right? We
- 21:40talked about this last week, and we're
- 21:41doubling down on this idea. Everything
- 21:42is connected here. This channel is a
- 21:44chain of steps to become the greatest
- 21:47agentic engineer possible. We need agent
- 21:49observability to help us get to this
- 21:51place where we can arbitrage our tokens.
- 21:54It's not enough to be able to just run a
- 21:56bunch of agents, right? That's cool,
- 21:57great place to start, terrible place to
- 21:58end. We need valuable agents, and then
- 22:01we need to capture the value of the
- 22:02agents. Step one, use the tokens. Step
- 22:04two, generate value from the tokens.
- 22:06Step three, capture the revenue of the
- 22:08value generated from your tokens. I have
- 22:11this on now in every single agent by
- 22:13just plugging in this extension where
- 22:15we're building slices of composable
- 22:17customization, thanks to the Pi agent
- 22:19harness. I'm stacking up these
- 22:20extensions as I mentioned, yeah, and
- 22:22this is true.
- 22:23And maybe you can tell from watching,
- 22:25you know, videos week after week, I'm
- 22:26building a new agent harness every
- 22:28single week. I'm building a new slice of
- 22:30composability that I'm adding some are
- 22:32hitters, some are losers, right? If I
- 22:34show you my terminal here, right? I've
- 22:35got my Pi communications network here
- 22:39that has been super super valuable,
- 22:40right? Paying agents via com system. Say
- 22:43hi. This has been ultra valuable. Any
- 22:45agent can coordinate with any other
- 22:47agent, and this is just on all the time,
- 22:49right? so you can see there are my
- 22:50agents talking to each other. This is a
- 22:51flat agent communication. I'll link this
- 22:53video. You can see the responses came
- 22:55back, and this is just, you know, one
- 22:57additional advantage I'm stacking up for
- 23:00my agents, and I want to share it all
- 23:01here with you on the channel. So, links
- 23:03to the Pi observability code base is
- 23:05going to be in the description for you.
- 23:06We didn't go into too much of the prompt
- 23:08details because it's here for you. If
- 23:10you look at the cloud skills, you'll see
- 23:12HTML spec, you'll see HTML V spec,
- 23:14visual spec, and I have my markdown V
- 23:17spec prompt that I use to generate
- 23:19markdown prompts with images. So, still
- 23:22generating useful, valuable tokens
- 23:24inside of the plan. Inside this code
- 23:26base, we'll have the extension here and
- 23:27of course you'll also have access to the
- 23:28steel man web UI. So, you can just test
- 23:31this out. Um you know, it's a starting
- 23:32place. I highly recommend you think of
- 23:34every piece of code you see, every open
- 23:36source project, everything you're
- 23:37intaking as an option. With the option,
- 23:40you can take it, you can adapt it with
- 23:41your agents, take it, make it your own,
- 23:43improve it, do your thing with it. I'm
- 23:44going to do the exact same thing. I'm
- 23:45going to specialize the Pi observability
- 23:48UI and agents and push them uh to really
- 23:51serve the exact use cases I need solved.
- 23:53If we look at the future of where this
- 23:56is going, I think a lot of things are
- 23:58just going to be the same but a little
- 23:59better and a little better and a little
- 24:00better. Specifically when we talk about
- 24:02specs, it's clear that multimodal specs
- 24:04give your agents text, image, audio,
- 24:07video as part of your plans is going to
- 24:09be more and more valuable and the leader
- 24:11here is going to be the Gemini models,
- 24:14right? They just have the advantage on
- 24:16multimodal. I mean, they have YouTube to
- 24:18train on for God's sake, right? The
- 24:20advantage is going to remain there. It
- 24:22is pretty clear that uh these models are
- 24:24starting to specialize and really start
- 24:27carving out their own areas of
- 24:28expertise. You know, Gemini 3.5 flash
- 24:31topped your model. Pretty impressive
- 24:33that Open AI is doing a GPT 5.5, you
- 24:36know, pretty cracked engineering model
- 24:37and they're still putting out insane
- 24:39image models. Of course, Gemini put out
- 24:42that new Omni model. So, you know, lots
- 24:44going on, lots more to see. This is our
- 24:46bread and butter here, guys. We ingest
- 24:48every model, we ingest every agentic
- 24:51engineering idea on this channel and
- 24:53then we synthesize to make it useful and
- 24:55valuable. None of this stuff matters if
- 24:57you can't build it into your work for
- 24:59you, your team, your company, and
- 25:01ultimately your customers. If you want
- 25:03to win, you got to measure this stuff,
- 25:05especially if you want to get your
- 25:06agents into products. You want to
- 25:08balance the trade-off trifecta,
- 25:10performance, speed, and cost. You don't
- 25:12just want to spend tokens. You want to
- 25:14spend tokens
- 25:15that are valuable and then arbitrage
- 25:17that value. All right? You know where to
- 25:19find me every single Monday. Stay
- 25:21focused and keep building.
About this transcript
This page contains the full transcript of Pi Coding Agent Observability: HTML Specs with Gemini 3.5 Flash and GPT Image 2 by IndyDevDan, generated from the public captions YouTube serves with the video. The transcript has 5,139 words across 757 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.