Latest / AI Infrastructure / What is Spec-Driven Development?
Transcript
- 0:00Welcome everybody.
- 0:02It's it's Vincent and I just chatting
- 0:04about infrastructure and AI and uh what
- 0:08what what what's fun and cool I suppose.
- 0:12Um Vincent, you you wanted to show me
- 0:14something. I I know you've been itching.
- 0:18Straight on to the demo. Yeah, I can. Um
- 0:24give me a minute. I'll cut this out.
- 0:27>> Are you on Are you on Mac? cuz the
- 0:29>> Yeah, I am.
- 0:30>> Okay.
- 0:30>> It's It follows me. It
- 0:32>> You got center stage enabled.
- 0:34>> Yeah. I have no idea. It just works,
- 0:37right?
- 0:38>> Sorry, I have to uh plug some I have a
- 0:41pump. My AC pump. My AC is um in a funny
- 0:45position and it needs to pump the water
- 0:47out up. So, there's a pump, but the pump
- 0:50is a bit dodgy.
- 0:52>> What's your temperature there? It looks
- 0:53like you're sweaty. And
- 0:56>> yeah, I went to the gym this morning. So
- 0:58it is it is quite hot here.
- 1:01>> Yeah. Uh but I did so that's another
- 1:03that's a great thing about AI but and
- 1:04those budgets of AI by the way because I
- 1:06hit my budget like I have a 5 hour
- 1:08session and then I hit my budget maybe
- 1:10in two hours and so then I have 3 hours
- 1:13to go to the gym, right? I mean the
- 1:15amount of work I get done in two hours
- 1:17is is pretty much the same what I what I
- 1:20would do in a day. So it's pretty great.
- 1:23>> Yeah. Yeah, I I never thought about like
- 1:26that, but yeah, like I'm a big fan of
- 1:28like uh being careful with your time and
- 1:31you know the Pomodoro technique where
- 1:33you just jam in stuff. So if is
- 1:36>> So is the AI spend limit or Claude
- 1:38working the same way? Which plan are you
- 1:40on again?
- 1:41>> I'm on the like the lowest paid plan 20
- 1:44bucks around Codex and Cloud.
- 1:47>> Sorry. Oh, and it and it basically works
- 1:49by by time. Like if you smashing your
- 1:52your token,
- 1:53>> the moment you send your first message,
- 1:55a 5 hour session starts
- 1:58>> and then you get a certain token budget
- 2:00within those 5 hours depending on your
- 2:02plan. And so it will remind you now they
- 2:05added like a nice usage command since
- 2:07they did Sonnet 4.5 last week and cloud
- 2:10code version two. So they added a lot
- 2:12more um context management and
- 2:15notifications about your usage um when
- 2:19and and also they added more I think
- 2:20they enforcing the weekly limits
- 2:22stronger and um basically
- 2:26within 5 hours you have a budget you
- 2:29keep track of how it's going so I can
- 2:31see like oh I'm at 50% let me maybe do a
- 2:34little bit more myself instead of just
- 2:36asking cloud to do it or or like um
- 2:40switch over to Codeex which often do.
- 2:42Um, so that
- 2:43>> I I tried Codeex I think after you
- 2:45talking about it and it is a lot better
- 2:47experience than I remember.
- 2:49>> Yeah, it has improved a lot but I don't
- 2:51use the CLI. Uh although that the CLI
- 2:54now recently has been updated as well.
- 2:55It's a little bit better. But the the
- 2:58IDE plugin, you know, lets you paste in
- 3:00images, reference well, you can
- 3:02reference files on both sides. But I
- 3:04find the I the IDE um plugin quite nice
- 3:09in uh in codeex because I can, you know,
- 3:14put it on full agent mode and it seems
- 3:16to use its tools and utility like better
- 3:19like when it needs to edit a file.
- 3:21>> Maybe you should show share the screen.
- 3:23show show it perhaps
- 3:25>> I think cuz that would be more
- 3:27interesting for people. Okay,
- 3:30so this is a project that I've been
- 3:32working on since the last time we talked
- 3:34where we talked about some of the events
- 3:37happening around Terraform states and
- 3:39state management open tacos announcement
- 3:43and I've talked to those people and I
- 3:45wanted to get some features in but I
- 3:48have not been able to reach them and so
- 3:50I started decided like it can't be that
- 3:52hard right I even commented on one guy
- 3:54like he posted like oh when you start a
- 3:56new project it's so exciting because you
- 3:58get to make a text tech decisions and
- 3:59then maybe you will regret those and I
- 4:01said like well cloud will oneshot it
- 4:03anyway so who cares
- 4:05so I I I thought if I I talk big like
- 4:07that let me try it right let me see if I
- 4:10can oneot this thing
- 4:10>> I'm I'm curious to see what's in your
- 4:12claw directory in your codeex which is
- 4:14just session management or something
- 4:17>> so this is what spec this is speckit um
- 4:20speckit gives you a command to bootstrap
- 4:23a repository to use speckit this kind of
- 4:27funny Now because Claude Code uh has
- 4:29announced plug-in marketplace so you can
- 4:32look at specit like a plug-in market
- 4:34sorry like a like a marketplace plug-in
- 4:37it comes with a bunch of commands
- 4:39basically prompt templates a bunch of
- 4:41scripts and um yeah that's pretty much
- 4:45it like it uses templates for some uh
- 4:48specification files that you may want to
- 4:49build. So, so this cloud folder here
- 4:52that has these commands, this is all
- 4:55prepared by specit.
- 4:57>> Oh, I see. So, it just So, what's a
- 5:01command then? It's like a it's like a
- 5:03prompt.
- 5:05>> I will try. Hold on. Um I I I want to
- 5:09open the the specit website. Yeah. So,
- 5:12um a command is like a prepared prompt.
- 5:15It can have arguments. So you can call
- 5:18those you know like when you do slash
- 5:21you can um call those like analyze.
- 5:24>> Yes. So then you all of your files that
- 5:28you put in here under the commands
- 5:29folder will show up as slashcomands in
- 5:31your Claude Code and you can also have
- 5:35arguments.
- 5:36>> Do do you use that a lot? I mean do you
- 5:38actually
- 5:38>> speckit is completely built around this
- 5:40workflow. So I've never used it until I
- 5:43use specit. So you basically I mean so
- 5:46you find yourself going analyze clarify
- 5:48constitution whatever that means in plan
- 5:52>> I don't know I've never used kro but the
- 5:54idea let me go spec kit let me open the
- 5:57website of spec kit the idea of
- 6:00specdriven development is to basically
- 6:03capture the reasoning behind code
- 6:06because they say rightfully so that the
- 6:09code itself is no long is never hold on
- 6:12I'm going to open this
- 6:16They have a website here somewhere.
- 6:20Uh anyway,
- 6:22where is the
- 6:25the ideology behind it? Hold on, let me
- 6:28find that
- 6:32spec driven development.
- 6:34>> Right. So, so the the whole idea behind
- 6:37specket which is the code was never
- 6:39really the secret sauce like before um
- 6:42basically people delivered code and the
- 6:44code is what represents the business
- 6:46logic documentation outdates becomes
- 6:48outdated very quickly but with LLM
- 6:51driven workflows the code becomes more
- 6:53of like an after like an artifact
- 6:55something that gets produced and you
- 6:57quickly like factor it or throw it away
- 6:59and what's more important is your
- 7:01specifications and the test suites built
- 7:04around
- 7:04Right.
- 7:06>> Specs and test suites. I I fully agree
- 7:08that sounds really good.
- 7:10>> So, so the power of inversion like this
- 7:12this this explanation is really good to
- 7:14read up front to understand really why
- 7:16it matters and why it is really worth it
- 7:18to do it that way. Definitely if you
- 7:20worked like like my previous workflow
- 7:23before speckit was I spend time with
- 7:26chipt on the web interface or in my
- 7:29phone when I'm in bed or when I'm
- 7:30walking around thinking about ideas and
- 7:33trying to understand how to use certain
- 7:35technology in some of my projects
- 7:40on on that note like um how do you
- 7:44capture your ideas that you have
- 7:45spontaneously like I to be honest I I
- 7:48try use voice recording
- 7:49and just cap try capture like me, you
- 7:53know, in the middle of the night saying
- 7:55do this workflow. Uh, and then I often
- 7:58forget about it like but do you have a
- 8:01better way of sort of capturing ideas
- 8:03and stuff?
- 8:04>> So, Chat GPT now has this feature where
- 8:07you can create folders. So, I've been
- 8:09working on this this well has probably
- 8:12been there for a while, but I've been
- 8:13using this feature to create folders
- 8:15more more aggressively. And yeah,
- 8:18sometimes I just tap the the dictate um
- 8:21and I just, you know, dictate what I'm
- 8:23thinking.
- 8:24>> Uh for example,
- 8:25>> that that works from the mobile, I guess
- 8:26you must do.
- 8:28>> Yeah. Yeah. But you can do it on on your
- 8:30laptop as well. I started using uh
- 8:31dictate on my my MacBook. Although that
- 8:33the transcription is not as good as if
- 8:35you use uh in the app because in the app
- 8:36I think it uses the LLM to trans
- 8:38transcribe. So um so here I was
- 8:41literally uh in my in my bedroom and I
- 8:44said what's data without a schema? You
- 8:46know what's worse is data that used to
- 8:47have a schema but the schema is gone.
- 8:49And here I'm talking about how my idea
- 8:51of like capturing the TypeScript um
- 8:54schema on top of the Terraform state
- 8:56gives you more of structured information
- 8:58about the actual Terraform
- 9:00infrastructure as code. Right? So, this
- 9:01was all spoken in and transcribed by the
- 9:04LLM and then it says like, okay, and I
- 9:06say, hey, help me create a launch uh
- 9:08site and it kind of captures like some
- 9:10of the hooks that we want to put on
- 9:11there, right? But as you can see, I have
- 9:13a lot of like ideas and chats and it's
- 9:16very hard for me to find back some of
- 9:17these ideas. Um, sometimes like I know I
- 9:20discussed something somewhere, it's
- 9:22somewhere in in one of these chats. The
- 9:24worst is after I've like done a drill
- 9:26down into
- 9:26>> So, you can't you can't search through
- 9:28them or something like that. You can you
- 9:30can search through this but I don't know
- 9:31it's I I still I I have discussed the
- 9:34same thing so many times because it
- 9:36becomes uh you know when you do a
- 9:38dictation you discuss something and
- 9:40maybe you're building on something that
- 9:41you had um discussed before uh but
- 9:44basically it's lost somewhere in these
- 9:45chats. So with specit
- 9:48um I feel like I do this in a much more
- 9:52structured way. So before speckit I had
- 9:54these chats I had to somehow capture all
- 9:57of these different responses from chatpt
- 9:59pick out the bits that I liked remove
- 10:01the bits that I didn't like and then
- 10:03create uh a document to to to
- 10:07basically track what I'm trying to do.
- 10:10So with specitate that starts with like
- 10:12a user description. So the first step is
- 10:14to to do specify the specify command is
- 10:17to to to kick off the workflow. So user
- 10:20a user description is that like a use
- 10:21case or is it something else?
- 10:24>> Yeah, that that's that's the hardest
- 10:26thing to to know about specit is like
- 10:28what do I exactly say in at each uh step
- 10:31of the way. So they do have a very good
- 10:34example on their readme. Um there's like
- 10:37a detailed walk through detailed process
- 10:40where um they go through like the first
- 10:43thing okay once you've initialized your
- 10:45repository and it is copied over your
- 10:47cloud commands into your git repository
- 10:49and it set everything up for you. You
- 10:51can choose codeex, you can choose cloud,
- 10:53you can use github copilot because this
- 10:54is a Microsoft product. And um they also
- 10:58changed like now now they have a prefix
- 10:59onto each slash command. Um I I have not
- 11:03talked about the constitution.
- 11:04>> Sorry Vincent you is this a Microsoft
- 11:06product? Did you say
- 11:07>> it's a GitHub right? GitHub is from
- 11:09Microsoft.
- 11:10>> Oh okay. Okay.
- 11:12>> Yes. So so so the first thing is in this
- 11:15example here like you need to do a
- 11:16functional specification not the the
- 11:18clarification you need to start on the
- 11:21actual spec project specification right.
- 11:23So that's the first thing you do you do
- 11:25specify um and that's after you've done
- 11:28constitution. So I will talk more about
- 11:30constitution later but first you have to
- 11:32come up with like a prompt of what we're
- 11:34going to develop. You ask me what is
- 11:36this thing that you're putting in. Uh be
- 11:38as explicit as possible about what
- 11:40you're trying to build and why. Don't
- 11:42talk about tech. Don't say like I want
- 11:44the Golang uh monolithic application or
- 11:46whatever. No, you're talking purely
- 11:48about what you're going to develop at
- 11:50that point. And so the great thing is
- 11:52once you've kicked off this this initial
- 11:55prompt um it's going to come up with a
- 11:57bunch of like what's the user scenario
- 11:59what are the usea like what are the
- 12:01personas um if when like user stories it
- 12:05basically follows a template um to
- 12:09>> so it creates the use cases for you what
- 12:12really
- 12:12>> yeah so the specify argument basically
- 12:14runs a script to create new feature
- 12:17which will then set up a new get branch.
- 12:19So when you use spec specify to to
- 12:22initialize your repo or your project
- 12:24folder, it will create a git repo and
- 12:26then you set up the constitution which I
- 12:27will talk about later and then you say I
- 12:29want to create a new feature. It sets up
- 12:31a new branch for that feature and
- 12:32prepares a spec folder. So everything is
- 12:34organized. It's like um ADR on on
- 12:37steroids or LLM driven ADR. Are you
- 12:39familiar with ADR?
- 12:41>> Uh yeah. Yeah. We I use them my work uh
- 12:44architecture
- 12:46uh decision record, right?
- 12:47>> Yes. uh it's architecture decision
- 12:49records the same thing you run a command
- 12:51and you create a decision record
- 12:53markdown and then you walk through it
- 12:54with your colleagues and then you lock
- 12:55it in right
- 12:56>> it's the same thing here um you're doing
- 12:58ADR but it's all driven through LLMs so
- 13:01the LLM is asked to run a script
- 13:02>> but this is but the uh vocabulary here
- 13:05is a feature right you call ADR is a
- 13:07feature here
- 13:09>> I guess so I I I I've only read about
- 13:11ADR I've always wanted to use it uh and
- 13:14then I started using speckit and I was
- 13:16like oh that's probably what ADR
- 13:18Well, I see ADR maybe I'm doing it
- 13:20wrong, but I see it more of a as a post
- 13:25activity like a like a documentation
- 13:27thing like you've worked some options uh
- 13:30and this is why you went with this
- 13:32option you know.
- 13:34>> Yeah. But when I tried to contribute to
- 13:37Atlantis, they uh they just adopted ADR
- 13:40and they asked me to before I started
- 13:42anything create the actual you know
- 13:45proposal of what I'm going to build like
- 13:47the feature what I'm going to build and
- 13:48and how I'm going to build it and where
- 13:50I'm going to make changes so that they
- 13:51could agree uh with me first if this was
- 13:54the way that they they wanted the
- 13:55project to evolve uh for my feature to
- 13:58get a better chance to get it uh
- 13:59accepted. Right. And I I think in open
- 14:01source that's kind of how you use ADR.
- 14:03Well, I always think the other way
- 14:05around like I I think you need to have
- 14:06code otherwise you don't have an ADR
- 14:09really. You need to have an
- 14:10implementation. You need to because
- 14:12because you know you can you can propose
- 14:14the moon on a stick but does it even
- 14:16work? You'll never know.
- 14:20>> I think you don't Yeah, sure. You you
- 14:23must have some type of credibility in in
- 14:25the changes that you're proposing. But
- 14:27for example, for me, I spend maybe a day
- 14:29or two reading the Atlantis source code
- 14:31and then identifying a couple of areas
- 14:33where I think the feature should impact
- 14:36and and then I can put my ADR in before
- 14:38I write the code to get like a a sanity
- 14:41check from the project maintainers,
- 14:42right? Like I'm saying I'm going to
- 14:44build this feature and I believe I need
- 14:45to change these code paths and they may
- 14:47very quickly flag well actually that
- 14:50code path kind of deprecated. um more of
- 14:52the of the logic that you're looking at
- 14:54lives there and and we can get that
- 14:56right first. Right.
- 14:57>> Okay. I I guess I guess to be honest
- 14:59it's it is a better attack cuz early
- 15:01early fast feedback is is a principle
- 15:04uh I also live by but uh if this project
- 15:08does it then then go for it I suppose.
- 15:11>> Yeah. So in my case with the Atlantic
- 15:12situation I was like great I get to
- 15:14create my first ADR. I'll do it next
- 15:17week. And then next week never happened.
- 15:19So um anyway with specit I I was very
- 15:24motivated with due to the recent events
- 15:26to to like really try out um how this
- 15:29could like work and without specit this
- 15:33is what I came up with like I come with
- 15:34the product requirement definition. I
- 15:36created like a V1 of what I want. I want
- 15:39the API to look like this and then a V2
- 15:41a little bit updated after more chat GPT
- 15:43chats and then I asked uh cloud go ahead
- 15:46and and did it and and cloud was very
- 15:47enthusiastic. Um it always goes like
- 15:50perfect amazing the test pass
- 15:52everything's great but nothing worked
- 15:54like nothing worked together.
- 15:56>> Okay. So this is your this was your
- 15:57first way. Okay. Okay.
- 15:59>> Yeah. Yeah. This was my first way. So I
- 16:00went into chat uh did a bunch of chats
- 16:03tried to uh you know consolidate it into
- 16:06like a a product requirement document
- 16:09tried to capture all of the things that
- 16:10I wanted repository layout
- 16:12>> because I because I guess you went tech
- 16:14first here and maybe specitate is the
- 16:16other way. I I have so this is the the
- 16:18big thing I learned about speckit is
- 16:20like I I never really did proper product
- 16:23um development and I didn't have all of
- 16:26these users scenarios and all and edge
- 16:28cases thought out I this way like I can
- 16:31do it for very small things like I want
- 16:32to build a terapform provider I want to
- 16:34build a small binary I want to build a
- 16:35terminal user interface I can even
- 16:38terminal user interface start to get a
- 16:39little bit dodgy but like because cloud
- 16:41is so good at like being being creative
- 16:44it kind of works like oh great cloud
- 16:46came up with all this additional stuff
- 16:47that I never asked for, but because the
- 16:49project was small enough, it actually
- 16:50worked. It was able to complete it, for
- 16:52example. But once you start hitting like
- 16:54a big project where you have many moving
- 16:56parts that need to lift to like work
- 16:57together and and then you have
- 16:58assumptions on the left and assumptions
- 17:00on the right and nothing works together,
- 17:03>> right?
- 17:04>> So, so that's where specit is really
- 17:06great. Um because and I there was a
- 17:08thread earlier on on Reddit about that I
- 17:11just read earlier on Reddit um which was
- 17:14a way to capture the like in a monor
- 17:17repo to capture the meaning of each
- 17:19directory because when you want to make
- 17:20changes in a monor repo there's
- 17:23definitely responsibilities that live in
- 17:25certain parts and if you unleash an an
- 17:28LLM it will just like try to do
- 17:29everything in one area and then
- 17:31>> you know duplicate the logic. So this is
- 17:33I I mean I I like the owners uh
- 17:36paradigm. I mean to be honest I don't
- 17:38work on projects with that many owners
- 17:41to be honest. Uh but the the a the I
- 17:44like the um the agent markdown is is
- 17:46quite cool because you can sprinkle them
- 17:48in in your in your code hierarchy. Um
- 17:51>> okay. Yeah. So you could you could
- 17:53capture a bit more like don't do this
- 17:54here. If you need to change let's go
- 17:56over there.
- 17:57>> I suppose
- 17:57>> but it's tedious to maintain it right.
- 18:00So, so what is the approach here for for
- 18:02like
- 18:03>> okay so so so the Reddit thread was
- 18:05mentioning we they they iterate on an
- 18:08idea and then after 20 messages back and
- 18:10forth the context kind of grows and then
- 18:13over time the LLM when it actually
- 18:14starts implementing it to totally loses
- 18:16track of where things are supposed to go
- 18:18like you said you can like manually
- 18:20maintain agent files across your
- 18:21repository the way that specit
- 18:23approaches this is when you get down to
- 18:26the actual task generation it's very
- 18:29specific specific about where you're
- 18:30going to change what and why. So every
- 18:32single task that the LLM works on has
- 18:35very detailed like all self-contained
- 18:37information. Like
- 18:39that's at the very end and and I'm
- 18:41telling you specit takes me like easily
- 18:44two five hour sessions. So easily like
- 18:47two hours per session. So 4 hours at
- 18:49least to get it to the point before I
- 18:51even start to write code which is very
- 18:53frustrating when you start because
- 18:54you're so used to you know jump into
- 18:56cloud and have it generate a whole bunch
- 18:57of code and now you have to like go
- 18:59through all of these edge cases you know
- 19:02review the functional requirements you
- 19:04know do research and then align the plan
- 19:06and the research against those
- 19:07functional requirements and validate it
- 19:09and and and the first time my first
- 19:12feature which is like the start like
- 19:14bootstrap the mon repo and build some
- 19:16basic functionality
- 19:18it I totally like yes yes yes yes okay
- 19:21yes next on the first few steps because
- 19:23I also didn't even know what like most
- 19:25of those steps were meant to do um and
- 19:27and so I I ran up the the implementation
- 19:30part became very painful because specit
- 19:33divides it and you you specify the
- 19:34feature you you know start to formulate
- 19:37a plan where you actually define what is
- 19:39the text stack that you want to use that
- 19:41gets you know does some research to find
- 19:43out more about the libraries that you're
- 19:44interacting with and how they integrate
- 19:46with each
- 19:47Um and then once you've got the
- 19:49research, the plan, some data, models,
- 19:52then you start to generate the tasks and
- 19:54then you go through a couple of
- 19:56iterations of actually analyzing very
- 19:58very carefully how those functional
- 20:00requirements map back to those tasks and
- 20:02if everything is like covered in terms
- 20:04of like um requirements and and and
- 20:08>> and I did like like I said the first
- 20:09time I completely ignored that iteration
- 20:12and I went straight into implementation
- 20:14and halfway through I realized I made a
- 20:15big mistake. and like half of the code
- 20:17was actually not not quite right and I
- 20:20had to go back and try to make changes
- 20:22and I found it a bit hard to like uh
- 20:25adjust the course at that point because
- 20:27I hadn't done the a lot of the research
- 20:29up front and of course
- 20:31>> the idea is like how can I know that
- 20:33I've got everything right from the start
- 20:35right um you can't but
- 20:38>> um with this approach now with like
- 20:40really going into a lot of the edge
- 20:42cases the the feature that I did last
- 20:44time which was like adding
- 20:46um labels on terraform states literally
- 20:49I think two days to get the specs right
- 20:52and then I went to sleep at like 9:00
- 20:54p.m. Ask cloud to start implementing
- 20:56maybe woke up around like midnight to
- 20:59ask codeex to review and continue the
- 21:00implementation and then by morning 7:00
- 21:03a.m. kicked off another final
- 21:05implementation round and by lunch it was
- 21:07fully implemented and it hadn't
- 21:09encountered any issues and I went
- 21:11straight into the UI and it worked and
- 21:13it was like holy crazy.
- 21:16>> So this is really interesting. So
- 21:19>> what you said there where you got clawed
- 21:22to kick off the implementation.
- 21:24Um is is that like a specit thing to
- 21:27like you know specit implement? Okay.
- 21:30>> Yes.
- 21:31And then is it also a spec kit thing to
- 21:33like get codeex another model to review
- 21:36it?
- 21:37>> Uh not not explicitly but they do say
- 21:40that it's an interactive process. So
- 21:43they give you these starter commands to
- 21:44create those documents and you're they
- 21:47also say like don't expect this like
- 21:50>> um don't expect the first response to be
- 21:52what you want right you must actually
- 21:53validate and go through it. Um and then
- 21:56you know the first thing is after it
- 21:57went through this prompt it will then
- 22:00have a couple of needs clarification. It
- 22:01will generate edge cases like you may
- 22:04say here they talk about task taskify a
- 22:06team productivity platform should allow
- 22:08users to create projects and then it
- 22:10will create like um clarification
- 22:12questions like what if two users create
- 22:14this project with the same name like
- 22:16what what happens because you haven't
- 22:18clarified that right what if the user
- 22:21deletes a project that is um has a lot
- 22:24of tasks assigned to it how like is
- 22:26there a delete cascade in the background
- 22:28like how does that work so you have to
- 22:30go through a lot of these um details.
- 22:32>> Well, okay. So, this this sounds great.
- 22:35Absolutely great for like bootstrapping
- 22:36a project. But what what happens if you
- 22:38the uh just out of interest if there was
- 22:40an existing project like say you have an
- 22:43existing project and you want to
- 22:46specitify it? Is that possible?
- 22:49>> They do have a section about introducing
- 22:51it on existing projects. I have to say
- 22:53like this YouTube video here on the on
- 22:55the on the root p on the landing page or
- 22:57the root rate me it takes you to the
- 22:59channel of of one of the main advocates
- 23:01behind it and if you look at his posts
- 23:03from the like his YouTube videos from
- 23:05the like week last week and literally I
- 23:07think 3 days ago he did another update
- 23:09because they changed a couple of the
- 23:10commands they added new command into it
- 23:12which is a checklist command for your um
- 23:15validation so you can validate that you
- 23:18have really covered every area. Um, so,
- 23:20so these YouTube videos are amazing and
- 23:22he does talk about like how to go and
- 23:25use it into an existing project. Yeah, I
- 23:27think this is when I talk to people that
- 23:29use Ko, they say that this is very
- 23:32similar to Ko um but it's completely
- 23:35independent from like a specific IDE,
- 23:37right? You it works with multiple uh LLM
- 23:40agents. It uses the CLI under the hood.
- 23:43So, cloud is actually calling the cloud
- 23:45CLI to do some like summarizations and
- 23:47things like that under the hood. So when
- 23:49you mentioned Kira that that's uh sorry
- 23:51I I I not too sure what that means.
- 23:55>> Kirro is an AWS product that kind of
- 23:58launched the idea of specdriven
- 24:00development right they they really said
- 24:03like people are using Almstrong uh the
- 24:06specification is where you should start
- 24:08and they build a whole IDE around it.
- 24:11Ah, so Speckit and Kirro, how are they
- 24:15related? Just
- 24:17>> not at all.
- 24:18>> They're not related. Okay.
- 24:19>> Yeah. So, so, so Kira is a commercial
- 24:21product from AWS. It's an ID with a
- 24:23subscription with a subscription and
- 24:26they use Sonale as well. Um, but they
- 24:30provide you they have like nice little
- 24:33hooks inside the IDE. For example, if
- 24:35you have a task, there's a little green
- 24:37button that appears around it. So, you
- 24:38can click start implementing this task.
- 24:40and the LLM and start implementing it.
- 24:42That's kind of like you see that that's
- 24:43on the demo right now.
- 24:45>> Yeah. It's kind of like pretty cool.
- 24:46Yeah.
- 24:47>> Yeah. Because I mean Copilot has that,
- 24:49you know, you can like save and
- 24:52>> Yeah. Or
- 24:52>> I I think I think the specit with GitHub
- 24:56copilot does a similar thing, but I'm
- 24:58not using GitHub copilot. I'm just using
- 24:59the Claude Code with because I'm used to
- 25:01Claude Code. Yeah.
- 25:03>> Cool. Man, this is this is mind-blowing
- 25:05stuff, man. So, okay. So you got your
- 25:07speck kit, you got your task breakdown,
- 25:09you you kick it off overnight, you get
- 25:11codeex to review it. So how do you kick
- 25:14off codeex by the way? Is it is it just
- 25:16a like what you
- 25:18>> originally I always use the codeex ID on
- 25:21the side here? So I just install the the
- 25:23the plugin into in here. I need to
- 25:25update it I guess. Um so on one side I
- 25:28have copilot the GitHub you know
- 25:30provided. I have a seat uh provided by
- 25:33organization as well and then I have my
- 25:35personal codeex here. um that I have
- 25:38that I that is
- 25:40yeah that that's my codeex.
- 25:42>> Okay.
- 25:43>> I don't know what to say about it.
- 25:45>> So so your codeex is specified like how
- 25:48do you know that it's like
- 25:51>> yeah so so codeex only supported prompt
- 25:55arguments since last week. So the the
- 25:58speckit has this argument at the start
- 26:00here right the user input the user will
- 26:03provide some input. So when you kick off
- 26:04the command here um
- 26:08when you kick off specify yeah this is
- 26:11classic Claude Code doing the disco in
- 26:13the terminal um so when you say like
- 26:16we're we're we are going to revise the
- 26:22filtering
- 26:23library or something like that right I
- 26:26don't know that's actually not a good
- 26:27spec because it should not be related to
- 26:28the there's no functional requirement
- 26:30there's no that's just pure tech that's
- 26:32a really that spec actually. Okay, it
- 26:35should really be about like the user
- 26:36filtering experience is bad. Uh the
- 26:38perform like when a user clicks the
- 26:41filter it takes you know minutes before
- 26:43the result appears and then it will
- 26:46generate user stories and edge cases and
- 26:48like what are the benchmarks that we
- 26:50need to create what are the tests to
- 26:51validate that that it is implemented
- 26:53correctly and then we can go into the
- 26:55technical research like okay we find
- 26:57some hot pots we need to add some
- 26:58indexes into the database and do things
- 27:00like that. So that would be in the in
- 27:02the plan phase. So specify the first
- 27:04phase you say the functional requirement
- 27:06why do you need to do this what you want
- 27:07to do exactly. Then you do plan where it
- 27:10will kick off um several documents and
- 27:12and no actually before sorry before you
- 27:15go into plan um the specify will have
- 27:18generated edge cases and will have
- 27:20questions like what happens if uh if
- 27:23this or that right and then it will ask
- 27:25you clarification about how do you want
- 27:27to handle those like are you okay with
- 27:29this um and when you click up and for
- 27:32that also there's there's um an LLM
- 27:34prompt which will basically go through
- 27:37the document find any areas that needs
- 27:39clarification and then give you three or
- 27:41four options on how you may want to
- 27:43address this. So there's a question
- 27:45option A, B or C. So because we all use
- 27:47NLM ultimately to answer those
- 27:49questions, right? Yeah, I don't really
- 27:50I'm not really sure like what are some
- 27:52of the common ways that I could solve
- 27:53this and suspect it will give you like
- 27:55three or four uh clarification options
- 27:57there and then you can
- 27:58>> so but going back to codec soc.
- 28:02So you basically run some commands in
- 28:04claude and you run uh the same sort of
- 28:07commands in in codeex alternately.
- 28:11>> Yeah. So codec since last week has these
- 28:14arguments. So I I I started using the
- 28:17CLI and what I noticed is that the CLI
- 28:20in CEX never wants to execute the
- 28:22scripts. Maybe this is some training
- 28:24that OpenAI did to prevent like uh
- 28:26prompt injection attacks because there's
- 28:28been a few. So, so Codex even if the
- 28:31prompt says you will run this script, it
- 28:33doesn't run the script. So, so now I'm
- 28:35like confirm to me you will run this
- 28:36particular script and that works and it
- 28:38says yes I will run it and then actually
- 28:41when I say
- 28:42>> um I I I trigger the prompt. So you see
- 28:44the prompt was expanded here. So I call
- 28:46the prompt command and then it says user
- 28:49input is here. We need to identify
- 28:51actually I left the user input blank it
- 28:52looks like. Um I also noticed that if I
- 28:55put too much codeex will just lose half
- 28:57the prompt. I don't know. So maybe I
- 28:59stopped putting
- 29:00>> prompts. So on the subject of security,
- 29:02I'm not going to lie, when I use Claude,
- 29:05I sometimes specify, you know, skip
- 29:08dangerously skip permissions because I
- 29:11hate having to uh, you know, press
- 29:14enter.
- 29:15>> Yeah.
- 29:15>> So do you have a different approach to
- 29:18to security?
- 29:21>> Uh, depends on what repository I work
- 29:24on. If it's my own that I just
- 29:26bootstrapped, I'm okay with like most of
- 29:27it. Yeah.
- 29:28>> So you just skip all the permissions.
- 29:30>> I don't run MCPS or barely any because I
- 29:33believe that MCPS pollute the uh context
- 29:36window and the context window is scarce.
- 29:38So I try to keep as much of the context
- 29:40window free and so I only one MCP. Now
- 29:45>> on on the on the subject of context
- 29:47window like um I do think the
- 29:50interaction with MCP is quite good
- 29:51because it tells you when it runs the
- 29:53tool. It tells you what the input is and
- 29:55the output. Um, at least with Claude,
- 29:57it's quite clear to me, but like to me
- 30:00to me like a lot of these prompt
- 30:02prompting things,
- 30:04uh, I mean, they're quite verbose. I
- 30:06mean, like when you when you're running
- 30:08these commands, are you actually viewing
- 30:10all the input? Are you like like do you
- 30:13have a a finger on the whole context
- 30:15window or do you letting it do its
- 30:17thing?
- 30:20>> It depends. Like I used to be very
- 30:23hands-on with the implementation phase.
- 30:25Definitely when I wasn't going very
- 30:27detailed with like all the educations
- 30:28and functional requirements I started I
- 30:31realized I need to stop it to do the
- 30:32wrong thing. However like the last
- 30:34feature that I let it implement like
- 30:36literally I went to sleep. So I after I
- 30:39feel a lot more confident about the I
- 30:42ran the validate process like four times
- 30:45literally I think I use 50 I think at
- 30:48this point I use almost like 40% of my
- 30:50weekly token budget just on spec
- 30:53generation and and and like validation
- 30:55of the specs and then the actual
- 30:57implementation takes 30% or so. Yeah.
- 31:00>> Wow. So, and then your spec um what is
- 31:03the source of truth there? Like it's is
- 31:06it sitting in in a markdown file
- 31:08somewhere?
- 31:08>> Yeah. So, that's a that's a pattern I
- 31:10did before specit as well because cloud
- 31:13is great when you first start start
- 31:15using cloud. You go like let's go in
- 31:16plan mode and create a bunch of to-dos
- 31:18and then it ticks nicely through those
- 31:20to-dos. If you get stuck on something,
- 31:21you can like re like help it, you can
- 31:23nudge it along. You're following along
- 31:24and all that, right? But very quickly
- 31:26when the projects gets bigger, you you
- 31:28ident you realize that those to-dos like
- 31:30they're sometimes based on
- 31:32misconceptions or or you run out of
- 31:34context and then you need to compact and
- 31:36then the compact summary throws away a
- 31:38lot of the stuff that you originally was
- 31:39part of the reasons why the to-dos
- 31:41existed. So so those to-dos don't scale
- 31:44and so I started say asking cloud like
- 31:47okay check off the things that you've
- 31:48completed like when it started
- 31:50approaching context window limits and
- 31:52write it down for handover. I call it
- 31:53like we need to hand over to someone,
- 31:55right? So, write everything down into a
- 31:56markdown. Um, and then I would open a a
- 31:59new cloud session. Well, I didn't know
- 32:00how to use the clear comp um command
- 32:03properly, but I used a new cloud window
- 32:05and then I would just like read the
- 32:06handover document. Um, there's a couple
- 32:08of to-dos there.
- 32:10>> There's there's a command called
- 32:11compact, right? I think you
- 32:12>> Yes, but I found that the compact throws
- 32:16away like too many details. definitely
- 32:18some of the initial research that you've
- 32:20done and some of the reasoning why the
- 32:21to-dos exists and then if you you know
- 32:24halfway through are going down the wrong
- 32:26path and then the original you know
- 32:28logic is gone then the to-dos no longer
- 32:31makes sense and then cloud starts to be
- 32:32very creative and then it nothing works
- 32:35anymore. So that's why I already had
- 32:37this this experience um of of throwing
- 32:40away contexts easily and that's
- 32:43something that people say like
- 32:45>> you know your context is like a jewel
- 32:47you need to craft it very right to get
- 32:49it into the right you know data that you
- 32:51want and actually cloud added a lot of
- 32:53commands for you like the double escape
- 32:55if you are uh on cloud you can double
- 32:57double escape and you can rewind back to
- 33:01one of the previous like context
- 33:02snapshots or something like that
- 33:04>> I didn't know that
- 33:05>> res and you can even this one actually
- 33:07double escape is restore the code or
- 33:09conversation from a point before. This
- 33:10is something
- 33:11>> escape. Wow, I knew about I just learned
- 33:13about shift tab I think. I think is it
- 33:15shift tab?
- 33:15>> Yeah, shift tab. Shift tab is like the
- 33:17the amazing experience when you first
- 33:19start using Claude Code like because you
- 33:21actually get to you know determine the
- 33:23plan and the to-dos before you start
- 33:25writing down anything, right? But again
- 33:27like the plan mode hits it limit when
- 33:29you start building right large
- 33:30repositories. And so that's where, you
- 33:34know, writing things down into a
- 33:35markdown for handover really helps. And
- 33:37then specit um really formalizes that
- 33:40workflow because it really puts in like
- 33:42first we're going to get the functional
- 33:44requirements, then we're going to go
- 33:45through it and we're going to eliminate
- 33:47anything that needs clarification. It's
- 33:48literally one of the checkboxes. If you
- 33:50try to run the plan command or the plan
- 33:52prompt, normally cloud will see the
- 33:54instruction that if there's anything
- 33:56that still needs clarification, abort
- 33:58straight back to the user. You need to
- 33:59go clarify. Wow. Yeah,
- 34:01>> but the funny thing is it's LLMs, right?
- 34:03So, so when I do this with codecs,
- 34:06sometimes it sees this and just goes
- 34:07like, "Yeah, whatever." And just keeps
- 34:08going. It's like, "Come on, man. There's
- 34:10It's right there. Don't continue if
- 34:12there's still items to be clarified."
- 34:14>> Sorry if I asked you this question
- 34:15before, but how did you come across Spec
- 34:17Kit?
- 34:18>> Um, how did I come across it?
- 34:21>> Like hacker news or something?
- 34:22>> No, I'm I'm I'm on like a lot of
- 34:25Reddits. I'm on Claude Code Reddit, on
- 34:27entropic, on the OpenAI Reddit, like the
- 34:30subreddits, I mean, and I think it was
- 34:33posted there. I definitely saw all of
- 34:35the like on the AWS subreddit about Ko.
- 34:37I read a lot about specri development. I
- 34:40didn't I was building something at the
- 34:42time with Claude Code and I was quite
- 34:43happy the way it was going. But it
- 34:45definitely resonated with me because I
- 34:46was doing already those handover
- 34:47documents basically define what needs to
- 34:50be developed. I just didn't realize how
- 34:53how detailed the process was. Um
- 34:56>> because yeah so so what what you asked
- 34:58me earlier is like how does this
- 35:00actually work on an existing project and
- 35:01when you need to like adopt things I I
- 35:05don't know
- 35:06>> okay
- 35:07>> because I I started from scratch but I
- 35:09am using it on a large project right now
- 35:11and it is able to add in new features
- 35:13quite
- 35:14>> I think we're bouncing around a bit like
- 35:16I I still don't actually understand
- 35:17where your your specs live. They just
- 35:19live in the specs folder there.
- 35:21>> Okay. So, so the first step is you
- 35:23specify what you're trying to build, why
- 35:25you're trying to build it, and then it
- 35:27will when you kick off that pro prompt,
- 35:29it will create a branch and it will
- 35:31create a folder in the specs directory.
- 35:33And so then you're working on a branch
- 35:35on that specific feature, right? So this
- 35:37is one of the things people mention on
- 35:39Reddit is like how does this scale
- 35:40across a team like how do you keep track
- 35:42of like multiple people and their spec
- 35:44branches? So I also don't know that like
- 35:46this is a question that my colleague
- 35:47asked me when I I showed it to him. um
- 35:50like how will this like do you have
- 35:52everyone working on their own spec
- 35:54branches and so on? How do you
- 35:56collaborate on these branches?
- 35:57>> Um because it's going to be
- 35:58>> I can't answer those questions.
- 35:59>> If it's a fastmoving project, it might
- 36:01be a real pain to to merge, right?
- 36:05>> There might be a lot of different uh so
- 36:07so I think that's one important thing.
- 36:09Aside from the agents, there's the
- 36:12constellation uh which is part of the
- 36:14memory. So it creates a dot. So on one
- 36:16side it creates your commands under your
- 36:18cloud or your agent. So it has the
- 36:20prepared prompts there. Then it creates
- 36:22a special specify folder where it has
- 36:24the templates. For example, when it
- 36:26needs to write a new spec, it it has a
- 36:29very detailed plan template. So again,
- 36:30this is kind of like one shot or nshot
- 36:34LLM usage where you tell it like look at
- 36:36this and now replicate it. Now look at
- 36:38this then followed my example. Follow my
- 36:40example. Right? So it say read this then
- 36:42do this. Read this then do this. Right?
- 36:44So it it follows cloud is great. It
- 36:46follows this structure really really
- 36:47well. Codeex sometimes gives you a
- 36:49completely different template like
- 36:52completely nothing like it and sometimes
- 36:54chip 5 just
- 36:56>> what do you mean
- 36:56>> very nicely follows it.
- 36:57>> It like it doesn't read
- 36:59>> it doesn't follow it. I don't know why
- 37:01Sona is doing a great job but uh that's
- 37:03why that's why I have very dedicated
- 37:05like if I want
- 37:06>> so so what is doing a good job? Sonai
- 37:09>> Sonnet son um is a French way to say
- 37:11Sonnet uh
- 37:14>> Sonnet means a tune or doesn't it or like
- 37:17a
- 37:18>> it's a it's a type of pros I think like
- 37:22if you write
- 37:23>> son
- 37:25>> okay yeah
- 37:26>> so I'm going to I'm going to be I'm
- 37:27going to say this is a French word
- 37:29originally right
- 37:30>> yeah just like
- 37:31>> proson
- 37:32>> uh
- 37:34so you're using four you're using 4.5 I
- 37:36mean when it comes to model choices is
- 37:38are you quite are you picky about it? Do
- 37:40you go son for the 4.5?
- 37:42So this is the thing right these things
- 37:44change so fast um that's why I also
- 37:47avoid MCPS and other stuff like I trust
- 37:50them to provide the best working
- 37:52environment I cannot keep up with it so
- 37:55when they say use Sony 4.5 I'll be okay
- 37:59and they and uh and and that's the thing
- 38:01where a lot of people last week were
- 38:03very upset and because they are kind of
- 38:05telling people not to use opus and they
- 38:07make you blow your budget if you use
- 38:09opus they charge it double right they
- 38:11really want people to use Sonnet and
- 38:13people are like oh Son is not as good as
- 38:14Opus blah blah blah but
- 38:16>> they really craft code and the context
- 38:19and the tooling everything around the
- 38:21model and they're saying really don't
- 38:22use don't use sorry don't use opus so
- 38:25>> that's good to hear because like I had
- 38:27like some FOMO that I'm just not using
- 38:30making
- 38:31>> the right choices but I it has it has to
- 38:33be auto going forward I mean it's
- 38:35>> I agree like it's it's a full-time job
- 38:38like I watch some YouTube channels like
- 38:40go coder who very frequently breaks down
- 38:43he has his own benchmark um where he
- 38:45says okay I've tested Quen I've tested
- 38:48GLM I've tested JGPT OSS uh for local
- 38:52LLMs um and and he goes into great
- 38:55detail and I used to like wait until
- 38:58made a video to actually figure out is
- 38:59there like an improvement is there a
- 39:01significant improvement in his benchmark
- 39:03that would justify me to spend time to
- 39:05play with it and and I've actually
- 39:06started um I mean at some point you just
- 39:10want to get the worked on. You don't
- 39:12have the time to just keep reading about
- 39:14all the LLMs and
- 39:15>> cuz cuz every time there's like, oh,
- 39:17actually you need to use XML now. Yeah,
- 39:19you you should pro you write your prom.
- 39:20Oh, actually YAML is much better. Oh,
- 39:22no, no, JSON is the way.
- 39:24>> I'm sure you're making some crazy
- 39:25examples there. Anyway, I I think
- 39:27>> No, no, that's real. That's real like
- 39:29Reddit posts about this is my JSON
- 39:32>> formatted. Yes. No, it's not a
- 39:34>> that's like that's like a virus. Like
- 39:36you start using XML and then uh
- 39:38headache. Yeah.
- 39:39>> Um
- 39:41Oh, I think you g I think you gave me at
- 39:43least a very good overview of uh spec
- 39:45kit there. So maybe maybe we should we
- 39:48should go back to to uh the value add on
- 39:51Terraform.