VS Code Extension

A fast way to jump from an Optibot PR comment to a ready-to-fix view in your IDE. Click Solve in VS Code in GitHub, we open VS Code, prefill context, and help you apply the fix. You commit back to the same PR — no copy-pasting, no hunting for files.

Overview

The Optibot VS Code extension connects GitHub review comments to your IDE. When Optibot detects issues during code review, each comment includes a “Solve it in VS Code” link that:

  • Opens your editor instantly at the exact file and line.
  • Pre-loads the Optibot comment in the Chat panel.
  • Lets you apply, edit, or reject the suggested fix — then commit directly back to the same PR.

Why it matters: Developers can fix issues where they write code, not in the browser. It cuts down friction between review and correction.

Requirements

  • VS Code 1.85 or later.
  • GitHub repository integrated with Optimal AI (Optibot active).
  • Standard Git permissions and write access to the PR branch.
  • (Optional) Cursor. Review comments carry a Solve it in Cursor link alongside the VS Code one, and the flow is the same.

How it Works

1. Create a new Pull Request

After pushing your branch, open a PR as usual. Optibot automatically analyzes new PRs once created.

2. PR opens and waits for review

Once open, you’ll see CI checks start and a Review required notice until Optibot finishes its scan.

3. Optibot runs an automated review

Optibot posts a summary comment outlining issues, improvements, and review duration.

4. Inline comment identifies the issue

Each flagged line includes Optibot’s reasoning and action links: Solve it in VS Code and Solve it in Cursor, side by side, so you can open whichever editor you use.

5. Click “Solve it in VS Code” or “Solve it in Cursor”

The link redirects you to an Optibot-hosted confirmation screen, verifying that your IDE will open with context pre-loaded.

6. Browser prompt — open VS Code

Approve the launch prompt. Check Always allow agents.getoptimal.ai to make future jumps automatic.

7. Install the Optibot AI extension (first-time only)

If you don’t have it yet, VS Code will prompt you to install the extension automatically.

8. Editor opens with context loaded

Your VS Code window opens to the exact file and line mentioned in the review. Optibot’s Chat panel shows the comment, explanation, and fix suggestion.

9. Review, apply, and commit

You can:

  • Allow/Accept to apply the fix.
  • Edit or improve it manually.
  • Undo if it’s not relevant.

Then commit your change back to the same PR and request another review.

Install Manually from VS Code Marketplace

→ Install from VS Code Marketplace

Install

  1. Open VS Code.
  2. Go to Extensions (⇧⌘X / Ctrl+Shift+X).
  3. Search Optibot AI.
  4. Click Install.

Uninstall or Disable

  • Open Extensions (⇧⌘X / Ctrl+Shift+X).
  • Search Optibot AI.
  • Click ⚙︎ → Uninstall (or Disable to turn it off temporarily).

The Optibot sidebar

The deep-link flow above is one way in. The extension also adds an Optibot icon to the activity bar, and the panel behind it works on its own, without a review comment to click through from.

From the sidebar you can:

  • Pick a base branch and run a review on the current repository.
  • Watch the review progress and read the findings in place.
  • Run a supply-chain security scan and read its findings.
  • See which organization you are acting as, and switch to another.
  • Move between repositories when your workspace holds more than one.

Commands

Most sidebar actions also have a command-palette entry. Open the palette (⇧⌘P / Ctrl+Shift+P) and type “Optibot”. Running a review is the exception: start that from the sidebar, where you pick the base branch first.

CommandWhat it does
Optibot: LoginSign in through the browser
Optibot: LogoutSign out and clear stored credentials
Optibot: Switch OrganizationChange which organization you are acting as
Optibot: Run Security ScanStart a supply-chain security scan on the current repository
Optibot: Check Authentication StatusReport whether you are signed in, and as whom
Optibot: Open Copilot with PromptHand a finding to Copilot Chat as a prompt
Optibot: RefreshReload the sidebar

Sign-in & Org Routing

If prompted, click Log in inside the Optibot sidebar. You’ll be routed to your organization automatically — no re-registration needed. The same action is available from the command palette as Optibot: Login.

Security & Data

  • Runs locally inside your IDE.
  • Uses your existing secure GitHub authorization.
  • GitHub doesn’t allow tracking pixels — Optibot cannot track link clicks.

Troubleshooting

IssueFix
VS Code doesn’t open after clicking “Solve it in VS Code”Make sure your browser allows the vscode:// protocol to open external apps
Cursor doesn’t open after clicking “Solve it in Cursor”Make sure your browser allows the cursor:// protocol to open external apps
The “Install Optibot AI” prompt didn’t appearOpen VS Code manually → go to Extensions → search Optibot AI → install manually
Opened the wrong file or branchVerify that the PR branch is checked out locally before using Solve in VS Code
Auth loop or login required againClick Log in in the Optibot sidebar, or run Optibot: Login from the command palette, to reconnect to your org
Corporate devices blocking deep linksAsk IT to allow the vscode:// protocol, and cursor:// if your team uses Cursor
Context didn’t load in VS CodeWait a few seconds or click Retry on the loading page

FAQ

Does it auto-commit or create a new PR? No. You control commits. Changes are typically committed back to the same PR.

Can I use it with Cursor? Yes. Behavior is the same, and review comments carry a Solve it in Cursor link alongside the VS Code one.

Can we track engineers who clicked the link? No. GitHub blocks trackers in comment links. You’ll see impact via commits and re-reviews instead.

Does this replace line-by-line reviews? No. Optibot still performs PR reviews in GitHub. The extension speeds up fixing them.

Pro Tips

  • Check Always allow once to skip the browser prompt next time.
  • Batch fixes: open multiple “Solve in VS Code” links, apply all, and commit once.
  • Once you’ve addressed all comments, tick re-review this PR at the end of the review to get a fresh one.
  • Pull the latest branch before applying fixes for the most accurate context.