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-vscodeAfter 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"
}| Setting | Default | Description |
|---|---|---|
forg.enabled | true | Enable/disable the extension |
forg.projectId | null | Override project ID for all signals from this workspace |
forg.captureInlineCompletions | false | Whether to emit signals for inline completions (high volume) |
forg.agentPort | 6247 | Local agent port override |
What gets captured
- GitHub Copilot Chat interactions (all models)
- Copilot Edits sessions
- VS Code
lm.sendRequestcalls 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
| Issue | Resolution |
|---|---|
| Status bar shows red dot | Run forg status to confirm agent is running. Restart VS Code if needed. |
| Copilot signals missing | Ensure Copilot is signed in and active. FORG can only capture calls that go through the VS Code lm API. |
| Extension not appearing | Check Extensions: Show Installed for "FORG". Reload window after install. |
© 2026 UpgradIQ, Inc.Edit this page on GitHub