Inspiration
Code reviews are an important part of software development, but identifying security vulnerabilities and risky code changes can be difficult and time-consuming. Developers often deal with noisy warnings, unclear explanations, and AI-generated suggestions that do not always provide enough evidence.
We wanted to build something different: a code review system that does not just tell developers what might be wrong, but also shows them exactly where the issue exists and why it matters.
That idea led to PatchProof, built around one principle: every finding should have evidence.
What it does
PatchProof is an AI-powered code review agent that helps developers identify security vulnerabilities, reliability issues, and potentially dangerous code changes.
Developers can submit code changes for analysis and receive structured findings with file references, line numbers, severity levels, and supporting evidence.
Its key capabilities include:
- Change-aware code analysis to focus on newly introduced risks.
- Static security analysis using Python AST and Bandit.
- Evidence-linked findings with exact code locations.
- AI-powered explanations of detected issues.
- A conversational code review assistant that answers questions about findings.
- Suggested fixes and proposed code patches.
- Re-analysis to check whether a proposed fix addresses the original finding.
- Benchmark-based evaluation of detection performance.
PatchProof combines deterministic analysis with AI assistance while keeping verified findings separate from AI-generated suggestions.
How we built it
We built PatchProof using a Python-based analysis engine and a modern web application.
Python AST analysis and Bandit provide the foundation for identifying security and reliability issues. A diff-processing component maps detected issues to changed lines, helping distinguish newly introduced problems from pre-existing ones.
The application uses a frontend and backend architecture, with FastAPI handling analysis requests and the frontend providing the code review workspace.
We also integrated an OpenAI-powered conversational assistant to explain findings, discuss potential risks, and suggest safer code changes.
The system is designed so that core static analysis remains available even when AI enrichment is not configured.
We focused on connecting the analysis results, code viewer, evidence details, and conversational assistant into one developer workflow.
Challenges we ran into
One of our biggest challenges was making code review findings trustworthy.
Static analysis tools can identify suspicious patterns, but not every warning represents an actual vulnerability. We needed to make findings understandable without overstating their severity or impact.
Another challenge was mapping detected issues to the exact lines changed in a patch. Reporting unrelated, pre-existing problems as newly introduced issues can create unnecessary noise.
Integrating a conversational AI assistant introduced another challenge: ensuring its responses remain grounded in the actual code and analysis results instead of generating unsupported explanations.
We also had to balance the scope of the project with the limited hackathon development time while maintaining a clean and usable interface.
Accomplishments that we're proud of
We are proud of building PatchProof around evidence rather than simply generating AI recommendations.
Some of the key accomplishments include:
- Bringing static analysis and contextual AI assistance into one review workflow.
- Designing a change-aware approach to code review.
- Connecting findings to source-code evidence and line references.
- Building a conversational experience around actual code-review findings.
- Creating a workflow for exploring proposed fixes and rechecking code.
- Developing a benchmark-driven approach to evaluating the reviewer.
Our biggest accomplishment is the direction behind PatchProof: making automated code review more transparent, explainable, and useful to developers.
What we learned
We learned that adding an AI model to a development tool is not enough to make it reliable.
A useful code review agent needs more than explanations. It needs accurate detection, relevant context, traceable evidence, and a way to verify whether suggested changes actually address an issue.
We also learned the importance of separating deterministic analysis from probabilistic AI reasoning.
Most importantly, we learned that developers should be able to question a finding, inspect its evidence, and understand the reasoning behind a recommendation instead of blindly trusting an automated result.
What's next for PatchProof
We see PatchProof as a foundation for a more comprehensive code review platform.
Our next steps include:
- Expanding support for additional programming languages.
- Improving contextual analysis across larger repositories.
- Adding deeper pull request and GitHub integration.
- Improving detection of complex security and reliability issues.
- Introducing more comprehensive benchmark datasets.
- Supporting collaborative reviews and team workflows.
- Improving patch generation and verification.
- Exploring repository-level dependency and code relationship analysis.
Our long-term goal is to make PatchProof a developer tool where every automated review finding is explainable, traceable, and open to verification.