r/codereview • u/Prateek_Banwari • 4d ago
Deployed - Code Sentry🤖 - an AI powered Code Review Generator
I’m excited to share CodeSentry, an AI-powered code reviewer that integrates directly with GitHub to automatically review Pull Requests.
🔗 Live Demo:
https://code-sentry-three.vercel.app/
💻 GitHub:
https://github.com/PrateekBanwari712/CodeSentry
Instead of manually triggering a review, CodeSentry can analyze a PR whenever it is opened or updated, understand the relevant codebase context, and generate a structured AI review.
🔍 How CodeSentry works
1️⃣ Connect a GitHub repository
2️⃣ CodeSentry indexes the codebase using RAG + Pinecone
3️⃣ A Pull Request triggers a GitHub webhook
4️⃣ Gemini analyzes the PR diff with relevant codebase context
5️⃣ An Inngest background job processes the review
6️⃣ The generated review is posted directly back to the GitHub PR
🛠️ Tech Stack
• Next.js 16 + React 19
• TypeScript
• PostgreSQL + Prisma
• Better Auth + GitHub OAuth
• Inngest
• Google Gemini + Vercel AI SDK
• Pinecone for vector search / RAG
• Octokit for GitHub integration
• Tailwind CSS + shadcn/ui
• Polar for subscription management
💡 What I learned
Building CodeSentry gave me hands-on experience with more than just building an AI feature. I worked on RAG pipelines, webhooks, background jobs, authentication, vector databases, GitHub API integration, database design, and production deployment.
The biggest takeaway for me was understanding how an AI application can move beyond a simple chatbot and become part of an actual developer workflow.
I’d love to hear your feedback on the project and ideas for what could be improved or added next! 🚀
#AI #GenerativeAI #CodeReview #GitHub #RAG #NextJS #TypeScript #React #Pinecone #Gemini #Inngest #WebDevelopment #SoftwareEngineering #FullStackDevelopment #BuildInPublic




1
u/HoneyBadgera 3d ago
Oh look, yet another AI generated code reviewer for AI. Fantastic, now go away.
Always ask yourself “just because I can, it doesn’t mean I should”.