Show HN: GPT-reviewer – Simple AI code reviewer for GH Actions

Hacker News - AI
Aug 5, 2025 17:54
justanotherunit
1 views
hackernewsaidiscussion

Summary

GPT-Reviewer is a new GitHub Action that leverages GPT-4o or Claude to automate code reviews, enforcing custom project rules and providing line-level feedback directly on pull requests. It supports easy configuration, custom rule files, and file filtering, streamlining the code review process with minimal setup. This tool highlights the growing integration of advanced AI models into developer workflows, enhancing code quality and efficiency through automated, customizable feedback.

GPT-Reviewer: AI-Powered Code Review GitHub Action I've built a GitHub Action that automatically reviews pull requests using GPT-4o or Claude, enforcing custom project rules through inline comments. Key Features: • Custom rule enforcement via .project-rules.md configuration • Support for both OpenAI GPT-4o and Anthropic Claude • Gitignore-style file filtering with .ignore files • Inline PR comments with specific line-level feedback • Zero-config setup beyond adding your API key, rules file and ignore file (optional) How it works: The action fetches PR diffs, parses only added lines, and sends them to your chosen AI provider along with your project rules. The AI returns structured JSON feedback that gets posted as inline comments on the specific lines that need attention. It is a one-shot prompt. Example project rules: ## Security - Never hardcode API keys or secrets - Validate all user inputs ## Code Style - Use descriptive variable names (whatever that means) - Mark typos as warnings