Team Ai
Apppublic

ThomasLe/code-grader-agent

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿค– Code-Grader-Agent

An AI-powered code review and grading system that analyzes GitHub repositories using advanced language models.

โœจ Features

  • โ€”๐Ÿ” Repository Analysis: Clone and analyze any public GitHub repository
  • โ€”๐Ÿ“Š Multi-Criteria Grading: Evaluate code against custom criteria
  • โ€”๐ŸŽฏ Project Structure Assessment: Analyze folder organization and architecture
  • โ€”๐Ÿ“ Detailed Reports: Get comprehensive feedback on code quality
  • โ€”โšก Fast Processing: Powered by Gemini Flash 1.5 for quick analysis

๐Ÿš€ How to Use

  1. 1.Enter Repository URL: Paste any public GitHub repository URL
  2. 2.Select File Extensions: Choose which file types to analyze
  3. 3.Generate Project Description: AI analyzes the codebase structure
  4. 4.Set Grading Criteria: Define what aspects to evaluate
  5. 5.Select Files: Choose specific files or folders to grade
  6. 6.Run Analysis: Get detailed feedback and scores

๐Ÿ”ง Configuration

You'll need to set your OpenRouter API key in the environment variables to use this application.

๐Ÿ› ๏ธ Tech Stack

  • โ€”Frontend: React + TypeScript + Ant Design
  • โ€”Backend: FastAPI + LangChain
  • โ€”AI Model: Gemini Flash 1.5 via OpenRouter
  • โ€”Deployment: Docker on Hugging Face Spaces

๐Ÿ“Š Example Use Cases

  • โ€”Code Reviews: Get AI feedback on pull requests
  • โ€”Educational Assessment: Grade student programming assignments
  • โ€”Code Quality Analysis: Evaluate project structure and best practices
  • โ€”Technical Interviews: Assess coding skills objectively

๐Ÿ”’ Privacy

  • โ€”Repository clones are temporary and automatically cleaned up
  • โ€”No code or data is stored permanently
  • โ€”API keys are handled securely through environment variables