The latest four of the 200+ products we've helped build. View all case studies

A calm gray sea under a hazy sky
Even-Keeled · Episode 10

When agents write the code, validation becomes the job. Jon Kinney, Tim Gremore, and Dan Diemer break down the guardrails that keep AI agents on track, from AGENTS.md files and MCPs to hooks and TDD.

Key learnings

Validation is becoming the job

Tim Gremore breaks the engineering side of product work into three slices: planning, execution, and validation. Execution used to eat most of an engineer's week. With agents writing the code, it's now the smallest of the three.

Planning has grown, because AI makes it practical to plan at a higher level of detail. Validation has grown even more. When an agent can produce a lot of work in the execution step, someone has to check all of it against the docs, the tickets, and the intent behind them. Tim sees that third step becoming the focus of what engineers do.

Use agents to read the codebase, not just write it

Dan Diemer's favorite change isn't about writing code at all. Joining an enterprise product team mid-build, he used AI tooling to map the application: which modules talk to which services, where the boundaries sit, and who commits to each repo. That told him exactly who to ask when he hit a question, instead of scheduling a 15-person meeting to sort out ownership.

Jon Kinney raises the catch. Agents read what's written down, and what's written down isn't always reality. Dan's rule is simple: docs lag behind, and the repo wins. If Confluence says one thing and the code says another, point the agent at the code. For the things an agent can't see, like deployments, production state, and feature flags, that's when you still talk to people. Knowing where those edges are is the new skill, and it's one reason pair programming hasn't gone anywhere, it just has a new partner.

Risk tolerance sets how much validation you need

Not all AI-assisted development is the same. Someone vibe coding a replacement for their time tracker can ship fast and fix it later. A team inside a large company can't, because a single error can cost real money.

Dan adjusts his process to match. On side projects he skips planning mode and treats the work like a spike. On client work, every feature gets its own small planning session with the agent so the outcome is right the first time.

Write down the patterns your agent already follows

Existing code patterns are a loose form of guardrail. Dan's app has a consistent way of sending analytics events, and the agent picks it up on its own most of the time. But "most of the time" means a new teammate still has to know to point the agent at the right files, or catch the drift in PR feedback.

His line for when to codify a pattern: if you know it, write it down where the agent will load it, so it's done right every time without a meeting.

Tim adds the design system angle. On the client's design system, the crew forms a contract between the agent and the system with two pieces: a design system MCP and an AGENTS.md file that tells the agent to consult that MCP for color, spacing, type, and any component work. Agents are still non-deterministic and will sometimes reach for a custom component buried in the codebase. So Tim also recommends a feedback loop where teams share what's working with their agents and what isn't. For more on getting a system to that point, read Design Systems for AI Agents.

Hooks are the strongest guardrail

Instructions in a prompt or agent file live in the context window. When the context compacts, a mid-conversation reminder can get lost. Jon hit this building a mobile app with Blazer, a tool that gives admins read-only query access to the database. Every time the agent added a sensitive column, it would ask whether to hide it from Blazer, and only about 70% of the time.

So he wrote a hook. Before every commit, a script checks for new columns that belong on Blazer's ignore list. It doesn't rely on the agent remembering anything. It runs every time, against what actually changed.

Dan agrees on placement. Catch it before the commit, not in CI, because by then it's already in the code stream. He sees the same pattern working for stripping PII out of logs.

Vibe-coded complexity makes validation harder

Tim looked at apps a friend vibe coded for his own business, where PII is a big deal. They work, but they carry a lot of complexity nobody needed. More complexity means more rules, more hooks, and more skills to validate it, and more places for errors to hide.

Starting on a proven, declarative foundation like Rails or the Ash Framework for Elixir lets you pick the few spots that need close checking instead of checking everything.

Jon sees two kinds of founders bringing AI-built apps to Headway. One knows there are gaps and wants help getting to production. The other just wants a rubber stamp. The second group is the risky one. You don't need to review every line by hand, but you do need to know what to ask your agent to look for, even something as broad as a security and vulnerability scan. The crew digs into inheriting vibe-coded apps in How Our Dev Team Actually Ships with AI in Early 2026.

Give the orchestrator a finish line

Planning pays off again here. When features are already planned in a tool like Fulcrum (Headway's internal planning platform) or Linear, an orchestrator agent can direct sub-agents across a whole set of work. Jon has found Claude Fable 5.2 especially good at that orchestration role.

The more an orchestrator knows about where you're headed, the better guardrails it provides on its own. Without that context, agents tend to build the smallest thing that works, the old habit from when human time was the expensive part. Tell it where the finish line is and it works toward the whole capability.

Start simple and skip the software factory

Tim's advice: pick a specific, well-stated problem and solve it with what your tools give you out of the box, like hooks, skill files, and AGENTS.md. Reach for something more robust only when you know you need it.

Jon puts it plainly. It's easy to get wrapped up in building the software factory instead of the product you need to bring to market. Getting 75% of the way there because prompting is fun still leaves you short.

Testing is still the best guardrail

Dan closes with the oldest guardrail in software. If your project doesn't have a test suite, it's never been easier to set one up. If it's the only guardrail you add, it's probably the best one.

He has the agent follow red-green-refactor: write failing tests for each acceptance criterion on the ticket, then build until they pass. Agents also turn out to be very good at writing mocks, which removes a lot of the pain that used to make tightly coupled code hard to test.

Jon offers a counterpoint. Some argue that forcing strict TDD on an agent can produce worse results, and he often writes higher-level system tests that check outcomes instead. Where TDD still earns its keep is in apps with specific constraints or less common patterns, where the agent might otherwise build something that works but doesn't match how your app does things.

If you're working on an AI-built product and want a crew to validate it, or you're ready to bring AI into your own product and process with guardrails leadership trusts, start with Headway's AI product development work or a product and team health assessment.

For how a design system fits into agentic development, listen to the Even-Keeled episode Design Systems for AI and Agentic Development.

[00:00:00] Jon Kinney: it'd be interesting, I think, to hear from both of you what changes about a dev team when the agents write the code

[00:00:05] Tim Gremore: if you just said planning, then execution, and then validation,

[00:00:11] Tim Gremore: The middle slice that we used to spend all our time in or the majority of our time in is now like maybe the least of the three.

[00:00:18] Tim Gremore: I now have, in theory, a lot more I've achieved in the second step. I now need to validate all of that.

[00:00:25] Jon Kinney: Hey everybody, welcome to Even-Keeled. I'm your host, Jon Kinney, and today on the panel we have Dan Diemer

[00:00:30] Dan Diemer: Hey there.

[00:00:31] Jon Kinney: And Tim Gremore

[00:00:33] Tim Gremore: Hello

[00:00:34] Jon Kinney: All right. Thanks guys for joining and, uh, as always, we can give folks an update a little bit about what we're seeing in the world of development.

[00:00:42] Jon Kinney: don't you guys give just a brief, uh, update on kind of your current state of the world at Headway, what you're doing day-to-day with development and AI,

[00:00:51] Tim Gremore: Dan, you want to kick us off?

[00:00:53] Dan Diemer: Yeah, love to. I've been working, uh, with one of our clients engaged in a, in a product team as a, like an individual contributor but embedded in the team, which has been a lot of fun. So we're working in a, in the beverage industry with this client, helping them build up, the point of sale application that is, is a mobile, uh, counterpart to an existing web application that they have, WebSuite.

[00:01:20] Dan Diemer: and it's been kind of a blast to, to get in there, um, and do just full on product software development with a team of, of developers and a designer and a, a product owner, building up and helping plan new features and helping, honestly, the other developers figure out how to do the best kind of work that they can, uh, in this, this new agentic workflow world.

[00:01:49] Dan Diemer: Um, some of them have some experience, some of them have less experience. And so bringing the knowledge that we've gained over the last several years working in this tooling, um, and helping distribute that out amongst developers from various different skill sets has been really, really fun.

[00:02:06] Tim Gremore: Yeah, cool. Um, and I-- for myself, I've been working, um, uh, sort of on the other, other section of the same client, um, driving toward the same goals with that, that Dan has been with his team, but focused on design systems. And so it's been interesting. It's been very interesting to have started actually with Dan.

[00:02:28] Tim Gremore: Dan and I kicked off the design system engineering piece together, coming up on three years ago. And so we've been able to transition from, sort of a pre-AI driven design system development and architected solution to something that is now very much aided by, uh, by an agent. And so the interesting thing is we're now not just establishing new, uh, features and functions within the design system to serve engineers and designers, but we're also now trying to serve agents to use that design system.

[00:03:06] Tim Gremore: And so it's been a, been a learning experience, uh, but a very really good challenge, and we can see the benefits to, to the work that we've been putting in.

[00:03:15] Jon Kinney: Nice. Yeah, and I've been working across a couple of different projects, more from a oversight perspective, a dev, dev lead perspective here at Headway, and, not only that, but using AI in the sales process too, in the technical sales process. And so to, to, um, codify a lot of what we had to do previously, uh, we built a system called Fulcrum, which I think we've probably mentioned before, but it's definitely grown and iterated to the point where we can build our sales decks in it after we do an estimate.

[00:03:45] Jon Kinney: Um, we can send out questionnaires to clients that help answer questions that we have that we would otherwise have to jump on a call or send an email. It's really centralizing a lot of the work that we need to do, and we built that from scratch to help with our unique workflows and, at some point, uh, likely to open it up to other agencies as well.

[00:04:04] Jon Kinney: But, uh, I've been contributing to that. We, we added an MCP recently and a CLI so that we can do, uh, the work of that planning piece and interacting with the system from your own, uh, harness, whatever you want that to be. I use Claude Code quite frequently to interact with it. And then we can even take the work that has been planned out and estimated inside of the system and point the agents at it to do that work from the cards and move them forward in the Kanban board.

[00:04:31] Jon Kinney: And, um, there's a quite a few different views. We've got a story mapping view and, a timeline with a Gantt chart and things like that. So it's nice to be able to work inside of that tool when it makes sense and leverage the internal, AI capabilities of that platform through API access with, with Claude.

[00:04:48] Jon Kinney: And then you can also use your own subscription, whether that's an enterprise or an individual subscription to the harness of your choice to interact with, uh, building the software that you just planned. So it's been a nice, uh, way for us to standardize a bit of what we do. And, uh, we're actually working on a, a new release of our website.

[00:05:07] Jon Kinney: And, uh, Eric, uh, one of our team members, is building with Fulcrum and en-enhancing Fulcrum as we go, and we find, uh, little pieces that we need to, to tweak and change to facilitate that workflow. So that's helping us build out, uh, a brand new Headway w- site, which we'll launch very soon, and we're excited to, to roll out that, uh, that new

[00:05:28] Jon Kinney: experience. But I mean, so you guys talked about what you're doing at one of our clients and leveraging AI across, mobile and design systems. And I think what's interesting is, you know, coming from having been doing this for, you know, 20 years, it's different now when we're not having to type all of the code ourselves, and that's been true for a while.

[00:05:52] Jon Kinney: But, I guess it'd be interesting, I think, to hear from both of you what changes about a dev team when the agents write the code, and how does that impact our role when we plug into a team or lead a team or, you know, I guess let's stick with that aspect where you guys are, inside of a more enterprise setting, working in the context of teams.

[00:06:12] Jon Kinney: And then maybe we can speak to, or I can speak to, um, building new things from scratch, uh, and, and what that looks like for us. But curious how that, uh, affects when agents write the code, what the, what that effects have on the dev teams that you guys are working on.

[00:06:27] Dan Diemer: Yeah, let me jump in first on that. So I think one of the most interesting things to me, it's tangentially related to writing the code, but it's more about reading the code. And so what I'm, I'm finding more and more, in other environments, whether it's, it's client engagements or even just past experience working in a large organization with many, many technical moving parts, figuring out who owns what, what does what, that kind of stuff used to be just as difficult as any other part of your development, maybe more difficult sometimes.

[00:07:01] Dan Diemer: And what I'm finding now h- that it's been really great. So the application that I'm working on, its data is served by a lot of various API endpoints and services, um, and it's not always clear where those services are or where the lines are. and you can start to get a little bit of that sense if, if you really dig in and read the code. But what I've found has been really, really useful, especially stepping onto this team, um, where the application was already in development. It, it's a rewrite of another application that the, the organization had that was like a white labeled, vendor provided thing. And so they've, they've decided to, to really own the development of this app and the features.

[00:07:49] Dan Diemer: and a lot of it was done foundationally, but stepping onto that team, I was able to get up to speed really fast by using AI tooling to really map out the application, where, where are the modules and the lines and what's talking to what, and then expanding out from there, right? Figuring out what services exist in our organizational repo, who are the developers that make those commits, so that as I've had various problems or questions, I, I kinda know who to reach out to almost directly.

[00:08:25] Dan Diemer: Where I think in the past what we would do is try to figure out like who is our point of contact at the organization that we can talk to, and you start to end up in like a lot of, like a game of telephone sometimes, with these things that should be generally like pretty simple questions or fixes that you need.

[00:08:43] Dan Diemer: and that's been one thing that I've really appreciated about how this tooling has changed the day-to-day work that we do, is just being able to really like get in and do the thing that we wanna do quickly, whether it's in our codebase directly or another codebase that we've been given access to, without having to like schedule a meeting with 15 people to try to, to delineate, you know, who owns what.

[00:09:09] Dan Diemer: that's been pretty exciting.

[00:09:11] Jon Kinney: So it's a pro and a con, I would suppose, because on the one hand, you can figure out or at least think that you've figured out a bunch of things by just interrogating the codebase itself. Maybe you have access to a Jira instance or something, and maybe even Slack and, and maybe even, the ability to look at the documentation that they've provided, whether that's in the, the repo or not.

[00:09:35] Jon Kinney: But, I think there's probably this situation where the facts might not be reality in terms of what's been written down or documented. And, I think I've also heard that people are, um... I just saw a tweet the other day that was like, "Is pair programming dead?" because everybody kind of pair programs with their agents now instead of talking with other people.

[00:09:57] Jon Kinney: So have you found that to be a, a limiting factor? I mean, obviously it's like a force multiplier. It helps things be quicker. You can map out the state of the world, at least as it's currently committed. But, when does it make sense to, to bring in that human element and actually have a meeting or, you know, talk to someone else or pair program?

[00:10:15] Dan Diemer: I think the big factor there is, it's almost twofold. It's what do you know already about the environment you're in that you can use to shepherd an agent? similar to like, you know, I've heard it say a comment is a lie waiting to happen. I think that's true with documentation too, in the sense that like big sprawling applications across many systems and, and clouds are only gonna be... Your insight into them is gonna come from either documentation or code. Right. And we've definitely found cases where documentation is just lagging behind the actual reality of things. So being able to like shepherd the AI into the right direction to answer some of these questions, and knowing there, yes, there is documentation in Confluence, but also the repo's over here, and the repo's gonna have precedence.

[00:11:14] Dan Diemer: If, what it says doesn't match what the documentation says, the repo is where the actual, you know, rubber meets the road. And being able to build up that, context and that long-living memory about that stuff is super good, and I think you can still stay inside of the realm of, of pair programming with your agent there.

[00:11:34] Dan Diemer: But yeah, knowing then if you don't get the answer or, where the edges are that you can't inform the agent about, like deployments or, the actual state of productions, feature flags, things like that, that's where then I would reach out to those other parties. some of that I think just lives inherently in my head.

[00:11:53] Dan Diemer: It's just how I think about software development and, and keeping like a mental model of, of, or a graph of like everything that's in play. But I think some of it too is, gets kind of baked into the, the like quote-unquote "personality" of your agent that you pair with all the time, and you start to build these things up.

[00:12:14] Dan Diemer: but that's a skill. That's certainly not a, a turnkey, thing that you get just by default because you've, you know, enabled Claude or Gemini or Codex to do some work with you. and I think that that's becoming more and more one of the most important development skills is knowing how to actually guide your agent to the right outcomes.

[00:12:37] Dan Diemer: I don't know, Tim, do you have any thoughts on that?

[00:12:38] Tim Gremore: No, I think you're absolutely right. The, the interesting thing, like the-- if we, if we look at the life cycle of, uh, you know, product development and specifically the engineering side of that, like over simplification, but if you just said planning, then execution, and then validation, and then I'm lumping like release and, and, you know, publishing as part of that validation step.

[00:13:03] Tim Gremore: The middle slice that we used to spend all our time in or the majority of our time in is now like maybe the least of the three. And, and so I, I think we're finding more, more and more time spent on the back end of that. Like certainly planning, planning is probably, you know, at least what it was pre-AI, it's probably grown because I can do more planning at a higher level of detail Because AI helps me to do that planning in a way that's, you know, friendly to my calendar.

[00:13:32] Tim Gremore: But, but the validation side of that, I now have, in theory, a lot more I've achieved in the second step. I now need to validate all of that. In validation against the documentation that I've published in Confluence or Asana or, or wherever in the form of a comment inline with my codebase. I can validate that those things are true of the thing that I'm about to ship in a way that I just couldn't in the past, at least not with more and more engineers to help achieve those, those types of objectives.

[00:14:07] Tim Gremore: Um, and so the validation, like part of that validation I think is what you're... It's almost what you're describing, but you're doing it, like subconsciously you're sort of doing it as you're going through the build step. Um, you're verifying the agent isn't veering off into some- something that you don't want or need.

[00:14:27] Tim Gremore: we get to see it. I mean, you see it, Dan and Jon, you're seeing it too, using design systems within Fulcrum. Like the design system's an in- interesting thing where you're, building it in a way that's gonna help engineers and product folks and designers achieve their goals, which ultimately is to serve your customer.

[00:14:46] Tim Gremore: And so you get like this validate that you're building this product almost for internal use that eventually is gonna be for external use. And the validation step to ensure that your coworkers are able to achieve their goals is important, right? That's a necessary thing. I wanna make sure that the, teams using the design system are staying on track, have, have the components and the tools they need to achieve their objectives, without them drifting off into something that they didn't intend with their agent, right?

[00:15:22] Tim Gremore: So how do you s- how do you, um, validate that your team, your coworkers are applying the design system in a way that it was intended to be applied? Because they're using an agent, there's more risk that they're drifting, not intentionally, but they're drifting away from those, uh, guidelines. And so again, validation that this is actually...

[00:15:45] Tim Gremore: we're actually adhering to, to the design system. So like I just see more and more validation, that third step being, a crucial part, a bigger part, almost like becomes the focus of what we do as engineers

[00:16:03] Dan Diemer: Ja

[00:16:03] Jon Kinney: I agree because, um, I mean, it depends on the speed that you're working at and the constraints that you have as well. Both of you are embedded in a large company building separate products, uh, inside of teams, right? And so you can't just say, "Hey, go build this new thing and just hope for the best and, like, test it a little bit, on your browser or a phone and ship it.

[00:16:24] Jon Kinney: And if there's a problem, your customer will let you know." Like, that could cost millions of dollars, that particular error. So there's a different level of validation needed, and I think not all AI software or, or s- you know, software development life cycles using AI are created equal. I mean, that's probably pretty obvious to state, but the, the person vibe coding a replacement for, their time tracker versus someone in one of your situations is, is pretty different.

[00:16:50] Dan Diemer: Yeah, for sure. I think even as I, you know, mess around with, with projects on the side, doing exactly that thing, right? Dogfooding my own, my own problem that I want to solve, where maybe there does exist an app already for that, but I, I don't care to subscribe to another thing, or I just am interested in the problem space.

[00:17:11] Dan Diemer: it changes, right? It changes how you, you might build your, your risk tolerance for doing, doing it wrong right away. I tend to not use any sort of planning mode when I'm doing those kind of things, those little side project things, where it is a lot more, akin to like a development spike than anything.

[00:17:31] Dan Diemer: And I think that that is a, a pretty good analog to the kind of work that we're often doing. our a- agentic workflow is like a little personal sprint planning session we do per feature almost, it seems like, so that we guarantee that we get the right outcome. I think a big part too, like Tim was saying with the design system, I think that you could extrapolate this to any, input into your workflow that, that you potentially could, is the design system's super baked, right?

[00:18:04] Dan Diemer: It is a, it is a set of choices that is a lot of work to deviate from. And so where- wherever we can take those things, not just from a, a visual point of view, and codify them for the agent to read. I know in our project we have a ton of, docs in our docs folder as we've come across different problems or we've, encountered different discoveries as we're interacting with other services.

[00:18:29] Dan Diemer: Making sure that those are quantified for the agent to pick up has helped other members as they've stepped on the team and gotten up to speed with that, really eliminate that drift that we're talking about so the, the work that's being done is the right kind of work, and there is no question about it.

[00:18:45] Dan Diemer: You know? I think that that's super-duper important when we're doing this kind of work with, with AI.

[00:18:50] Jon Kinney: So

[00:18:58] Jon Kinney: yeah, uh, folks often refer to that as guardrails or that can be one aspect of guardrails, right? I'm curious to hear how you both think about those guardrails in the context of your projects. Are you building in very specific things like you just talked about, Dan? or does sometimes just the existing patterns in the app serve as at least a looser form of guardrails?

[00:19:16] Jon Kinney: And at what point does it make sense to level those up into a skill or just into the, the system level instructions in the context of the project folder that you're working in, uh, and really kind of, change that from a loose, like we're building in the context of a Rails app with, you know, uh, this CSS framework and, uh, it should be mobile responsive to, you know, test this on these device screens and make sure that we're only ever using existing components and, you know, what-- Where's the line there?

[00:19:49] Dan Diemer: Yeah, I think it goes to what is your overall knowledge of what your application space is, right? It's very easy to not quantify those things into some hard copy for an agent to load up when you start it as part of its context gathering, and just let it live as like patterns in the app like you've talked about.

[00:20:12] Dan Diemer: We do this a lot with our, our application as it, as it makes analytics calls into our analytics service. There is a very defined pattern for how that goes. some of it comes from our analytics team. They provide us specs of how, um, any given feature should, should interact with our analytics system. But the overall pattern of how we actually implement that is pretty static, and it's nothing that's explicitly defined in a doc as, as a guardrail, but it is something that the agent will constantly pick up on.

[00:20:45] Dan Diemer: But you have to know to tell it that, right? And so, I think that's actually a really g- good case for my team to extract now that we have enough of these, if we do have another team member, we don't have to say, "Hey, this is how we do an analytics task. Look at this and make reference to these other files."

[00:21:02] Dan Diemer: The agent probably will figure it out, but it would save the time, it would save the headache for them to not even have to know or have a meeting about it or have PR feedback to correct something that we could have corrected from the outset. And those are, I think, are, are where I would draw the lines is, is what it kind of comes down to, like, what do I know and what can I, what can I share, and how can we delegate this out so that it's done right every time?

[00:21:30] Tim Gremore: Dan, I could add to that too, the, um, like the, the design system, making sure that folks are prompting their agent in a way that the agent will use the design system when they're inside the confines of their project. we've kind of found two, two ways to sh- form a contract between the design system MCP and then the agent, and just simply updating your AGENTS.md file to tell the agent when it comes to the design system, when it comes to colors and spacing and type, when it comes to component creation or reuse, consult the MCP, consult the design system.

[00:22:13] Tim Gremore: and that forms like close to a contract with the agent in your design system. Now, the agent is still at times gonna take the path of least resistance and like, and scour your node modules or look for, use cases of an accordion component within the code base and that might not be a design system element.

[00:22:34] Tim Gremore: It might be something that was custom written. the goal is to minimize those things since it's ultimately a non-deterministic experience. We're doing all we can to still form a contract between the patterns and conventions in the code, in the project, and the agent. and then being able to, you know, like establish a, some form of feedback loop, feedback mechanism with those who you're serving with that tooling.

[00:23:03] Tim Gremore: Either it's one another within the same, same project or from team to team across an organization. Like, how do you, how do you share the highs and the lows of your experience with an agent within that project with one another? that's also been, been helpful. It's been, uh, important 'cause I, I would prompt an agent in the context of something that already has a design system, and somebody else might use the same tools in a brand-new project, and we're gonna get different results potentially.

[00:23:33] Tim Gremore: Um, but I won't know that 'cause I'm accustomed to my project I'm focused on. And so it's just good to have some mechanism, um, for folks to, to report what works and what doesn't.

[00:23:45] Today's episode is brought to you by Headway, a digital product agency based in Wisconsin. Do you need to design and build a world-class user experience for your software, but feeling like you just can't get there on your own? That's where Headway comes in. We're the folks who help ambitious startups and enterprise teams bring their product ideas to life through design, development and product strategy.

[00:24:08] We don't just give you user interface designs and leave you to figure out the rest. We work with you. And your target customers to create beautiful user experiences, build scalable design systems, and provide Silicon Valley level talent to get it done right the first time. Whether you're launching a new software or just looking to add features, we've got your back.

[00:24:30] We've worked with startups in industries like Logistics, healthcare, FinTech, and EdTech, helping them solve their biggest software challenges. And here's the thing, no matter how complex your product is, we can help you gain clarity and get the job done together. We're so confident that we'll be the right fit, that we offer a 50% money back guarantee.

[00:24:52] If you don't think we're working out within the first 45 days, ready to see how we can help you and your team, just head over to Headway.io and book a free consultation today.

[00:25:04] Jon Kinney: Yeah, and so far you guys have been talking about, uh, sort of instructing the agent either through a prompt or through, uh, some sort of, uh, agent's file or, sort of the more like, way to have it, uh, follow instructions, right? Which those things are added to the context, and when the context compacts, some of those instructions can sometimes be lost. If they're read in first or it's something you just typed, they're very more likely to still be accessible to the agent. But that muddy middle is where something you typed mid-feature, uh, "Oh, well remember to blah, blah, blah."

[00:25:41] Jon Kinney: Well, if you say remember, sometimes, uh, frequently it will add it to its actual quote-unquote memory, which is helpful. But if you just were steering it mid-conversation, it can, uh, lose that context when it compacts. Um, and so one thing I have found recently as I was getting a little bit frustrated where I was prompting some new features, uh, in a mobile app that I was building and It kept saying, "Oh, we've added a new column," uh, like I forget exactly what it was, maybe date of birth or something for a, for a user, right?

[00:26:12] Jon Kinney: I decided I had this list of things, and I wanted to be able to say, "Hey, this person only has to do, you know, this, this job or whatnot if they're a certain age." So the tool that I had on the back-end admin side to run queries was called Blazer, and you could create a Postgres user that would have just read-only access to the database, and you could go in and sort of type queries into your admin, UI, and it would allow you to receive feedback from the database and the system without needing to, you know, write your own specific report.

[00:26:43] Jon Kinney: You needed to be a little bit more technical in order to do that, but it was just kind of a nice middle ground between, you know, an end user having a pre-baked report that they can click that already has a baked-in query, and then needing to go, for example, like run a query in your console against the database.

[00:26:57] Jon Kinney: So it's exposing some things that you wanna be kind of careful about sometimes, and so certain fields it suggests frequently like, "Oh, we should..." You know, I-- Well, actually, what it would say is, "I didn't obfuscate this field from Blazer. Do you want me to?" And it would do that like 70% of the time.

[00:27:17] Jon Kinney: And so I got annoyed with having to remember to ask it or for it asking me and me forgetting, uh, that that was an important thing. And so I added a hook that just said, "Anytime we, are gonna commit, see if there's a column that has been added that we should include in, in the ignore list for Blazer."

[00:27:37] Jon Kinney: And so rather than having to have that loaded up in the system context, the memory for that project or whatever, it's, uh, like an actual script that runs in real time as we're gonna go make a commit that can, I think, you know, be referred to as the highest, uh, level of guardrail, where it's actually analyzing truly what's happening at that point in time to make sure you're still following the right pattern or a preference that you've set for your development cycle.

[00:28:04] Jon Kinney: So, do either of you have those types of more, um, specific hooks written into the apps that you're working on right now?

[00:28:13] Tim Gremore: You know, it's kind of interesting that the hooks, at least in the design system, you know, Dan and I had built up in the beginning hooks that did this sort of pre-AI, at least pre-AI within the organization we were working at. And so there's hooks in the form of, you know, linting and formatting and, and so it's, it's kind of a different-- this particular project is a little bit different where it doesn't have the data concern, Jon, that you're, you're speaking of.

[00:28:43] Tim Gremore: So I don't, I don't have a real strong example from recent memory. Uh, but if you start to-- I mean, Dan, you probably have some better examples. Once you start to get below the UI layer, it becomes a different concern, different security concern

[00:28:59] Dan Diemer: Yeah, no, that's, that's a good question. I think on, on our side it's, it's still pretty similar to what Tim mentioned. There are pre-commit hooks, more focused on, on code cleanliness, the kind of the basic stuff you would expect. But I think that is exactly the place to put that kind of tooling to be sure, you know, that things that are sensitive don't make their way into the code base That if there's any, you know, anti-patterns we really explicitly don't wanna implement, we could just stop them before they get... I'm not, I'm not the biggest fan of having CI do that kind of stuff because it's already now in your... It's already in the, the code stream, if you will. keep that stuff out before it gets there.

[00:29:43] Dan Diemer: I think that's a, a really, really great use of that kind of tooling. Obviously different problem spaces, right? Where you're talking directly to a database and we're talking to, to APIs. but I can think of at l- at least a few instances where we potentially could do something like that. You know, make, make sure that we're sanitizing data for PII as it goes out to, like, logging, things like that.

[00:30:08] Dan Diemer: Be a really good case for that.

[00:30:10] Tim Gremore: When it comes to Fulcrum, for example, you're using, you're using gems that are proven, that are vetted, that, provide a mechanism to track and have insight into the data that's being processed in a way that's like, like y-you're building on a f- You're asking your agent to build and use tools that have been proven to not leak information, if you will.

[00:30:36] Tim Gremore: Like, it's just a better foundation to start with. And, a friend of mine who um, he vibe coded a number of apps, and PII is a big deal for, um, for the space that he's working in with his, with his own business, so this is serving his own, his own needs. And in looking at what he, what he developed, it's, it's working, it's serving him, but he doesn't really know definitively that things are, are solid and secure just simply because he's asking the agent, he's asking all the right questions, but he's not an engineer by, by trade, and so he doesn't know what he's missing.

[00:31:17] Tim Gremore: And when I, when I look at what's been developed, I just see there's complexity, there's unneeded complexity. And so by nature, the agent now has more to check on, so he can add more hooks and tools, but you're-- you have that much more because of the overly complex solution that was vibe coded. You have more and more rules you need to put in place, more and more hooks, and more and more skills, and anyways, you get the point.

[00:31:43] Tim Gremore: The, the validation becomes overly complex because, well, the underlying work is overly complex. And there's just more opportunity to introduce error. Whereas if you start with Rails and, and I started with, uh, Ash Framework in the Elixir community to make this a declarative thing for him. Like, if, if I start with something that's declarative and has a foundation that's been proven, I can pick my spots where I really need to check, but I don't have to pick all of the spots across all the domains of my apps to check

[00:32:16] Jon Kinney: Yeah. And I think we're seeing clients come to us with coded solutions that fall into one of two categories. They're, you know, Like, your friend brought it to us because he knows that there are things he doesn't know, and he's like, "Hey, can you help, you know, figure out if I'm ready to go to production?

[00:32:33] Jon Kinney: I know I need- have these couple gaps. I don't know how to, close that gap, so can you guys take this over and, and kind of bring it to market?" And then there's the other person who's like, "Hey, I just need kind of a rubber stamp. I know it's good to go, but just wanna, you know, do my diligence, I guess, and, and ask for your, uh, your blessing."

[00:32:51] Jon Kinney: And those-- That second group is dangerous 'cause that's, I think, where a lot of software is heading, where you just trust inherently everything that's, that's output. You don't, you know, have, a strong enough opinion or even understanding of what's happening to make sure that what's happening is, is right.

[00:33:08] Jon Kinney: And I'm not saying you have to manually review every line of code as a human, but you need to know what to look for and what you need to know what you need to ask your agent to look for, at least right now. and it can still be pretty broad, like do a security and vulnerability, you know, penetration test type scan on this code.

[00:33:27] Jon Kinney: It'll find stuff, right? You don't have to know exactly, say, "Oh, there might be SQL injection in, you know, the way that we capture comments or the user's name," or whatever it is. Um, but yeah, I mean, that Dunning-Kruger effect of, you know, the, the lower level of skill thinking that they overestimate their competency is definitely something we've seen in, in software with, with vibe-coded apps.

[00:33:51] Jon Kinney: So in keeping with the theme of guardrails, which is a lot about what this episode has been about, I think what we've found in Fulcrum that can be really helpful is that not only working in the context of a framework like Rails or Phoenix, like you mentioned, Tim, being able to have your system understand what else is coming so that it isn't just, hey, the next prompt, hey, the next prompt.

[00:34:10] Jon Kinney: If you've done a bit of planning previously with your team or just with your own self-conversing with the agent about the features and functionality that you want, you can then take that as a set of functional specs and guardrails in that sense where, uh, you can have, um, what we found works really well actually is the new, Fable 5.2 release is a really good orchestrator.

[00:34:33] Jon Kinney: It isn't necessarily smarter than Opus 5.5 from what I've seen anecdotally and from what I've seen reported as well, but it does a really good job of, of facilitating work through sub-agents. And even if a platform, like you could even do this with Linear if, you know, I forget exactly what agentic capabilities they have, but I know they have an MCP.

[00:34:54] Jon Kinney: And so similarly to Fulcrum, you could say, "All right, we want to work on this next set of features," uh, and it could h- have one agent working to direct multiple sub-agents around that specific capability. And you'll, I think, find that when you keep it a little bit higher level and have some orchestrator that's trying to help implement multiple features or functionality, whether you're doing that through an MCP into a system like a Fulcrum or a Linear, or you're just literally kind of YOLOing it and saying, "Hey, here's my next set of things that I want to build."

[00:35:28] Jon Kinney: The more context an orchestration agent has, the better automatic guardrails it's going to be able to give because it kind of knows where you're heading directionally, and it won't just try to satisfy the smallest pot- possible outcome, which is oftentimes what we've, you know, kind of ironically done in development is like, let's just build the smallest thing that works now and iterate and iterate.

[00:35:50] Jon Kinney: and that's good because human time and effort, uh, was expensive. But now if we can just say, "Here's really where we want to get to, here's the finish line," and you can get this with like the /goal capabilities in a lot of these harnesses, it'll work until it has a holistic set of that capability.

[00:36:09] Jon Kinney: And having an orchestrator being able to do that with sub-agents, uh, really serves as a nice set of its own sort of just-in-time guardrails for those features and functionality. So if you couple that with some of the automatic linting and, uh, different testing and things that we've already talked about, and then actually add some hooks into your system where that's appropriate, I think you can come up with a really good set of agentic capabilities that'll speed up your workflow and help you either augment your existing capabilities in the context of a current enterprise environment like you guys have, or bring a new product to market faster. Any final thoughts, Tim or Dan, on guardrails and AI and the work that you've been, uh, doing here these last couple of months?

[00:36:52] Tim Gremore: The only thing I might add is, uh, you know, Dan and I started on the design system and, and then as we've said, he's been working on product for, for a while now. Uh, what we've found to work best is just to try, try something. Like you can continue to look and you'll find people proposing this solution or that solution when working with an agent.

[00:37:15] Tim Gremore: Uh, but it's best to just find a specific, problem, like a well-stated problem. This is what you're running into. And then just using, using what Claude gives you out of the box is a fine place to start to leverage hooks, to leverage skill files, AGENTS.md, and, and start to see if you can solve the problem with those essentials.

[00:37:38] Tim Gremore: And then inevitably you're gonna want more of that, but don't start, just don't start with the more. A lot of times you just need to start with something simple and, uh, and see how far you can get, and then you'll have a much more, a b- a much better informed, well-informed, decision when you do need the more, when you do need something more robust.

[00:37:57] Tim Gremore: Um,

[00:37:58] Dan Diemer: Ja

[00:38:00] Jon Kinney: It's easy to get wrapped up in building the software factory rather than the thing you actually need to bring to market

[00:38:06] Tim Gremore: 100%, 'cause you can do that really quickly and you can get really caught up in the excitement of, of that. but, yeah, getting 75% of the way to your goal because it's fun to prompt with an agent is still leaving you a good deal short. And so you still got to be disciplined in, in when you use the agent and for what

[00:38:30] Jon Kinney: Any final thoughts, Dan?

[00:38:32] Dan Diemer: Yeah, I, I think, um, just in, in the concept of guardrails, I think the other thing that I would lean really heavily on if, if you're standing up a project from scratch with this and you're trying to figure out what are the right, things to bring in place to help keep things on track, is just follow, follow what we've been doing for, I don't know, decades and decades in software development, and that's, that's testing, right?

[00:38:58] Dan Diemer: If your project has no, um, no testing suite or, or set up yet, it's never been easier to get it up and going, and following just a basic test-driven development pattern, um, is not gonna yield worse results by any means. And if it's the only guardrail you put in place, it's probably better than any other thing you could do.

[00:39:22] Dan Diemer: and that's been something that I've definitely leaned on as I've picked up, this project, but other, other things too, uh, other side projects or things that I've been messing with, is the very first thing, getting, getting that test suite in place so that I know as I poke forward with this agent that I'm doing the right thing.

[00:39:44] Jon Kinney: I'd like to dig into that just briefly here as we kind of wrap up. But are you saying that you've had good luck with sort of a literal translation of what it used to mean to do manual TDD into this new agentic, world? Or are you saying more that having tests to verify, uh, work that has been created by agents is important generally, but maybe the means to which you get there are less important than they used to be?

[00:40:12] Dan Diemer: Yeah, I think it's certainly a lot more of the first. I've, had a lot of success just, shepherding an agent towards doing the red-green refactor method and having it really take its time building up whatever feature we're doing the right way and ensuring that the pattern of tests is kind of a primary thing that we do as we do the software development and never, never straying from it.

[00:40:39] Dan Diemer: Sometimes that, that even comes into making sure it's codified in your agent's file. Generally, the agent will pick up that, test exists, especially if it's looking at your Git repo and seeing that there's, you know, specs are being added in the commits. It'll probably start to try to do that itself, but it's, my opinion, one of the best ways to ensure that if you're trying to translate a ticket into work agentically, that you actually do the thing.

[00:41:08] Dan Diemer: And, uh, so if, especially if your ticket has, you know, a high level of detail and acceptance criteria, that is absolutely the first thing I throw my agent at. Build, build tests for each of those things. Let's let them fail and then let's build it up.

[00:41:23] Jon Kinney: That's interesting. I've, I've done some of that. I've also done the other way where we kind of just build a system-level test, a high-level test, and, verify the outcome rather than the internal structure. Um, I used to very much rely on if this is hard to test, I might have a design problem with the way that I've created this system, and so maybe things are too coupled or, you know, whatever the case may be.

[00:41:48] Jon Kinney: Uh, too large of a method, for example. And so I would break things down and like, oh, that's easy to test because I have a smaller interface or, you know, fewer lines of code or, or whatever, fewer branches of, of decision logic. But I've seen some arguments online that say forcing an agent to do test-driven development can lead to a worse outcome because it kind of already knows the thing you want to do, because it literally like has, for lack of a better way to put it, like the method's magically in its mind somewhere that it can just, plop in like the fancy autocomplete already knows the right, quote-unquote "right way to build it."

[00:42:29] Jon Kinney: So I could see though if you, if you have some very specific constraints around, speed or security or whatever, and you, you have a standard i-in your application that requires certain things be done a certain way, the higher level of prompting could v- lead to, maybe not hallucinations, like that still happens, but a lot less frequently than it used to, but maybe just like, the agent taking a little bit more, agency, I guess, to put it in a funny way, and, and building something that's workable but not the way that the pattern has been established for your app, especially if it's not like JavaScript or a Rails app or something.

[00:43:12] Jon Kinney: If it's a bit novel, then that pattern and practice of, of TDD I could see being really still useful while also still, speeding up your workflow. Maybe not to the point of like prompt a new feature into existence and I verify it in the browser and it just works, but you didn't have to type it manually.

[00:43:30] Jon Kinney: You saw the tests fail and then pass. Like, so yeah, that's interesting.

[00:43:33] Dan Diemer: I think one of the hardest things, especially around, you know, like you said, testing, testing a big function, you know, things that are maybe too coupled. One thing agents are really, really good at is creating mocks, like way more than any of us probably ever will be.

[00:43:50] Dan Diemer: And so that almost becomes, at least in, in like the space I'm working, kind of a non-problem. Like, oh, this is, you know... We used to really decouple things and, try to extract and, and abstract different pieces of code to, in part to make them easier to test. And now, um, the agent's just like, you know, hold my digital beer.

[00:44:12] Dan Diemer: I'll, I'll just go write the craziest mock you've ever seen. But I kinda like it. I'm kind of, I'm kinda here for it because at the end of the day, generally the agents aren't writing really crazy stuff to begin with. But it helps work around, especially in the mobile space, some of these really kinda wild, hairy things that you have to, to think about as you're trying to build up automated testing.

[00:44:37] Dan Diemer: So yeah, big, big fan of it. I, I certainly haven't seen any, any worse outcomes. I can imagine there are probably spaces where that is the case. Uh, but for this kinda code, I think it's, I think it's just right

[00:44:51] Jon Kinney: Awesome. Yeah, thanks for sharing. Well, if you have a, a project that you're working on, if you're vibe coding something and you need a team to verify it, uh, or you just want to bring something brand new to market and you think that it can be done faster and more effectively and perhaps cheaper these days with AI, talk to us at Headway and we'd be happy to help figure out if that's the case for your app.

[00:45:11] Jon Kinney: All right. Until next time, guys. Take care.

[00:45:14] Jon Kinney: Well, that wraps it up for today. If this content is helpful for you, it'd mean a lot to me if you could rate and review the podcast on iTunes or wherever you get your podcast from so that we can help share this info with even more people. Until next time, I'm your host, Jon Kinney, and this is the Even-Keeled podcast.

In this episode

00:00
Introduction

00:42
What the Headway crew is working on now

05:28
What changes about a dev team when agents write the code

06:27
Using AI to map an unfamiliar codebase

09:11
Documentation versus the repo as the source of truth

12:38
Planning, execution, and validation

16:24
Why risk tolerance changes how you validate

18:50
Guardrails and codifying patterns for agents

25:04
Hooks as the strongest guardrail

30:10
Vibe-coded apps and unneeded complexity

33:51
Orchestrator agents and sub-agents as guardrails

36:52
Final thoughts on starting simple

38:32
Testing and TDD with agents

Ready to learn how we can help?

Book a call to see how we can help you get the job done right—without the worry.

Intro Call

Let's make progress, together.

Figure out if we're a good mutual fit to partner together.

  1. Intro Call20–30 minWe'll learn your vision and goals, share how Headway works and see if we're a good fit.
  2. Deep Dive60 minWe come with specific questions, so we can get clear on how we can help.
  3. Partnership Proposal60 minOur approach for your work, what the team looks like and the investment.

Book a time

Calendar not showing? Book a time on HubSpot