💡 Inspiration
Every developer has shipped a bug that a second pair of eyes would have caught instantly. But senior engineers are expensive, busy, and not always available. I wanted to build something that gives every developer — from students to startup founders — access to instant, high-quality code review at any time.
🔨 What I Built
CodeReview AI is a web app that takes any code snippet and returns a structured senior engineer-style review powered by OpenAI's Codex. It identifies:
- 🐛 Bugs — logic errors, off-by-one mistakes, null pointer risks
- ⚡ Performance issues — inefficient algorithms, unnecessary allocations
- 🔒 Security vulnerabilities — injection risks, unsafe defaults
- ✅ Actionable fixes — not just what's wrong, but how to fix it
⚙️ How I Built It
- Frontend — React app with a clean code editor interface
- Backend — Node.js API endpoint calling OpenAI Codex with carefully engineered prompts
- Deployment — Hosted on Vercel for instant global availability
The core insight was in the prompt design: rather than asking Codex to "review this code," I structured the output into explicit categories (bugs, performance, security, suggestions) so reviews are consistent and actionable every time.
🧗 Challenges
- Prompt engineering — Getting Codex to produce structured, consistent reviews took significant iteration. Early versions were too verbose or missed critical bugs.
- Language detection — Automatically detecting the programming language to give language-specific advice required preprocessing the input before sending to the API.
- Demo moment — Finding a real bug that tells a compelling story. I used a Java sorting problem I debugged during the hackathon: the original code had three bugs including an integer overflow that only surfaced on large inputs — exactly the kind of thing CodeReview AI now catches automatically.
📚 What I Learned
- Codex is remarkably good at reasoning about why code is wrong, not just that it's wrong
- Structured prompt output (JSON or markdown sections) dramatically improves usability over free-form responses
- The best demos aren't synthetic — real bugs tell better stories
Built With
- javascript
- node.js
- openai-codex
- prompt
- react
- rest-api
- vercel
Log in or sign up for Devpost to join the conversation.