Latest / AI Infrastructure / AI's broken mirror
Transcript
- 0:01Yeah, I'm just making a conscious
- 0:03decision with this podcast to try speak
- 0:06a bit slower because I've noticed when I
- 0:09was trying to make a short of us
- 0:11talking, we we talk over each other
- 0:13almost every every moment. So, um I
- 0:19think I think it's cuz we're I think
- 0:21it's cuz we're vibing in all honesty,
- 0:23but like when you're editing it, it's
- 0:25like, "Oh no, he got cut off.
- 0:29he didn't make his point clearly and
- 0:32such and so forth. So, I'm just like, I
- 0:35got to speak clearer and not cut Vincent
- 0:39off so I can get that sweet
- 0:43sound bite.
- 0:46Yeah,
- 0:48>> we complet
- 0:52Oh, wow. It took a while.
- 0:54Okay,
- 0:55>> maybe maybe it's not worth the effort to
- 0:57be honest. So, we just keep on doing
- 0:58what we're doing. I mean, like it's
- 0:59we're having fun really, I suppose.
- 1:02Okay, let me let me share the screen so
- 1:05I can demonstrate what I mean. Okay,
- 1:08first little question for you is
- 1:13I know you you're you're a proponent of
- 1:16uh specit because you're behind it, but
- 1:18like is is there a quicker way to share
- 1:20your your prompt with your team other
- 1:23than using something like claude code
- 1:24transcripts? Is there some other like
- 1:27lightweight way of doing it? Do you just
- 1:30throw uh some history into uh a gist or
- 1:34something? Cuz I'm because I'm I'm I'm
- 1:37now between Claude and Codeex
- 1:41and this tool doesn't seem to work for
- 1:42Codeex. So great.
- 1:46Oh. Um yeah, I was just about to sense
- 1:50or share something about
- 1:56And uh it's like sddddd align. No, no,
- 1:59no, no. There was this other project
- 2:03agent diff session capture. Oh, that's
- 2:05an interesting one. But I don't know if
- 2:07it supports others than cloud.
- 2:09>> Okay.
- 2:09>> It's a CLI tool that hooks into cloud.
- 2:12>> Then there's co-pilot. Yeah. I I just
- 2:14feel I I don't know if it's even worth
- 2:16doing this on in sometimes cuz like
- 2:19because sometimes like when people share
- 2:21things to me the session is just too
- 2:23>> Yeah. So I think we need to identify and
- 2:26here we were talking over each other and
- 2:27then I interrupted you but I think what
- 2:29we need to do is we need to identify why
- 2:31do we want to share sessions? what is it
- 2:33that we want to get out of it, right?
- 2:35And we could share
- 2:38>> the full session log with all the
- 2:40mishaps or we could find some type of
- 2:44flow that allows us to capture
- 2:48important key decisions and information
- 2:50that we want to share to
- 2:52>> accompany the code changes that we are
- 2:53proposing. Right.
- 2:55>> Yeah. Yeah. like these important
- 2:58decisions need to be captured and marked
- 3:00up as much and and I don't know of any
- 3:03tool that does it like yeah like these
- 3:06sessions are hard to follow and if you
- 3:08could if you could sort of like
- 3:09highlight like I don't know the the bit
- 3:13where something happened which which
- 3:17plays into a certain
- 3:21uh
- 3:22AI usage pattern that you want to get
- 3:25across to your team or something then
- 3:27that would be great but I just maybe I
- 3:29need to build the damn tool that I want.
- 3:32>> Sounds like it because what you're
- 3:34saying is a very different use case from
- 3:35what I think about um session sharing to
- 3:39me. It sounds like you are and I think
- 3:41this is something that I also do. you
- 3:43are trying to show to your team members
- 3:45if you're faced with this type of issue
- 3:47or hey did you know that you can prompt
- 3:50the model to think deeper in this way or
- 3:52to identify other edge cases in that way
- 3:55is that what you're trying to do right
- 3:56you're trying to share
- 3:58>> yeah I'm trying to share like it's not
- 3:59just about me it's like I would like to
- 4:01see what other people think
- 4:03>> okay this this leads me nicely onto what
- 4:05I really want to get at actually I came
- 4:08across a brilliant um
- 4:11like web page where they essentially try
- 4:17to plot all the things that we've talked
- 4:19about
- 4:20from time to time
- 4:23about about uh you know obstacles as
- 4:26they call it challenges to using AI um
- 4:29antiatterns things that you shouldn't
- 4:31maybe do patterns which which which
- 4:34might help
- 4:36and this is a this is the best
- 4:38collection I've seen
- 4:40and for this the purpose of this podcast
- 4:43today. I thought it would be cool if we
- 4:46just quickly go through them if if we
- 4:49agree on these things or not or maybe
- 4:51what they missed or something like that.
- 4:54>> I know there's a lot there.
- 4:55>> I'm curious to hear from you which one
- 4:57of like you're showing a diagram and I
- 5:00don't know where to start and did you
- 5:02>> read it and is there anything that
- 5:04stands out that you say this really?
- 5:06Well, there's there's a few I I dipped
- 5:08in here and there and everywhere cuz as
- 5:11you as I mentioned the last podcast, I'm
- 5:13I am essentially taking
- 5:16uh
- 5:18some platform documentation and we're
- 5:21working on how to make it AI friendly
- 5:25and uh so I'm keen to to meet all the
- 5:28patterns uh around
- 5:32making the knowledge accessible to to
- 5:36AI. So like like when I dipped into this
- 5:39knowledge composition here, it was like
- 5:40saying,
- 5:42you know,
- 5:44don't when you keep everything in a big
- 5:46file, it might not work out or something
- 5:47like that. So it it's recommending uh oh
- 5:50my gosh, what's what is that? It's
- 5:52called uh what is that skill? Uh it's in
- 5:56the claw documentation like gradual.
- 6:00>> Yeah. Yeah. Um what's the name?
- 6:04progressive discovery or something.
- 6:06>> Progressive disclosure. Yeah,
- 6:08>> disclosure.
- 6:09>> So essentially they're saying
- 6:10progressive disclosure here. So instead
- 6:12of having like one huge best practices
- 6:14which is actually the case with my
- 6:17current client like we just have huge on
- 6:19boarding guides and uh of course they
- 6:23recommended you know breaking it down
- 6:24with architecture tech stack deployment
- 6:28API docs
- 6:30>> and this is simple stuff. This is
- 6:32something that I've noticed as well in
- 6:34the skills that so basically as you
- 6:36alluded earlier um spec ledger is is a
- 6:39is a framework around specri development
- 6:41for team collaboration for sharing
- 6:43information and we also have implemented
- 6:48the idea of capturing the messages from
- 6:52the user that and the model that led or
- 6:56the agentic um shell that led to a
- 6:59commit. So we're using um a hook
- 7:01whenever a get commit happens to
- 7:04basically capture the delta of messages.
- 7:08Then we tag those messages by the commit
- 7:11ID. So every commit ID should have and
- 7:13then you should be able to identify
- 7:15messages related to a specification and
- 7:16a specific commit.
- 7:17>> So you're trying you're trying to roll
- 7:18up the the prompt that went into the
- 7:20commit basically.
- 7:22>> Yeah, but it's too detailed, right? So
- 7:24then we have a separate GitHub issue
- 7:26that was um referring to an MCP to
- 7:30basically convert session data into
- 7:34knowledge into a knowledge base. And
- 7:37when I looked at it, it was like it was
- 7:39a bit silly because we're not storing
- 7:41sessions as blobs uh you know inside a
- 7:45datab inside a an object storage. We're
- 7:47actually already analyzing messages by
- 7:50commit. So it did highlight a couple of
- 7:53features that we could add onto spec
- 7:55ledger which is the ability to prune and
- 7:57and merge and actually derive
- 8:00knowledgebased articles um global
- 8:03knowledgebased articles to out of
- 8:05session data
- 8:06>> and and that's one of the um you know
- 8:08GitHub issues and and and and area like
- 8:11areas of work that we want to explore.
- 8:14So we haven't implemented that yet. But
- 8:16then when it comes down to what you just
- 8:17highlighted, the problem where we we
- 8:20have specled ledger CLI and we have a
- 8:22bunch of commands. So the spec kit, it's
- 8:25built out of bash scripts and Python CLI
- 8:28and some other stuff and then the agent
- 8:30is instructed to run a a bash script and
- 8:32then the bash script needs to be a
- 8:34PowerShell for Windows. So it's very
- 8:36messy, right? So with Spec Ledger, we
- 8:38have one CLI. We've got written of
- 8:40beats. Everything is is rolled into one
- 8:42CLI and then we have a bunch of skills
- 8:44for that CLI. like this is how you
- 8:46create tasks, this is how you um you
- 8:48know review comments, this is how you
- 8:50put comments.
- 8:52>> Yeah.
- 8:53>> Yeah. So we wrote a bunch of skills and
- 8:54when you init your repo we we inject we
- 8:57we write on down those skills embedded
- 9:00into the Golang binary down to your disk
- 9:02so that they can be progressively
- 9:04discovered or disclosed by by the agent
- 9:06fell to the model.
- 9:08>> And I actually noticed that those scales
- 9:10are too big like exactly what you
- 9:12highlighted. So today I just created an
- 9:14issue which is like um I used the
- 9:16entropic skill creator and they have now
- 9:18the whole evaluation framework in there
- 9:19as well. Um and I I basically pulled it
- 9:22into the repository and I did a full
- 9:24analysis on all all of our skills and
- 9:26basically what do we need to do to make
- 9:28these skills more aligned with the way
- 9:30that the agent shall or Claude Code will
- 9:32progressively um disclose this
- 9:35information to the agent.
- 9:36>> How did you notice that? This is where I
- 9:39feel we get into, you know, touchyfey
- 9:42spider sense territory. How did you know
- 9:45that your skills were too big? Just
- 9:47because they they didn't seem to be
- 9:49working or actually so we did a huge
- 9:53streamlining effort of of like getting
- 9:55rid of the bash scripts and and and
- 9:58converting into subcomands into the
- 9:59Golang binary. So you have only one
- 10:01binary need
- 10:02>> and in that effort we also realigned all
- 10:04the scales. We defined a four layer
- 10:07framework um of each layer's
- 10:10responsibility of like this this belongs
- 10:12to um shell hooks. This responsibility
- 10:17belongs to skills. This responsibility
- 10:19belongs to the CLI output also took an
- 10:22efficient output. All this is is defined
- 10:24in like one uh feature spec and we
- 10:26actually created a bunch of rules around
- 10:28that and then we realigned it. So, so
- 10:30only today I finally had time to
- 10:32actually download the binary with all
- 10:34the latest streamlining and it actually
- 10:36works really well. Like um I was working
- 10:38I picked up a task and I was like let's
- 10:41implement it with the latest CLI and it
- 10:42was working well. So I didn't have an
- 10:43issue with the skills at the moment but
- 10:46I noticed that maybe there there can be
- 10:49an improvement. So it wasn't really
- 10:51driven by like data. It was just that um
- 10:55>> No, I think I think I think Vibes and
- 10:57Spider Senses does is something uh just
- 11:01that it it's a bit weird.
- 11:04>> It actually worked really well. But um
- 11:06but the thing is I I also wrote a Jira
- 11:10skill, right? A Jira CLI and
- 11:13>> I noticed that it was really messy and
- 11:15it didn't really work well and I did the
- 11:16same thing there. So, so it's it's more
- 11:18like I I I
- 11:19>> was your Jurro CLI like actual code or
- 11:22is it like a skill?
- 11:24>> No, Mark. Well, well, so basically I use
- 11:26I I forked the the Golang CLI. That's
- 11:29the most popular one apparently. Uh it
- 11:31has a lot of open PR. So I forked it and
- 11:33merged some of those open PRs and to
- 11:35make it act more like the GitHub CLI
- 11:37because the GitHub CLI works really well
- 11:39with uh with with Claude Code
- 11:41>> and um for example, you have an escape
- 11:43hatch. can you can put API and then it
- 11:46can do REST API calls.
- 11:48>> And um I'm not sure if I mentioned this
- 11:49to you the last time, but what I noticed
- 11:52was
- 11:53I had I was using the the Jira CLI and
- 11:57according to the Atlassian docs when you
- 12:01want to move in my case I had to move a
- 12:04card from the backlog to a board. So if
- 12:07you go to backlog you can right click
- 12:08and you say move to board, right? Uh
- 12:11maybe this is going into an anecdote,
- 12:13right? But um but basically I I was like
- 12:17showing um claude I said like hey I need
- 12:20to move this ticket to the to the board.
- 12:23It's an when I create ticket it goes
- 12:24into the backlog and when then I want to
- 12:26assign it to the board and and and then
- 12:30cloud was like yeah according to the
- 12:31Atlassian docs it should be this
- 12:33endpoint uh and it it does this endpoint
- 12:35and then it will move the card to the
- 12:36board and it wrote this down in the
- 12:39scale and then I was like okay great uh
- 12:41but I already moved it so let's do it
- 12:43later and then it created another ticket
- 12:45and uh and then I was like okay move it
- 12:46to the port and it failed it got a two
- 12:49or four response empty response
- 12:50>> I was going to I was going to say as
- 12:52much I was going to say that I feel I
- 12:54feel like it's a trap when you think
- 12:56that the skill is going to be your CLI.
- 13:00It's uh it's never going to end well
- 13:02>> because deterministic, right?
- 13:05>> Yeah, absolutely. But the thing was um
- 13:07the thing was when I asked
- 13:11cloud to move to ticket, it didn't work.
- 13:13And and and really cool what happened
- 13:15was that I asked Cloud, can you see my
- 13:19Chrome? And it it launched Chrome MCP
- 13:21like DevTools controlled and it told me
- 13:24that it enabled the hook. Um it it sorry
- 13:27it enabled a spy in the in the Chrome
- 13:30session uh managed by cloud and it asked
- 13:33me to move the ticket
- 13:35>> and I said okay I click on the button
- 13:37and and then I said I've done it and it
- 13:41says now let me look at the lock from
- 13:42the hook and it says I can see that it's
- 13:44using uh green light API and not I'm
- 13:48just making up the name or something
- 13:49greenhouse or green light API
- 13:51>> and it's not using the rest API when
- 13:53it's moved to move the ticket
- 13:55>> and and and so it it updated the skill
- 13:57saying um don't use the documented rest
- 14:00API the actual conference Jira API like
- 14:03the web application is using this API
- 14:05and and and now it works like what the
- 14:08hell
- 14:08>> well I mean that that sounds like a
- 14:10rabbit hole to me the the on the topic
- 14:14of Alassian
- 14:15>> what do you mean rabbit hole
- 14:16>> I mean like because you're you're in
- 14:19like skill land as opposed to something
- 14:23deterministic with the CLI No, no, no.
- 14:25Absolutely not. You missed the point.
- 14:28>> The point was
- 14:29>> that the Atlassian REST API told you to
- 14:32to do a certain API post request.
- 14:36>> Yeah.
- 14:36>> And that it would move the cart, but
- 14:38that it didn't work.
- 14:39>> That the web app works
- 14:42>> and that cloud was able to hook into the
- 14:44Chrome session,
- 14:45>> enable the spy when I click the button,
- 14:48identify the actual endpoint, and then I
- 14:51don't care that it goes into the skill,
- 14:53right? The point is
- 14:54>> it's insane. Like at that at that point
- 14:57I I could go like okay my Golang U CLI
- 15:00deterministically should always call
- 15:02that agent
- 15:02>> but to complete this flywheel to get
- 15:05back to determinism.
- 15:07you you we we you should have spun up an
- 15:09agent, reported the bug, splabbed on the
- 15:13issue to say that uh the the this uh
- 15:17this post didn't work as intended to
- 15:19move the card from this column to this
- 15:21column and this code
- 15:24>> the the the people the upstream of this
- 15:26Jurro CLI that you're using using
- 15:28>> it's
- 15:30so there's no Oh, I thought you were
- 15:32using some go code around
- 15:35>> I am using a go code but the go code
- 15:37doesn't have the command to move the
- 15:38board the cart. So I use the pull
- 15:40request
- 15:41>> contribute back for instant.
- 15:43>> Yes, there is already a pull request
- 15:45that wasn't merged almost a year ago
- 15:48which exposes a backd dooror to to
- 15:51actually do an API. So you have the Jira
- 15:53CLI you can do Jira uh new ticket and it
- 15:57will create a new ticket and all that.
- 15:58Those are all there but there's a couple
- 16:01of things missing and in that case you
- 16:03know the GitHub CLI you can do GitHub
- 16:05space API and then you path put the API
- 16:08path and then you can actually use your
- 16:10GitHub CLI authentication to call the
- 16:13API endpoint right it's like know about
- 16:16that okay all right
- 16:17>> yeah so it's like a it's like a escape
- 16:19hatch so if if the CLI doesn't have the
- 16:21content so that already existed there is
- 16:24already an um a pull request to
- 16:26contribute the API subcomand So that you
- 16:29can directly hit end points.
- 16:31>> I see. Okay. Oh, this is pretty nuanced
- 16:33then. So you using that to keep the
- 16:36creds and
- 16:37>> yeah so my skill says until we have a
- 16:40subcomand to move tickets you can use
- 16:42the escape hatch which is through the
- 16:44API and originally according to
- 16:46Atlastian docs you should use this
- 16:47endpoint but that didn't work so we
- 16:49removed that. And in the scale it says
- 16:50use this green light or whatever it is.
- 16:53>> This yeah this escape
- 16:56>> hatch. It's quite an interesting
- 16:59concept
- 17:00>> feel design. Yes. You don't need
- 17:02>> I still think it's
- 17:04>> Yeah. Like after working with Atlassian
- 17:07products. Yeah. This this thing that I'm
- 17:08sharing with you right now I'm I'm I'm
- 17:11like
- 17:13uh
- 17:14so there's two ways
- 17:15>> this is this for confluence?
- 17:16>> Yeah, there's two ways to obviously work
- 17:18with confluence. You can you can work
- 17:20with the curl API. you can work with an
- 17:25okay there's three way these there's a
- 17:26bunch of ways there's the MCP way which
- 17:29is basically doing curl commands and
- 17:32there's um and then and then there's
- 17:34this way using a tool called mark which
- 17:37has got the highest rated I should star
- 17:39it the highest rated uh tool to to push
- 17:44to to confluence
- 17:46and
- 17:48it the the thing that I wanted to say is
- 17:51that with Atlassian products They're
- 17:53actually amazingly complicated to work
- 17:55with. The whole active markdown to HTML,
- 17:59all these crazy um macro templates they
- 18:03have for like everything from like
- 18:05little notes to I don't know table
- 18:09layouts to database to to to Jira ticket
- 18:13layouts. There's a lot going on
- 18:14actually. So, so
- 18:18this tool is actually really good and it
- 18:20does have its problems and there's some
- 18:22open pull requests, but like if you're
- 18:24working with confluence from AI, you
- 18:26should be using a tool like this.
- 18:28Otherwise, I feel you'll be catching
- 18:30some edge cases sooner or later and
- 18:33you'll be scratching your head and this
- 18:35is the deterministic tool to get you
- 18:38somewhat there.
- 18:41Okay, that said, let's just sp let's
- 18:44just let's just spend like a lightning
- 18:48one minute on each thing just to say
- 18:49whether it's whether it's whether we
- 18:53think it's correct or
- 18:55or or it sucks. How about that, Vincent?
- 19:00>> Yeah.
- 19:01>> Well, I don't even know where to start.
- 19:04Okay, let I'll start at the top left. Do
- 19:07you think uh yeah I think context raw is
- 19:09still a thing even though I noticed that
- 19:12codeex is definitely better at it.
- 19:17>> Uh I think context rock is still a
- 19:21massive problem. Yeah. And it should be
- 19:24>> I don't know about codecs but um even
- 19:27with Opus 1 million context window um
- 19:30it's very difficult to I noticed that
- 19:35LLM agents do not keep track of um
- 19:40details very well. I don't know if this
- 19:42is a regression or we're just used to
- 19:44them doing a lot more than before and
- 19:46now we just expect the world.
- 19:48>> So most people are feeling it's
- 19:50regression but I don't think it's
- 19:51regression. I think it's just we getting
- 19:54used to
- 19:54>> yeah the the expectations are always
- 19:56growing. So context management um treat
- 20:01context as a scarce degrading okay I
- 20:04think this is
- 20:06like do you have an approach to context
- 20:09management like to be honest I you know
- 20:14I do click compact conversation
- 20:16regrettably from time to time when I
- 20:17have a bit of downtime.
- 20:20So for me, since I'm now using the my
- 20:24plan with Opus 1 million token access, I
- 20:30honestly
- 20:31I have the status bar tell me how much
- 20:34percent is used. I also like that after
- 20:36the plan, it always tells me how much
- 20:38percent was used by the plan and it
- 20:40offers me to clear and and then do the
- 20:41implementation. But I noticed with Opus
- 20:441M, the usage is usually like 3% or 17%
- 20:48very low. So I'm like I'm not even
- 20:50clearing it anymore. I'm like, "Oh,
- 20:52looks good." But maybe that's also why
- 20:56sometimes details get lost. Um like even
- 21:00though it's a 1 million token context
- 21:02window opus LLM model um and it tells me
- 21:06that it's only using 10 or 15% of token
- 21:09window details are not being tracked. So
- 21:12sometimes I do go to like the basic opus
- 21:15and then I do aggressively clear. I do
- 21:18not uh I do not compact.
- 21:20>> It's quite a lot of work, isn't it, to
- 21:22to reset it in some ways. So,
- 21:25>> we get
- 21:25>> I mean I have my checkpoint uh so in
- 21:28spec we added the idea of checkpoints
- 21:30and and what they do is they basically
- 21:33that's a bit related to the question
- 21:35earlier about like how do we share
- 21:36sessions and what do we want to get out
- 21:38of sharing sessions. Um we actually
- 21:40started to move more towards either
- 21:44building knowledge base out of sessions
- 21:47or with a checkpoint command we asked
- 21:50the model specifically
- 21:52give us a detailed like progress update
- 21:55of the work that we've completed in this
- 21:57>> related back to the actual thing.
- 21:59>> Yeah. Summary.
- 22:00>> Yeah. related related specifically to
- 22:03like the work items that we're supposed
- 22:04to work on because there's so many other
- 22:06things about happening in between when I
- 22:07when I encounter a bug and I say go and
- 22:09create a bug I don't want really that to
- 22:12be to be collected or whatever
- 22:14>> that summary is pretty much what I like
- 22:16to do and what what actually confuses me
- 22:18is that the compact conversation like I
- 22:21don't even know what it's doing which
- 22:23makes me uncomfortable like is it
- 22:25summarizing where is the summary I don't
- 22:28know maybe that's me just not knowing
- 22:30showing how compact works.
- 22:32Okay, let's just move on. Knowledge
- 22:35document keep AI. I think we talked
- 22:37about this. It's just saying the same
- 22:39thing again and again uh about keeping
- 22:42things
- 22:43uh ground rules. This is like just say
- 22:46what your
- 22:49I I think we talked about agents.
- 22:52I mean, it's been a topic on on on
- 22:57a couple of channels about how
- 22:59agents.mmd or claw.md might be polluting
- 23:02everything. I I still have a claw.md
- 23:05where where I have some basic setup, but
- 23:09I don't I I don't do like um prefer
- 23:12simple solutions or
- 23:15I I don't know if you do this sort of
- 23:17thing like
- 23:22For me I I really don't use the clouded
- 23:24MD um because spec kit has this
- 23:28constitution and it gets invoked as
- 23:30opposed
- 23:31certain after certain steps uh or phases
- 23:34the constitution check gets invoked and
- 23:36then we do a full analysis
- 23:38>> but constitution would be the ground
- 23:40rules I suppose. Yeah, I mean I
- 23:42understand that that cloud MD is more
- 23:45like an a little additional
- 23:48customization on top of the system
- 23:49prompt to make sure that your agent
- 23:51works in a consistent manner. And
- 23:56I'm I'm not sure that we use it
- 23:57effectively because what we do is when
- 24:00we use specit we it's a bit like mini
- 24:03waterfall, right? we we ahead of time
- 24:07plan out the work across the different
- 24:09areas and then also the definition of
- 24:12done and acceptance criteria and and
- 24:14basically what we need for validation.
- 24:16So that gets reinforced
- 24:18>> in the agent loop, right? You pick up
- 24:20the next piece of work. You're going to
- 24:22work on this. These are the files that
- 24:24you should be looking at. Maybe the
- 24:25model goes in a little bit of an explore
- 24:27to like confirm its understanding and to
- 24:30make sure that the file system still
- 24:31matches with the task definition. And
- 24:33then it um when it's thinks it's done,
- 24:36it needs to go through an type of an
- 24:38iteration of like you know is this
- 24:40really you know validated like did I do
- 24:42it correctly? Are my acceptance criteria
- 24:44met? Are my test passing?
- 24:47I understand you
- 24:49has a lot of has a lot of stuff like
- 24:52that, but like like I mean when you're
- 24:54vibing in a in a clawed session,
- 24:58>> you you you don't have like any project
- 25:00rules that that apply across all your
- 25:03different chat sessions.
- 25:05We just introduced a new rule amongst
- 25:07ourselves which is if we like what what
- 25:10happens what I frequently do is I see a
- 25:13problem and I just tell cloud hey go and
- 25:15create a github issue and it very
- 25:17beautifully captures the problem maybe
- 25:18there's a bit of an exploration to find
- 25:20out what could be the reason for that
- 25:21error and then you know it usually does
- 25:23a sub agent and then creates a github
- 25:25issue
- 25:25>> you have a command or you just tell it
- 25:27you just chat to it like
- 25:28>> no I I barely do I don't say anything
- 25:30anymore recently uh I think it's it's
- 25:32gotten that good that I just say You're
- 25:34not using beads anymore. You just tell
- 25:36it to make a kid issue.
- 25:38>> Well, I guess that's one way. I guess it
- 25:40>> it uses beads.
- 25:42>> No, we use beads for our spec driven
- 25:46development, but if we encounter a bug,
- 25:48I ask it to go and create a GitHub
- 25:50issue.
- 25:50>> Oh, because then the team gets wider
- 25:54knowledge or wider alignment to to the
- 25:57issue.
- 25:58>> It's more like beats has become feature
- 26:01specific task three. It's like a to-do
- 26:03list, but it belongs to a specific
- 26:05feature.
- 26:07>> So, you know, originally beast is like
- 26:08at the root of the repo and it's shared,
- 26:10but then you get a lot of merge
- 26:11conflicts when you have different uh
- 26:13feature branches.
- 26:14>> So, we had a lot of issues with that.
- 26:16So, we so when we rolled beads into our
- 26:19our CLI,
- 26:21>> we made it that um create feature
- 26:23specific task lists
- 26:25>> and and they're basically little task
- 26:27trees that belong that's part of our
- 26:29mini waterfall, right? We we have a
- 26:31feature that we need to work on. We
- 26:32create um a plan, research uh the
- 26:35technologies, do some spikes on certain
- 26:36approaches and then generate a task tree
- 26:39uh dependencies phases and MVP path.
- 26:43Basically what you get with K as well
- 26:44>> and and the GitHub issues is for team
- 26:45alignment, right? It's it's
- 26:47>> and the GitHub issue is like [ __ ]
- 26:48there's something else came up and I
- 26:50can't really work on that right now.
- 26:51That makes a lot of sense.
- 26:52>> It's more like a global like a bug
- 26:53report or something like that.
- 26:55>> And that leads to this thing called
- 26:56extract knowledge. I don't know what
- 26:57it's going to say. Not yet because you I
- 27:00wanted to link this to the GitHub issue
- 27:02where uh I wanted to link this to what
- 27:05you just say about VIP coding. So the
- 27:07new rule that we introduced is that we
- 27:09don't do spectctors in development for
- 27:10these type of bugs unless all right it's
- 27:14a funny rule because I I introduced it
- 27:16and then two minutes later I changed it.
- 27:18So the rule is when you have an issue
- 27:20like that I noticed some of the our our
- 27:23team members they started this huge
- 27:25specdriven development on like one line
- 27:27fix and it generates a whole spec user
- 27:30stories edge cases and and and I was
- 27:32like ultimately the the code change was
- 27:35literally like one line um I'll give you
- 27:38a concrete example it was the go release
- 27:41populating the version field there was a
- 27:43bug it was populating the wrong constant
- 27:46and so when the the CLI ran it didn't
- 27:48show the version correctly.
- 27:49>> So it was a bug report like hey when we
- 27:52run we run SL version it doesn't show us
- 27:54the right version and it created like a
- 27:56massive user data a user story around it
- 27:59and I was like guys for this type of
- 28:01stuff can we just vibe it uh and then
- 28:04the room change was I had another issue
- 28:06and I was like I'm going to vibe it. I I
- 28:08just picked up the GitHub issue and I
- 28:10literally said nothing to cloud. I I
- 28:11boots I I just started cloud. I said I
- 28:13want to work on #72
- 28:16and cloud went let me run GitHub issue
- 28:19view 72. There it is. So you use the
- 28:22CLI. I didn't tell it to do that. It
- 28:23just automatically went I'm in a
- 28:25repository. It's on GitHub. I'm going to
- 28:26use the GitHub CLI to view the issue. I
- 28:28didn't say any of that. It just pulled
- 28:29out the the issue description from that
- 28:31particular session that created it. And
- 28:33then uh I I switched it to plan mode
- 28:35obviously because it was a vibe and I I
- 28:37wanted to um you know I wanted it to
- 28:40explore and and identify and then tell
- 28:42me what it's what's going to do before
- 28:43we actually start doing things. So it's
- 28:44not the full like user alignment with
- 28:46spec driven development. It's very very
- 28:48short little plan to do this and and
- 28:51then it pulled in a whole bunch of
- 28:52additional stuff. It's like okay um in
- 28:54this case um there could be use scenario
- 28:57where this and that happened. What do we
- 28:59do? And I was like oh my god this is
- 29:00getting too big. this is not a oneline
- 29:02change. Let's do a spec driven
- 29:04development. So then I told then I told
- 29:06cloud okay that's a nice plan but I
- 29:08think we need team alignment on that. So
- 29:10then I told it to to feed that
- 29:12information into spec ledger specify and
- 29:15then it created user stories and edge
- 29:16cases
- 29:17>> because it blew up my my my uh bug was
- 29:21um get attributes whenever you do a pull
- 29:24request some of the files are purely
- 29:25generated and you want to linguistically
- 29:28ignore those so that the PR doesn't like
- 29:30expand them. So I wanted those
- 29:32autogenerated files to be autoc
- 29:33collapsed. Uh, and then the reason it
- 29:36blew up was that some pe some
- 29:37repositories when you initialize it
- 29:39already have git attributes. So how do
- 29:42you merge things together? So that's
- 29:43where it was like created a whole bunch
- 29:46of additional user stories.
- 29:48>> Um,
- 29:48>> so I'm I'm summarizing this in my head
- 29:51that like you you have different types
- 29:53of tasks that you do at work.
- 29:55your your bug fixes, your business as
- 29:57usual type stuff where you don't need so
- 29:59much team alignment and then there's the
- 30:02things that kind of blow up or whatever
- 30:04the features. Yeah,
- 30:05>> where you need team alignment.
- 30:07>> I think that's the criteria.
- 30:08>> Yeah,
- 30:08>> I think the the key word is team
- 30:10alignment. the moment it's more than a
- 30:12oneline change or it requires like a
- 30:14user stories and um you I mean the
- 30:17moment that it's more than a oneline
- 30:18change and you want other people's um
- 30:22>> views you should push it as a spec
- 30:26I'm just equating this to the the sort
- 30:28of sensible defaults at work like we
- 30:30have these processes called um uh
- 30:35kickoffs for for u for team alignment
- 30:39before you start the work and and desk
- 30:42checks for team alignment as you
- 30:44complete the work. And um I feel like
- 30:47these these uh engineering practices
- 30:49that we've been doing for years can be
- 30:52sort of mapped to to working with
- 30:54agents. So
- 30:57>> something I need to write about. I think
- 30:59what we've learned is that that all of
- 31:01these practices that we used to do for
- 31:03years where we have a lot of overhead in
- 31:05communication uh between people finding
- 31:08time to discuss or getting a review
- 31:10>> have been collapsed significantly with
- 31:12agents accelerated. A lot of them become
- 31:16um literally less of an issue because
- 31:19you can get the turnaround much faster.
- 31:21>> Um but you still need like those good
- 31:24practices of
- 31:26>> finding team alignment. I'm just
- 31:28thinking about it and I might as well
- 31:30mention it is that
- 31:33traditionally um
- 31:37the best desk checks, the best kickoffs,
- 31:40they've always been in person and it's
- 31:43always been uh like a synchronous thing
- 31:46with your team.
- 31:48Um, and I noticed that since I'm
- 31:51becoming more remote that this this
- 31:53relationship is kind of degrading
- 31:54because, you know, there's people on the
- 31:55call that don't even say anything
- 31:57sometimes, which is never a good sign.
- 32:00Um, but now we have agents which can't
- 32:03talk, you know, they can't sit in around
- 32:05a table or a whiteboard. So now we have
- 32:08to adapt our workflow so that we can
- 32:12bring in the voice of the agent or
- 32:14whatever you want to call it the input
- 32:15from the agent as well as the input from
- 32:20team members. And this is where I think
- 32:23things fall down because because like
- 32:27yeah the
- 32:29it's easy to have a whiteboarding
- 32:31session and talk about things but then
- 32:33how do you make sure the team is aware
- 32:37of that sort of that plan from the
- 32:40agent? You know what I mean? Like people
- 32:42don't necessarily read all that stuff
- 32:45before the for the before the meeting
- 32:47sort of thing.
- 32:48>> Yeah.
- 32:48>> So this is where things get tricky. as
- 32:50human team
- 32:53team alignment. Yeah, it's damn I
- 32:56haven't seen it working perfectly.
- 32:58That's for sure.
- 33:00And I've also noticed that um so one of
- 33:03the major things that I really want to
- 33:05focus on in the next few days or over
- 33:06the weekends with specledger is to find
- 33:08the deterministic validations because I
- 33:11feel without it even if you do spec
- 33:13development even if you do user stories
- 33:14and you have um team alignment on the
- 33:17user stories there is still a big
- 33:20quality problem with the output
- 33:23um if you do not have more deterministic
- 33:25validation around
- 33:28um
- 33:29>> the the the output basically like I
- 33:32think this relates back to original
- 33:34discussion where and Adam's Jacob was
- 33:36saying like you have two two teams one
- 33:38team is still very much hands-on with
- 33:40the code and another team is very much
- 33:43um you know
- 33:44>> focused on on just accepting the code
- 33:46but that second team must have very
- 33:49strong testing practices
- 33:51going back to what we was discussing in
- 33:53the previous part like there needs to be
- 33:55like a this role almost or I mean we're
- 33:58talking about roles just generally but
- 34:00like yeah I think I I would definitely
- 34:02agree that like this these engineering
- 34:04practices of having a separate QA team
- 34:07is actually probably more important than
- 34:10ever
- 34:12you need that sort of like uh that
- 34:15quality control yeah okay let's
- 34:18>> I think you need at least to have the
- 34:21expertise to make sure that the quality
- 34:24control is part of the feedback loop
- 34:27Yeah,
- 34:27>> because I don't think you need a
- 34:28separate team. I think you need people
- 34:30with the expertise.
- 34:31>> Yeah, the people with expertise. That
- 34:32That's a good point because I'm just
- 34:34harking back to the usual QA experiences
- 34:37that I have. They usually they're not
- 34:39very technical people.
- 34:41>> Yes. You know, doing very mundane
- 34:43things. And things have changed now
- 34:44because now because now with AI you can
- 34:49the the name of the game is to make to
- 34:52make processes deterministic
- 34:55using AI. So
- 34:59so things are different now because
- 35:01because that that quality control team
- 35:04should be able to to do the that oh you
- 35:08you sent me a um screen grab. I don't
- 35:12know where it was from, but essentially
- 35:14I thought it was saying what I'm trying
- 35:17to say very well. The the division is
- 35:19simple. Deterministic computation and
- 35:21prob probabilistic reasoning. They're
- 35:23complimentary. The pipe between them is
- 35:25where the work happens.
- 35:29Getting getting um yeah,
- 35:34what was the point I'm trying to make
- 35:35here? that the quality control stuff
- 35:37needs to somehow prove that the stuff is
- 35:39correct in a in a deterministic way or
- 35:42something like that. It's the same thing
- 35:44like I shared a post on from Reddit and
- 35:47it was removed maybe because it was AI
- 35:50generated but it the the core point of
- 35:52the post was that he's part of a team
- 35:55and they have front end issues 40 layers
- 35:59of react hook linked together I don't
- 36:01even know like so basically they lost
- 36:03control over the quality of the product
- 36:05and um he's saying that on the back end
- 36:08the it's kind of okay the the
- 36:10performance of the AI generated code is
- 36:12all right But um they're like he's
- 36:14really concerned about like long-term
- 36:16maintenance. And then the top comment
- 36:19uploaded was um you know it's not
- 36:21against the law to write to use AI first
- 36:25to write tests. And it was funny because
- 36:26it was just something we discussed right
- 36:28which is like
- 36:30>> I we think that the first thing you
- 36:32should do if if you have an existing
- 36:33code base is to booster your test
- 36:36harnesses before you unleash it on your
- 36:39code.
- 36:40>> Yeah. and and test harnesses.
- 36:43>> The thing that I find about test
- 36:44harnesses is that people
- 36:48>> I think the more experienced you are,
- 36:50the more you realize that you could test
- 36:52here, you can test this way, you can do
- 36:54a regression test here, you can do a
- 36:56unit test here, you can you can do the
- 36:58Swiss cheese model and those people who
- 37:00are experienced can do this can can
- 37:02cover have some intuition to do that
- 37:05very well.
- 37:08But other times like if if you if you
- 37:10pass the quality if you pass the QA to
- 37:12someone who who doesn't have the
- 37:14experience, it's not going to be a great
- 37:16experience. It's not going to be a great
- 37:18results. That's the biggest issue with
- 37:20with um AI coding is that you really
- 37:25need a strong engineering like an
- 37:27experienced engineer to see patterns
- 37:31that the AI is going down and um and
- 37:34highlight them. For example, I was
- 37:36asking um to do a bug report. Uh when I
- 37:40ran a command, it didn't update the the
- 37:44data the way I expected. It actually
- 37:45gave me an error. And I was like, I
- 37:48create a back bug report. It shouldn't
- 37:49give an error because the the the file
- 37:51system is okay. And it identified that
- 37:54that the command is running using
- 37:57current working directory. and it didn't
- 37:58identify the git route to find the
- 38:00relative path to the actual location of
- 38:02the file where it's expected whatever
- 38:04that is right so so it's it's it's it's
- 38:06identified the problem it's using
- 38:08current work directory it also noticed
- 38:10that there is a a feature to identify
- 38:13the git root so to find you can ask git
- 38:17uh what is the root of the repo
- 38:18>> yeah yeah like I thought and so
- 38:20relatively go back to something yeah
- 38:22>> yeah it's something uh get reverse parse
- 38:26tree and then I I don't like to get the
- 38:28get root. It's a weird command,
- 38:31>> but it the the AI went and said like,
- 38:34okay, you know, there's actually a
- 38:36command. It's in this um in this um
- 38:38subcommand
- 38:40this this git root utility. And I'm
- 38:43like, stop right there because you're
- 38:45just going to start using this
- 38:46functionality, this utility from this
- 38:48other like you don't have a dependency
- 38:50on this other component and you're going
- 38:53to use an internal utility. And I'm
- 38:56like, don't do that. Like I if you let
- 38:58AI do it will just go ahead. Oh, it
- 39:00already exists. There's a function
- 39:02there. And it creates a dependency
- 39:03between two components that should have
- 39:05a dependency. And in reality, it should
- 39:07move that utility function into a
- 39:08utility library. Create a shared
- 39:10dependency on the utility library unless
- 39:12you know in Golang it's very common to
- 39:15to just duplicate the code uh to to
- 39:18avoid creating dependencies between
- 39:19components or creating shared
- 39:21dependencies. But those type of
- 39:23questions if you don't even ask those
- 39:25questions to begin with right is already
- 39:28the problem. You already have to have
- 39:30experience like okay but
- 39:32>> it's so it's so nuanced like I'm
- 39:34>> reuse and shared dependencies are are
- 39:36are painful too. So like where do I go?
- 39:39Which way do I go? I'm just thinking at
- 39:41work we have like code sense code scene
- 39:46sona cube running on every goddamn PR
- 39:50and the uh you know the the little hints
- 39:53it gives you like oh the complexity is
- 39:56moving from scale 7 to scale 8 or what
- 40:00have you so bad and
- 40:04or or maybe I'm just uh flippant about
- 40:07it like a lot of the determinist istic
- 40:10ways of me of of measuring code quality
- 40:15just judging by my jud judging by my
- 40:18anecdotal experiences with these code
- 40:20scene whatever tools
- 40:23I'm probably just throwing shade but I
- 40:25just don't feel that they're very useful
- 40:26and and then and if I don't feel them
- 40:29that they're useful then I don't feel
- 40:31that they're going to be useful for AI
- 40:33either you know like these I don't know
- 40:35if you've ever played with these tools
- 40:37that
- 40:38>> it's it's nuanced to do what we this
- 40:41this quality really
- 40:43>> when you start out as an engineer you
- 40:45may try to go for 100% unit test
- 40:47coverage
- 40:50>> right
- 40:52>> and I see your by your face that you
- 40:53already say
- 40:54>> yeah and and those tools and those tools
- 40:57installed by enterprises are like pretty
- 41:00much suggesting that oh your coverage is
- 41:01low no no and
- 41:04>> but now most organizations go like
- 41:06coverage should be between 70 and 80%
- 41:08not not less and and so on, right? I
- 41:11mean, the thing is it goes takes
- 41:13experience to realize
- 41:14>> everything so nuanced
- 41:16>> about what we do.
- 41:17>> There's no
- 41:18>> it takes experience.
- 41:19>> There's no like cleancut way which makes
- 41:23it it makes it really painful to talk
- 41:25about anything. But that means it it
- 41:27ties perfectly back to the original
- 41:29statement which is um you need expert
- 41:32experience to guide AI still like you
- 41:37need an experienced QAT person that
- 41:39understand the test harnesses to to to
- 41:43be able to make good decisions about
- 41:46which responsibility how it should be
- 41:48tested.
- 41:48>> You need you need
- 41:50>> some taste. Yeah. I just I'm just almost
- 41:53frustrated that that's the case almost.
- 41:56But it's I guess it's keeps us in the
- 41:58loop somehow. It's just it's just
- 42:01annoying.
- 42:01>> For how long, right?
- 42:03>> Yeah. It's just a big cringe really.
- 42:05Like these things happen and you just
- 42:06go, "Oh no,
- 42:08>> for how long?" Because we just talked
- 42:10about agent personas and about, you
- 42:13know, skills and then people are trying
- 42:15to capture every single operational
- 42:18expertise detail into skills. So for
- 42:20example, exactly what I just said. I am
- 42:23not an expert at writing um Claude Code
- 42:25skills. So when I look at the skill, I
- 42:28can't say if it's good or bad. I can
- 42:30only anecdotally experience if the agent
- 42:32is nondeterministically
- 42:34um using the agent correctly. But
- 42:36Antropic released agent skill
- 42:37evaluators. They created a skill creator
- 42:40that includes it instructions to cloud
- 42:42on how to evaluate skills. So we're more
- 42:45and more of these expertise
- 42:47um are trying to be moved into these um
- 42:52>> progressively
- 42:54there's definitely some sort of maturity
- 42:56level right like the the the you know
- 42:59somewhere in the middle there needs some
- 43:01experience
- 43:03but then at some point that experience
- 43:05that need for that experience probably
- 43:08drops away really and then then the the
- 43:11loop becomes you know
- 43:14As with a mature product, the
- 43:18things can be automated and it will be
- 43:20like a flywheel. It will be a machine
- 43:23and you'll work on a new machine or
- 43:25something. So, it's so it's everything
- 43:27is so bloody nuanced and the way things
- 43:30fit in is Yeah, I think I I need to
- 43:33start writing some things down otherwise
- 43:35I'm not going to capture all this stuff.
- 43:37>> You'll get a summary from this podcast.
- 43:40I don't think it'll be good enough
- 43:42um until the next model comes along and
- 43:45then we can do it all over again.
- 43:47>> Okay, let's let's just get through this
- 43:48top row. Let's just let's just chug
- 43:50along. Limited context. I think this has
- 43:52been said before. I'm not going to go on
- 43:54to that. A distracted agent
- 43:58using one agent for everything.
- 44:05Ah, I I do feel sometimes because I
- 44:07create all these issues along the way, I
- 44:09do distract the agent. But for me, the
- 44:12ultimate like my agent only needs to
- 44:14focus on one thing. If I'm in in the
- 44:15specdriven development, I need to focus
- 44:17on getting the plan and user stories
- 44:18out. I made it commit and then do the
- 44:21web view. It's like, you know, I don't
- 44:23know if you had this, but a lot of
- 44:24people, at least early on with screens,
- 44:27were like, I need to see the printed out
- 44:29version. I need to print it out, hold
- 44:31the paper in my hand, and then mark it
- 44:33down. put a little unders underline
- 44:35here.
- 44:36>> Well, so I didn't understand. Oh, do you
- 44:38mean like
- 44:39>> So, so for me, right,
- 44:40>> the really old fashioned way is when you
- 44:42print things out and in the printer like
- 44:44it's
- 44:44>> Yeah. So, how that relates back to what
- 44:46I just said is that the agent is writing
- 44:48a bunch of markdown. I can go into the
- 44:49code editor and read the markdown. But
- 44:51ultimately, what I really want is I want
- 44:53to commit and push it. So, I can see it
- 44:54in my web dashboard and I can like
- 44:57highlight these things, put a little
- 44:58comment next to it, highlight that, put
- 45:00a little comment next to it. And then I
- 45:02go back to my terminal and I say let's
- 45:05clarify. So the clarify command in
- 45:07specure pulls all the comments from the
- 45:09web dashboard and then pulls in all of
- 45:11the edge questions that are sprinkled
- 45:13around the
- 45:14>> Okay. Okay. So you streamline that whole
- 45:16prompting process with the
- 45:18>> Yeah. So even though I have a distracted
- 45:20agent, ultimately I have one artifact to
- 45:24review and make sure that that artifact
- 45:25is focused and then I can clear the pro
- 45:28clear the session and and have a new
- 45:30agent look at it. But it's fact it's a
- 45:32fact.
- 45:33>> There was a new there was a new command
- 45:34in claude called by the way. So like
- 45:36when it's chugging away you can type by
- 45:38the way.
- 45:40>> Yeah. So I haven't used been able to use
- 45:42cloud because of some work commitments.
- 45:44Uh and I used it today and I I used
- 45:46voice which is pretty cool. So you can
- 45:48slash voice and then you can hold
- 45:50spacear and
- 45:51>> it's just working on the terminal.
- 45:52>> Yep. And it it it even changes the size
- 45:56of your cursor based on on on the on the
- 45:58amplification of your audio.
- 46:00>> Oh god,
- 46:00>> it's insane.
- 46:01>> So it's funny like
- 46:02>> what the
- 46:03>> So this distracted agent is an anti
- 46:05pattern, but then but then Claude
- 46:07releases this by the way command. So it
- 46:10makes
- 46:11>> it's funny when I'm not sure how much of
- 46:13the by the way is inside the context,
- 46:14but the way that when I used it is like
- 46:16this. You do slash by the way. So it's
- 46:18doing things and I'm like slash by the
- 46:20way because I'm used to queue up
- 46:21messages. So I'm like let's queue up
- 46:23messages using by the way. I thought it
- 46:24was work the same thing but it doesn't.
- 46:26So when you do slash by the way it seems
- 46:28to suspend the other agent answer your
- 46:32question and then wait for you to
- 46:34acknowledge that. And then the moment
- 46:35you press any key I don't know how but I
- 46:38started typing. I thought it was going
- 46:39to be like it was a in the in the in the
- 46:42message log, right? I thought it was in
- 46:44my response reply. So, I started typing
- 46:46something and the by the way disappeared
- 46:49and when I went to scroll, where is the
- 46:51by the way answer? It wasn't there. So,
- 46:54to me, it really seems like this by the
- 46:56way thing allows you to to like take
- 46:58some of that context, suspend the agent,
- 47:00answer a question, and it doesn't go
- 47:02into your distracted agent thing.
- 47:04>> Okay. Okay. That's how I haven't
- 47:07actually played with it. So though the
- 47:09distracted agent
- 47:12>> is is a symptom of uh
- 47:15>> and I think the by the way actually
- 47:16helps you avoid the distracted agent
- 47:18because it suspends the agent, answers
- 47:21your question and then goes back to the
- 47:23agent and then if you want to queue up a
- 47:24message based on that answer, you can
- 47:25then put that into the context.
- 47:28>> Limited focus. I guess I feel like a lot
- 47:30of these things are just describing the
- 47:31same thing in different ways. So this is
- 47:34just like a
- 47:35>> it's lop it's AI generated. It's a
- 47:38hallmark of AI generated where it's
- 47:41describing the same thing in a different
- 47:43way and it's the hardest thing. It all
- 47:45it all like makes sense and they all
- 47:47have like a slightly different angle but
- 47:49they're like 60% the same thing. It's so
- 47:52annoying with AI.
- 47:54>> Yeah, that's that's true. It's just like
- 47:57it's like a broken mirror. There's like
- 47:59a million ways of seeing the same thing
- 48:01and it's fragmented. It should just be
- 48:04>> that's actually really nice way of of of
- 48:06looking at it. Um when I ask
- 48:09>> Yeah. Because this is my biggest
- 48:11problem. I have a a couple of core ideas
- 48:13that I want to get out and then
- 48:18I don't know about lately but at least a
- 48:19while back when then I I have like um
- 48:21you know give me the key points and then
- 48:23it creates them and then but isn't that
- 48:25the same one as the previous point? Yes,
- 48:27there's a slight different angle but
- 48:28it's almost the same. And then I say
- 48:29okay you know what I'll solve it when
- 48:31I'm in the slides. So then I generate
- 48:33all the slides from it and then every
- 48:34slide kind of repeating the same thing
- 48:36but slightly different. I'm like, "Oh my
- 48:37god, how do I how do I get ex like
- 48:40concise
- 48:41>> to purely identify the exact
- 48:43differences?"
- 48:44>> It's really like a blocker mirror.
- 48:46>> Yeah. This is where summaries this is
- 48:49where I guess you need to put your foot
- 48:51down and make a commandment make a con
- 48:53make a call. Um
- 48:57ah this is another thing about Yeah,
- 48:59we've and we started we started off
- 49:01here. Okay. We did the top row. I think
- 49:03that's enough for one session. It was
- 49:05kind of painful because it kind kind of
- 49:08repeated itself. But still, I think this
- 49:10is a good exercise. And what I like what
- 49:13what they've done here is that when
- 49:17they've in, you know, they vibe coded
- 49:19something so that like um uh Oh, I
- 49:23thought they were like they were doing
- 49:25some pretty good linking to each other.
- 49:28Um, and now I can't find the link. Like,
- 49:31yeah, it's like you can see that the
- 49:33blackbox AI obstacle is related to this.
- 49:37It's caused by this,
- 49:39solved by that. Sorry,
- 49:43you're going to have to cut that. Um,
- 49:44but basically what I wanted to say was,
- 49:48um, I mean the sides looks nice, right?
- 49:51But I do feel like it it has a lot of
- 49:54repetition. Um,
- 49:56>> yeah.
- 49:58is detrimental detrimental to trying to
- 50:00get a point across
- 50:02>> is if you cannot filter that out.
- 50:05>> Yeah.
- 50:05>> Um you know what I saw yesterday I think
- 50:08>> and it's not easy it's not easy to
- 50:10distill this though. So a point that I
- 50:13saw yesterday and maybe it's not the
- 50:15same thing but I saw a post on on our
- 50:17terraform on Reddit and it was I've been
- 50:20working for five or six years as a ter
- 50:22as a infrastructure or devops consultant
- 50:24or platform engineer or security was
- 50:26like security engineer and I have
- 50:30collected here and published pre
- 50:33publicly
- 50:35and it was like 150 modules for AWS 200
- 50:39modules for GCP 120 modules for for A is
- 50:42Azure
- 50:44all on one like website and the website
- 50:47name was horrible so it's clearly not
- 50:49sales so maybe it actually is solid
- 50:52solid telephone code but when I see that
- 50:55>> how bad the name is
- 50:56>> I then I see that I'm like yeah okay
- 50:59there's no way in hell like maybe
- 51:0390% of that is pure AI slop like how are
- 51:06you going to publish you know over 400
- 51:08different Terraform modules
- 51:10>> and just say here you go like how how
- 51:14can I I I was even
- 51:16>> there's probably tools around this
- 51:18already but there should be like a tool
- 51:19to recognize AI slop you know you said
- 51:21this you said this here it's very
- 51:24similar to what you said just there you
- 51:27know minus 10 points you know like
- 51:31there should be a tool to recognize that
- 51:33something can be summarized or
- 51:35>> I a
- 51:38frustrated with Reddit because I'm
- 51:40reading posts And if they I guess if you
- 51:44can keep it short enough for me not to
- 51:45go like holy [ __ ] wall of text. If it's
- 51:48like a wall of text, you start reading.
- 51:50You start reading and you go like hold
- 51:52on, how much more is there? And then you
- 51:53keep scrolling for like five swipes and
- 51:54you go like what the [ __ ] I'm not going
- 51:56to read all of that. Then okay, that's
- 51:58clear. I'm not I'm just going to exit
- 51:59that thread. But if it's like short
- 52:01enough and I then spend time to comment
- 52:03on it and then
- 52:06maybe I come back to my comment because
- 52:07I'm like, "Hey, why nobody replied to my
- 52:09comment or what's going on?" And then
- 52:12removed. Hey, and then you look at the
- 52:14comments, AI slop, AI slop, AI slop
- 52:17every single time. Now, everywhere on
- 52:18social media, people go like, "Oh, it's
- 52:20all AI slop. Oh, I'm not even going to
- 52:22read that." And then, and then the
- 52:23moderators usually put the rule like,
- 52:25"If you don't spend the time to write
- 52:27it, then we're not going to spend the
- 52:28time to read it.
- 52:30So, but the way AI slop is recognized
- 52:34right now is just by human intuition,
- 52:37right? Or there's no
- 52:39>> Yeah, I think they go like, "Oh, there's
- 52:41an M dash AI slop."
- 52:46And you know what? I had a very funny
- 52:47situation. I used AI to to um I use
- 52:50cloud, right? But I didn't want cloud
- 52:52co-author on my commit um for reasons.
- 52:56And I let it I told it like give me the
- 52:59commit message and then I do the commit
- 53:00and then uh okay open the GitHub pull
- 53:02request and when it does a pull request
- 53:04it doesn't put itself as an author it oh
- 53:07maybe it does sometimes but it didn't in
- 53:09this case and I was like happy happy and
- 53:12then the next like two hours later I go
- 53:15back to the PR and I noticed the title
- 53:16has an M dash. I was like god damn it I
- 53:19didn't see the m dash
- 53:20>> and now I have to rewrite my history.
- 53:22Ah, yeah. No, no, it was an M dash in
- 53:25the title of the PR. And then if you go
- 53:27and edit the title, of course, everyone
- 53:28can see Vincent changed the title from
- 53:30two. But can you see the actual
- 53:33difference? Because it was changing a
- 53:34damn dash to a dash. And I was like,
- 53:36yeah, nobody's going to nobody's going
- 53:38to know what I did.
- 53:40Well, let let's change um the topic a
- 53:44little bit to to AI um to infrastructure
- 53:47type stuff because this is the AI
- 53:48infrastructure podcast. I wanted to
- 53:50mention to you that I I tried swamp
- 53:54swampy donkey.
- 53:55>> Do you understand now? Because
- 53:57>> I do pretty much understand it and and
- 53:59as I was evaluating it, I was asking uh
- 54:03codeex at the time because I've run out
- 54:05of bloody claude credits. Um
- 54:08like how how did swamp help? So like
- 54:11swamp essentially
- 54:14as I understand it, it grabs the model
- 54:16definitions from AWS. Yeah, like model
- 54:21definitions is like I don't know this
- 54:23what I think we talked about this
- 54:25>> uh the what
- 54:26>> the like the open API or JSON schema or
- 54:30something around
- 54:30>> yeah like the JSON schema it it grabs
- 54:32down
- 54:33>> yeah it grabs down the the schema as
- 54:35such from from
- 54:38>> I mean I I guess they have their own
- 54:40repositories of the models
- 54:42um which are probably derived like the
- 54:45same way you do well the the way CDK
- 54:48works but Okay, not the same way CDK TF
- 54:50works, but anyway, it grabs it down from
- 54:52AWS and then and then you basically talk
- 54:56to the the agent and then and then Swamp
- 55:00sort of creates this environment so that
- 55:04it's geared up for doing
- 55:07uh infrastructure work. So you you
- 55:09create like um you know you say to it
- 55:13like create an EC2 instance blah blah
- 55:15blah and then it basically sets up a
- 55:18workflow and then you then once you've
- 55:20got that workflow then you deploy it
- 55:24in in a sort of structured reproducible
- 55:26way. That's the way I understand how it
- 55:28works at the moment. Um so instead of
- 55:32like infrastructure as code it creates
- 55:33workflows that do repetit like to um
- 55:38repeatedly
- 55:39>> yeah that's the way I I to be honest I
- 55:42haven't repeated this thing I I'm a
- 55:45little bit confused like the on boarding
- 55:47is a bit strange because like you do an
- 55:49init and then expects you to go into
- 55:51your into your uh into your chat session
- 55:53with Claude or Codeex to do the thing.
- 55:57This is where I thought was a little
- 55:58bit, you know, confusing here. Like it
- 56:00says in it second step, you know, do do
- 56:03tell your agent, but it did it didn't
- 56:05explicitly say, you know, MPX claude or
- 56:08codeex or something. So that that was um
- 56:12a thing. But the the last bit I was just
- 56:15chatting with um Mr. Stack, Mr. Paul
- 56:17Stack was uh that that I didn't
- 56:21understand how it links up with the AWS
- 56:23CLI. And then I think he's trying to say
- 56:26that you need to just set that up.
- 56:28>> It just uses the environment.
- 56:30>> Yeah,
- 56:30>> I guess it uses the a AWS CLI credential
- 56:33chain which is you either have a
- 56:35>> So my my my first taste of Swamp I think
- 56:37I think I get what they're doing
- 56:39actually. Um and it seems to be quite
- 56:41sane.
- 56:43>> Um so that my initial first impressions
- 56:46is is good. I'm going to give it a try a
- 56:51bit more time. So yeah.
- 56:55>> Yeah,
- 56:55>> give it a try.
- 56:56>> And
- 56:57>> I found they get they they they got more
- 56:58and more aggressive when people keep
- 57:00asking questions.
- 57:02>> Yeah, I think I think it's like I can
- 57:05understand the deal with this one
- 57:06because like I guess
- 57:08>> it it is a big bit of a mindset shift to
- 57:11sort of like
- 57:13>> um
- 57:13>> Can you explain something?
- 57:14>> Try it out. Yeah. like why does it need
- 57:17to be a specific
- 57:20workflow
- 57:22and not cannot be just a generic like I
- 57:25don't need a specific front- end
- 57:27workflow or a backend workflow right I
- 57:30just use cloud it can write front-end
- 57:32code it can write backend code it can
- 57:34write infrastructure code it can write
- 57:37github actions why do I need a separate
- 57:40tool or a CLI or a shell to do something
- 57:44specific
- 57:45Well, I I I think it's consolidating,
- 57:47but anyway, I don't want to say any too
- 57:50much more because I haven't even
- 57:51deployed the resources yet. So, I still
- 57:53have
- 57:53>> that's the question that I have because
- 57:55the same question I have to every single
- 57:57company launching an agent shell is
- 57:59like, why do I need your agent shell?
- 58:02And then the most common response I've
- 58:04received is that
- 58:06>> if you're an expert in AI and you know
- 58:07how to use an agent shell, then you can
- 58:09do everything with one generic shell.
- 58:11But if you're not, then you don't know
- 58:13how to set up your agent shell or how to
- 58:15pull in the skills or how to set up the
- 58:17things. Then you need a specific agent
- 58:19shell. That was the con the the response
- 58:21I've received from um Stackpack when he
- 58:25says, "Yes, if you're a power user, you
- 58:26know, you don't need this, but most
- 58:28people don't know how to use it." And I
- 58:30don't think that's a good enough answer
- 58:31to me. Like,
- 58:32>> yeah, I don't like things that are not
- 58:35aimed at a power user. That's for sure.
- 58:37>> I don't think he says it's not aimed at
- 58:39a power user. It's more like um because
- 58:43a power user can still use a tool to
- 58:46good effect. It's just that I don't
- 58:48think the tools should exist.
- 58:51The the one the the one thing that I
- 58:53that worried me with Swamp was that the
- 58:56every time I ran Swamp on my Raspberry
- 58:58Pi, it took a few seconds to work. So So
- 59:03for a power user, that's one thing I
- 59:05that's a bit of a smell test is that
- 59:07things need to be fast. And if that's
- 59:09slow, you need to tell me that you're
- 59:12doing a network request or something.
- 59:14And we're waiting for this network
- 59:16request. But anyway, the the the other
- 59:18final thing because I I need it for
- 59:20work. Actually, I need it for work. So
- 59:22CDK question for you, Vincent. I might
- 59:25have asked you this before, but I'm just
- 59:26going to ask you again.
- 59:28>> Big big CDK landscape at work. We've
- 59:31created constructs. The constructs, the
- 59:33idea of the constructs is that we have
- 59:35repeatable patterns within a governance
- 59:39ADR signed off being copied and they
- 59:41diverge. Diverged.
- 59:44>> They've been copied and they've
- 59:45diverged.
- 59:46>> What do you mean the patterns diverged?
- 59:48What do you mean?
- 59:48>> No, you you mentioned last time you have
- 59:51like reusable construct but they've been
- 59:52copied around and they have slightly
- 59:54diverged and you're trying to realign
- 59:55them.
- 59:56>> Yeah, we're we're trying to realign
- 59:58them. This the problem is is that when
- 1:00:00you deploy a stack stack is that the
- 1:00:03right term or an app I'm
- 1:00:05>> cloudformation type an app has multiple
- 1:00:07stacks
- 1:00:08>> okay yeah exactly when you when you
- 1:00:11deploy an app multiple stacks we need to
- 1:00:13prove that that that those constructs
- 1:00:18were used in in that stack
- 1:00:20>> oh
- 1:00:22>> so it it can't it can't be a simple like
- 1:00:26>> bill of materials coming out of cloud
- 1:00:27form because that doesn't make sense
- 1:00:29>> we we need to say that this um you know
- 1:00:33acme construct for for buckets was used
- 1:00:37acme construct for Dynamob was used acme
- 1:00:40construct for I don't know um certain uh
- 1:00:44support role was used
- 1:00:47when I was chatting about it to to AWS
- 1:00:50docs uh MCP
- 1:00:53essentially it suggested just tagging
- 1:00:56tagging the constructs and and then
- 1:00:58deriving the tags from from the
- 1:01:02from the deployment which seemed a bit
- 1:01:04lame but but seemed but seemed fine at
- 1:01:07the same time. I just I was just
- 1:01:08wondering
- 1:01:08>> yeah I've heard that before like
- 1:01:10basically you track which module version
- 1:01:12of in terapform has been used by looking
- 1:01:14at the resources tag like they they
- 1:01:16identify deploy I've been deployed by
- 1:01:18this version.
- 1:01:20>> I guess that's it's probably just good
- 1:01:22enough to rely on tags. I just thought
- 1:01:25there might be I I mean initially I was
- 1:01:28I was going down this rabbit hole where
- 1:01:30you know when you deploy on CDK you get
- 1:01:33the CDK metadata field that's put in by
- 1:01:36>> normally you would do this through
- 1:01:38through aspects
- 1:01:40um and you can have like a whole bunch
- 1:01:42of um compliance aspect aspect so what
- 1:01:46they do aspects is
- 1:01:47>> aspects is that an AWS thing
- 1:01:50>> it's yeah they they ported it over to
- 1:01:52CDTF as well so what it does is it they
- 1:01:55are invoked they are attached to nodes
- 1:01:57within the tree and they're invoked
- 1:02:00um during synthesis uh when when when
- 1:02:04constructs have been generated
- 1:02:06um and they are then visiting the nodes
- 1:02:09and then some functional code gets
- 1:02:11executed. So aspects can be used to
- 1:02:14validate things. Um if you were to
- 1:02:19like for example there's one aspect in
- 1:02:21the AWS CDK library that validates
- 1:02:25you can you can activate it to ensure
- 1:02:27that IMDSV2 is used the uh information
- 1:02:31metadata service
- 1:02:33>> um where you have v1 did not require a
- 1:02:35token but v2 requires a token and it's a
- 1:02:38security compliance thing usually that
- 1:02:39you want your AWS instance first time
- 1:02:42I'm hearing thank thanks for the tip I'm
- 1:02:44going to have to explore that
- 1:02:45>> yeah aspects are very powerful. Um, they
- 1:02:47can be used.
- 1:02:48>> I kind of assume that that sort of thing
- 1:02:50would be an SCP, but one problem at work
- 1:02:53is that we don't even know who controls
- 1:02:55the organization. Like this there's
- 1:02:57there's an organizational breakdown
- 1:02:59where the people who admin organization
- 1:03:02don't seem we don't even know who they
- 1:03:04are.
- 1:03:06So rolling out MCPs SCP sorry is um okay
- 1:03:14confusing.
- 1:03:15Yeah. So aspects are a way to
- 1:03:17programmatically and you Yeah. Aspects
- 1:03:20are a way to programmatically validate
- 1:03:22certain and ensure that that that
- 1:03:26resources are created in the construct
- 1:03:28tree or validate the configuration of a
- 1:03:30resource in the construct tree. So you
- 1:03:32can do a lot of things like is this
- 1:03:34resource of this type and if that's the
- 1:03:37case does the field this particular
- 1:03:39configuration field match this
- 1:03:41particular um value. So that's why when
- 1:03:44when Anto Babenco started talking about
- 1:03:46compliance.tf
- 1:03:47uh introducing a whole bunch of
- 1:03:49compliancy around Terraform modules,
- 1:03:51>> I was like that would be so easy to do
- 1:03:53on top of CDKTF because you just create
- 1:03:56aspects. You just create an aspect and
- 1:03:58you just run them uh across your
- 1:04:01construct tree and you validate that the
- 1:04:03resources are configured correctly.
- 1:04:04>> That sounds like quite a cool thing. I
- 1:04:06mean I'm just looking at the page right
- 1:04:07here. That sounds like because in
- 1:04:10terraform you would have to
- 1:04:15do some weird I'm trying to think of the
- 1:04:17name of the like OPA you need like some
- 1:04:19sort of weird policy.
- 1:04:22>> So there's several ways to do it in
- 1:04:24terapform you can do OPA or Sentinel
- 1:04:27from Sentinel is the Ashikorp way that's
- 1:04:29only in Haship cloud. If you want to do
- 1:04:31the open source one then you use open
- 1:04:33policy agent which is basically uh like
- 1:04:36a rule based matching engine like
- 1:04:38prologue um and you basically define
- 1:04:41your rules and it works across
- 1:04:43Kubernetes for Kubernetes admission um
- 1:04:46hooks but it also works across terraform
- 1:04:50plan files or JSON you can apply it
- 1:04:52across JSON so then it understands the
- 1:04:55concept of like a plan and what's the
- 1:04:57before and after of a resource and then
- 1:04:58it can validate that the after still is
- 1:05:02um is
- 1:05:02>> I find like you have to be a super
- 1:05:04mature shop to start using OPA. Um
- 1:05:07>> we use we use it at so we use it for tag
- 1:05:09compliance. So we have a couple of rules
- 1:05:12that identify which are the allowed tech
- 1:05:15like required tag keys. So if a resource
- 1:05:17is going to be created or modified the
- 1:05:20after snapshot has to have these tags uh
- 1:05:24these particular keys and then per key
- 1:05:26which are the valid values. So if you
- 1:05:28use a if you make a typo in your if in
- 1:05:31your value it will highlight it. It says
- 1:05:33that's not a valid you know using value
- 1:05:35list like this reference key. It's
- 1:05:37called a reference list right you have
- 1:05:38this key has this value list.
- 1:05:40>> Yeah I can
- 1:05:40>> um so we use opa for that with because
- 1:05:42it helps with like
- 1:05:44>> incident escalation cost.
- 1:05:46>> I think I've seen as much before.
- 1:05:49>> Okay. Sorry I need to take my kids to
- 1:05:50school. We're out of time.
- 1:05:53We're out of time.
- 1:05:56>> Yeah. So you can do tags. Um, and you
- 1:05:58can do opa.
- 1:05:59>> Well, if you can think of anything else,
- 1:06:00just let me know. I I need that's the
- 1:06:02that's the thing I need to do today. Uh,
- 1:06:05I mean, I'm a I'm a big fan of like the
- 1:06:07whole bill of material thing. Like I
- 1:06:09don't I don't feel that's done enough in
- 1:06:10our industry to say like these these and
- 1:06:12these and these things are deployed.
- 1:06:14>> But yeah, the problem is there's so many
- 1:06:17it doesn't make a lot of sense. You need
- 1:06:18you need
- 1:06:19>> I was going to say with AWS CDK that
- 1:06:22lives in your Python requirements.txt or
- 1:06:24in your package.json, right? which are
- 1:06:27the constructs that you depend on, but
- 1:06:28it doesn't really mean that they're
- 1:06:30being the ones invoked into the code and
- 1:06:32>> Exactly. Exactly.
- 1:06:34>> Right.
- 1:06:34>> Yeah. So like like uh I I'll I'll get
- 1:06:37into it in another time. Okay. Thanks.
- 1:06:40See you. See you, Vincent. Cheers.