Idea · Aug 16, 2026
Socratic PR Mentor
A GitHub App that intercepts student pull requests and posts Socratic questions about the code; the PR cannot be merged until the student answers all questions to the AI's satisfaction.
What it would do
Socratic PR Mentor installs as a GitHub App on a course organization. When a student opens a PR, a webhook triggers a Flask endpoint that sends the diff to Claude and receives 3-5 Socratic questions targeting the most consequential code decisions: edge cases, naming choices, algorithmic complexity, or missing tests. Claude posts these as a required review comment and marks the PR 'awaiting-understanding.' The student replies in the thread; Claude evaluates the replies and either approves the understanding check or asks one targeted follow-up. Instructors access a dashboard showing question patterns across all class PRs for the week, giving a class-wide picture of recurring conceptual gaps. Students build the app itself as their multi-week project, learning GitHub API integration, webhook handling, LLM prompt engineering, and Docker deployment.
Key features
- GitHub App webhook triggers on PR open/update and posts Socratic questions within 30 seconds
- Required status check blocks merge until all questions answered and approved by Claude
- Conversation history maintained per PR so Claude asks coherent follow-ups, not repeated questions
- Instructor dashboard aggregates question topics and student response quality across all class PRs