Show HN: CodingFox – Open-Source AI Code Review Tool That Works Like Magic

2 hours ago 2
████ ████▒▒██ ████ ▒▒██ ██▒▒ ▒▒▒▒▒▒██ ██▒▒██ ██ ████ ██▒▒██ ██ ██▒▒▒▒██████ ██▒▒██ ▒▒ ████ ██▒▒▒▒██ ████ ██████▒▒▒▒▒▒██ ▒▒▒▒██████████████ ██▒▒ ████▒▒▒▒██████▒▒▒▒▒▒▒▒▒▒▒▒▒▒██▒▒▒▒▒▒██▒▒▒▒▒▒▒▒▒▒▒▒████ ██▒▒▒▒ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████ ██ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ██▒▒▒▒▒▒▒▒▒▒████▒▒▒▒▒▒▒▒██ ████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒▒▒▒▒████▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ████ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██ ▒▒██████▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ██▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██ ████▒▒▒▒▒▒▒▒▒▒ ██ ▒▒ ▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒██ ██ ██ ████ ▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒██ ██ ██▒▒██ ▒▒ ▒▒▒▒▒▒▒▒▒▒██ ██████████████████████▒▒▒▒██ ▒▒▒▒▒▒██ ██▒▒ ██▒▒▒▒▒▒▒▒██ ▒▒▒▒██ ██▒▒▒▒ ██▒▒▒▒▒▒▒▒████ ▒▒▒▒██ ██▒▒▒▒▒▒██▒▒▒▒▒▒██ ██ ██ ██████▒▒▒▒▒▒██ ██ ████ ██████ ██ ██████ ██ ████ ██████ CodingFox - Your AI Code Review Partner Stop shipping bugs. Start shipping excellence.

 MIT

CodingFox is an intelligent AI-powered code review assistant that revolutionizes your pull request workflow. Using advanced language models (GPT-3.5 Turbo and GPT-4), CodingFox provides instant, contextual code reviews that catch bugs, improve code quality, and accelerate your development cycle.

╔═══════════════════════════════════════════╗ ║ 🦊 CodingFox AI Code Reviews ║ ║ ───────────────────────────── ║ ║ ✓ Instant PR Analysis ║ ║ ✓ Line-by-Line Suggestions ║ ║ ✓ Bug Detection & Prevention ║ ║ ✓ Code Quality Enhancement ║ ╚═══════════════════════════════════════════╝
  • ⚡ Lightning-Fast Reviews: Get comprehensive code reviews in seconds, not hours
  • 🎯 Context-Aware Analysis: Understands your codebase and provides relevant suggestions
  • 🛡️ Bug Prevention: Catches potential issues before they reach production
  • 💡 Smart Suggestions: Offers actionable improvements, not just criticism
  • 🔄 Continuous Learning: Improves with every review based on your feedback
  • 💰 Cost-Effective: Reduce review time by 60% while improving code quality

🔍 Intelligent Code Analysis

  • Automated PR Summaries: Generate comprehensive summaries and release notes
  • Line-by-Line Review: Detailed suggestions for every code change
  • Pattern Recognition: Identifies anti-patterns and suggests best practices
  • Security Analysis: Flags potential security vulnerabilities
  • Incremental Reviews: Reviews each commit individually for better context
  • Selective Analysis: Skips trivial changes to focus on what matters
  • Multi-Model Support: Uses lightweight models for summaries, powerful ones for reviews
  • Custom Prompts: Tailor review focus to your team's needs
  • Chat with CodingFox: Ask questions about specific code sections
  • Test Generation: Request test cases for your changes
  • Code Simplification: Get suggestions for reducing complexity
  • Documentation Helper: Generate or improve code documentation

Get CodingFox running in your repository in under 5 minutes!

Before you begin, ensure you have:

  • A GitHub repository where you want to add CodingFox
  • Admin access to the repository (to add secrets)
  • An OpenAI account (free tier works to start)

Step 1: Get Your OpenAI API Key

  1. Sign up for OpenAI (if you haven't already):

  2. Generate an API Key:

    • Navigate to API Keys page
    • Click "Create new secret key"
    • Give it a name (e.g., "CodingFox")
    • Copy the key immediately (you won't see it again!)
  3. Add Credits (for new accounts):

    • Go to Billing
    • Add at least $5 to get started (this will last for hundreds of PR reviews)

Step 2: Add OpenAI Key to GitHub Secrets

  1. Navigate to your GitHub repository

  2. Go to Settings:

    • Click on the Settings tab in your repository
    • Scroll down to Security section in the left sidebar
    • Click on Secrets and variablesActions
  3. Add New Secret:

    • Click "New repository secret" button
    • Name: OPENAI_API_KEY
    • Value: Paste your OpenAI API key
    • Click "Add secret"

Step 3: Create the CodingFox Workflow

  1. Create the workflow directory in your repository:

    mkdir -p .github/workflows
  2. Create the workflow file:

    • Create a new file: .github/workflows/codingfox-review.yml
    • Copy and paste this configuration:
name: CodingFox AI Review # Permissions needed for the action to work permissions: contents: read pull-requests: write # Trigger on pull requests and PR comments on: pull_request: types: [opened, synchronize, reopened] pull_request_review_comment: types: [created] # Prevent multiple reviews at the same time concurrency: group: ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }}-${{ github.event_name == 'pull_request_review_comment' && 'pr_comment' || 'pr' }} cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }} jobs: review: runs-on: ubuntu-latest steps: - uses: codingfox/ai-pr-reviewer@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} with: debug: false review_simple_changes: false review_comment_lgtm: false
  1. Commit and push the workflow file:
    git add .github/workflows/codingfox-review.yml git commit -m "Add CodingFox AI code review" git push
  1. Create a test pull request:

    • Make any small change in your repository
    • Create a new branch: git checkout -b test-codingfox
    • Make a change and commit
    • Push and create a pull request
  2. Watch CodingFox in action:

    • Within 30-60 seconds, CodingFox will comment on your PR
    • You'll see a summary, code review comments, and release notes
  3. Interact with CodingFox:

    • Try commenting @codingfox help me write tests for this function
    • CodingFox will respond with helpful suggestions

Step 5: Customize CodingFox (Optional)

Use GPT-4 for Better Reviews

For more thorough and accurate reviews, upgrade to GPT-4:

- uses: codingfox/ai-pr-reviewer@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} with: openai_heavy_model: gpt-4 # Better for code reviews openai_light_model: gpt-3.5-turbo # Keep for summaries

Adjust Review Sensitivity

with: review_simple_changes: true # Review even minor changes review_comment_lgtm: true # Comment even when code looks good max_review_comments: 50 # Increase comment limit

Focus Reviews on Specific Files

with: path_filters: | src/** !test/** !docs/** !*.md
Issue Solution
CodingFox not commenting Check Actions tab for errors, verify OPENAI_API_KEY is set
"Rate limit exceeded" Add credits to OpenAI account or reduce openai_concurrency_limit
Reviews too verbose Set review_simple_changes: false
Missing some files Check path_filters and max_files settings
Timeout errors Increase openai_timeout_ms (default: 360000)
  1. Start with GPT-3.5: It's very cost-effective for initial testing
  2. Use path filters: Focus on important directories like src/
  3. Customize prompts: Tailor reviews to your team's standards
  4. Monitor costs: Check OpenAI usage dashboard regularly
  5. Iterate on feedback: Adjust settings based on team preferences

Once installed, CodingFox will:

  • ✅ Automatically review every new pull request
  • ✅ Generate PR summaries and release notes
  • ✅ Provide line-by-line code suggestions
  • ✅ Respond to your questions and requests
  • ✅ Learn from your codebase patterns

Simply create a pull request and CodingFox will automatically:

  1. Generate a comprehensive PR summary
  2. Review code changes line-by-line
  3. Suggest improvements and catch issues
  4. Create release notes

Tag @codingfox in any PR comment:

@codingfox Can you suggest test cases for this function?
@codingfox How can I improve the performance of this loop?
@codingfox Is there a better design pattern for this implementation?

Add to PR description to skip review:

with: # For comprehensive reviews (recommended: gpt-4) openai_heavy_model: gpt-4 # For summaries and simple tasks openai_light_model: gpt-3.5-turbo # Temperature for AI responses (0-1) openai_temperature: 0.2
with: # Review even simple changes like typos review_simple_changes: false # Continue reviewing when changes look good review_comment_lgtm: false # Maximum review comments per PR max_review_comments: 30 # Enable debug logging debug: true

Customize CodingFox's personality and focus:

with: system_message: | You are @codingfox, an expert code reviewer focused on: - Security best practices - Performance optimization - Clean code principles - Test coverage Be constructive, specific, and friendly in your feedback. summarize_prompt: | Provide a concise summary focusing on: - Main changes and their purpose - Potential impact on the system - Areas requiring special attention
Model Use Case Estimated Cost
GPT-3.5 Turbo Summaries ~$0.002 per PR
GPT-4 Full Review ~$0.10-0.50 per PR

Typical Usage: A 20-developer team reviewing 50 PRs/day costs approximately $20-30/day with GPT-4.

  • Data Processing: Code is sent to OpenAI's API for analysis
  • Data Retention: OpenAI API has strict data usage policies
  • Compliance: Review with your security team for sensitive repositories
  • Self-Hosting: Contact us for on-premise deployment options
  • Node.js 17+
  • npm or yarn
# Install dependencies npm install # Build and package npm run build && npm run package # Run tests npm test

We welcome contributions! Please see our Contributing Guide for details.

Feature CodingFox Traditional Reviews Other AI Tools
Review Speed ⚡ Instant 🐌 Hours/Days ⚡ Instant
Context Understanding ✅ Full ✅ Full ⚠️ Limited
Consistency ✅ 100% ❌ Variable ✅ 100%
Availability ✅ 24/7 ❌ Business Hours ✅ 24/7
Learning Curve ✅ None ❌ Team Dependent ⚠️ Moderate
Customization ✅ Extensive ✅ Full ⚠️ Limited
Cost 💰 Low 💰💰💰 High 💰💰 Medium

"CodingFox reduced our PR review time by 65% while catching 40% more bugs before production." - Tech Lead, Fortune 500

"The contextual suggestions are incredible. It's like having a senior developer review every line of code." - Startup CTO

"We save $50k+ annually on review time alone. CodingFox pays for itself in days." - Engineering Manager

MIT License - see LICENSE file for details.


/\_/\ ( ^.^ ) Made with ❤️ by CodingFox Team (")_(") Happy Coding! 🦊

CodingFox - Elevating Code Quality, One Review at a Time

Read Entire Article