Jonas Claesson is a Principal Engineer at Provision Analytics. He’s the toolsmith and chief agent herder for a team of six developers with product managers and UX designers to help. He’s building tools his team uses every day; QA bots that use exploratory testing approaches for each story, commands that automatically compare SQL queries when they change, and generally keeping tech debt minimal. Check out his LinkedIn feed, its been good reading! We have some really amazing episodes planned, and some that we are working to schedule! However, the next episode may not come out on the normal cadence. As always, special thanks to our founding sponsor, Navalia!
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Oh, it's gonna be controversial. I think pair programming as we're used to one person is driving, commands, the other one's looking over the shoulder, making sure it's correct and learning from it, that way kind of broke when you started using multi-agents, right? However, very important to have senior engineers sit with more junior engineers to show how you're working with AI, right? You just assume like, everyone knows all these tricks. I got up my sleeves And also like writing the AI workflows together, I think is also very important.
Because they're so critical. But the traditional pair programming paradigm where you just sit and watch over each other's shoulder, I think that to be replaced different flavor of it at least. I don't think that's sitting side by side for eight hours a day. it's not productive anymore
Jonas Claesson is a principal engineer at Provision Analytics, which makes cloud software to streamline food safety and quality assurance. He's also a Navalia alumni and a ThoughtWorks alumni. He and I worked together at Navalia, actually, not that long ago. And recently, he's been posting stuff on LinkedIn that I really love, the sort of concrete stuff that just makes me smile because it isn't just sort of platitudes or predictions or forecasts. It's like, no, this is directly how AI is changing what I'm doing. talking about wasted providing SQL fixes and how work trees are better than branches.
And probably my favorite was him talking about having his laptop next to him in the car and running Claude Code as he was driving home. So that finish in big refactoring. I am just loving all of this stuff. And I've been working on getting him on the podcast. Today, Jonas is our guest on the Engineering with AI podcast. So, Jonas, thank you so much for being on the show today. We really appreciate it. Thank you so much, I'm very excited to be on. I've been listening to these episodes all along, so it's really great to be on here. Amazing amazing. No, I mean, it's funny. I'm used to talking to you in this exact situation I'm this is my home office and that's your office and we're always talking to each other from the same spot ah
Well, and now that this is my studio it's literally on there every time and it's too bad about last night But I don't know like we'll see maybe maybe Hopefully be I will come back and it will be okay But anyhow, let's let's get past that and into the into the software development Like I said in the bio and in the intro I've been loving reading what you've been talking about, you know, so so much really good stuff We're gonna link to some of it in the show notes What's one of your favorites? What's the one that stands out for you?
Of the articles, m I think they kind of follow a similar theme. It's like how AI, everyone talks about AI just makes code generation cheaper, right? But it also makes engineering rigor cheaper. There's so many things that you can now do to make sure the quality of your software is better. Yeah, yeah. That you could still do before, but most of the time you didn't have time for it. It was just too much effort. But now you can have AI do all these extra checks and tests and validations and everything, right? So I think that's one thing that a lot of people are not talking about.
Because now... And this is a really good time for you too. mean, you've been at Provision now, it feels like just yesterday, but it's actually been a while. Tell me about what's going on there. Like maybe start with a little bit about the business and your role. ah But then, like I'm guessing this has been timely for you guys. So let's start at the top with Provision. Yeah, so it's a big SaaS company that are just in the process of rewriting their software from scratch, make it more scalable and easier to use and everything, right?
uh So I came in a really good time when we were just starting this process and uh we were starting it with Co-Pilot, right? About a year ago, that was kind of the only game in town. Claude was slowly coming along and... It's been just interesting to be able to experiment when you're a small company and you have a CEO is really bought into AI and it's very supportive. We've been able to just go all in on this. And, um, I think I mentioned earlier to you, I think it was November, December last year. just made the decision.
I'm not going to write a single line of code anymore. I'm just going to go all in on this and cloud's going to write all the code for me. And, uh, then the whole team kind of adopted this. So now we have an engineering team of six developers that are. just using agents to write code. Wow, cool. Okay, so briefly, mean, not in exhaustive detail, but like, what's the stack, what language and that kind of thing. Yeah, so it's frontend, react, tanstack query kind of what most people do. Backend is .NET with a Postgres database, a couple of other external services for sending out emails and notifications, it's clerk for auth uh So pretty standard, simple, not
simple, it's got a lot of complexity to it, but. uh also my first guest who's using Clawd with C Sharp. I suspected it would be good. I've had it look at like one C Sharp code base so far, but yeah, I'll be interested to get your take on that. That's cool. Yeah, that's one thing I've noticed that the more established technologies to use, the better the AI is. If you use some kind of off weird library, there isn't that much code out there for the AI to kind of learn from. So if you use these established languages, this does a really good job. Yeah, for sure.
Okay, cool. Okay, so great. We sort of already have to do it. Let's start with you. We'll get to the team and all that. But let's start with you. What, and I think you've already said it. You're saying you're having Claude write all of the code now. So I guess I know the answer. What's your favorite tool so far? I mean, I use Codex as well once in a while, but Claude really fits my workflow. especially I use the CLI and having multiple tabs and just quickly go between them and check on your agents and all the shortcuts and everything.
It just works really well for me, but I'm very tool agnostics. I constantly try out different tools and try not to be too married to one of them. Yeah, I wish I did. I have like a productivity uh quirk about me where I don't, you know that comic where the guys are like, hey, look, it's a wheel. And the other guys have like a wagon that has square wheels. I'm the guy with the square wheels. But I make sure that I have smart friends around who will tell me on occasion, like there really is a better wheel now, Kyle. But personally, I'm terrible at actually making myself do it.
So yeah, cool. So I'm. I'm glad you've tried codecs and those kinds too with you. But like you say, like, Claude's probably one of the better ones right now. That's still holding true? Yeah. changing so fast, you gotta stay on top of this. Well, you know, that's a question I've got. Somebody once said like, but you're switching costs. I don't know. Like if I were a Fortune 500, right, uh legacy business, and I'd spend a lot of time with the salesperson, you know, at Anthropic getting the master services agreement just right
and the statement of work just right and making sure that like, you know, all the language I wanted in there about my intellectual property, maybe I have high switching costs around the contract. Are there any other switching costs? Like I've had like, well actually it wasn't Codex, it was Gemini CLI. Check out a code base that I've been writing with Claude and it just read the Claude MD. Like these are all text files, right? So it feels like switching costs are gonna be really low in the end. How does that feel to you, is that right? Yeah, definitely. can't even, I mean, we got a lot of custom Claude workflows, but they could be easily recorded.
There's just some things how a Claude deals with work trees and how they enter different work trees. you start them, sure. We've got to figure out how to do that in Codex, but in general, it would be fairly easy to switch to anything else. And we're actually using Codex as well. And we'll come to that later when we talk about the PR review, because we use both Claude and Codex and then we have them. battle each other. Nice, nice, nice, nice. Okay, in one of your other blog posts, you talked about using the Ralph Wigum And this reminds me, I played around with Gastown, which is kind of similar, it's different, but
it's kind of trying to get you to that like uh unattended operation. And I think that's what the Ralph Wigum was trying to be all about too, is give it some exit criteria and let it just churn. So that's cool that you've been playing with that. A lot of people are, you know, reading about it but not necessarily doing it. Yeah, I was just waiting for an example where I could apply it, to be honest. I had a perfect scenario for it where it would fit the sweet spot of when to use it. So we have all these integration tests for all our API endpoints, hundreds and hundreds of them, right?
And they all insert seed data, calling the API, inserting the database, and then calling these endpoints to list and filter after they've inserted data. Obviously not very optimized, right? Because you have to do a lot of inserts and you... Not that great because you won't have that much data in the database either for all your list operations and filtering and stuff like that. So the obvious solution to this is just, hey, let's just load a database with some read-only seed data for one organization. And then anytime you need to test like a GET operation, you just work against the organization, like the read-only data.
um Before AI, that would have been sitting on the tech debt column a long time. No one wanted to touch that. That's like a week of misery of someone just figuring out every test Okay, I need to move this into this seed data as read-only. So what the Ralph Wiggum technique does, it's... It basically takes one test at a time and it starts with a fresh context. So you're not going to start hallucinating because this was running for hours. So we just take one test and then keep a list of all the tests it had to do. And every time it runs in this loop, takes the next test that it hasn't processed and figure out how we can uh add more seed data to satisfy this test.
So it didn't have to do all these inserts. So it probably cut off like a 30, 40 seconds off every PR that had run all these integration tests. Wait, wait, wait, wait, okay, so I followed a lot of that. the Ralph Wiggum loop had like a stack of tests that it had to go and figure out what seed data to create how did that shave time? manual inserts as part of the test, it just had like in the database already. Like it was just a big insert in the beginning and then all the tests reused that data.
so this was about accelerating your continuous delivery build times. Yeah, just refactoring all these tests, which is such an unpleasant thing to do manually. But with AI and Ralph Wiggum, that's another thing that's very important, this feedback loop, by telling it like, when is the AI done? Just don't tell it like, hey, go do this. What's your definition of done? How do you verify yourself that you're done? So how much time did it shave off the build? of maybe 30-40 seconds off a 2 minute build. So it's pretty significant. cow, so that's a big percentage-wise decrease.
And to your point. in like less than an hour. And then it just, that was a Friday evening. just, Ralph just kept going and going. I can't imagine facing down a product manager or engineering manager and try to say, hey, we've got this thing we want to do. It's going to take a week, but it's going to save 30 seconds per build. It's never going to get greenlit. But now that it's down to an hour, you don't even ask. You just do it. So yeah. OK, cool. like our tech debt is so small because you don't have those things that you don't want to touch like anything is pretty doable now like
Right, right, right, right, right. Well, I think that's smart what you're inferring there is that you use the speed, the time that you get back from the speed, you're not using it to just make more product faster. You're using it to pay down tech debt too, right? So I think that's an important part of what you're saying there. where people get it wrong and it's very tempting. What used to take four days, right? If it takes a day now, you've freed up three days. It's very tempting. just like, I'll just grab some more stores and just get more functionality out. That's what gets you in trouble. You have to take that time to invest in the product, pay down tech debt, write more tests, figure out any way that you can just make things more stable and smooth in your...
deployment pipelines wherever you need right just you have all this extra time like use it wisely Yeah, okay, so one of the questions I ask everybody is like, what guardrails are you putting in place? And you kind of hinted at something around Codex and PRs, maybe this makes sense to tell this story now. Yeah, I hear a lot of people complain about agents doing PR reviews and to some extent they're correct. Like if you use GitHub Copilot and it's reviewing any PR in Git for you. We always joke in a team, it's almost like GitHub Copilot is this guy.
I found this issue. I found this issue here. It just tries to be so helpful. And like every little issue is like top priority, right? It doesn't have this broad context and really narrowed down on like these are the things you really need to fix. These are a lot of nitpicky things. So we have this workflow now where. Every developer runs a custom Claude command called PR review, where we have the very opinionated. I think this is the key. You need to write a prompt that's very opinionated. This is the things we care about. Don't just give it like, Claude, you figure out the review. This is what we care about. We care about Low complexity, don't duplicate code, don't try to introduce new frameworks or patterns.
Keep it simple. Look at the rest of the code base and be consistent, right? So it's this prompt that is super opinionated on how you build software. So we run that first. it always categorizes like a must fix, should fix. or like nitpick stuff, right? So, developer runs that, the entire team runs it, and you go ahead and you fix those issues, then you open a PR in GitHub, and then we have a GitHub action that calls Codex, and it kind of does the same thing, but a little bit different. So Codex runs the same thing then, And surprisingly enough, it finds stuff that Claude misses.
It's more focused bugs and stuff like that. And I can imagine that you also put this in your Claude.md to avoid these kinds of things. So it missed it the first time and it missed it the second time in the Pulled Request review. Yeah. And then we have another command, right? That pulls the Claude comments and the Codex comments and it kind of gives you this unified view. then also super opinionated, it tells it, okay, be honest, now Claude. Go through your comments, go through Codex comments, which one should be fixed? And it's surprisingly good. And I usually agree with it.
Wow, so it's reading its own work, it's reading Codex's work, and then it's coming to you with a final opinion, which you then validate and say, like, yes. OK. Huh. an interaction with it. Okay, tell me more about this one. What do you think? Like, and then I tell you, okay, go and fix this. So then we have two rounds of code reviews by AI. Then we assign a human. So, cause that's always, that's the bottleneck right now. It's the human review. So we're trying to just make that as smooth as possible. So it's more of a quick sanity check, right? If I look at a PR. I might look at which data migrations, which new endpoints, like stuff that matters.
I'm not going into the nitty-gritty things and like, you used a for loop there instead of a for each. Claude already took care of that, right? So I'm more laser focused on certain things. So it sounds like a fair amount of the guardrails here are getting rid of false positives, like trying to prevent it from telling you stuff that doesn't matter. good is it at finding stuff that does matter? I've been pretty impressed by it so far. way more than like we used Copilot originally, like we still had that Claude view and then it went to Copilot and Copilot we just find all these like little things that didn't
really matter. It was just so much noise, very little signal. But yeah, It's always about tuning these context files as well, right? Like this, prompt if there's things that's missing or if you think it's focusing too much on one thing, we'll go and tweak it a little bit to make sure it aligns with what we value as good quality code. Yeah, okay, but it's still finding stuff, right? If it weren't finding anything, you would have like turned it off by now, I imagine. Yeah. ship a PR without Claude finding stuff and Codex usually finds one or two items as well. cool, cool. a huge difference.
Like everyone on the team, when I look at their PR, even if they're more junior engineer, like before it would be like a learning experience, right? You find things and try to teach them as a whole back and forth. Now I look at a more junior PR and it's solid. It looks like a senior engineer wrote it because they've been guided by all these context files and, AI automation workflow that they're using, right? To make sure that their code is like aligns with exactly how we want it written. Cool, cool, okay, you're talking me into it. I'm actually at the point where I'm like, I just don't do them at all. I'm not doing PR reviews.
I mean, for me, it's a one-person show and it's a pre-revenue startup, so that's an easy decision to make. This is a side gig, it's not even my day job. We're obviously not doing that in enterprise. In enterprise, there's still PRs going, right? So I'm thinking about teams that I know at work, right? That could use this, Actually, you know the team I'm thinking of too. So one of the developers on this team, developed a similar kind of bot that is all aimed at Snyk vulnerabilities. So it goes through whatever Snyk is reporting, and it finds any vulnerability and fixes it.
And one of the things that they sort of tacked on is they made sure to run their end-to-end test, which you know the E-to-E test I'm talking about. It was kind of broken all of the time. But now that we have Claude, it isn't. And so it's actually kind of useful. And so it's been a nice tie-in to have it. reduces the effort with keeping us up to date and its new vulnerabilities, which is kind of cool. But we don't have your PR wizardry yet. So I'm going to tell them about that. Awesome. I play with it. I've been surprisingly impressed with it because you think like you have Claude write all this code and then at the end of it, you tell him, okay, now go review it.
Like it already told you, like, he's not going to find anything, but it does because it kind of takes a step back, right? It gets a new prompt. It looks at things from a different perspective and it finds stuff all the time. And a lot of times it will find bugs that I would have never found, right? Like little things that are very easy to miss when you manually look at them. I think superpowers, which I'm using right now, one of the Claude plugins is it is finding a few things. I think it does a little bit of what you're doing, but it's not nearly as elaborate as what you're describing.
Okay. Fine. I'm convinced I'm going to try it and I'm going to tell the teams to try it too. Okay. So let's get back to you guys. so we talked a little bit about you and we've talked about some of the experiences you guys have had. Let's get into the teams that you're serving, right. you've probably been there for the arc here. How has product management and story breakdown changed? When you think about how provision works, do you have product managers that write the PRDs and then with Claude and then Claude takes the PRDs and turns them into stories? Like what? Probably not, right? Like so, but what has changed with both product management and story breakdown and things like that?
The whole company uses Claude across the board, even product, customer service, everything. So it's very ingrained in the company. One thing I've been thinking about related to story refinement, which we don't do right now, the first thing we do when we start a story is we have like a custom Claude command, start PR, you give it the ticket number, it goes to linear, it grabs the whole description, any figma designs, any attachment, anything it needs, right? And then it starts querying you about gaps. Like if this thing's not in the story, because it had access to the story and the code base, so it knows like, well, you didn't tell me about these three items.
And that's the developer doing that right now. I will tell it the gaps in the technology, but if there's like business requirements that are missing, you will kind of tell me about that. And I have to go back to the product owner. It was usually super fast and will tell me right away when I, when I slack him. But it'd be cool to move that up before the developer touched it. So the product owner could run some Claude command that access to code base and help him refine, like tell them, well, developer can't start working on this because you haven't defined what happens in these scenarios, right? if you archive this employee here in the system and then you go here and let's see, should it show up in the dropdown or not?
Like this, all these things that could be refined before it even hits the developer. Right now we get it on the developer. It's not a huge thing, but it would be nice if it was just like completely refined. We pick it up and Claude has already filled in the gaps before the developer even touches it. That's fantastic. Yeah, honestly, that's the kind of thing that I've like waiting for and it you're one of the first people that's actually called something like that, you know, to have it as glue between us. What about? to go work on another half of this to be honest. Some like a refined ticket, just give it a story and it will basically go and update your linear based on your answers when it's kind of telling you what's missing.
Nice. What about architecture and planning? To be honest, in a startup, I mean, it helps a lot with just prototyping different architectures and validating them because it's so quick to just spin up different solutions in architecture. Working for smaller company, it's not as big of challenge as working for big enterprise where you have... a zillion microservices all over the place and different things, right? Like we're a pretty lean team but we recently had to figure out how to do analytics on our product. And it was very good to just kind of like, hey, show me all the ways in which you can do this.
We actually have a very complicated analytics problem because all our data for all our customers, all our customers, they can create their own forms and they can create whatever fields and grids and tables they want, right? So nothing is predefined and you can have multiple versions of that and every customer is different. And then we need to get that into a warehouse and expose that as like a flattened out structure. we actually met with our Microsoft representative. He was going to demo fabric and he was like, look at how good this handles JSON. And we told him the challenges we were facing and he like, almost felt like he was starting to cry.
Like, have no idea how this all this. But with Claude you can tell it is problem. like, it frankly told it, there's no product out there that can really solve this for you. But here's a couple of ways you can do it. And we actually came up with a solution fairly quickly that was able to like extract all these completely unstructured JSON that are different for every client into like a unified data warehouse that is being updated and depending on the structure and the JSON and the schema. Wow, cool. Did you end up using AI agents as part of that pipeline?
More just to come up with the solution and to build like the custom code to make this happen, which would have been a lot of effort. it was also really good to have AI there because it's very easy to test with AI. can just tell that, okay, you built all these new views in the database that are like the flattened out structure. You just go and compare every single view with the original JSON document. know it's going to, like, that would be horrible to do manually, but. yeah, yeah. this is the kind of thing that software developers would have thought about for, well not thought, but debated about for months endlessly about like, wow, I can't do it that way,
it'll never work because I read in a book once and somebody else will have, oh, I saw something in a magazine about such and such and well, it be a magazine. But you get the idea. It's the kind of thing that people would have debated endlessly and never started because we couldn't agree on how. But to your point, you can just sort of like wade in and say, like, what do you think? Just go. it's not a lot of cost. Yeah, just the cost of prototyping. Just do it this way. Let's try it. Let's see how that works. Oh, let's try it this way. You can do multiple prototypes. You just didn't have that luxury before AI, to be honest.
And just all the the QA can do for you. I just like, just spend the week and just go and like do extensive testing on all these things I built, like, chug through the data. What other changes are you seeing in software development? mean, this is kind of like all about software development, I know, but like at the actual like dev time. mean, it's really changed how you work, right? Like it's, you're an AI coordinator now. You're not a software engineer anymore. You're more guiding your agents and having them do the work, reviewing their work, changing their context file to make them work exactly what you want.
Yeah, so that's essentially what we've become now, you know? Right, it's changed the role, to your point. Yeah, absolutely. Yeah, I think the rigor and the engineering now isn't about the for loop or the for each loop or the while loop. It's about this. It's about how do you make sure that it doesn't make that mistake again. Okay, what have you seen in testing? How does it change how testing works? that's a big one as well. let's start from just locally when you're testing, right? It's so important to tell AI what is considered done, like I mentioned before. If I write a new endpoint in API, I always tell, okay, don't just write the code.
This is essentially the integration test I want you to write. and it's just going to send this data, it's going to do these assertions when it comes back and just keep working until this passes, right? And like, don't just tell it to go right and then I'll test it. Like you have to tell it when to stop. And the same thing on the UI side. I do this all the time. It's like, I could get AI to write some code and then open the browser and click around, make sure it works. But I always tell it like, hey, launch the Playwright MCP. You already know the story. You have all the context. You know what you have to test.
just go and do it. And people think, oh, well, it's really slow, right? When you run the player at MC through Claude, it's kind of slow because it needs to navigate. needs to figure out which buttons to click. But it saves a lot of time because you don't have to constantly tell, oh, it's not working. I'm not seeing the button, right? When Claude is navigating MCP and it's going through the DOM, it knows it has all that context. So you can quickly fix it and then go and click through and figure out the UI again. So one question about this, and this is like a literally naive question. This is not like me trying to be a smart interviewer here.
When you say, like, come up with the specifications ahead of time, like, this is what I want, you know, that test, that API to return. Are you sitting down, like in Visual Studio, and, you know, and writing out your JSON response that you want to see, or are you working with it to develop those specs in the first place? Yeah, I'm working with it. I'm just telling like, hey, I want to send these parameters. It's all in the prompt usually. Same thing with the UI. I think when I hear people say, like, you just need to give a good exit criteria, I'm like, yeah, but I don't know what that is.
So I just keep going with my square wheels. But to your point, you're sitting down with Claude to come up with what the exit criteria would be for it. Yeah, so that kind of covers the local testing that you do as a developer. I mean, it's also said that it was so much cheaper to have Claude just go and do extensive testing because you don't have to constantly babysit it. You can just go off and try every single scenario, right? Like manual testing, and you're going to give access to your local Postgres database. They can go and check records there, you know? So that helps a lot.
Yeah, 100%. The second piece is just writing all our E2E tests and integration tests. It's just become so much easier now. I think integration... things stable and trying to keep them not flaky, 100%. It's still a problem, to be honest. Still a problem. Even back in the Selenium days, Cypress, we're using Playwright right now, but it's still a challenge that sometimes when it runs on GitHub Action, it's just running on a slower machine and there's a timing issue and you have a complex UX.
So that's still an issue, but we need those things that run on every PR to make sure our system works, but we can't obviously have E2E tests for Playwright for every single thing in the app. So then we have a nightly job that runs and covers the other things so it doesn't hold up every PR. But now we're also experimenting with having these like... QA bots that just run on laptop like all day long and they're not using like written playwrights. So they're slower. So they're more kind of discovering things in real time.
So they're real slow, but they're very reliable because they can like kind of self heal. So if you move a button, it can figure out, the create button is not there anymore. Like whatever you did, a test ID gave it, but. it can kind of figure out in real time, oh, it's not great, it's new now. You just changed the name of it or something, right? So it can, it runs really slow, but it's a lot smarter and more robust because you can kind of self heal. A lot of these QA AI tools are out there. They all claim, it can self heal. Yeah, they can, but they're all there. It's more marketing than actual reality, to be honest.
They're still very cumbersome to use. The ones I've looked at. Okay, so I get like MCP in a terminal, 100%. I think we've all done that one. I get MCP with Playwright running in the daily to double check everything and running in the GitHub action for every build. I totally get all of that. This last bit, like when you say like running on a laptop, do you a developer's machine or some other way? We're setting up like a separate laptop. We're just experimenting with this. So it's just you're checking out the latest build and spinning it up and just error guessing, sort of exploratory.
testing. It's like a compliment, right, to our E2E where this bot can just go through our app and kind of look at the story and kind of like figure out if there's anything missing. So it's not like, it's more. by story. Yeah, but it's more like we don't tell it exactly what to look for, right? It just looks at the story and it tries to figure out what to test based on that. Super slow, we're kind of just looking into it now and see if we can make that work. Because this is really nice compliment to what we have already. So I don't know if it's going to work, but we've done some experiments.
seems to, it's just the speed that's involved. Yeah. What about debugging? Oh, that was the last time I opened that debugger. I can't even remember. uh That's what I mean. That's really good at it. Yeah, it's incredible, especially things that were really hard to troubleshoot back in the day. You have some race condition, you You could spend hours just pulling your beard thinking, what's going on here, right? You just give Claude as much information as can. Any logs, any information that happened at this time with these two users were used in the system.
This was the data that was in the database. Just throw as much information at it as you can. And most static code analysis, it can figure out, oh, I found this race condition right here. And bugs, same thing. It's incredible if you just give it all the logs, all the data. It can usually just figure it out for you. I feel like it's faster at reading than I am. so that's, usually if I've got like a production issue, I'll queue up Claude and say, go start to look at this, this is what I'm seeing. And then I'll try to like race it and I never win. But sometimes I will catch the occasional detail that I'm like, oh, I should tell it this, it might not have seen it yet.
But it will still win. But I still work with it, you know, but it's like I'm its little sidekick. Yeah, it was most of the time. I was so happy the other day, or was a while ago, when I did actually beat Claude to the punch. I was like, I found a bug while he was looking at it. Missed it. Nicely done. OK. What about integration? And here, I'm thinking about not like your CI, CD pipeline, you know, and that kind of integration, but more like, OK, there's a new partner API or a new product that you're getting access to an API or a department you don't normally talk to, like that kind of integration.
What are you seeing the changes there? I mean, since we're all one startup, don't have too much experience with that. related to that. Like when we deploy a new version of the API and then the new version of the UI, we always have to make sure that the UI works with the old version and the new version, right? Cause people are not gonna instantly refresh their browser to get the new version. So that would be kind of similar where you need to make sure. what you would use contract testing for and things of that in the past. There's a lot of things you can do to just tell the AI just like, okay, this is the version running in prod, this is version running in staging. Just basically go look through the commits and just figure out, hey, is this new version gonna break the UI that's currently running?
It's found it incredibly helpful. It's caught so many issues where it did break it. Yeah, like, just go through, Like all our services has like a slash build endpoint. And it'll tell you this is the Git commit that's running currently. So AI will go and fetch that and then it can just go into your Git repo and figure out, these are the commits that are new in the new build, right? Versus what's currently running, what new endpoints have been added, are any of those going to break, right? Which is tedious process to do because you need a lot of tests around that. And if you just have like one UI, you're not going to have.
that extensive UI test that you test every single functionality for every version and making sure nothing breaks. So it's caught so many issues where we were like, okay, no, someone just renamed something here or had to do some change here and it's gonna break the UI. So, which is fine. Maybe that was what we wanted. We don't want to, we wanted to kind of clean up, but at least we have to do the deploy off hours. Because it might be split second where things are not working properly. Awesome. guys are going really deep. I'm loving your answers. Okay. um What about refactoring?
What do you see in there? I mean, a lot of people saying refactoring is dead, can just regenerate. I would say refactoring is incredibly cheap now. I think my only opinion on that. I'm not in a camp that you should just regenerate from spec all the time. Maybe we'll get there. a maybe we get there kind of thing. That seems very aspirational to me. how good a spec would you have to be writing to get that to be, yeah. Like every time, even though you have a really good spec, you're still making decisions, telling it what, cause the spec is usually very business focused.
And then you have, you make design decision and coding decisions with Claude back and forth telling it, okay, this is how I want to structure it. I want to use this kind of pattern. Right. That usually doesn't go back into the spec. So when you regenerate the next time, you're going to answer those same questions, right? Maybe one day. yeah, yeah, yeah, yeah, yeah. But to your point, you find it cheap now doing refactoring. So you're doing a lot of it, I guess. Yeah, I mean... Especially, yeah, I mentioned tech that before, right? When there's things we missed or things over time. not sort of academic refactoring that I'm hearing.
I'm not hearing like, I think we can improve this kind of stuff. I'm hearing more like, yeah, there's a tech debt over there that slowed us down. Kill it. Make it never slow us down again. Very sort of pragmatic tech debt approach is what I'm hearing. Yeah. Yeah. find. Like, you start one way and it kind of gets bigger and bigger and then, wow, we gotta redo how we did this, just to make it perform. And it's just very easy to do that and then still have it like, okay, does it produce the identical result to what you had before, right? It's so easy to have it do all those tests afterwards to verify that, your refactor is good.
Yeah, and like with debugging, I find that it's good at finding what the performance problem is really quickly and quickly putting together quick shim tests to see if it actually helped. yes, we could have done all of this before, but like it just gets faster. Yeah. Yeah. I was mentioning before with the whole SQL performance that I got into. I that's always been a tool available. I used to always read like explain plans and stuff like that for really critical things, right? Cause it takes a long time. Like you need to go get these SQLs and get it run for the query plan and then figure out what all these things mean.
now you can do it so easily. And also to explain the query plan, right? That takes a bit of talent too. Yeah. Let's go into that one. That was one of the articles you wrote. And if I remember right, you were talking about having built like a skill or an MCP, something that sort of. custom command. You basically give it an endpoint name and it knows how to test that because every endpoint has an integration test. and it's not too so much about like, okay, run this with millions and millions of records in the database. It's more just about like, do static code analysis.
So if you have your entity framework code, you can very easily go and say, okay, you're joining all these tables. and then you can even kind of give it, okay, this is how many rows are in these tables usually. so what the command does, it runs this endpoint in your branch and it records uh the static analysis on how you interact with the database and it checks the query plan and then it checks out your main branch and then it kind of does the same thing and then it kind of compares the two and it says, You are overfetching by this many thousands of records. You're joining all these tables that are not necessary.
ah And it just gives you a really good side by side comparison in like a minute, which would have been so tedious before, right? You basically would have waited for performance to get bad, to run like one of those tools. you, we all. the database with tons of records and you would just test it like, it feels quicker. Done. Yep, And that's another one that feel like I really ought to try out. uh God, we're going through the list really fast. How do you feel like it's changed pair programming, mob coding, these kinds of things? Oh, it's gonna be controversial.
I think pair programming as we're used to it, one person is driving, commands, the other one's looking over the shoulder, making sure it's correct and things like that and learning from it, that kind of way kind of broke when you started using multi-agents, right? However, very important to have senior engineers sit with more junior engineers to show how you're working with AI, right? You just assume like, everyone knows all these tricks. I got up my sleeves and work for some of what not.
I think that's important. And also like writing the AI workflows together, I think is also very important. Because they're so critical. Like everything you do now is around a couple of different commands that we always run as part of our process. So I think that would be very important. But the traditional pair programming paradigm where you just sit and watch over each other's shoulder, I think that to be replaced different flavor of it at least. I don't think that's sitting side by side for eight hours a day.
it's not productive anymore with with Gentoo AI. Right. So listeners may have heard me talk about how the ThoughtWorks approach to pair programming. It was literally that. It was like 80%, 90%. You sit down for three hours in the morning and pair program together. And you go have lunch. And then you come back and pair program for another three or four hours together. So you're, yeah. to be honest, I thought it was exhausting. As an introvert, I like putting on my headphones and like get into flow and code away and to sit and talk to someone for eight hours a day.
I was always exhausted. I have all the value though. Like it really brings a lot of value sharing the context, right? Amongst two people and constantly have a sounding board. But that's the thing, now AI is your sounding board, right? Right. I asked uh so many questions every day just to learn and challenge me. Like, this is what I think, like come up with a uh counter argument to how I see the world, right? Yeah, yeah. I love that. I love that. Wait a minute. What are you asking it for counter arguments about?
I mean, anytime where I'm just like, hey, I built this feature a gazillion times in the past. This is how I would do it. Right. Challenge me on this. Is there a better way now? Right. Cause I, cause I've been doing it the same way for the last decade. Doesn't mean that you're it. Right. Cause sometimes you have that, right. was working on a impersonation feature the other day. Right. I built that one. That's the third time I built that one in a SaaS app. Like I just like, I'm almost on autopilot. I know exactly what to do and what challenges to face. So. I always want to make sure that Claude is keeping me honest there.
This is how I've always done it, but it's a better way now. OK. So impersonation here, I think you mean like software as a service where it's like, OK, I'm customer service and I want to be able to log in as Kyle. Yeah. Yeah. Yeah. And that way I can service your account or maybe I'm trying to figure out a bug or whatever. OK. Right. So that's the kind of thing where it's not like, oh, you know, it's such and such method in the base class library that does that. You're looking for an entire approach. Yeah.
So you guys have been doing this for a while, you said. Like what size of team are we talking about? Yeah. started first kind of like evaluate this, how feasible is this to just like go all in on this, right? And I quickly realized that this is really working. Like, especially if you use that time you gain to reinvest and put these guardrails in and make sure the quality is there. And... The rest of the team has been really great. know the whole team has just picked it up and everyone is just using Claude and multiple agents.
And we have all these shared AI workflows and context files and everything. it's, I think it made it easier that the rest of the team was very, was sold pretty quickly. didn't have much research. Yeah. yep, got it. it sounds like you guys are working on developing these things together, right? Which makes a lot of sense. I mentioned superpowers earlier, but when I added it to my Claude setup, it started doing weird stuff. It started suggesting pull requests. And I'm like, there's just one of me, I've never done a pull request, we're not doing that. So where did that even come from?
So I can imagine that a team working together, you'd really wanna do a ways of working session almost around like what do we want it to do? how does that work for you guys? Is that like a weekly tech huddle where you're kind of going through Claude MD together? how does it work? We have a weekly tech meeting. We could probably be better. A lot of this is coming from me. I'm pushing a lot of these things, but other developers are adopting it and using it. But I'm trying to get other team members too to contribute more to these files.
Especially people are really good at certain things. we got a UX or UI engineer on our team. They're really good React developer. I really like tell them, please go and add things in the PR review command. Go and add things in the Claude MD. Like we need your expertise in here because you're really strong on this. So you're sort of the tool smith on some level. You're the one, the agent herder, in a way. Yeah, I'm trying to, but that's, where I think, yeah, like I'm a weekly mob session or something where we just like review all these tools on a continuous basis.
That's probably a good idea. We just been running so fast here. Like we sometimes we just got to take a step back and like, uh yeah. okay. So it definitely sounds like you're bought in. There's no hesitation in the way you're talking about it. What kind of improvement do think you're getting out of all of this? It's a lot. I mean, we started this project the first four or five months, we were just co-pilot a lot of manual coding, right? um So we have the velocity back then compared to now.
I don't have the numbers in front of me, but I'm saying it's like probably three to four times the number of points iteration easily. Wow, wow, wow. OK, and using a similar points currency that you do today. Yeah. it. We switched from target process to linear and linear doesn't have 0.5 points on stories. We had to like switch everything up a little bit. So that affected our scoring, but still it's a huge improvement. Yeah, And that lines up with what I'm hearing from other people as well.
And it definitely feels like what I'm seeing personally too. What do you see this do to ratios? Like six developers, like what's the complement of testers, product people, business analysts? Like do you have much of that, UI designers, or is it all devs? Yeah, we have a UX designer, which is really helpful. She does all the Figma designs, which then Claude can pull in when it builds a story. Super helpful. We have a product owner, no QA, so we have to make sure we write a lot of tests ourselves. I think it would be helpful to have like a QA that's outside of the team and can use AI, whatever tools they want to just...
separately from the team, right, all these tasks and figure out whatever ways AI can be used. But it's been working pretty well so far, even with just the tremendous amount of features we're pumping out every week. Okay, so that ratio then, six devs, one product owner, is working out. Do you feel like you could add two more devs without adding another product owner? Or you could add a product owner first? How do you feel about how that part works out? That might be hard. think we feel like we're a very big team at six developers with everyone using agentic AI.
Yep. Got it. So to your point, you wouldn't necessarily want to get anything bigger. Yep. so. It's a lot of value of having a small team, to be honest. just keeps the cohesion and adding more developers is not going to make us go faster. You can actually make us go slower because then there's just so much, like keeping everyone on the same page gets harder the bigger the team you get. If you got a small, tight-knit team, it's very powerful. Yeah, 100%. And it kind of allows you to stay small. Like it takes away any pressure to get bigger because you can go so much faster.
Yep. a startup. We're replacing the original product and then we're also building all these new features. we're in this phase now where we just like we're building so many new features. We're going to get to a phase where it's going to be more maintenance, right? And we're six developers and we're reaching all our goals in terms of like deadlines and timelines easily. So yeah, six developers. a good team size, I think. Yeah, yeah, yeah, I'm with you. Okay, cool. Has this changed how you hire or staff, how you train or mentor?
we haven't really hired anyone since we kind of went all in with AI. The hires happened before that. like how we mentor people is interesting because it's so easy for anyone now to learn any part of the system just by having a conversation with AI, right? And we try to keep a lot of these context files with very domain specific things in our code base. not just like you ask about the code, we can also ask about how the product worked and all these more areas of the application. More if you can just sit there and like have a conversation about it's kind of reduced the need for constantly be asking other developers how the system works.
So another question I ask How do you enable teams? mean, that sounds like you're part of your role, at least, is to sort of figure out how to use these tools. do you just go to somebody's desk and say, like, hey, this is how we're going to do it now? I mean, looks like you guys are remote because you're in the same remote office you were always in. So how does it actually work when it comes to it's time to bring a team to speed with a new approach? We were actually in an office, but people are only in Mondays and Wednesdays. And it's a long commute for me, so I'm here the other days. a lot of it is coming up with these shared AI workflows that we can all agree upon, and then just getting the team members to use it.
And that's been the biggest part. hasn't been that big of a challenge, be honest. It's just a couple of Claude commands that we're just using religiously. Yeah, just having all these like, color details. of like push the command into the code base and then like what show up on Slack and be like, hey y'all, there's a new command. Pretty much. Yeah. And not forcing it. There's a couple of things like the PR views. That's like everyone has to run that. But there's tons of other commands too. Like you can use it if you want.
If you want to come up with your own commands. Just go ahead. Like I don't want to force it on anyone either. Like if you don't want to run multiple agents at the same time in different work trees, I'm not going to force you to do that. But if you want to, there's a start PR command and it will do all these things for you. Set it up for you. Copy all the files. Right, but yeah, it's optional. it came time to choose, mean, you've already talked about how Claude is really working for you guys. Was that a conversation?
did everybody else want to go try out Codex or try out Gemini CLI or WindSurf for something? Or how did that conversation go? there wasn't a lot of pushback. mean, especially at the time, Claude was ahead of Codex, I think. Now they're more equal. And people just saw me working with Claude and what I was able to accomplish. It was a pretty easy sell. So the entire team now has a Claude Max subscription, which I think is incredibly cheap. I don't know how they can sell it for like 140 bucks a month. I run multi-agents all the time and I barely never hit any limits.
it's probably just a matter of time before increase the fees for these tools, because we're gonna get so addicted to them and then they're gonna charge $1,000 a month and we're like, okay, it's still worth it, just take my money. My hope is that Genton can make the GPUs cheaper and so the cloud fees can, yeah, I mean if we can reduce their cost structure then their profit margins are already gonna be huge. It's just a matter of making sure that the costs aren't too bad. so we've sort of covered off all the questions that I ask people around like how Gen.AI is changing their work and we're kind of getting into the more
questions that could be about anything. Could be about work, could be about personal life, could be about just anything you want to cover. What is something you've had to change your mind on? Something that wasn't intuitive at first. You thought it was going to be this way and it turned out, nope, was something else. I think, I mean, obviously just having AI generate the code, thought that would never like, no, it can't generate all it. Especially using like cursor early on, I was really turned off by that experience. It would just go and generate all these files. It poor quality and I didn't like it at all. I like I had no control. So for AI to just write all my code, I thought that's never going to happen.
I'm never going to allow it. And it's hard for anyone, spent all your life figuring out to be a good engineer and a coder. And then you have this tool that just does everything you spent decades and decades learning. It's, I'm not going to lie, right? It's a very hard thing to accept, it doesn't help being denial about it. And this is the way things are now. What's something that you're most proud of? I usually recall this story because it's kind of interesting. How I got my first job was when I was in university and it was right during the big IT bubble burst.
It was in 2001 I believe, it was my second year I somehow managed to land a job, when there was like people with 10 plus years of experience looking for a job. And I'm still puzzled how I managed to do that. And that then turned into like a 20 year engagement with this company where I essentially took over entire software stack and I was the only developer and I ran this SaaS business as a side project for 20 plus years. I thought that was a pretty interesting story because I still puzzled. I think I had very high confidence back then.
Because I remember the hiring manager was just, I have guys here with 10 plus years experience, why would I hire some university student, second year of university. I said something to him, just give me your hardest problem, I'll just go and solve it for you. And I ended up doing that and I showed him something. They were so impressed, they yeah, we'll hire you. that engagement for 20 years. was pretty interesting. wow. Yeah, I just gave it up a couple of years ago. was a fairly large SaaS app. It worked out really well because later on, this was back in Sweden where I went to university and I then moved to Canada and I couldn't work for the longest time because it
took so long to get my work permit. It took like seven months where I was just sitting in limbo, running out of money and they approached me and asked me like, hey, could you like rewrite our whole app it was desktop back then. So they wanted like a SaaS app and like, sure, I'll do it. And it just worked out so perfectly. I could work for them while I was waiting for my work permit. I would have run out of money. And then I maintained this app for 20 years, which was a very interesting experience because very few users and still work on other full-time projects during the day.
Just to see a codebase evolve over such a long time. And I had to do a complete rewrite of the UI, I think, two times. Just because like every seven years, think you got to do a UI rewrite. That's always something I keep in my head. But the backend was kind of the same. It was a Java backend. It just kind of got tweaked over time, but it was essentially the same code base as 20 years ago. Okay, hopefully you moved off of struts onto something else at some point. Just just guessing. Yeah, so it's small updates on the backend, but like big rewrites on the UI, because UI changes so quickly. I think you have to do like almost a quick, complete rewrite every seven years.
That's what I have in mind. that. So every seven years you just gotta rewrite the UI. That's good advice. Yeah, I'm sticking with that. Okay, so what's something that's giving you joy right now? Outside of work or? oh workaholics. So, you know, it is what it is. Yeah, I've kind of fit in that camp a little bit too. I need to work a little bit less. One thing that's really bringing me joy, I know you've seen these pictures behind me. I put these up a long time ago because I wanted to go up one of the mountains here called Mount Temple.
It's one of the tallest mountains in Canada. So I've been training for that and I finally did it this summer. It took me two attempts. I failed the first one because there was too much snow, even though it was middle of summer. We just got hammered with snow and it got way too dangerous once we were like 70 % up the mountain. But then I came back a of years, sorry, a couple of weeks later and it was a beautiful day. It was no snow. just a little bit on the top and yeah it was a 10-hour hike to get up and down but it was was incredible that brings a lot of joy and I just come back from Utah where I was last
week hiking in Zion National Park which was an incredible experience so yeah the outdoors bring me incredible joy oh I have not been to Zion yet, but Monument Valley in southern Utah. It's just beautiful down there. Holy cow. Yep. Awesome. Jonas, thank you so much. This has been great. Thank you for having me on, it's been really fun.
I'm going to pause for a second. Can you hear my dog barking in the background? I used to record in a studio So now I'm doing this out of my home studio. am I gonna do? How am I gonna my dog to stop barking? Okay. They're both rescues. But it's always the one that's barking. She's kind of got a Jack Russell terrier kind of thing to her. No. She stopped.
So I'm going. think my wife just got home. I think that's part of why this is going so. But I'm gonna try to just keep going.
Kyle Hodgson talks with Svet Bajlekov, co-founder of AMMP, a monitoring platform for commercial and industrial solar and battery sites. They get into how a team of about 14 uses AI agents across engineering and...
Ian Johnson is Staff Software Engineer at Parento and author of Harness Engineering. And, he's the first guest that talked to me about how they are building a factory. Ian's book, Harness Engineering:...
In this episode, Pete Hodgson discusses the evolving landscape of AI-assisted engineering, the importance of governance in AI workflows, and how organizations can empower grassroots innovation while maintaining control....
Hari Krishnan is back to talk about advancements in spec driven development, about advancements in open weights models, and about the book he's writing for Manning. You can get the book for 50% off (and possibly save...
Asoba’s CEO Shingai Samudzi is no stranger to ML, as a data scientist he’s put it to use throughout his career. Now, as Asoba looks to accelerate solar energy in South Africa, he’s assembling a new approach; combining a...