Real-time diagnostics
ADR violations appear in the Problems tab as you code — errors, warnings, and info with precise file and line locations. No separate CLI run, no waiting for CI.
Install and configure the Archgate VS Code extension — real-time ADR compliance diagnostics in the Problems tab plus AI governance skills for Copilot Chat.
The Archgate VS Code extension brings architecture governance directly into your editor. It does two things at once: it surfaces ADR violations as native VS Code diagnostics the moment you save a file, and it adds AI governance skills to Copilot Chat so agents read your decisions before writing code.
It pairs with the VS Code agent plugin (the archgate:developer agent and skills installed from the Archgate marketplace). The extension covered here is the diagnostics surface; the agent plugin is the AI workflow. archgate init --editor vscode sets up both.
archgate init — the extension activates only when your workspace contains a .archgate/ directory.Real-time diagnostics
ADR violations appear in the Problems tab as you code — errors, warnings, and info with precise file and line locations. No separate CLI run, no waiting for CI.
Scoped checks
Only the ADRs relevant to the saved file are evaluated, so feedback is fast and focused. Violations clear automatically when you fix them.
Governance skills
Copilot Chat gains skills for authoring ADRs, reviewing changes, onboarding a project, and capturing lessons learned.
Manual check command
Trigger a full compliance check on demand from the Command Palette.
The extension is distributed as a .vsix package through the Archgate plugins service. The recommended path installs it automatically; manual .vsix install is available if you prefer.
Log in to obtain a plugin token (the extension is in closed beta):
archgate loginInitialize your project with the VS Code editor target:
archgate init --editor vscodeWhen you are logged in and the code CLI is on your PATH, this creates the .archgate/ directory, registers the authenticated Archgate marketplace in your VS Code user settings, and downloads and installs the extension .vsix.
Open your project in VS Code. The extension activates on the .archgate/ directory and begins running checks on save.
See the CLI guide for the exact flags (--install-plugin) and the user-settings paths per platform.
If you would rather not let the CLI modify your user settings, install the .vsix directly. Retrieve your authenticated download URL and token with archgate plugin url vscode, then:
curl -H "Authorization: Bearer <token>" https://plugins.archgate.dev/api/vscode -o archgate.vsixcode --install-extension archgate.vsixrm archgate.vsixYou can also install a downloaded .vsix from VS Code’s UI: open the Extensions view, click the ... menu, choose Install from VSIX…, and select the file.
The extension is a thin surface over the Archgate CLI. The flow on every save is:
.archgate/ directory.archgate check --json scoped to the saved file..rules.ts files) that apply to that file.Because checks are scoped to the saved file, only the ADRs whose files globs match are evaluated — you get targeted feedback rather than a whole-project scan on every keystroke. Diagnostics clear as soon as the underlying violation is fixed and the file is saved again.
For a full-project pass, run the Archgate: Check ADR Compliance command from the Command Palette (Ctrl+Shift+P / Cmd+Shift+P).
The extension reads these settings (set them per-workspace in .vscode/settings.json or globally in your user settings):
| Setting | Default | Description |
|---|---|---|
archgate.runOnSave | true | Run an ADR compliance check when a file is saved. |
archgate.debounceMs | 1000 | Debounce delay, in milliseconds, for on-save checks. |
archgate.cliPath | "archgate" | Path to the archgate CLI executable. Override if the CLI is not on your PATH. |
archgate.timeoutMs | 60000 | Timeout, in milliseconds, for check commands. |
The accompanying agent plugin adds the archgate:developer agent plus role skills to VS Code’s AI. The agent orchestrates a read-validate-capture workflow: it reads applicable ADRs before writing code, runs archgate check after, reviews structural compliance, and captures new patterns. The skills cover authoring ADRs, reviewing changes, one-time project onboarding, and lessons learned.
These map to the same roles documented in Skills and Agents. The plugin’s agent and skill setup is described in full in the CLI VS Code plugin guide.