StableAdapters

VS Code Adapter

The FORG VS Code extension hooks into the VS Code extension API to capture AI usage from GitHub Copilot, Copilot Chat, and other language model extensions. It works by observing VS Code's lm (language model) API requests.

Prerequisites

  • VS Code 1.85.0 or later
  • FORG CLI installed and activated
  • GitHub Copilot or another VS Code AI extension installed

Installation

Install from the VS Code Marketplace:

# Via VS Code command palette:
ext install forg-pro.forg-vscode

# Via CLI:
code --install-extension forg-pro.forg-vscode

After installation, VS Code will prompt you to confirm the FORG agent connection. Click Allow. The extension connects to the local agent at127.0.0.1:6247.

Configuration

Open VS Code settings (Cmd+,) and search for "FORG", or edit settings.json:

{
  "forg.enabled": true,
  "forg.projectId": "proj_my-vscode-project",
  "forg.captureInlineCompletions": false,
  "forg.logLevel": "info"
}
SettingDefaultDescription
forg.enabledtrueEnable/disable the extension
forg.projectIdnullOverride project ID for all signals from this workspace
forg.captureInlineCompletionsfalseWhether to emit signals for inline completions (high volume)
forg.agentPort6247Local agent port override

What gets captured

  • GitHub Copilot Chat interactions (all models)
  • Copilot Edits sessions
  • VS Code lm.sendRequest calls from any extension
  • Optionally: inline completion requests (disabled by default due to volume)

Verification

Check the FORG status bar item in VS Code (bottom bar). It shows:

  • Green dot = agent connected, signals flowing
  • Yellow dot = agent connected, no recent signals
  • Red dot = agent not reachable

Troubleshooting

IssueResolution
Status bar shows red dotRun forg status to confirm agent is running. Restart VS Code if needed.
Copilot signals missingEnsure Copilot is signed in and active. FORG can only capture calls that go through the VS Code lm API.
Extension not appearingCheck Extensions: Show Installed for "FORG". Reload window after install.
© 2026 UpgradIQ, Inc.Edit this page on GitHub