Kavak x OpenAI x Primero AI hackathon
Every miss becomes a check
©2026[Scroll to explore]
RSI Hackathon 20263rd place overall
5 min read
We won third place overall at the Kavak x OpenAI x Primero AI hackathon. On November 9 we spent ten hours at Kavak's offices on Reforma, in Mexico City, building a system that gets better at finding security holes every time it misses one. This is how it went.
Outsiders in Mexico City
The hackathon was organized by Kavak, OpenAI and Primero AI, and the theme was recursive self-improvement (RSI) and agentic systems. There were around 20 teams, and as far as we could tell every other one was from Mexico City. We came from Culiacán, Sinaloa. We were the outsiders, and we said so in the pitch.
We were four: Nicolás Cárdenas, José Daniel Sainz, Gustavo Aispuro and me. A very multidisciplinary team, with very different backgrounds, which turned out to be exactly what a ten-hour build needs.


The problem
We've seen several cyberattacks up close, at very large companies. I won't name them. What they taught us is that keeping a company's infrastructure and products safe from attackers matters more now than ever, and the AI boom made it worse. Today anyone, working 24/7 with AI, can find a vulnerability and attack it.
AI made writing code almost free, but it didn't make reviewing it free. Companies pick fast and good, and give up safe. Apps get shipped every day, and a security audit once a year arrives already out of date.
"A smarter model doesn't know what's broken in your app today. You only get that by touching the target."
What we built
We called it BREACH: continuous security testing for live apps you are authorized to test. Every run executes a library of checks and confirms each finding by reproducing it, so a result is evidence, not a model's opinion. It only runs against targets with a written scope, and anything outside that scope gets rejected.
I focused on the agent harness: how the agents are organized, which tools they get, and what they can and can't touch. I also took all of the infrastructure, so what we showed was running live, and the knowledge graph of known vulnerabilities, which comes up again in a moment.
Where the RSI comes in
To me, RSI is the ability of agents to go back over a problem they already worked on and do it better, by improving their prompts, their tools, the agents themselves, the models they use or the effort they spend. The key is that it isn't retrying the same prompt until it gets lucky.
In BREACH it works like this. We measure the system against an exam of known weaknesses on test apps. When it misses one, that miss becomes a work order: an AI author writes a new check, a safety gate validates it, a person approves it, and the next run finds what the previous one missed. The expensive reasoning happens once and stays behind as a cheap test that reruns forever.
For most of the day the progress was slow: from 1 to 12 of 51 known weaknesses, while the exam itself grew from 9 cases to 51. Then, around six in the evening, the loop really kicked in. In about 15 minutes the AI author wrote 16 new checks, Nicolás approved them, and the next run jumped to 27. Our last measurement in production before the deadline was 28 of 51, with zero false alarms on the 7 trap cases we planted.
At 27 it hit a ceiling. Writing a check from the outside, one request at a time, can't reach the weaknesses hidden behind a login. So we changed method: on our test apps, the AI author got a logged-in session to work with. In our local lab that took it to 34 of 51, the number on our pitch slide. In production, as an outside attacker, it stayed at 28.
Known weaknesses found, of 51
Each point is a run in production on November 9, Mexico City time. Zero false alarms in every run.
The conversation that changed the day
The key moment was a conversation with Paco Mekler, one of the mentors. He gave us a very clear insight on which models to use and how to put it all together, and one idea in particular: we needed a knowledge graph of vulnerabilities to detect them faster.
That's the piece I ended up owning. Every known vulnerability and incident lives there, including the ones being exploited in real attacks, so the agents start from what's already known instead of figuring it out from scratch. And when a known weakness isn't covered by any check yet, it becomes another gap for the loop to close. His feedback and mentorship were a big part of why this project actually came together.
The pitch and the result
We presented as what we were: outsiders from Culiacán who had seen the problem from up close. What convinced the judges, as far as we can tell, was how viable the product was and how far along it was for something we had started only a few hours earlier.
We took third place overall, out of around 20 teams.

What came after
Two points are not a curve, and an honest judge will say so. So after the event I kept going on the loop. Now it runs unattended for several iterations: measure, pick a miss, write a check, pass the gate, measure again. A third of the exam is held out and never shown to the author, so we can see whether a check written for one case also catches cases it never saw. And there is a control that doesn't learn, so if the curve goes up, it went up because of the learning and not because of luck.
What I take home
Many things, but mostly my teammates. We had very different expertise, and even so, or maybe because of it, we made a great team and delivered a great project together.
We hope this opportunity has an impact, both on organizations that need to keep up with their own security and on our own lives.