Review code where you write it.
ReviewFlow is an IDE-native GitLab code review workspace for Cursor and VS Code. Draft inline comments, manage review sessions, and publish directly to merge requests — without leaving the editor.
Prerequisites
| Requirement | Version | Notes |
|---|---|---|
| Python | 3.11 or later | Must be on your PATH — see Python Setup if needed |
| Node.js | 20 or later | nodejs.org |
| Git | any recent version | |
| VS Code or Cursor | 1.85 or later |
Quickstart
1. Get the code
git clone https://github.com/LuyandaLia/reviewflow.git
cd reviewflow2. Build the extension
cd extension
npm install
npm run package3. Install in Cursor or VS Code
Mac / Linux
cursor --install-extension reviewflow-0.1.0.vsix
# or for VS Code:
code --install-extension reviewflow-0.1.0.vsixWindows (PowerShell)
cursor --install-extension reviewflow-0.1.0.vsix # or for VS Code: code --install-extension reviewflow-0.1.0.vsix
4. Reload the editor and you're ready
Open the ReviewFlow panel in the activity bar. The extension sets up the Python backend automatically on first launch — no manual steps needed.
First launch takes a moment longer while ReviewFlow creates the Python environment and installs backend dependencies. A progress notification will appear.
Getting Started
- Click Add GitLab Instance — enter your GitLab URL (e.g.
https://gitlab.com). - Paste a Personal Access Token with
apiscope — ReviewFlow validates it immediately and shows ✓ Connected as @username. - Click Add Repository — point it to a local Git repository.
- Create a Review Session under the repository.
- Open a file, select a line or range, right-click → ReviewFlow: Add Draft Comment.
- A composer panel opens beside the editor — write your comment, pick a severity, then Save Draft or Publish.
- Saved drafts appear as gutter annotations. Click one to open the inline thread.
- Click Publish Session to GitLab when ready — enter the MR IID or paste the MR URL.
Developer Runbooks
Package the extension
cd extension
npm run packageProduces extension/reviewflow-0.1.0.vsix.
Install in Cursor (UI)
- Open the Extensions panel (
⇧⌘X/Ctrl+Shift+X). - Click
···→ Install from VSIX… - Select
extension/reviewflow-0.1.0.vsix.
Develop iteratively in VS Code (F5)
Cursor does not support the Extension Development Host — use VS Code for the edit → run loop.
cd extension
npm run watchPress F5 in VS Code to open an Extension Development Host window with live reload.
Start the backend manually (API testing)
Mac / Linux
cd backend
.venv/bin/python3 -m uvicorn app.main:app --port 51515 --host 127.0.0.1Windows
cd backend .\.venv\Scripts\python.exe -m uvicorn app.main:app --port 51515 --host 127.0.0.1
Verify:
curl http://127.0.0.1:51515/health
# Expected: {"status":"ok","service":"reviewflow-backend"}Reset the local database
Mac / Linux
rm ~/.reviewflow/reviewflow.dbWindows
Remove-Item "$env:USERPROFILE\.reviewflow\reviewflow.db"
The backend recreates the schema on next startup.
Manual Setup
These steps are only needed if the automatic backend setup fails, or if you want to manage the Python environment yourself.
Python Setup
Mac
Linux (Ubuntu/Debian)
sudo apt update && sudo apt install python3.11 python3.11-venv python3-pipWindows
Download Python 3.11+ from python.org. On the first installer screen, check "Add Python to PATH".
Manual Backend Setup
Mac / Linux
cd backend python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt
Windows (PowerShell)
cd backend python -m venv .venv .\.venv\Scripts\Activate.ps1 pip install -r requirements.txt
If you see "running scripts is disabled":
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserThen retry the activation step.
License
MIT — see also CONTRIBUTORS.md.