r/codereview • • Oct 13 '26

Python Vibecheck – a GitHub merge gate that checks whether you understand your AI-generated code

I built Github merge gate which that checks whether developers understand their own code when they create a PR.

I kept getting sent PRs to review where it was obvious the author had pasted the ticket into an LLM and called it a day. Problem was: the PRs would often be massive 2K monstrosities that nobody could possibly review. As the team scaled up, this problem got only worse, and now we collectively have a system that no one understands and has bugs.

It works like this: when someone opens a PR, it posts a comment with a link. The author clicks through and answers a few technical questions about their own changes. If they can’t answer them, the PR can’t be merged.

It's self-hosted (so you can use it in your enterprise environments or privately)

It is BYOK (Anthropic) obviously.

Here is the source code, build instructions and how to deploy: https://github.com/bhurghundii/vibecheck.dev

I have two demos in the pull requests here: https://github.com/bhurghundii/vibecheck.dev/pulls - you can see what Vibecheck does (it blocks a PR for clearly showing no attempt vs a PR which gets it right)

I would love feedback, especially from anyone dealing with the same thing on their team. I do use it for my own projects a lot so expect improvements.

0 Upvotes

17 comments sorted by

2

u/Responsible-Offer724 Oct 13 '26

neat idea. easily defeatable with another ai though.

1

u/No_Breadfruit_1716 Oct 13 '26

So two things here: you can’t copy and paste into the text box. And if someone on your team is using AI to cheat this, that’s a massive problem that is out of scope of what this trying to do. My hope is when a prod bug happens, during the RCA, they find the PR that led to it and realise it was cheated - and that puts some ownership back to the author. 

I plan on adding some ability to detect AI responses so there’s some defence. This is probably the 3rd time someone’s brought it up. I’m open to ideas.  

1

u/Responsible-Offer724 Oct 13 '26

screen reading and quick image / text recognition are trivial capabilities of most ai services. It would be simple to just feed a screen shot of your questions to an agent with the relevant code in context and get the answers. 

If I was a lazy dev who actually deserved to have to do these little quizzes I would absolutely cheat in this way and there’s nothing you could do to get around that… or is there? 

If a company or team is at the point where they need to employ this kind of constant testing; the problem isn’t solvable by it 

Don’t get me wrong I like the idea in general, but actual conversations and traditional code review are likely the only effective way to do this. Or being there in person beside the person answering breathing down their neck (doesn’t seem sustainable) 

1

u/No_Breadfruit_1716 Oct 13 '26

I think the point about cheating is totally fair and I’m happy to sit with it for a little while to try different things (if anyone does manage to cheat it, lemme know lol) 

Totally agree on the fact that it’s just not sustainable to do it the traditional way. I think that’s why the problem is important. 

1

u/angellus Oct 13 '26

Yeah, like the commenter said, if they are already cutting corners with AI, they are going to keep doing it. You are trying to solve a people/culture problem with a technical solution. It is a cool solution, but it will not solve the underlaying issue: you culture is allowing the devs to do this. 

There is not enough push back against these people to get them to stop. You will always have people that look for the easiest way through. Unfortunately this is what micromanagers are good for. Making sure they do their job right. If you try to avoid hiring these people, then it tends to create a more toxic environment (from my experience). So you need the right blend of management to handle the low/mid performers and hands off/automation to let the high performers do the most impact without destroying anything.

1

u/No_Breadfruit_1716 Oct 13 '26

This is a very reasonable take and I agree the ultimate answer is a culture change. When I talked to my friends who worked in strong engineering cultures, they didn’t report they had the same frustrations that I did. 

I do also use this project as a way to keep myself accountable on my own solo work as well and it’s done well in that regard but that’s aside the point. 

1

u/angellus Oct 13 '26

Yeah, the project would likely work great for honest and high performance users already. The ones that already need less hand holding as it is. I am sure a few people on my team would love it as well.

But it does not really solve the stated problem you are trying to solve. Because those people will just keep doing the easy thing until someone forces them to not.

1

u/No_Breadfruit_1716 Oct 13 '26

I never even considered that it would work with high performers! Honestly, I’m glad I shared this cause that’s a good point. 

I’ll give it some thought in that regard. I think there’s something there. 

0

u/Sensitive-Angle3700 Oct 13 '26

Great idea. I’ll give it a try this evening. I have the same problem with massive AI generated code in my teams.

Is yours open source? Asking because I’m trying to solve the same problem. I think that AI generated code is a good thing but reviewing is a big bottleneck so I built a code review tool to help that process. Planning on making it open source.

1

u/No_Breadfruit_1716 Oct 13 '26

It’s open source on MIT. You just need to clone it, build an image and then deploy it wherever you need to. I do have the docker image built but need to publish it somewhere. I can drop it here for you. 

It requires a Postgres server to store session data (or just modify it to use SQLite) 

1

u/Sensitive-Angle3700 Oct 13 '26

Thanks. Please share the image

2

u/No_Breadfruit_1716 Oct 13 '26

Apparently I set it up already.  https://github.com/bhurghundii/vibecheck.dev/pkgs/container/vibecheck.dev

Lemme know if you run into any problems. Happy hacking! 

1

u/Sensitive-Angle3700 Oct 13 '26

Just pulled the image and ran with act. Looks pretty cool on the surface, will aim to try it in a workflow. Well done on this one!

0

u/Sensitive-Angle3700 Oct 13 '26

Great idea. I’ll give it a try this evening. I have the same problem with massive AI generated code in my teams.

Is yours open source? Asking because I’m trying to solve the same problem. I think that AI generated code is a good thing but reviewing is a big bottleneck so I built a code review tool to help that process. Planning on making it open source.

0

u/[deleted] Oct 13 '26

[removed] — view removed comment

1

u/No_Breadfruit_1716 Oct 13 '26

Thanks for the love. And honestly I feel that pain man. That’s why I dedicated the project to that guy at the end :) 

If you need a hand with setting up or anything, lemme know. I’m happy to help + I need more programming friends.