
I built a merge gate that quizzes developers on their own code changes — here's why and how
We've all done it. Merged our own PR on autopilot. Clicked through an AI suggestion without really reading it. Approved a teammate's "small change" that turned out to be anything but. AI coding tools have made this worse. The volume of code being generated and merged without genuine human understanding is growing fast. Linters catch style. Tests catch regressions. Nothing catches the case where the developer simply never understood what they were shipping. So I built Commit Comprehension Gate (CCG) . What it does CCG is a GitHub Action that intercepts pull requests and generates multiple choice questions from the actual diff before allowing a merge. When a PR is opened: The diff is sent to Claude via the Anthropic API Claude generates 3 multiple choice questions about the actual logic — not trivia, questions that require reading the code to answer Questions are posted as a PR comment, merge is blocked via a required status check The PR author answers in the comment thread All 3 correct
Continue reading on Dev.to
Opens in a new tab
