Team Ai
Apppublic

madhanavel-dev/openenv-code-review-agent

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
App README

title: Code Review OpenEnv Environment emoji: ๐Ÿง  colorFrom: blue colorTo: purple sdk: docker app_port: 7860 ---

Code Review OpenEnv Environment

Description

This project simulates a real-world code review task where an AI agent analyzes code and identifies bugs or security issues.

Tasks

The environment includes three tasks:

  1. 1.Easy โ€“ detect syntax errors
  2. 2.Medium โ€“ detect SQL injection vulnerability
  3. 3.Hard โ€“ detect hardcoded password security issue

Observation Space

The agent receives a code snippet that must be reviewed.

Action Space

The agent outputs a text review comment describing issues in the code.

Reward Function

Reward is based on correctness of the review.

Score range:

0.0 โ€“ incorrect 0.5 โ€“ partially correct 1.0 โ€“ correct identification

Running the Project

Install dependencies:

bash
pip install -r requirements.txt