Latest / AI Infrastructure / Claude Dynamic Workflows 🤑
Transcript
- 0:01Morning.
- 0:03>> Good morning.
- 0:04>> Yeah, I'm I'm back at work after a week
- 0:06holiday from Oh, you got You grew a
- 0:08beard.
- 0:11Oh, yeah, again.
- 0:11>> uh no, I just I'm I haven't shaved for a
- 0:13while.
- 0:16>> Since you've been
- 0:18uh
- 0:19I don't know. You
- 0:20You didn't giving me a lot of AI
- 0:22updates, so I guess you're you're deep
- 0:24in it.
- 0:26>> You were You were like on holiday, I'm
- 0:28addicted, and so I I started to No, you
- 0:31said like let's let AI get get like some
- 0:34rest. So, I started to to be like,
- 0:36"Well, haven't you seen the news?
- 0:38There's so much happening."
- 0:39>> [laughter]
- 0:41>> So, what what did I miss? I was hoping
- 0:43you could brief me before I go to this
- 0:45AI conference in London.
- 0:48>> Yes, so
- 0:49>> What's the hardest thing?
- 0:51>> The hardest thing, to be honest, is the
- 0:53um is the actual dynamic workflows in
- 0:55Claude Code. They seem to work.
- 1:00>> Okay, so
- 1:02I've been using workflows I mean, I've
- 1:04been wanting workflows, and I guess I've
- 1:06been getting my workflows
- 1:09Basically, I was using that NA N8
- 1:13N
- 1:14I don't know how to pronounce the
- 1:15project's name.
- 1:16I using NA N for a little bit, but then
- 1:19I ended up just converting my
- 1:21automations to system D.
- 1:24But,
- 1:25what do you use Cloud
- 1:27workflows for?
- 1:30>> Okay, um
- 1:31>> there? What I
- 1:33>> Can you hear me?
- 1:34>> Yeah, yeah.
- 1:35>> Yes. Yeah, sorry. I got a message and I
- 1:37got distracted. So, um basically, what
- 1:40happened
- 1:41um
- 1:42they launched Opus 4.8 on I think
- 1:45Vietnam it was Friday morning.
- 1:48And with it, in Claude Code, they
- 1:51released dynamic workflows, which is a
- 1:53tool that can execute uh JavaScript file
- 1:58that um
- 2:00the JavaScript script
- 2:03>> that on a schedule, all right, I'm
- 2:04assuming.
- 2:05>> No, no, not on a schedule. Dynamic
- 2:07determinate dynamic workflows
- 2:10is lets the agent take your context then
- 2:14build a graph of agents and each agent's
- 2:17prompt and then
- 2:19execute it. So, the tool just runs
- 2:23a deterministic workflow that gets
- 2:25dynamically generated depending on the
- 2:27tasks at hand. So, I with the spec
- 2:31driven development workflow, like for
- 2:33example, if if we put this in terms of
- 2:34spec driven development workflow and
- 2:36our, you know, we are familiar with Open
- 2:38Spec or Spec It, specifically Spec It,
- 2:41they you have the specify phase where
- 2:43you have the user stories, then you have
- 2:44the
- 2:45planning and research phase where you do
- 2:47some tech spikes, you identify exactly
- 2:49what is the libraries you're going to
- 2:50use, what's the tech stack, how is the
- 2:52technical implementation, and then
- 2:54usually you generate
- 2:56a task graph. Like first we have this
- 2:59phase of like foundational setup and
- 3:01then we have another phase of
- 3:02implementing the the necessary
- 3:04functionality modules required for this
- 3:06first user story, and then we have the
- 3:08second user story, and then we have
- 3:09priorities and things that we can do in
- 3:11parallel and all that, right? And and
- 3:13then we go into an implementation phase
- 3:15which goes through this preset
- 3:18you know, graph of tasks to execute, and
- 3:22you basically have a prompt that loads
- 3:24it, right? So, you can get rid of that
- 3:26task breakdown and implementation step
- 3:29completely now. You can just go straight
- 3:31Yeah, you don't need to do the task
- 3:33breakdown anymore because you're using
- 3:34Opus. Before
- 3:36you would do the task breakdown and you
- 3:38would review the task and you say, "Yes,
- 3:40I agree. User story one is this module
- 3:42that needs to be built first. The
- 3:43priority is correct. We can skip the
- 3:45second part because that part is like
- 3:47nice to have." So, you would have this
- 3:49like ability to decide what you want or
- 3:51what you don't want on that on that
- 3:53implementation like multi multi phase
- 3:55plan. Um so I guess if you still want
- 3:58that, you you still get that because the
- 4:00the dynamic workflow will present to you
- 4:02exactly the phases and the the the the
- 4:06workflow that's going to get done.
- 4:07>> controls Does it also generate the tasks
- 4:10and the order of the tasks, I guess,
- 4:12right?
- 4:13>> Yes, it it it So in my case, because I
- 4:15give it I use it with Spec kit, it
- 4:18creates phase one tasks like phase two
- 4:20tasks. And each task is basically an
- 4:22agent that goes and does does a task. So
- 4:24in the past I was trying to run parallel
- 4:26agents that didn't work. But now today
- 4:29and a lot of people like working with
- 4:31Git work
- 4:33Git work trees or like using agent mail
- 4:36or agent communication to lock files. If
- 4:39you don't use work trees, that was all
- 4:40things that people were trying to do it
- 4:42on a single box to go and build with
- 4:44multiple agents and then have the
- 4:45coordination and all of that, right? Now
- 4:48with dynamic workflows, it's all done
- 4:50for you.
- 4:51The the the master agent does
- 4:54>> The The This is a cloud-only feature,
- 4:56right? So what are you going to support
- 4:58>> Yeah, and if you're on enterprise, you
- 4:59need to ask your admin to enable it
- 5:01because it by default dynamic workflows
- 5:03is disabled. It The main The main feed
- 5:06feedback
- 5:07from most people was that this is
- 5:09extremely expensive. Like in 20 minutes,
- 5:12it burns the equivalent of what would
- 5:14normally take me 4 hours to
- 5:17to to use because it spins up like 12
- 5:19agents to do the work. And the orchestra
- 5:22And then also merge agents. But you
- 5:23don't need to use it just for that,
- 5:24right? I also do it for like
- 5:27adversarial reviews.
- 5:29And
- 5:30I saw this very funny post from Antal
- 5:32Babenko about like you need three review
- 5:34agents to to come to a consensus. So you
- 5:38always need to spin up three of them and
- 5:39I was like Yeah, I mean I I I'm okay
- 5:42with one or two.
- 5:44Um but it's funny because you can you
- 5:46ask new ways to use agents.
- 5:49Well, it's more like
- 5:51the way Yeah, the way that you were
- 5:53using agents or that you everyone was
- 5:55building like their their own agent
- 5:57orchestration tooling.
- 5:59It's kind of like all been taken care of
- 6:01by this workflows solution. It's like I
- 6:06found it amazing because the workflows
- 6:08are generated and then they are
- 6:09deterministic. So you can save them.
- 6:11It's almost like swamp but built into
- 6:13cloud, right? It has its own little
- 6:15schema of of building a
- 6:17workflow and then you can save those
- 6:19workflows and you can reuse them and you
- 6:21can share them and and you can generate
- 6:23adversarial. So it will spin up three
- 6:25agents to do an adversarial review and
- 6:28then it will merge all of their findings
- 6:29into a single report.
- 6:31They find different things. I like I
- 6:33have three Opus 4.8 review agents
- 6:35running with a with a blind context
- 6:38validating the the constitution,
- 6:39validating the
- 6:41the user stories and the definition of
- 6:43tons that are derived from the
- 6:45acceptance criteria.
- 6:47To me they're like pretty much the same
- 6:48thing and on or from the functional
- 6:51requirements you you get that.
- 6:52>> Obviously it works well cuz I think I
- 6:55can sense your excitement.
- 6:57You're getting stuff done or
- 6:59>> Yes,
- 7:01I built quite a few agents.
- 7:02>> But the quality work.
- 7:04>> It is probably because these are Opus
- 7:074.8 like high effort agents. You do need
- 7:10to be careful like make sure that you
- 7:13you confirm the model and you confirm
- 7:15the effort like by default it will
- 7:17inherit. So So if you're doing an
- 7:18orchestration and at like 4.8 extra high
- 7:21effort and then you you trigger a
- 7:23workflow, it's got if you don't tell the
- 7:25orchestrator to create a workflow where
- 7:27the model is defined for each workflow
- 7:28step, it's going to inherit the model
- 7:30and the effort and then it's going to
- 7:31burn like crazy. So you have to be
- 7:33mindful of that.
- 7:34>> So you're you're on the max plan. Have
- 7:36you managed to exhaust your tokens?
- 7:38>> I'm I'm getting there. Like I was
- 7:41it was resetting in 5 days and now I'm
- 7:44actually starting like on I'm on on the
- 7:46marker. I use this codex bar which gives
- 7:48me an indicator on on how much I I
- 7:50should be at if I I want to
- 7:52I'm exhausted.
- 7:53>> Basically your your life is basically
- 7:57um
- 7:58proportional to how much your token
- 8:00spend is is like you slow down when it
- 8:03when you come to the end. Or anyway, I'm
- 8:05getting
- 8:07Oh.
- 8:15>> Sorry, um hello.
- 8:17Hello.
- 8:18>> Yeah, you have you got you got some
- 8:19people around you?
- 8:21>> Yeah, my my bike front wheel was had had
- 8:24a leak.
- 8:25Yeah, no like I started to trust it a
- 8:28lot more. I feel like it's way more
- 8:30automated now. I can because you use a
- 8:32dynamic workflow, you set it to auto
- 8:34mode, you go for I went for breakfast
- 8:36and I see I I check my GitHub and I see
- 8:39comments happening like as I was eating.
- 8:41The auto mode just keeps going. Um I
- 8:44have a I have a few really really nice
- 8:46stories about auto mode like situations
- 8:48where I was very impressed by by it it's
- 8:50>> Yeah, yeah, I'm using auto mode. I I I
- 8:52had like a an alias for super cloud
- 8:55dangerously skip permissions but I never
- 8:57use it anymore. On auto auto does the
- 9:00trick.
- 9:01So yeah, it's
- 9:03So what does it do that impressed you?
- 9:06It gives you confidence. It's all like
- 9:08it tells you like I stopped this.
- 9:10>> Exactly like
- 9:11I mean, the thing is it does it blocks
- 9:13certain actions and then the the LLM
- 9:15tries to work around them and then auto
- 9:17mode like blocks them or the LLM the the
- 9:20auto mode gives it a good reason and
- 9:21then the LLM ask me but sometimes I it's
- 9:24been trying and it's like it tries three
- 9:26four times to circumvent auto mode and
- 9:28then it's it stops it says like yeah,
- 9:30I'm I'm not able to do this and it went
- 9:32really far. It went like way off the
- 9:33mark like what I what we went off and
- 9:35off and I was like no, no, no, stop.
- 9:36Your first action was correct." And the
- 9:38correct thing it needs to do is it needs
- 9:40to pause, and I need to say it
- 9:43explicitly. For example,
- 9:45um I was doing work on a development AWS
- 9:47account, and I asked or I said, "And
- 9:49while you're at it, check if staging is
- 9:51also aligned or would also face this
- 9:53issue." And so, while I was doing all
- 9:55the work, a little bit, you know, going
- 9:57down the context, it finally came to the
- 9:59point, "Let me go check staging." And
- 10:02Auto Mode says, "You can't. It's blocked
- 10:04because this is like um exploration past
- 10:07your scope. You're not You're You're
- 10:08working on dev. You're not supposed to
- 10:10go into other accounts." And and basic
- 10:13Yeah, and it stopped At that time, it
- 10:14stopped really nicely, told me, "I've
- 10:16been blocked because I'm going into
- 10:18staging." And it only allows it if I
- 10:20explicitly say, "Now go to staging and
- 10:22check." And then Auto Mode will say,
- 10:23"Okay, you're allowed to go." So, so
- 10:26that's uh one of the stories.
- 10:28Um
- 10:28>> Mhm.
- 10:29>> There was another one.
- 10:30>> But but but but it sounds like you're
- 10:31totally Claude red-pilled right now. I
- 10:34mean, it Do you ever use Codex and the
- 10:36the other
- 10:37>> I'm actually setting up a Hermes agent.
- 10:39I mean, my son is on summer holiday, so
- 10:41I'm asking him to set up Hermes for his
- 10:43exploration, and we're using our chat
- 10:45GPT Codex
- 10:47uh what for this, yes. Cuz otherwise,
- 10:49API cost on Anthropic would be insane.
- 10:52And in terms of like, do I try other
- 10:54tools? I'm still not hitting my budget
- 10:56with with Claude code, so I have no
- 10:58incentive. Like, if I do, and I still
- 11:00have budget, like I used to have budget
- 11:02on Gemini CLI, but apparently that's
- 11:04been completely locked down, and the
- 11:05cost has gone up. And Codex is probably
- 11:08the only other one that I would use, and
- 11:10I'm trying to get use out of it with
- 11:11Hermes right now.
- 11:13>> One of the last things I sent you or was
- 11:15trying to tell you about was I tried
- 11:17anti-gravity, too, and it was
- 11:19>> Yes.
- 11:20>> not a great experience.
- 11:21>> Well, your your Your issue was that it
- 11:23that it didn't give you any any warning
- 11:25that it was going to run out of tokens,
- 11:27and it just stopped in the middle of the
- 11:28work and left your your work a little
- 11:30bit unfinished, which was frustrating.
- 11:33Um but you should have committed the
- 11:34working versions in between.
- 11:36>> [laughter]
- 11:38>> Well.
- 11:39>> another cool version uh story with Auto
- 11:41mode I just remembered. I was working
- 11:43and I created a public repo and I was
- 11:45working locally on on code for quite a
- 11:48while and I told it to push the remote
- 11:50to the remote and uh like do the do a
- 11:53bunch of work cuz usually it's like Auto
- 11:55mode doesn't see the original request
- 11:57included my approval to go push. Um or
- 12:00it was just being extra careful. Anyway,
- 12:01I told it to go push and and Auto mode
- 12:04blocked it uh saying that this is a
- 12:05public repo. You must be aware of the
- 12:07risk.
- 12:08>> Okay.
- 12:09>> whatever you going to post is going to
- 12:10be public and um you need to approve
- 12:14that. Like are you aware and approve it?
- 12:16Only then. Yeah. Yeah, that's like
- 12:18>> Okay, getting Okay, let's talk about uh
- 12:20Git commits here.
- 12:22As you as you were saying, how do you
- 12:25instruct the you you you you said for
- 12:27example in my anti-gravity two uh
- 12:30session, I should have been committing
- 12:32as I went. So, how do you think I should
- 12:34have done that? I should have just
- 12:37just uh at at at the phases dropped into
- 12:39a shell
- 12:41and uh committed the code myself. What
- 12:43what do you What What was What was I
- 12:45supposed to do there?
- 12:46>> I don't like to commit myself because
- 12:49then I have to come up with the commit
- 12:50message and I find the model is doing it
- 12:52way better. So, intermediately I I when
- 12:55something works, I ask it let's commit.
- 12:58And and it depends on your prompt, but I
- 13:00find Opus is very very um you know,
- 13:03maybe anti-gravity doesn't do that, but
- 13:05Opus is like, "Hey, we finished a a
- 13:06decent amount of work. Let's commit."
- 13:08Like it's pushing me. It's like, "Let's
- 13:09commit. It's working. Let's commit." And
- 13:11I'm like, "Let's do one more." I mean,
- 13:12it's like we have all the other stuff to
- 13:14do, but we're at a decent point where we
- 13:16should like be able to commit. And it
- 13:18says, "Do you want me to commit and then
- 13:20continue or do you want to just continue
- 13:21and then do a bigger commit?"
- 13:23>> So, what what Claude is doing that by
- 13:24default for you then?
- 13:26>> I guess it's a little bit related to the
- 13:28prompt and the type of work. With Spec
- 13:29Ledger now, even I have like branches
- 13:32and they're like 20 commits and I didn't
- 13:34never ask it to commit. It's on auto
- 13:36mode. It has like things to do and it
- 13:38just go maybe one time when it's like
- 13:41generates the spec, I say like push and
- 13:43commit for team alignment alignment. I
- 13:45always want to like I want to build into
- 13:47the model the concept that we have to
- 13:49get alignment from other people even
- 13:50though it's just me.
- 13:51>> increasingly that I need it it sounds
- 13:53increasingly that I I have to use Claude
- 13:55and nothing else because Claude does get
- 13:58commits right and get and Claude does
- 14:01commissioning right and Claude does
- 14:03>> It's just I I
- 14:04I I have I have a budget on it that I
- 14:07paid for it so I'm using it and I'm I'm
- 14:09happy with it. Um, I'm excited to try
- 14:12out Pilot Dev and to rebuild it. I'm
- 14:14also using open code with Git GitHub
- 14:17Copilot's seats for like just for demos
- 14:20just to show to people that hey, this is
- 14:22how you can use this and that but like
- 14:23my main driver is mainly Claude Code,
- 14:25yeah. Cuz I have the budget for it,
- 14:27yeah.
- 14:30>> We should rename the podcast the Claude
- 14:33AI infrastructure.
- 14:34>> Because this is always always we're
- 14:36always looking at the different
- 14:37trade-offs and like a lot of people are
- 14:38complaining uh that Opus 4.7 was really
- 14:41missing the mark and Codex give you so
- 14:43much more for
- 14:44you know, to cost value.
- 14:47>> So tell me about 4.8. What's your
- 14:48experience?
- 14:50Between 4.8 and 4.7.
- 14:52I guess you just prefer the larger
- 14:54model.
- 14:56>> Yeah, I mean I don't really notice. Um,
- 14:59I'm not going I don't have a benchmark.
- 15:00I don't do the same task to see how it
- 15:02does better or anything like that. I
- 15:04just want things to get done and it's
- 15:06getting things done and I feel 4.8 plus
- 15:08auto mode plus um the new workflow
- 15:11feature with the budget on max is
- 15:14getting done things done for me and and
- 15:17I'm very happy like I was able to turn
- 15:19through quite a lot of things. I'm still
- 15:21very
- 15:22careful because I think the biggest
- 15:23issue
- 15:24is that you and this was an interesting
- 15:26conversation I had with my friend
- 15:27yesterday is that
- 15:29you still need to have a way to
- 15:33define what needs to be validated
- 15:34against, right? So, either you are very
- 15:37explicit in your plan or you're you're
- 15:39specifying your user stories and then
- 15:41you can get a high confidence that you
- 15:43get what you want. Then you can have
- 15:45multiple adversarial reviews.
- 15:47>> was That was my next question. So,
- 15:49you're you've adapted your spec hit
- 15:52workflow for
- 15:54leveraging Claude, right? You're You're
- 15:56using that
- 15:58workflow to get your work done.
- 16:00Right? Or not?
- 16:02>> the moment I have not up streamed it
- 16:03into the binary. It's It's a It's a
- 16:06custom prompt in my current project. I
- 16:09do want to take those updated templates
- 16:12and put them They're actually They're
- 16:13the same. They're They're called
- 16:15verify-workflow and implement-workflow
- 16:18and they're They have adjustments saying
- 16:20that we do not need the task to be
- 16:21broken down because we will break down
- 16:23the tasks. So, so there's a difference
- 16:25between the normal task and implement
- 16:28and now there's a just one
- 16:29implement-workflow that does both. So,
- 16:32they're separate. I could keep them
- 16:33separate and make an a little annotation
- 16:35that this only works with the Claude
- 16:37>> remember your your spec hit has a has a
- 16:39UI. Do you actually use the UI to like
- 16:41track
- 16:42the implementation?
- 16:43>> tried so many. So, the problem of
- 16:46collaborative reviews or even just
- 16:49getting like a nice markdown web view of
- 16:53the of the specification, the user
- 16:55stories, the ability to highlight a
- 16:57section, leave a comment on that
- 16:59section. Uh that's obviously a hot
- 17:01topic. There's a hundreds of tools that
- 17:03do this. You shared with me Trit.
- 17:06>> Yeah, well, why didn't it work for you?
- 17:08It works for me. I'm I'm able to look at
- 17:10it differently.
- 17:11Put comments in and then it goes back
- 17:12into the agent and
- 17:14>> Okay, but that's not what I use it for,
- 17:16right? I I use it for single artifact. I
- 17:19don't know if you tried that. But I
- 17:22I tried
- 17:24Crit has two modes. Shows how much you
- 17:26use it. Crit has has a
- 17:28a diff mode with multiple files or has
- 17:31an a single artifact mode.
- 17:33>> Okay. I haven't used that one. So, yeah.
- 17:36>> Yes, it doesn't work. And also the
- 17:38folder in like 2 weeks the the source
- 17:40code folder became littered with like I
- 17:43don't know, 20 go source code files in
- 17:45the in the root. The web app is like I
- 17:48don't I don't it's it's it's completely
- 17:51sloppy fine in just 2 weeks. I I was
- 17:52really surprised looking at the code
- 17:54after 2 weeks and I was I had no
- 17:55confidence. If you cannot as an
- 17:57architect tell the agents to build the
- 18:00code in like a well like organized way,
- 18:04then I'm already have a lot less
- 18:06confidence. Like, you know how people
- 18:07share their project on Reddit and they
- 18:09go like I built this with with AI or
- 18:11like look at my project and then the
- 18:12first comment is like I looked at the
- 18:14source code. It's It's absolute slop.
- 18:17And I think
- 18:19I mean, it's it's a stupid criticism
- 18:20because I think if it works, it works.
- 18:22But still,
- 18:23you need to be able to instruct the
- 18:25models to do it properly.
- 18:26>> Okay, single single artifact didn't
- 18:28work. Did you Did you try the diff mode
- 18:30at least?
- 18:31>> No, no, no. But that's not my target. My
- 18:33My target is to review the user stories,
- 18:38highlight This is very very like This is
- 18:40the hardest part of the job right now
- 18:42for me, which is like
- 18:45do these user stories make make sense?
- 18:47Like for example, I'm building a tool
- 18:49that does a a verify, which is a content
- 18:51sha verification on on skills to verify
- 18:54that the skills haven't been maliciously
- 18:56manipulated. And and I then also have a
- 18:58doctor version, which is doing that
- 19:00verify but also a full review of the
- 19:02setup if if the like according certain
- 19:04rules.
- 19:06Um it's not an AI like rule verifier.
- 19:08It's just like, hey, um
- 19:10is the origin set
- 19:12um correctly? Are the skills like
- 19:15correct? So it must it must very very
- 19:17validate some things. And somehow the
- 19:20Opus thinks that this is a full offline
- 19:22mode. But at the same sentence it says,
- 19:24but we are doing a remote check like to
- 19:26get remote. And I'm like, yeah, but
- 19:28that's that doesn't make sense. And then
- 19:30when I highlight that one thing saying
- 19:31like, hey, you said it's offline and
- 19:33then here you say we're validating the
- 19:34get remote, then that's not offline. And
- 19:37then it goes through the whole document
- 19:38and says, actually you're right. There's
- 19:40quite a few areas where there's this
- 19:42tension and there's some
- 19:43inconsistencies. So so so going through
- 19:47this like 500 lines and trying to
- 19:49identify this is is is damn hard. Um,
- 19:53and and then once I'm feel confident in
- 19:54that because
- 19:55>> five 500 lines of user stories you mean,
- 19:58right?
- 19:59>> Yeah, 500 lines markdown.
- 20:01>> That's what you focus on.
- 20:03>> functional requirements, acceptance
- 20:04criteria. Yeah, I'm trying to identify
- 20:07if they make sense.
- 20:08And then I also need to make a
- 20:10verification that no
- 20:12term confusion because it will it will
- 20:15have the terminology in the user story
- 20:17will be one word and then in the
- 20:19implementation plan originally in the it
- 20:22will will be another word. And then the
- 20:24agent doing the implementation would be
- 20:25confused
- 20:26because of the meaning behind the word
- 20:28and then it would do things that are
- 20:30unexpected. So I found that those are a
- 20:32lot
- 20:34>> I'm boarding a train now
- 20:35and so probably won't work.
- 20:38Yeah, probably won't work.
- 20:40Things are starting to move.
- 20:42>> Uh
- 20:43>> Cuz you're in like this underdeveloped
- 20:45country, right? I guess the internet
- 20:47doesn't work in trains.
- 20:49>> It doesn't really work.
- 20:51>> It works in Vietnam, though.
- 20:54>> It does?
- 20:54>> Not in UK as far as I know.
- 20:57>> Okay, anyway,
- 20:59let's just call it a day right now.
- 21:01And uh
- 21:03and I'll I'll catch up with you tomorrow
- 21:05or something, okay?
- 21:08>> Yeah, so I think
- 21:10yeah, have a nice uh trip.
- 21:12>> Thanks.
- 21:13I'll give you updates on WhatsApp. Bye.
- 21:17>> Yeah, bye-bye.