Skip to content

Project: Create Apps - GenAI-Code-Reviewer-Tool #135

@sanojtomar

Description

@sanojtomar

Track

Creative Apps (GitHub Copilot)

Project Name

GenAI-Code-Reviewer-Tool

GitHub Username

sanojtomar

Repository URL

https://github.com/sanojtomar/GenAI-Code-Reviewer-Tool

Project Description

CodeReview Agent is an AI-powered chatbot assistant that reviews your code in real time using GitHub Copilot Chat. It detects bugs, security vulnerabilities, and code smells — and suggests clean, refactored alternatives along with ready-to-use unit test stubs.

Designed for developers who want instant, actionable code feedback without waiting for a PR review.

Demo Video or Screenshots

Image

Primary Programming Language

Python

Key Technologies Used

  • Github Copilot
  • OpenAI
  • Python
  • VS Code

Submission Type

Individual

Team Members

No response

Submission Requirements

  • My project meets the track-specific challenge requirements
  • My repository includes a comprehensive README.md with setup instructions
  • My code does not contain hardcoded API keys or secrets
  • I have included demo materials (video or screenshots)
  • My project is my own work with proper attribution for any third-party code
  • I agree to the Code of Conduct
  • I have read and agree to the Disclaimer
  • My submission does NOT contain any confidential, proprietary, or sensitive information
  • I confirm I have the rights to submit this content and grant the necessary licenses

Quick Setup Summary

1. Clone the repo

git clone https://github.com/pawan1979/codereview-agent.git
cd codereview-agent

2. Install dependencies

pip install -r requirements.txt

3. Set your GitHub token

cp .env.example .env
# Edit .env and add your GITHUB_TOKEN

Getting a GitHub Token: Go to GitHub → Settings → Developer settings → Personal access tokens → Fine-grained tokens → Generate new token. No special scopes needed for Copilot Models access.

4. Run the agent

# Interactive chat mode
python agent.py

# Review a specific file
python agent.py --file path/to/your/code.py

# Review an inline snippet
python agent.py --code "def divide(a,b): return a/b"

# Save review to JSON (great for CI pipelines)
python agent.py --file app.py --output review.json

Technical Highlights

Feature Description
🐛 Bug Detection Identifies logic errors, null pointer risks, edge cases
🔒 Security Scanning Flags SQL injection, hardcoded secrets, unsafe I/O
💡 Refactoring Tips Suggests cleaner, more idiomatic rewrites
🧪 Test Stubs Generates pytest/unittest stubs automatically
📂 File Review Review any local file directly from the CLI
💬 Chat Mode Conversational REPL — ask follow-up questions
🔁 CI Integration Single-shot mode for use in GitHub Actions pipelines

Challenges & Learnings

How can GenAI enable tech team to fast their process by quickly reviewing the code as part of CI pipeline.

Contact Information

sanojtomar@gmail.com

Country/Region

United Kingdom

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions