A VS Code extension that uses RAG (Retrieval-Augmented Generation) to perform AI-powered code reviews on GitHub pull requests, grounded in your actual codebase.
How It Works
Index your codebase — CodeRev reads your workspace files, chunks them intelligently (Python files are chunked by function/class using AST; other files as whole chunks), embeds them using OpenAI text-embedding-3-small, and stores them in a local ChromaDB vector database.
Fetch a PR diff — CodeRev pulls the file changes from any GitHub PR using the GitHub API.
RAG review — The diff is embedded and used to retrieve the most relevant chunks from your indexed codebase. The diff + retrieved context is sent to GPT-4o for a grounded, context-aware review.
Webview panel — The review is displayed in a VS Code tab.