Latest / AI Infrastructure / Benchmarking AI infrastructure
Transcript
- 0:00Hey, good morning Vincent. So you wanted
- 0:02to share a CDK terrain release
- 0:06>> and earlier you did like real of a raft
- 0:09of features
- 0:11>> and I still didn't quite understand what
- 0:14it meant. So what does it what does it
- 0:16mean to a layman person in the field of
- 0:19infrastructure like like our audience?
- 0:24Okay, so I don't know where to start now
- 0:27and without being like repetitive, but
- 0:29basically Terraform allows you to create
- 0:33resources against APIs. Um, and those
- 0:36can be cloud providers such as AWS or
- 0:39Google Cloud or Azure. uh or it could be
- 0:42your GitHub API or it could be you know
- 0:45to create a repository or it could be
- 0:47your data dog to create a a monitor or
- 0:50it could be your snowflake
- 0:52>> cloud AI management instance in my case
- 0:55[clears throat]
- 0:55>> no not that
- 0:56>> oh [laughter]
- 0:58there's no provider for the claw AI okay
- 1:00carry on
- 1:01>> yeah so but there is one right I I I
- 1:04shared there some people made an
- 1:05announcement about official not official
- 1:08uh like their you did share Right.
- 1:10>> So, so that's the great thing about
- 1:12about Terraform is that even if there is
- 1:14no pro official provider um anyone can
- 1:18build one because the the execution
- 1:21engine and the providers are
- 1:24communicating with each other through a
- 1:26protocol. It's called a plug-in system.
- 1:28Is is that the best way to go forward?
- 1:30Because I we did talk about this before.
- 1:32I I created my own provider for
- 1:35Snowflake and I found it really hard.
- 1:38the snowflake uh missed some features.
- 1:43>> I found it really really hard. Uh
- 1:47so
- 1:48>> there's several versions actually.
- 1:51>> Would you suggest like if you were to
- 1:54infrastructure as code something is
- 1:56terraform provider still the your best
- 1:58gateway drug into into nailing down your
- 2:01infrastructure?
- 2:03I think it comes down to what is the
- 2:04most like [gasps]
- 2:07accepted way or like what's the most
- 2:09integrated with with your existing, you
- 2:11know, if you if you're if you're the
- 2:13platform team or if you're you're a a
- 2:15product team person and you need to get
- 2:17buy in from your platform team, it will
- 2:20really depend on what they're using,
- 2:21right? Because if they are full on in
- 2:24Terraform and all of their pipeline
- 2:26systems and everything is is is are
- 2:28tweaked towards that then you know
- 2:30building a uh a little provider for your
- 2:33use case will probably be better. If
- 2:36they're fully on cloud formation then
- 2:37you can use uh their version of custom
- 2:40resources. So the ability to define um
- 2:43your own
- 2:45basically what these things do right
- 2:48they create resources and then they
- 2:50manage them. So they need create, read,
- 2:51update, and delete capabilities. So when
- 2:54you create a custom resour outside AWS,
- 2:56is Terraform [clears throat] provider
- 2:58your best bet then cuz it's got the
- 3:00most.
- 3:01>> So what are the other options? Right.
- 3:02There's a couple of new players like um
- 3:06for May. I don't even know. I don't
- 3:09think it's it's cheese.
- 3:10>> Are they still around? I thought they
- 3:14released and then disappeared. Or may
- 3:16Yeah. No, I think there's still they had
- 3:19initially I'm very skeptic um of any
- 3:23new framework being launched because
- 3:25you're you're in coming to an ecosystem
- 3:27that has been around for almost 10 years
- 3:29now and there's a lot of tooling around
- 3:31the existing frameworks. So there's a
- 3:34lot of tooling around terapform. Um
- 3:36there's a lot of tooling around cloud
- 3:37formation.
- 3:39And um being a new kid on the block, you
- 3:44um I I'm I'm 100% like in general all of
- 3:47these new frameworks, they believe they
- 3:48can do it better, right? They see the
- 3:50problems of these existing frameworks.
- 3:52Um for example, there's also Chant. C H
- 3:55A N T.
- 3:57>> I really like that they use Pickle.
- 3:59Yeah. Uh Shant.
- 4:02>> Yeah.
- 4:03But that one is going a little bit. No.
- 4:06No. C H A N T like chanting.
- 4:12Chant.
- 4:14Yeah. Intuent. Intentious. Intensious.
- 4:18Alex Artigz is quite active on uh on
- 4:21LinkedIn. Um usually responding to
- 4:25general threads. There's also
- 4:28Brian Grant and Alexis Richardson. they
- 4:31created a startup called Config Hub uh
- 4:34and and crossplane they're focused on
- 4:36like using controllers right constantly
- 4:38reconciling um your a your uh resources
- 4:41against um a reconciliation loop so
- 4:44basically the Kubernetes way so chant
- 4:46honestly it's a bit over my head a lot
- 4:49of people are a little bit confused
- 4:51um because it's quite
- 4:54I don't know it's hard to grasp and
- 4:58his original comparison to existing
- 5:00frameworks was inaccurate. Um, so I told
- 5:03him that and then he actually went and
- 5:05updated it. So now it's a little bit
- 5:06more accurate, but I still don't get why
- 5:08what he's building. They say it's it's
- 5:11more of like configuration as data. It's
- 5:13kind of the same thing as what uh Config
- 5:15Hub does. Uh anyway, you ask me like is
- 5:18that still the best way to do your
- 5:20infrastructure? To be honest, most of
- 5:22the organizations I talk to and work
- 5:25with, they're either on cloud form or or
- 5:27uh or Terraform. Maybe I know very few
- 5:30companies on Pulumi and then there's
- 5:32this all new kits on the block like uh
- 5:35you know crossplane you know based
- 5:37Kubernetes controllers config hub is a
- 5:40little bit similar but they they take
- 5:43some of the ideas of what they've
- 5:44learned managing and defining GitHubs
- 5:47and and customize because Brian Grant he
- 5:49used to be at the Kubernetes uh team at
- 5:51Google and he he's been trying to solve
- 5:54this problem for like over 20 years like
- 5:57even within Google doing it for Borg.
- 5:59>> He he saw some patterns and he sees some
- 6:01problems. And so what they really do
- 6:04what they what they think Conf is
- 6:07interesting because they really see like
- 6:09we end up building these complicated
- 6:11systems of just generating configuration
- 6:14and then if you have to make one field
- 6:16change you have to push it through this
- 6:17whole pipeline of changes that need to
- 6:19then ultimately end up in like one or
- 6:21two fields to to hit production. So they
- 6:24just shortcut that whole loop by just
- 6:26you know allowing you to define a
- 6:28function that you run against your data
- 6:30against your configuration and then you
- 6:32can just trigger that function on your
- 6:34staging environment and if it's all good
- 6:37propagate it and change it onto
- 6:39production. This reminds me of Q CLI
- 6:42because is it QCLI? I think it's also um
- 6:47X it comes out of the Kubernetes.
- 6:51Oh no, Q lang you. I think Q lang the
- 6:54whole principle. Okay. A
- 6:57one of the main guys is ex Kubernetes
- 7:00Google team and B the idea is that
- 7:03there's a language and would like
- 7:05functions to make changes in your
- 7:08infrastructure safer and more
- 7:10controlled. I mean that's the way I
- 7:11understood it probably.
- 7:13>> Yeah. I mean there's a lot of like
- 7:16languages to manage configuration and
- 7:20basically QANG is focused on how do you
- 7:24manage and manipulate and mutate your
- 7:26configuration across the environments.
- 7:28It's not the same as um as your um you
- 7:31know software code and I think they're
- 7:34all very interesting but not a lot of
- 7:36them gain widespread adoption. Right. So
- 7:40>> true, true.
- 7:41>> The what and and there's so many like
- 7:43it's like the famous XK CD comic where
- 7:47it's like there's too many standards.
- 7:49There's like 11 standards. So I'm going
- 7:51to make another I made a new one. Now we
- 7:53have 12 standards to try and get rid of
- 7:56those 11 standards.
- 7:58>> Yeah. Yeah.
- 8:00>> That's so common. Actually the the other
- 8:04comic I feel that needs to be written is
- 8:06it's probably to do with migrations like
- 8:09>> if you work with in any big company when
- 8:11when they're trying to do a migration it
- 8:14very most of the time they never
- 8:16completely managed to migrate for one
- 8:18reason or another. So now you have uh
- 8:22you know X plus one systems purely
- 8:25because you couldn't retire the older
- 8:26one. Does that make sense?
- 8:28>> Yeah. have the same experience. Like
- 8:30when you join an organization that's
- 8:32been around for a while, you're going to
- 8:34see five or six generations of how they
- 8:36used to do things and how like the newer
- 8:40project has been created with a new way
- 8:42of doing things. The old project has
- 8:44been like some of the very actively
- 8:46maintained projects have been migrated,
- 8:48but those that are less maintained stay
- 8:50on like older versions of however was
- 8:53things being done and um and never get
- 8:56ported. I was I was
- 8:59I was talking because I was on a call
- 9:02like every week checking on them on the
- 9:04status and then somebody asked like when
- 9:06are we finally going to be done and I
- 9:08basically told him we're never done.
- 9:10[laughter] That's that's infrastructure
- 9:12and operations basically. You're always
- 9:14going to have uh something.
- 9:18Yeah.
- 9:18>> Yeah. It's kind of it's kind of sad and
- 9:21like and and then maybe turning back to
- 9:24AI like does AI solve any of these
- 9:27problems cuz I feel like they don't in a
- 9:29way because there's lots of new AI
- 9:32initiatives and moving the data from uh
- 9:37the old system to the new system doesn't
- 9:40seem to be any better solve with AI at
- 9:42least
- 9:44>> at least I mean this is my own anecdotal
- 9:47experience I I mean I I wasn't in these
- 9:49projects, but I just feel like okay, now
- 9:51we have these new AI projects and
- 9:55they're also just plus one plus one plus
- 9:57one. So that's this is where I think
- 10:00there's two things I want to say about
- 10:02that. one um about the flexibility of
- 10:06the of the the of Terraform and its
- 10:10capability of like refactoring rem like
- 10:12when you need to do migrations you need
- 10:14to redefine the ownership of certain
- 10:17resources. Sometimes you realize that
- 10:19something has been created by a team
- 10:21then gets reused by another team and
- 10:23then actually the responsibility of
- 10:24maintaining it needs to be shared needs
- 10:26to move to a separate layer. So this
- 10:28type of like migrations um are I feel
- 10:32very well supported in Terafhone. Maybe
- 10:36it's a little bit of uh how you say when
- 10:38a hostage falls in love with it's um uh
- 10:41>> Stockholm.
- 10:42>> Yeah, it's a bit of Stockholm uh that
- 10:44I'm like happy with what Terafhone gives
- 10:46me. And there's probably people that
- 10:48will heavily disagree like no actually
- 10:49there's a lot much better way to do
- 10:51this. But anyway, so so that's where I
- 10:53think with AI agents, they can also help
- 10:56you do that much faster. Like something
- 10:58that would have taken a long time, um,
- 11:01agents can like diligently keep
- 11:03hammering at it and slowly chip away and
- 11:05and help push through the change. It's
- 11:07very funny because I have couple of
- 11:09cloud sessions on my laptop and I tell
- 11:12it my you know my goals and I ask it to
- 11:15create tasks and to arm monitors and um
- 11:19and then for example today I wanted to
- 11:22release the the CDK terrain version 0.24
- 11:26in the morning last night actually but
- 11:28then there was a GitHub outage so that
- 11:30was blocked and I went to sleep.
- 11:32Apparently, there was a 7-hour GitHub
- 11:33outage. Thanks. Thank Thankfully, I went
- 11:35to sleep.
- 11:36>> And [snorts] when I woke up,
- 11:38>> yeah, when I woke up, uh, I said, "Okay,
- 11:40looks like I saw the posts about the
- 11:42seven 7-hour outage and I was like,
- 11:43well, looks like everything's healthy
- 11:45now." So, I clicked the the release
- 11:47button in in GitHub and I went for
- 11:49breakfast because it takes like 30
- 11:51minutes to for it to go through all of
- 11:53the unit tests and integration tests.
- 11:55And I totally forgot that I had a cloud
- 11:56session running on my laptop that has a
- 11:58monitor armed. And that monitor was
- 12:00watching when the 0.24 release was
- 12:02hitting npmgs and python and and all the
- 12:05other package registries. So while I was
- 12:07having breakfast, I started getting
- 12:09notifications about um you know
- 12:11providers getting bumped to the latest
- 12:13version. And I was like, "Wow, that's
- 12:15pretty cool. I didn't know that was
- 12:16automated." And then when I came back to
- 12:18my desk, I realized that the cloud
- 12:20session that was running had an armed
- 12:22monitor and just kicked back to life
- 12:24like, "Oh, the release is out. Let me go
- 12:26and update all the providers." And it
- 12:27started like creating pull requests
- 12:28across repos. And I was like, "That's
- 12:30crazy cuz I was just I was just having
- 12:32breakfast." But but that just
- 12:34illustrates a point of having like AI
- 12:36push things through, right? I mean, it's
- 12:38easier to to define a goal and and then
- 12:41let it like push things through. And it
- 12:43was pretty secure because every single
- 12:45thing gets super validated in this case.
- 12:47>> Your comment about own your comment
- 12:49about ownership is quite key. I feel
- 12:51because in many organizations I feel
- 12:55the organ the ownership is distributed.
- 12:57So like uh for example
- 13:01like maybe there's a a production
- 13:04release team, maybe there's like an octa
- 13:06or IM team and um I I mean I'm creating
- 13:11a hypothetical situation here, but I'm
- 13:13I'm sure you'll understand that like you
- 13:15are in in control of CDK terrain, but in
- 13:18a in a major, you know, big companies
- 13:23uh product thing, you have to coordinate
- 13:27with human teams and that's where things
- 13:30quickly become awkward and uh and and of
- 13:35course AI doesn't really help there
- 13:38right
- 13:38>> it does it does help
- 13:40>> because like because of like my
- 13:43experience in the last week when I have
- 13:44to coordinate I have a pull request that
- 13:46has to be reviewed for the the CDK
- 13:48terrain release and um literally have
- 13:52Claude armed to to wait until the PR is
- 13:55ready and then claw just wait.
- 13:57>> Okay. I see. I see. I see what you mean.
- 13:59Like in your example,
- 14:02>> you
- 14:05pro you automated and and and uh the AI
- 14:09is just waiting for something waiting
- 14:12for something to happen and then it
- 14:13triggers something. I suppose that's
- 14:15that is quite helpful. I suppose
- 14:17>> I I I'm at a point and I think there's a
- 14:20lot of people that re that have reached
- 14:21that point where they have so many
- 14:23sessions running on the machine and
- 14:26>> be confused to like what the hell's
- 14:28going on.
- 14:29>> I do I do I use CMX? It's a lip ghosty
- 14:33term.
- 14:34>> You heard heard is the is the Kool-Aid
- 14:38>> now. Now they're super logical from
- 14:40Hashi Hashimoto who's who's going to
- 14:42rebuild T-Max but like for a ghosty uh
- 14:46native you know protocol so much faster
- 14:49rendering and
- 14:50>> so heard is not really so much a
- 14:52terminal multiplexer but it helps keep
- 14:54your AI sessions in in one place.
- 14:57>> So so CMAX does the same right? I mean I
- 14:59found something that works. I haven't
- 15:00really had a um you know I just saw
- 15:04someone announce his own version of of
- 15:06it on on LinkedIn. there's hundreds of
- 15:08them. The same with like context
- 15:10engineering uh solutions uh spec driven
- 15:13solutions. Everyone can make their own
- 15:15so easily with with with uh with AI. So,
- 15:17so but to come back to the point of like
- 15:19coordination and also ownership like I
- 15:22think this is one of the biggest uh
- 15:24mistakes like I work in a in a very
- 15:26restrictive um you know company right
- 15:29now and there's like a central team that
- 15:31tries to own everything and it is
- 15:33creating so many hurdles in in
- 15:36coordination issues um where and in this
- 15:40case everyone is being blocked by by one
- 15:42team um and maybe they are able to to do
- 15:45their things. I saw on on a on an annual
- 15:49on a quarter review uh slide they showed
- 15:51the diagram with the throughput of every
- 15:53team and the true of that one team that
- 15:55everyone belongs depends on is massive
- 15:58they're like double or triple from
- 16:00everyone else and then I'm like yeah but
- 16:03why do you think that is cuz everyone
- 16:06else is waiting for them to be honest
- 16:08you could say they're doing such a great
- 16:10job they're doing four times what
- 16:11everyone else is doing
- 16:13>> interesting how you can uh you can spin
- 16:15it like that Yeah, you
- 16:17one graph shows you the throughput which
- 16:19is through the roof and the other and
- 16:21then and then if you're a bit more
- 16:22careful you show that like everyone's
- 16:24blocked by this team. I mean I was
- 16:26asking you know when they show this on
- 16:28the screen I was asking um in direct
- 16:30message to someone and I was saying can
- 16:32we can we look that from a different
- 16:34angle? [laughter] Yeah,
- 16:35>> I don't want to say it publicly here,
- 16:37but
- 16:38>> yeah, that's that's the trouble. A lot a
- 16:39lot of these like big company um
- 16:43announcements like when they go like,
- 16:45>> "Hey, our team has done so much better
- 16:49in the town hall, they have this like
- 16:53>> but nobody nobody said the team is doing
- 16:54the great job." it just they were at the
- 16:56top and and I was just thinking I don't
- 16:58think that's very
- 17:00>> I just feel like I feel like
- 17:01communication I I guess I don't think
- 17:04communication sold in any company really
- 17:07but
- 17:08>> but sometimes
- 17:09>> for many reasons right
- 17:10>> yeah for many reasons but like sometimes
- 17:12you have a team that like wants to show
- 17:15the impact because everyone's like has
- 17:16to show business value has to show
- 17:18impact
- 17:19>> and then they they say something which
- 17:21is kind of ridiculous
- 17:23or doesn't is missing some key context
- 17:27and there's just no way to sort of
- 17:29contribute in a in a nice way to say
- 17:31that h actually the way that you said
- 17:34that isn't quite correct because
- 17:37um you know it's just too late by then
- 17:38or something and everyone's having to
- 17:40absorb what one person's point of view
- 17:44basically. Yeah. So that was the first
- 17:46thing when we talked about like the the
- 17:49coordination issues and about
- 17:50infrastructure orchestration. Uh but
- 17:53then the second thing was you were
- 17:54asking if AI can be really useful in
- 17:57those cases of how do you know that AI
- 17:59is doing a good job and um AWS made a
- 18:03repository public called the AWS bench
- 18:06AWS-bench
- 18:07on GitHub
- 18:09>> and I had a play with it because I have
- 18:11a hypothesis and I thought you know I
- 18:14want to I want to put some numbers
- 18:16behind my claims and um while Fable was
- 18:21trying to repurposed their benchmarking
- 18:24solution to prove my hypothesis or
- 18:26disprove my hypothesis. Hopefully not
- 18:27disprove, but um I was actually having a
- 18:30look at the number of scenarios that are
- 18:32in there. Um I mean I don't know if I I
- 18:36could share.
- 18:36>> Yeah. Yeah. Share your screen. I haven't
- 18:38actually jumped into the source code,
- 18:40but I do think AWS Bench is a fantastic
- 18:45idea because like I've been evaluating
- 18:48my models on the on Simon Willis's
- 18:50Pelican up until now, which is
- 18:52ridiculous. [laughter]
- 18:53>> Which is ridiculous because I need a
- 18:55model to do infrastructure stuff. I
- 18:57don't need it to draw freaking Pelican.
- 18:59>> Yeah, this fact's only there. Okay, so
- 19:02AWS Bench uh new or on GitHub. I don't
- 19:06know if you can still hear me if I go so
- 19:07far. So, um, what's interesting is the
- 19:12>> Sorry,
- 19:14>> I will I will zoom in.
- 19:16>> Yeah, let's choose something that maybe
- 19:17we all understand like let's go and No,
- 19:21let me just find them again first. So,
- 19:23wait, I'm in the wrong repo. I think I
- 19:25need to go to the data sets. That's
- 19:28where I think the scenarios are. So,
- 19:30then I think it's under tasks. Yeah. So
- 19:33they have these categories and what's
- 19:36really interesting is um when I started
- 19:39running it on my account actually um it
- 19:42needs AWS or it needs an AWS or
- 19:45management account and then it uses a um
- 19:50an OU operating unit and you you then
- 19:54have an anchor AWS account and it finds
- 19:57the AWS accounts to test in. Normally it
- 19:59will mint a fresh AWS account or reuse
- 20:02an AWS account just to run the
- 20:04benchmark. Okay. So just to run the
- 20:06benchmark it will stand up an isolated
- 20:08AWS account deploy an SCP so that the
- 20:11agent is completely isolated to work in
- 20:14a single region. That's how how it's
- 20:16yeah it's pretty cool
- 20:19>> and then it time I kind of wish it was
- 20:22not requiring live cloud resources. cuz
- 20:25I wish you could almost run it offline.
- 20:28>> There is there is a version.
- 20:31>> Okay, let's not go down this offline
- 20:33rabbit hole. So just just show just show
- 20:35one of these these um these test
- 20:37>> scenarios. Yeah, so there are which one
- 20:40was I looking at? I was looking
- 20:44like for example diagnose ALB. So, I
- 20:48think before it runs,
- 20:51um
- 20:58I'm a little bit lost now. I I remember
- 21:00there being basically an infrastructure
- 21:02like the a CDK um stack that gets
- 21:05deployed into the AWS account uh before
- 21:09the agent gets unleashed and then a
- 21:11bunch of um questions a bunch a bunch of
- 21:16uh
- 21:18troubleshooting scenarios.
- 21:21Okay, so this is the the actual CDK app
- 21:24with setting up the environment that so
- 21:26the scenario sets up the environment for
- 21:28the troubleshooting scenario tunnel.
- 21:30>> Yeah. So no, that's not very
- 21:32interesting. The task So the task run
- 21:35inside those scenarios. So I think the
- 21:37scenarios set up the AWS environment,
- 21:39you know, deploy a bunch of resources
- 21:41like an ALB, an API gateway and so on.
- 21:44And then it provisions
- 21:46>> there's a test uh folder down there if
- 21:49you saw that.
- 21:50>> This is the the this is it. This is it.
- 21:52The instruction one. Um so this is what
- 21:56the so it provisions and harness it can
- 21:59be Claude Code it can be kiru cli it runs
- 22:01inside the docker container completely
- 22:03isolated you can decide what is the
- 22:05environment that the container gets it
- 22:06can have skills or whatever and then you
- 22:08give it this is an instruction for this
- 22:10particular task in that particular
- 22:11scenario my ALB so that gets injected
- 22:15started running 5xx what's going on okay
- 22:17so all of these you know launch an agent
- 22:22with the tools with a certain set of
- 22:24tools can be an MCP can be skills insert
- 22:27inside a sandbox environment against a
- 22:29real AWS account with real AWS resources
- 22:32and then a simple prompt and then when
- 22:34it the AI is finished it will then u you
- 22:38know be judged by by by its performance
- 22:40uh against that task and you can see
- 22:43that the number of of scenarios are are
- 22:46that the number of scenarios and the
- 22:47number of tasks against those scenarios
- 22:49are are massive really really big right
- 22:53Um, it's significant. Very interesting.
- 22:56>> It's amazing though at the same time a
- 22:58little bit scary because like I've sort
- 23:00of prided myself on my troubleshooting
- 23:03abilities
- 23:05over the years and pride myself
- 23:06troubleshooting skills and now this is
- 23:08kind of scary because it's automating my
- 23:10troubleshooting skills away.
- 23:14Uh yeah, I think as a platform engineer,
- 23:17if you are not focused on
- 23:23finding a way to leverage this type of
- 23:26um you know agents and providing these
- 23:29as an offer as a service for for for
- 23:31your um for your product teams, right?
- 23:34Because ultimately what is a platform
- 23:36engineer? We are responsible for making
- 23:38it easy for products to be delivered to
- 23:40production and iterate. So however
- 23:42that's done like it's the fact that we
- 23:44were doing infras that was just because
- 23:45that's the way was what we needed to do
- 23:47today product engineers they can write
- 23:50the infra all on their own you know they
- 23:52can create and define it so actually
- 23:54platform engineers always are supposed
- 23:56to just be focused on guardrails and
- 23:58discoverability and observability
- 24:00>> guard rails and discoverability yeah the
- 24:03the critical thing here
- 24:07is that I hope this AWS bench can be
- 24:11extended like for example
- 24:14an I mean they they AWS has a whole
- 24:17bunch that AWS bench has a whole bunch
- 24:18of scenarios but but these are not the
- 24:21exact scenarios for uh you know an
- 24:24insurance company or a financial company
- 24:27or a whatever company they we people
- 24:31need to basically contribute or have
- 24:34their own internal scenarios here so
- 24:37that uh agents can be tested and
- 24:40validated that they it can do certain
- 24:44day-to-day work in that particular
- 24:48uh business environment. So I I I really
- 24:52hope that AWS Bench I I'm going to study
- 24:54AWS Bench but like you you get the point
- 24:56right that you need to to have your own
- 24:58benchmark for your own company.
- 25:01>> Yes. And and it's also something that
- 25:03I've been um because what why did I look
- 25:05into AWS bench is because I've had this
- 25:07idea and this hypothesis that um if you
- 25:11use a higher level language uh like the
- 25:14cloud development kit uh allows you to
- 25:16build um agents can be more efficient.
- 25:20You spend less tokens. They will be
- 25:22faster. You spend less time. they will
- 25:24be more accurate and the result will be
- 25:26more reliable because you will have hit
- 25:28less uh issues as as you are maintaining
- 25:31it in like long-term deops too. So
- 25:34that's why I wanted AWS batch because I
- 25:36want to put numbers behind that claim. I
- 25:38want to actually evaluate an agent with
- 25:40raw terapform.
- 25:41>> That's very cool.
- 25:42>> An agent with uh raw terraform and some
- 25:44skills, an agent with terraform modules
- 25:46and some skills versus uh an agent with
- 25:49AWS CDK. um you know which one is
- 25:52creating a more maintainable solution
- 25:55that can be um against
- 25:59>> though I mean can I assume that that
- 26:02I've got to look at these uh scenarios
- 26:03and I've got to look at the the way the
- 26:06benchmarks work but like in mo in many
- 26:08cases at least on AWS that a lot of
- 26:10these
- 26:12the chief operating
- 26:14mechanism is AWS CLI right
- 26:19that's that's the chief
- 26:21that that's what the model is expected
- 26:23to do, right? to basically or is is the
- 26:27model writing typescript?
- 26:31I so so this whole thing from AWS is
- 26:34built upon an existing framework from uh
- 26:37terminal bench uh which is I forgot the
- 26:40name for the framework now but um it's
- 26:43an existing bench benchmarking framework
- 26:45so it can be used to benchmark terminal
- 26:48you know proficiency and in this case
- 26:50they modified it to to to benchmark um
- 26:53troubleshooting capabilities against
- 26:55live AWS infrastructure to see if if the
- 26:58you know where they can optimize the
- 26:59agents either with skills Um so this
- 27:02benchmark can be for for anything right
- 27:04in my case I'm giving it the task to
- 27:06create infrastructure and I've also told
- 27:10fable my first you know set of of
- 27:13scenarios are focused on creating infra
- 27:15my second set of scenarios is mutating
- 27:18infra day two ops right we have
- 27:20something we need to modify it and then
- 27:21we need to make sure that uh because
- 27:24sometimes you can create infra but then
- 27:26when you have to change it it becomes
- 27:27very painful so I want I want to
- 27:29validate that as well Right. So, um
- 27:31those are the scenarios and the tasks
- 27:33that I am I'm looking at. Um the guy
- 27:36from Chant that we talked about earlier,
- 27:39he he built this version
- 27:43uh from you know and what he did is he
- 27:46replaced the AWS uh requirements with
- 27:48flowy. So flossy I don't know how you
- 27:51pronounce it but it's a local stack
- 27:52alternative like local stack went they
- 27:54added the license requirement and flossy
- 27:57what they call
- 27:58>> is brilliant because that's that's that
- 28:00plays into that offline comment earlier.
- 28:03>> Yes. So he built uh he has his own
- 28:05container. Um so so you have to build
- 28:08the flocky container with all the tools
- 28:10in it and then he runs the agents in
- 28:12there because he wants to prove that the
- 28:14agents are able to do these scenarios
- 28:16and these task better with um highle
- 28:19solution that is his solution basically
- 28:21me and him where are we talking a lot uh
- 28:22and and
- 28:23>> it's brand
- 28:26>> and and he I did not do the flowy or foc
- 28:32I I um I was afraid that I would hit um
- 28:35limitations of the local stack. And I I
- 28:37thought you know let let's just do it
- 28:39with the real AWS [laughter]
- 28:41for uh for you know first first draft
- 28:44and then look at um quick uh sandbox
- 28:46like local iterations to improve upon
- 28:48that because if I know it works in AWS
- 28:50and then I I I put FL Faky in it and it
- 28:53starts failing then I know that it's
- 28:55Faky and not not uh not my my other
- 28:57stuff. Right.
- 28:59>> Yeah. This is really cool. This is
- 29:01really cool. the the
- 29:06thing I wanted to talk to you about um
- 29:10is still I think a void for agents I'm
- 29:14sorry to bring it up again but like in
- 29:16many companies you use something like
- 29:18octo or zero whatever and you have
- 29:22different vendors right you have your
- 29:23page of duty you have your slack you
- 29:25have your atlassian you have your uh I
- 29:28don't know you have a whole bunch of
- 29:30them the the thing that I'm struggling
- 29:33with is uh
- 29:38like say say um say you want your agent
- 29:41or something like that your agent
- 29:43identity to to access these various
- 29:47services in most cases you're going to
- 29:50go for a long live credential right I'm
- 29:53just no you can do everything with OIDC
- 29:56you can do you can do everything with
- 29:58the MC I mean some some things don't
- 30:00have MCPS
- 30:02some things don't ever
- 30:03>> I'm actually having that problem at work
- 30:04now as well. Um so I think
- 30:10I think you need to have a very like
- 30:12mature organization that have proper
- 30:14onboarding and offboarding of of of your
- 30:16employees and single sign on setup and
- 30:18integrated across uh all of your your
- 30:20systems.
- 30:22um you will I think you're right that if
- 30:25you're talking about agents and and um
- 30:28basically
- 30:30thing things that do not have this um
- 30:33device off flow or like that need to
- 30:35have a token and then refresh the token
- 30:37like with OIDC you have these uh the
- 30:39ability to to authenticate it give it a
- 30:42token and then a refresh token to keep
- 30:44refreshing the
- 30:45>> I mean it's also the oorthth flow does
- 30:47that right I mean and I I'm always a
- 30:49little bit confused I think of oid DC is
- 30:52like a like a trust relationship and
- 30:54then I think of oorthth as the one that
- 30:56with the the token and and the refresh
- 30:59rate. But
- 31:00>> yeah, you're right. OIDC is a wrapper
- 31:02around too.
- 31:03>> Yeah.
- 31:04>> Um and that's maybe where I'm like
- 31:06prompting the AI and guiding it wrong.
- 31:08Uh that I should probably be using
- 31:09because we just had a discussion about
- 31:11that. We had this problem with our
- 31:12agents now is like how do we give them
- 31:14access um to tools and how do we make
- 31:18sure that they don't have lawyers
- 31:19>> MCPS is is the right path but there's
- 31:22many cases when there when there isn't
- 31:24the um
- 31:26>> well like for example like say you want
- 31:30a service account or something then
- 31:32things get weird cuz cuz yeah when you
- 31:34run an agent on someone's computer when
- 31:36you're when you're authenticated like in
- 31:38my Kai Hendry account then I I think
- 31:41things become a lot easier but like when
- 31:42you want to do machine to machine stuff
- 31:45things get weird very quickly and anyway
- 31:49I'm just trying to say that like I feel
- 31:51like am I'm well this is I'm just
- 31:54winging through this problem right now a
- 31:56lot of am identity and access management
- 32:00stuff seems to be the bottleneck in uh
- 32:03in this particular client I'm working
- 32:04with right now
- 32:07I am it's hard it's really really hard.
- 32:12Well, when you run, in our case, we're
- 32:14looking at agent core that's integrated.
- 32:16They get an IM role and they have the,
- 32:20you know, we can use agent core identity
- 32:23with the credential provider
- 32:26>> identity. What is agent? Oh, Bedrock
- 32:28agent core. Yeah, sorry.
- 32:30>> No, it's not.
- 32:31>> So, Bedrock, they launched agents and
- 32:34then they already retired it. So yes,
- 32:36it's called bedrock agent core, but the
- 32:39messaging from AWS around agent core is
- 32:41very weird. Like on one side you have
- 32:43bedrock which is all about like models,
- 32:46hosting, invoking um you know training,
- 32:50tuning
- 32:50>> and then you have agent core which is
- 32:53all about making agent production ready
- 32:56um being able to run agents um with all
- 32:59of the requirements around it like in
- 33:02terms of obs observability
- 33:04um access to MCP tools um identity
- 33:10>> yeah eval
- 33:12observability
- 33:14prompt injection detection or prevention
- 33:17rather
- 33:18>> and agent core is like it's like your
- 33:20ECS for containers you have a container
- 33:23you want to run it okay you need to have
- 33:25rollout capabilities you need to have
- 33:27you know the ability to do ingress with
- 33:29load balancers that's what elastic
- 33:31container service does for containers
- 33:33right so agent core is the same thing
- 33:35you have an agent however you built it
- 33:37you know ECS doesn't care what you put
- 33:38in your container um ECS as uh sorry
- 33:41agent core doesn't care which which is
- 33:43the SDK that you use to build your
- 33:45agent. You can use entropic cloud uh SDK
- 33:49or you can use their AWS
- 33:51>> like a sandbox, right? It's like
- 33:53>> yeah it's it's it's a runtime. It's like
- 33:55a container environment. It's it's
- 33:57serverless. Um it it can be invoked
- 34:00create a session that stays around for a
- 34:01while um that can be resumed and then it
- 34:04can be you know that's it's a bit like
- 34:07lambda. It's a mix between lambda and um
- 34:12>> okay but this containers I got that but
- 34:14does it solve the identity IM issue?
- 34:17>> So agent core has an identity part which
- 34:20allows you to register um your your
- 34:24sorry wait which you can control the
- 34:27incoming user pool and then the agent
- 34:29acting on behalf of another user. So you
- 34:32can then have an outbo outbound identity
- 34:35um mechanism. So how does the agent core
- 34:39talk to um other systems and it has like
- 34:43I don't know through there's several me
- 34:45authentication mechanisms described in
- 34:47the outbound identity
- 34:49have a look at that.
- 34:51>> Yeah. And and then there's a machine to
- 34:52machine where where you have an API key
- 34:54or a similar for the agent to to use. Um
- 34:59identity has an a credential vault so it
- 35:01can inject but it doesn't do uh some of
- 35:04the things that you would expect. So it
- 35:07can be very confusing because it looks
- 35:08like it can do it but then when you get
- 35:10to the to the point it actually
- 35:11>> what about what about state because one
- 35:13one one issue that we have at work is
- 35:16that we have a lot of data and uh we can
- 35:20get agents to grab the data and uh give
- 35:23us some insights and everything like
- 35:24that but it's so slow to get the data
- 35:26out of like you know Jira Workday the
- 35:29usual suspects
- 35:31>> don't use Jira
- 35:34[laughter]
- 35:35yeah that's the solution
- 35:38But like but like you need a caching
- 35:40layer often just otherwise the whole
- 35:43solution is not workable. And I wonder
- 35:45if someone like I don't think anyone
- 35:48would mind me saying that at at my
- 35:50employer like GraphQL Apollo the Apollo
- 35:54makes a surfaces again. I've used Apollo
- 35:58on and off some years. I mean in
- 36:01different engagements
- 36:03like is there is there a good solution
- 36:05for for caching uh
- 36:08solution for this was identity actually
- 36:10this is something related to MCP
- 36:12authentication
- 36:13>> client ID yeah that's a good that's a
- 36:15good concept
- 36:17>> yeah so that one is is the one that that
- 36:19this morning um I was I was told that
- 36:22this is what we use to to authenticate
- 36:24against MCP so I mean I didn't
- 36:27understand all the zero but like I do
- 36:29feel Sorry for like noobs cuz a lot of
- 36:31people don't understand alz
- 36:34public private keys client IDs
- 36:38secret key. Yeah, there's a lot going
- 36:40on. But but do did you have any insight
- 36:44to the whole caching besides not using
- 36:46uh Jira
- 36:51because you because you don't want
- 36:52agents to
- 36:54uh
- 36:56nondeterministically
- 37:00fetch
- 37:03key data all the time. G
- 37:07I think I think this goes to the the
- 37:10ongoing you know how how they the
- 37:14community goes into fl into cycles and
- 37:16and and like waves of technologies and
- 37:19you know everyone went all in on
- 37:20markdown and then there's this whole
- 37:22story about SAS is dead because every
- 37:24time an agent needs information it's it
- 37:26fetches it and then stores it in
- 37:28markdown on disk and then it it grabs it
- 37:30quickly.
- 37:30>> That's true. Yeah.
- 37:31>> Yeah. And then we had this whole
- 37:32discussion about markdown is a broken
- 37:34mirror because there's like 10 documents
- 37:36and they all say something slightly
- 37:37different. Um
- 37:38>> yeah, we should have
- 37:40>> and then we talked about um you know I
- 37:42mean the Twitter sphere or uh Xphere
- 37:45talks about um you know loop
- 37:47engineering, harness engineering,
- 37:49context engineering and now they're all
- 37:51talking about graph engineering. Yeah.
- 37:54And
- 37:54>> yeah, that's true. It does we
- 37:59Yeah, it does. You're quite right that
- 38:01we're going in circles here
- 38:04>> engineering. Now we're talking about
- 38:05data
- 38:07>> about the data. Yeah. Because because
- 38:09the you know maintaining that data uh in
- 38:13in a consistent way is hard and and
- 38:16that's where graph engineer I honestly I
- 38:18just read the term. I haven't even
- 38:19looked into it but the fact is that we
- 38:21are building graphs at work. So I don't
- 38:24know what they're talking about when do
- 38:26they do graph engineering but we're
- 38:27building graphs. So I guess we are doing
- 38:29graph engineering. [laughter]
- 38:30>> Yeah. I'm not I'm not a huge fan of
- 38:34GraphQL though because
- 38:35>> it's not GraphQL though. Like we're not
- 38:37using Apollo or GraphQL. We're we're
- 38:39we're using um we're using
- 38:42>> uh Neptune um to to basically like
- 38:46Neo4G, you know, graph query language.
- 38:49Uh it's not
- 38:52>> it's not Apollo. So yeah, we're not
- 38:53we're not using uh what's the that's
- 38:56like we're not going away from REST.
- 38:59>> Yeah. What what is the AWS version of uh
- 39:02GraphQL? I think is it Neptune? Yeah, I
- 39:04think it's Neptune.
- 39:05>> Neptune
- 39:07Neptune is a graph database. You store
- 39:09entities, you create relationship
- 39:11between entities and then you query
- 39:13them. You can go from one entity and and
- 39:14and do a thinization.
- 39:17My probably my wrong opinion about these
- 39:20sort of things is that is that people
- 39:22tend to
- 39:24well graph databases are powerful and
- 39:26then people make pretty crazy queries
- 39:29with them.
- 39:31I think some people argue that it makes
- 39:33more efficient queries, but it ends up
- 39:34that like it's the opposite is true.
- 39:36Like people make wild ass queries and
- 39:38then then they're quite difficult to
- 39:40tune and u reconcile and operate and
- 39:44things like this. But you're probably
- 39:45talking out my ass. No, I mean because I
- 39:48think it's different when you talk about
- 39:51a front end, maybe it's not different,
- 39:53but to me when you you talk about a
- 39:55front end doing REST endpoint queries
- 39:57and those rest endpoint queries go
- 39:59against the data repository pattern or
- 40:01you know um and then whenever the front
- 40:03end needs something new the the back end
- 40:05has to build an endpoint or or uh you
- 40:07know um and then what GitHub did they
- 40:10build this uh GraphQL um uh solution
- 40:14which allows front end to to to to send
- 40:17a a request of exactly the shape that
- 40:20they want that then on the back end
- 40:22needs to be resolved uh against um the
- 40:25data which to me sounds like an extreme
- 40:29>> um expensive operation. You know the
- 40:31whole the whole benefit of rest is that
- 40:32you can you have like immutable um sorry
- 40:36not immutable but you have
- 40:38>> input and endpoints and you can um can
- 40:41scale it out against a back end but now
- 40:44you're putting a query engine in
- 40:45between. So now you're increasing the
- 40:47compute required.
- 40:48>> Exactly. And then there's lots of
- 40:49security issues. There's uh
- 40:53>> um yeah like schema introspection. Yeah.
- 40:57All sorts of weird things can go on. I
- 40:59don't I don't know what is the name of
- 41:01the AWS service that does equivalent to
- 41:03Apollo. But it's not Neptune. Neptune is
- 41:07is like RDS. It's like Postgres. It's
- 41:09it's Neptune is like Neo4G. you're
- 41:12you're hosting a database in a different
- 41:15um you know structure. It's it's like
- 41:18>> it's Amazon AppSync.
- 41:20>> Yeah, AppSync is the GraphQL one uh
- 41:23equivalent. Yeah. So when you when you
- 41:25move away from that and you you're
- 41:27actually moving the data structures to
- 41:29something that is you know an a graph of
- 41:33object or um that is designed based on
- 41:37um objects and their relationship
- 41:39between objects and then you can query
- 41:41those objects. Uh I can imagine that you
- 41:43can actually make much more performant
- 41:46data queries. Um, but I have to say it's
- 41:50indeed very very hard to to cuz I see
- 41:53the demos that we we have and you have
- 41:55the MCP tool doing all the queries,
- 41:57building all the queries against uh
- 41:59against Neptune and it's it's like
- 42:02cycling, you know. Um, which is very
- 42:04frustrating. Uh, you're looking at cloud
- 42:08firing off all these queries to figure
- 42:10out the relationship between entities.
- 42:13Um, it's not fast. So, there definitely
- 42:15must be a faster way. I I think the
- 42:17appeal is that you can um represent you
- 42:22have to capture the data and then you
- 42:24can represent the data from any angle
- 42:26like you know materialized view of it
- 42:30>> um in a very fast and efficient way. So
- 42:32if you're focused on only like you can
- 42:35have your whole organization with all of
- 42:36the different teams and all of the
- 42:37products that they built, but you need
- 42:39to add one feature that touches two
- 42:41products and then you can focus and
- 42:43query only on those and then identify
- 42:44the repositories that those products
- 42:46have and then identify where you need to
- 42:48make modifications and then you can
- 42:50create the actual work and then hand it
- 42:53off to agents to do that work um
- 42:56efficiently without having to render a
- 42:59whole markdown plan. And then that
- 43:01markdown plan along the way got gets
- 43:02stale very quickly. Sorry, this
- 43:08old man stares at cloud
- 43:11shouts at cloud symptoms. Old man
- 43:14shouts.
- 43:14>> Sorry, there's a there's a rubbish
- 43:16pickup.
- 43:18>> I don't hear anything.
- 43:21>> You can't hear me?
- 43:23>> I can't hear the anything outside. I can
- 43:25hear your voice. I can't
- 43:26>> Okay. I got I I purposely put noise
- 43:29cancellation on. Yeah, I was I was just
- 43:32Oh, I got to give this some thought, but
- 43:34like
- 43:35these GraphQL things
- 43:39has come up time and time again on my
- 43:41different during my my long career and
- 43:45I'm still
- 43:47thinking that the the the
- 43:53promises of faster development. Okay, I
- 43:56I'll get behind greater flexibility
- 43:58maybe, but easier data management and
- 44:01faster development, I'm not I'm not a
- 44:03thousand% sure. I mean, maybe initially,
- 44:06but but operationally, I think it's a
- 44:09little bit of a nightmare.
- 44:12Okay, I think we have we we had a really
- 44:14good pod. Maybe we should just end on a
- 44:16high before we run out of things to say
- 44:20before we start.
- 44:20>> You really can't hear any of the stuff.
- 44:22What?
- 44:22>> Now I just heard one little like like
- 44:26somebody fell off. Uh maybe somebody's
- 44:29been being kidnapped outside the door.
- 44:33We got a rubbish collection.
- 44:35We been doing a lot of spring cleaning.
- 44:38Well, anyway, I wanted
- 44:40>> I don't agree with why you say GraphQL
- 44:42all the time. It's not GraphQL, it's
- 44:44Graph database queries. It's different.
- 44:48>> Um Okay.
- 44:50Well, I mean, I'm just thinking
- 44:53specifically of the GraphQL
- 44:54implementation. And I know there's more
- 44:57there's a bigger supererset of these
- 44:59sort of stuff but anyway I just
- 45:00>> no because because I think it's
- 45:02interesting that the problem you face is
- 45:04the the way that it's the graph
- 45:06engineering or the graph is being
- 45:07queried is through graphql
- 45:09versus
- 45:11um what I was looking at with there's a
- 45:14difference between graphql queries where
- 45:16you know graphql is from a client to a
- 45:18server to fetch data and then define the
- 45:21API contract or make sure that the API
- 45:25is following the contract and then when
- 45:28I talk about Neptune it's a database
- 45:30engine and you have a query language to
- 45:32query the data in that database with
- 45:35deep u data manipulation and
- 45:37relationship analysis which is very
- 45:39different purpose right one is for a
- 45:42front end to render a view another one
- 45:44is for um you know a system querying the
- 45:49data and I was just saying earlier you
- 45:51need to be able to query the data to
- 45:52render a view so how is are different.
- 45:55[laughter]
- 45:57Yeah. And it's cipher and sparkql and
- 46:01gremlin.
- 46:03Yeah. Well, let's try wrap up here. Like
- 46:07I let's try give yourself a challenge of
- 46:11writing a benchmark in the AWS bench
- 46:14style. [laughter]
- 46:15So I can tell you that I had um fable
- 46:19>> I think you've already done that,
- 46:20haven't you? With your CDK.
- 46:22cable has been turnurning on that more
- 46:25than a day. Okay. I have no idea why,
- 46:28but it has been good.
- 46:31>> Yeah. So, basically, I don't your max
- 46:34plan has been maxed.
- 46:36>> No, not even. [laughter]
- 46:37Uh but so basically the full the full
- 46:40context is I always postponed creating
- 46:42this benchmark because I was always
- 46:43afraid of like you know not having
- 46:46enough tokens and then I ended up
- 46:48without realizing it Wednesday evening.
- 46:51Hey you have 18 hours before your um you
- 46:54know your weekly budget resets and I had
- 46:56like only used 40% of the of the of the
- 47:00whole budget. So I said okay now it's
- 47:02time to run the benchmark. So, I started
- 47:04on Wednesday at 11 p.m.
- 47:06>> Yeah. At 11 p.m. I started like, "Okay,
- 47:08look at these. I I gave it the AWS bench
- 47:11uh repo, the data set repo, and the um
- 47:16the the other fork with the flowy
- 47:17support and um and some other repos that
- 47:20I thought were relevant, but Fable says,
- 47:22"No, those are not relevant. Those three
- 47:23are really good. I I can use those." It
- 47:26asked me a couple of questions for the
- 47:27plan and the design, and I said, "Yeah,
- 47:29let's go ahead and do this and this."
- 47:31And the the way I I prompt fable is
- 47:34always you're not doing the work, right?
- 47:36Because you're expensive and your
- 47:38context needs to stay small. Your
- 47:39context I don't tell it that but like
- 47:42it's not doing the work, right? It
- 47:44always needs to iteratively launch
- 47:46dynamic workflows where Sonnet does the
- 47:48implementation opens verifies with a
- 47:51tight feedback loop and then
- 47:52>> you just you just you just tell it to do
- 47:54that.
- 47:55>> Yeah, I said dynamic. I I don't say it
- 47:56with so many words because it knows it
- 47:58knows what to do. But I I usually just
- 48:00say iterative dynamic workflows
- 48:03always override the model otherwise the
- 48:05workflow is going to run fable which is
- 48:06not what I want. So always override the
- 48:08model
- 48:08>> that in your cloud MD or you just you
- 48:11just buy the
- 48:12>> I should have by now right but uh you
- 48:15>> so so um I actually re reuse the
- 48:18session. I was always the guy who says
- 48:20don't compact clear, right? Keep your
- 48:22state in in in beats and so on. And now
- 48:24I'm the guy like, yeah, I've got a
- 48:25longunning fable session that I compact.
- 48:27So [laughter]
- 48:28yeah, it's dumb. Uh, but yeah, I I
- 48:31basically iterative dynamic workflows
- 48:34um to
- 48:36make sure that Son is the one
- 48:37implementing, Opus is the one verifying
- 48:40and then when the workflow finishes um
- 48:42it Fable is
- 48:44>> implementing, Opus is verifying, Fable
- 48:46is planning,
- 48:47>> Fable is um is basically has the um
- 48:50long-term view, right? The vision. So it
- 48:53builds the the workflow prompts. This is
- 48:54the next slice of what we need to do.
- 48:56And Fable said, "Great. We're going to
- 48:58go ahead." And it created A B CDE E F G
- 49:02E uh sorry, G H. It had H SL H
- 49:09slices um to do and and it put that in a
- 49:12task list like it keep track of the
- 49:14tasks, right? So it has a to-do task
- 49:17list.
- 49:17>> Slices would be not benchmarks, slices.
- 49:20Okay. slices of the whole long-term
- 49:22goal, right? The long-term goal. I I had
- 49:24speced this out a long time ago about
- 49:26what exactly I wanted to benchmark. I
- 49:27wanted to prove that an agent in
- 49:31different scenarios. And I I basically
- 49:33speced this out long time before the AWS
- 49:35bench.
- 49:36>> Why didn't you just go incrementally?
- 49:38Why don't you just come up with one test
- 49:39and then build from there? I don't quite
- 49:41follow your rationale here.
- 49:42>> Yeah. So, I had I had a very detailed
- 49:45goal of what I wanted to prove. Again,
- 49:47fable is good with goals, right? You
- 49:49tell it what you want. It breaks down
- 49:51the problem.
- 49:52>> Why do you have a golden test? Because
- 49:54you sounded like you.
- 49:55>> So, so basically what I did a long time
- 49:57ago, Kai,
- 49:59>> listen for a minute. What I did a long
- 50:02time ago was I I I defined exactly what
- 50:04I wanted to test, what my goal was, my
- 50:06long-term goal. Okay? And then Fable
- 50:08does the planning. Fable slices it down.
- 50:10Starts with the one test first. Okay? I
- 50:12didn't I don't need to tell Fable do one
- 50:14test and then, you know, All right? So,
- 50:17so basically then I I always postponed
- 50:21it. Then AWS Bench came out and I was
- 50:22like, okay, now it's, you know, I had,
- 50:24you know, 60% of my Fable budget. I have
- 50:26to spend it within the next 18 hours. I
- 50:28hope, you know, maybe Fable can do it.
- 50:30So, um, and this is like a pretty
- 50:33substantial plan. It's not like pro or
- 50:36it's it's a massive amount cuz I was
- 50:39working. Okay. So, from 11:00 p.m. until
- 50:43when I I went to sleep and um I always
- 50:47tell apparently you need to say to to
- 50:49stay caffeinated because caffeine is
- 50:52approach is a process that Mac can run
- 50:54to to stay awake. So, it launches
- 50:56caffeinated. It stays working. Uh, I
- 50:59actually put it next to my head when I
- 51:01was sleeping. And um, I fell asleep
- 51:03while it was working and I woke up and
- 51:05it had been turning for like 8 hours and
- 51:08it was a slice E B C around D. I think
- 51:12it was around four slices in uh, of of
- 51:15converting it. And the thing is when it
- 51:18writes a dynamic
- 51:19>> what do you mean by slice? A slice
- 51:22is like a thin slice.
- 51:23>> However, Fable decided to break down the
- 51:26problem into thin slices.
- 51:28Okay.
- 51:29>> To reach my end goal,
- 51:30>> carry on,
- 51:31>> right?
- 51:32>> So, so I sent off Fable to do all the
- 51:34studies, make the plan. I read it. I
- 51:36realized, god damn it, this is a
- 51:37complicated uh scenario. This AWS bench
- 51:40thing is really complicated. So, I
- 51:41started looking at what AWS bench
- 51:42actually is. Um, started to understand a
- 51:45little bit about what the scenarios are
- 51:46in there, the tasks are in there because
- 51:48honestly, I first off, I said just I
- 51:50want to run a benchmark. Just go figure.
- 51:51Um, cuz you got a ton of tokens. Just go
- 51:53do it. And and so I I started looking
- 51:56into what bench was to try and
- 51:58understand the plan. I couldn't really
- 52:00understand the plan. So I said just go
- 52:01ahead while I I keep reading because I
- 52:04was running out of time. I had no more
- 52:05time. So So Fable started building.
- 52:07>> So you had time before your tokens
- 52:11refresh. So you were just like go go go
- 52:12go.
- 52:15>> So go right go do. And then I woke up
- 52:17eight hours later. It had it had like on
- 52:20average each dynamic workflow takes
- 52:21close to two hours. So I had done about
- 52:23four of them. What it does in those
- 52:25workflows, it puts a constraint in how
- 52:27many loops it can do. So those workflows
- 52:29have interesting um um you know concepts
- 52:32because they can there can be one son
- 52:34implementing then an opus verifies then
- 52:37another son needs to fix what opus is
- 52:39identified then another opus verifies
- 52:41and it can do that up to I don't know
- 52:43you can determine how many iterations it
- 52:45can do. So, so Fable told me I told them
- 52:47max max three times. Like I said, hey,
- 52:49why is it not done two hours? It's like,
- 52:51oh, we're on we're on the third
- 52:52iteration. They're not going to go
- 52:53further. Relax. So, [laughter and gasps]
- 52:56so, so, so it has this whole this
- 52:58dynamic workflow system is quite
- 53:00impressive. And then, um, Fable just
- 53:02keeps track of the long term and slowly
- 53:04the context fills up. I think after four
- 53:06after 8 hours it was only at like 30% of
- 53:08>> I would love to see how you visualize
- 53:10this. How do you know that this is
- 53:12actually being carried out as as you
- 53:14wish? like you know that so
- 53:16>> when usually it only takes 2 hours or 4
- 53:18hours and I have the result quite
- 53:20quickly okay so when it takes 8 hours
- 53:21and you still don't see the result it
- 53:23gets frustrating right you don't know
- 53:24actually is this going to be exactly
- 53:26what I want
- 53:26>> but how do you how do you try do you
- 53:28actually bother do you see all the
- 53:30agents in the claw UI
- 53:32>> yeah yeah Claude Code
- 53:33>> and you can tell each agent has a
- 53:35different model
- 53:36>> yeah you you can so basically the moment
- 53:38you you you make it launch a dynamic
- 53:40workflow it runs in the background and
- 53:42the main agent is waiting for the
- 53:44workflow So you can go down to that
- 53:45workflow. You can see the the different
- 53:47phases step one
- 53:49>> running right now. Can you share a
- 53:50screen? I'm just curious how it look.
- 53:54>> This is this is this is two months ago.
- 53:56This is uh what what you call this
- 53:57again? This is loop engineering. We're
- 53:58done with that. We That's solved.
- 54:00>> Sorry. [laughter]
- 54:02What are we doing today?
- 54:03>> Graph engineering.
- 54:06>> Uh hold on. I have so many things here.
- 54:09Uh it's not this one. So,
- 54:13it's
- 54:14>> it's funny how we now everyone has a
- 54:17million browser tabs and now everyone
- 54:19has a million.
- 54:21>> I just told you I just told you it's so
- 54:23easy for me to get get my session
- 54:25because I don't need Herder and then I'm
- 54:27spending an hour trying to figure out
- 54:28where the session is.
- 54:30>> Doesn't even sound like doesn't look
- 54:31like you're using CMax. For the love of
- 54:33God, this is Semox. It is CMX, but I I
- 54:36folded it.
- 54:39>> Actually, I don't even know what Cmax
- 54:41is. I guess it's a wrap around Ghosty.
- 54:46>> So, here it was on on slice G and it
- 54:48says slice G fails. This at this point
- 54:51it's actually doing live checks against
- 54:52my AWS orc and that prompts me. So, when
- 54:55I'm not at the computer, I don't nerve.
- 54:59>> Yeah. So, I can show you
- 55:01>> worried about your bill, your AWS bill.
- 55:04So here are all the workflows that ran
- 55:06right and you can see this one was 10
- 55:08agents. So this is what it looks like.
- 55:10This is what while it looks like while
- 55:12it's running two except these ones are
- 55:14all completed. So I can see that there
- 55:16were uh you see this is what what annoys
- 55:18me. I have to enter the
- 55:21the keychain password and I'm not this
- 55:23is my AWS or account so I don't want to
- 55:25give it like full access to it. So even
- 55:27though I'm not checking the prompt so
- 55:28it's a bit ridiculous, right? I'm just
- 55:30typing in the password.
- 55:31>> You got balls of steel. Well, that's all
- 55:33I can say.
- 55:34>> Yeah. So, so this is um this is the
- 55:37context that Fable designed for this
- 55:39first part of the first phase. So, we
- 55:41have the phases on the left which is
- 55:42scaffold phase and the first task which
- 55:45is um scaffold task and um
- 55:48>> give this a try. This is this is
- 55:50dynamic.
- 55:50>> If you never run dynamic workflows,
- 55:52you're you're really missing out.
- 55:54>> I'm a noob. I'm a total noob.
- 55:56>> Didn't say that. But this was the very
- 55:58first slice as fault. So this is like
- 56:00look at the AWS bench uh layout and re
- 56:03recreate it from scratch you know for
- 56:05our purpose right. So that was son then
- 56:09four more Sonnet agents then here we have
- 56:11opus that I guess in parallel verified
- 56:14four different layers and then reverify.
- 56:16So the reverify means that it went back
- 56:18to one of the build agents. I I oh it
- 56:20went back to a fix. So here's a fix
- 56:23phase round one and then it went back to
- 56:25verify and it it's it another opus round
- 56:27went off to verify. Now, what I like
- 56:29about this is that you see these agents
- 56:31never reach a lot of like context
- 56:33windows, right? They're they're close to
- 56:35200 context uh 200,000 each, which is
- 56:38only 20% of the window, right? Which
- 56:40makes them very focused and very
- 56:42shortlived. So, all of the context
- 56:45engineering that you had to do about
- 56:46like I need to clear my sessions, I need
- 56:48to do the checkpoints, forget about it,
- 56:49you know, all taken care of right here.
- 56:52>> Okay.
- 56:52>> Okay. I got to try dynamic workflows
- 56:54now, man. I feel like I'm missing a
- 56:56trick.
- 56:57>> Okay. So fable. So here I I triggered it
- 57:00on a 35% that's 350,000 tokens. So I
- 57:03send off a stupid like re relaunch G on
- 57:07top of 350,000 tokens. So the price of
- 57:11this one sentence is actually quite
- 57:12expensive. Um that's where you maybe
- 57:15want to like compact uh for Fable to you
- 57:18know orchestrate a little bit. So yeah.
- 57:20So,
- 57:20>> speaking of expenses, I don't see dollar
- 57:23signs and I don't see your How do you
- 57:26keep track of your your budget? Again,
- 57:29>> I had this Codexual.
- 57:31>> I had I had like a I had a Codex bar
- 57:34here that that that keep track of the
- 57:36you know the it has markers. It tells me
- 57:39>> in your 5 hour session if you're ahead
- 57:42of the marker that means you're going to
- 57:43exhaust before the session finish. And
- 57:45then also in your weekly budget, if
- 57:47you're ahead, you're going to run out
- 57:49before the week is done. So here it has
- 57:51launched
- 57:52>> it has just relaunched it right here.
- 57:54Right. So you can see the it has created
- 57:56the phases. And now you can see that the
- 57:58Sonnet one is running for 18 seconds. And
- 58:01if I tap on it, I don't know something's
- 58:03wrong with this. Oh, did I zoom in? I
- 58:06think because I zoomed in too much.
- 58:07Normally you can see the whole context
- 58:10that been launched and then you also see
- 58:12what's what's it doing at that time. So,
- 58:14activity, it's doing 11 tool calls.
- 58:17>> This is really exciting. I've got to
- 58:18give dynamic workflows a try. Never mind
- 58:20bloody AWS bench. I'm giving AWS
- 58:23workflows a try.
- 58:25>> If anyone's using workflows,
- 58:28>> if anyone's using AWS workflow, I mean,
- 58:30not
- 58:31sorry. If anyone's using clawed
- 58:33workflows, please comment below. Please
- 58:36like the video regardless
- 58:39on please leave us five star reviews on
- 58:42all the podcast platforms.
- 58:45Please send us some love so we can
- 58:48>> read this blog post.
- 58:50>> This blog post and Kai disregarded it
- 58:53because it was too much words.
- 58:56>> Words.
- 58:58What? Did you fix the summary?
- 59:02>> I know you you will still complain. I
- 59:04will not show it. So um so this is this
- 59:07is a reusable dynamic workflow. So I
- 59:10asked Fable to build a dynamic workflow
- 59:12that I could rerun when Fable was no
- 59:14longer available because I assumed that
- 59:15Fable would not be available or would be
- 59:17too expensive. So I asked it to build a
- 59:19workflow that I could ask Opus to run
- 59:22and so Fable was iterating and in this
- 59:24blog post I think the most interesting
- 59:26part is that each time I was running the
- 59:28workflow I was reducing uh Fable was
- 59:31optimizing it based on what it saw the
- 59:33agents were having troubles with. So
- 59:35each time it became less
- 59:37>> this is like this is like prompt
- 59:38engineering like where you
- 59:40>> this is loop engineering right
- 59:41>> loop engineering when you fix your your
- 59:44>> so it it it does this this blog post
- 59:47basically looks back at how fable
- 59:49iterated on the dynamic workflow to make
- 59:52it less token uh expensive to make it
- 59:55faster and more accurate so that the
- 59:56agent wouldn't have errors. So it was
- 59:58tuning the prompts, it was tuning the
- 59:59phases, it was tuning the way that the
- 1:00:01the work goes into the agents and and it
- 1:00:03and then highlighted that over time it
- 1:00:06went down 20% in token usage. Uh the
- 1:00:09number of agents were reduced, the
- 1:00:11rework was reduced, the total duration
- 1:00:13was reduced. This run four and five are
- 1:00:16two runs on the same task. So I rerun it
- 1:00:18on the same task just to get a
- 1:00:20improvement uh result. So this blog post
- 1:00:23is maybe very dense because I did ask
- 1:00:25Opus to like look at everything and then
- 1:00:27make help me summarize it but it it has
- 1:00:30some very interesting um you know like
- 1:00:34what generalizes. So Opus came up with a
- 1:00:36couple of uh rules but honestly this
- 1:00:39probably not very useful. So but what is
- 1:00:42interesting is the methodology you know
- 1:00:44that's kind of like
- 1:00:45>> this is fascinating. Okay listen I got a
- 1:00:47meeting now got to run. Okay, bye.
- 1:00:50>> Anyway, thanks. Thanks again. Uh, I
- 1:00:52think this is a great part. I really
- 1:00:53enjoyed this one. So, thanks. Thanks.
- 1:00:55Uh,
- 1:00:56>> all right.
- 1:00:56>> Thanks, Vincent. Bye. Thanks. Bye. Have
- 1:00:59a great day.