Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>Context Code ReviewerNew to Visual Studio Code? Get it now.
Context Code Reviewer

Context Code Reviewer

waleedsaeed

|
1 install
| (0) | Free
Specialist AI agents (security + project patterns) review your Python changes with context from your own repository.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Context Code Reviewer

AI code review for Python, inside VS Code. Two specialist agents review your code in parallel and find real problems:

  • a security agent
  • a project-patterns agent

Each agent gets context from your own repository. You decide which findings are real bugs.

Context matters more than the model. A reviewer that sees your rules and the code around a change finds real bugs. One that sees only the diff mostly makes noise.

What it does

  • Choose what to review. The options are:

    • uncommitted work
    • this branch compared with main
    • a GitHub pull request
    • one file
    • the whole project

    You see the price before anything runs.

  • Findings appear where you work. Each finding is a colored line at the exact place in your code, with the problem, the fix and the agent(s) that found it. Findings also appear in the Problems panel and in a sidebar list.

  • Ask questions. Use the chat panel, for example: "Why is #2 a problem?" or "Show me the fix for #1".

  • Decide. Mark each finding ✅ genuine or ❌ not a bug, with the lightbulb (Ctrl+.) or the buttons in the list. Then press Submit:

    • genuine bugs go to ai_review/BUGS.md,
    • a "not a bug" with a reason goes to Accepted choices, so it is not reported again.

How the agents get context

For every file, the reviewer builds a small, selective context:

  1. the whole function around your change (Python ast),
  2. the functions your change calls,
  3. similar code from your project (a local vector index).

It also reads ai_review/PROJECT_CONTEXT.md, which holds your rules and accepted choices, and ai_review/skills/*.md. The extension offers to create the context file from a template.

Requirements

  • Python 3.10 or newer. On first use, the extension creates its own private environment and installs what it needs. This takes 5–20 minutes, depending on your internet connection, and happens only once.
  • An OpenAI API key. You are asked for it once. It is stored in VS Code's secret storage, and reviews are paid on your own OpenAI account. A review of a few files usually costs a few cents.
  • git (the project must be a git repository).
  • GitHub CLI (gh), only for pull-request reviews.

Privacy

The reviewer runs a small server on your own computer. It accepts connections only from this machine and only with a secret token. Your code is sent only to OpenAI, with your own key. Nothing is sent to the author of this extension.

Settings

Setting Default
aiReview.model gpt-6.1-terra The model the agents use (cheaper: gpt-6-luna)
aiReview.pythonPath (automatic) Which Python to build the private environment with

Commands (Ctrl+Shift+P → "AI Review"):

  • Review uncommitted work / this branch / a pull request / this file / whole project
  • Change OpenAI API key
  • Show log

Source

Open source (MIT): https://github.com/waleedsaeedma/ai-code-reviewer

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft