TLDR Tech / InfoSec
Commit Comprehension Gate (GitHub Repo)
Commit Comprehension Gate is a GitHub Action that blocks PR merges until the author demonstrates understanding of the code they're shipping — Claude generates three multiple-choice questions from the actual diff, and the commit status remains pending until all three are answered correctly. Questions are embedded directly in the PR comment, with no external storage required, and pushing new commits regenerates a fresh question set. Draft PRs are skipped automatically, and maintainers can bypass the gate via the GitHub API. Typical cost is $0.05–$0.10 per PR using claude-opus-4-6.
Read the full story