Autohealing code tests

Kalen Petersen · Friday Demos · February 6, 2026 · 2:01

Our dev team got some new goodies too. Here we show off an end-to-end framework for Claude to understand and refine tests that let us ship safer, better, faster.

Try it yourselfThe full week on docsengineeringinternalproductivity

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. All right. Um, so this is sort of more of an internal one for the engineers in the in the audience here. So we have a lot of tests that aren't super reliable. We call them flaky tests. Somebody actually asked me what that meant. So I figured I'd just give a little bit of context. And it's really annoying because if you're trying to run validate what you're doing and things fail randomly on you, you don't really trust it.

  2. Wastes a lot of time. You have to rerun things. So I this was kind of inspired by a random uh tossoff comment from Luke of like well I just have Claude uh you know work on it whenever I run into one. I thought well why don't we just automate that and see if we could do it all the time.

  3. And so here's an example of a test run on main which is you know should always pass because before anybody merges their code all your tests should have passed. So this should never fail but here we have tests failing and you know it's in our endto-end test. That's where they usually fail. And so then I went and I took and I made a bug and I put in some information about it.

  4. I put in the test run and let's make this a little bigger. Is that bigger? Yeah. So that's a link to the test run. I put in the some information about it. And then I tagged it with this um Claude autofix. And then a little bit later, Claude changed it to investigating. And then a little while after that, he gave me this big report says, "Oh, here's what I found out about it, but because of permissions issues, I can't actually do anything about it.

  5. So sorry. Um, we're not quite ready yet. It's a hack." And then at the end it says it needs a human review and it assigned it over to me. Um, but in theory once we get all the permissions figured out, it'll actually set up to open up a poll request if it can find a fix for the bug and then assign that off to somebody to review.

  6. So hopefully this makes things a little bit, you know, better for people over time and we don't have to deal with these