Skip to content

Agent Architecture

VS Code Copilot

VS Code Copilot is an editor-native agent host with chat, local agents, Copilot CLI handoff, remote sessions, MCP servers, hooks, memory, subagents, prompt files, custom agents, and plugins documented as separate VS Code agent surfaces.

Source reviewed #5Checked 2026-07-06
Run type
Extension
Adapter
json-stdio
Source
Closed / product homepage
Stars
Frontier

Archive Context

This page is one host entry inside the full architecture archive and keeps multi-surface products visible instead of collapsing them into a single run type.

42 host archive
Host page
vscode-copilot
Run cohort
Extension: 4
Archive route
/agents

Host Surface Perspectives

The host is the primary architecture boundary. Each runnable surface below separates what the host owns from what agent-connector can safely install for VS Code Copilot.

1 surface entry

Extension

extension
Host entry
An IDE extension host runs inside VS Code, JetBrains, or another editor and receives workspace/editor context through that host's extension APIs.
Host owns
The editor owns activation, command palette placement, sidebar/chat UI, extension storage, trust prompts, and workspace permission boundaries.
Connector role
agent-connector targets documented extension-readable config, MCP, commands, skills, rules, and memory files without claiming control of the IDE. Current wired connector surfaces: MCP server, Hooks, Commands, Skills, Subagents, Memory.
Implementation consequence
Extension surfaces must distinguish file-backed connector artifacts from UI affordances that only the editor or marketplace extension can expose. No visible host-native gap is currently tracked for this surface.

Verified Architecture

Source-checked on 2026-07-06. These notes are intentionally separate from the generated surface matrix below.

Sequence #5

Source pass

Current source review findings are kept as the first architecture section so readers can separate external evidence from the generated local coverage model.

  • The public tracker is archived and deprecated, which makes the row a product/extension evidence surface rather than an implementation source.
  • The repository scope is VS Code Copilot Chat and completions UX feedback, so this host remains an IDE extension row rather than a CLI row.
  • Because the public tracker points feedback elsewhere, architecture claims should stay tied to documented extension behavior and local adapter metadata.

Runtime boundary

The adapter target is the VS Code extension and agent runtime. VS Code owns the editor window, chat surfaces, local agent harness, integrated terminal, workspace trust, extension tools, permissions, and background session UI.

  • VS Code exposes an Agents window, Chat view, inline chat, and quick chat as separate user surfaces.
  • Local agents run inside the editor harness, while Copilot CLI sessions run outside VS Code in the background.
  • The connector page must not collapse the VS Code host with Copilot CLI even though VS Code can start and monitor CLI sessions.

MCP registration

MCP is first-class in VS Code agent customization. The docs distinguish adding servers, managing server trust, enabling or disabling servers, synchronizing configuration, and centrally managing access, so connector writes need to respect editor policy boundaries.

  • MCP servers extend chat with external tools and can be added through the VS Code agent customization path.
  • Trust, sandboxing, and centrally managed access are host-owned policy surfaces.
  • Copilot CLI has its own MCP limitations and should be documented separately from VS Code local agents.

Hook bridge

VS Code documents agent hooks as a preview customization surface. agent-connector should treat this as an editor-native hook system, while keeping current adapter support tied to the exact generated files and event envelopes it can verify.

  • Hooks belong to agent customization rather than ordinary chat commands.
  • Preview status means the page should avoid over-promising stable hook semantics.
  • Hook support is distinct from MCP tools and from Copilot CLI's separate hook surface.

Content surfaces

VS Code agent content includes instructions, agent skills, custom agents, prompt files, memory, and workspace context. These are editor-scoped content surfaces that interact with settings, workspace files, and extension APIs rather than a pure terminal dot directory.

  • Slash commands and prompt files are user-facing shortcuts, not lifecycle hooks.
  • Memory is a documented agent surface and should be separated from repository instructions.
  • Custom agents and subagents define personas and task decomposition inside the VS Code agent UX.

Marketplace and host-only affordances

The host-only story is VS Code's integrated agent control plane: multiple chat surfaces, extension-contributed tools, MCP, hooks, custom agents, notifications, checkpoints, and Copilot CLI handoff from one editor shell.

  • Extension-contributed tools are available to VS Code local agents but not necessarily to Copilot CLI sessions.
  • The archive should show VS Code as an editor host with both local and delegated background agents.

Host-specific shape

VS Code Copilot is an editor-extension host: the UI and activation live inside VS Code, while agent-connector targets the local Copilot-compatible MCP, hooks, skills, commands, subagents, and memory surfaces.

  • Form factor: Extension.
  • Native surfaces: MCP server, Hooks, Commands, Skills, Subagents, Memory.
  • Wired surfaces: MCP server, Hooks, Commands, Skills, Subagents, Memory.
  • Visible gaps: none.

Hooks

Hooks enter through a host-launched command that exchanges event JSON over stdio.

MCP

The adapter writes this host's native MCP registration dialect, including its root key, scope, transport fields, and environment syntax.

Memory

Managed memory text is written into the rules or memory file this host actually reads, with ownership markers for reversible uninstall.

Marketplace and affordances

Current install is a direct native-file write path; any package artifact is manual unless a driver is added.

  • Runtime handlers: none.
  • User-visible affordances: Users see managed commands + skills + subagents + memory surfaces after install; runtime-only surfaces stay behind the host boundary..

Known Limits

  • Keep VS Code local agents distinct from Copilot CLI sessions.
  • Hook claims should track the preview documentation and local adapter tests.
  • Editor extension tools should not be counted as Copilot CLI tool availability.

Architecture Diagram

Host-specific flow for the Extension surface.

json-stdio
Host-owned architecture flowHost surfaceExtensionRuntimejson-stdioNative artifactsMCP + hooks + content + memoryConnector boundarystdio eventsUser surfacecmds + skills + agents + memoryagent-connector writes only documented host artifacts; the host owns the agent loop.
  1. 1
    Entry point: Extension

    IDE extension host reads extension global storage and workspace-scoped files while the editor owns activation and UI.

  2. 2
    Connector package

    defineConnector package declares server, hooks, content, memory, and actions.

  3. 3
    Adapter module: vscode-copilot

    json-stdio renderer at src/adapters/vscode-copilot/index.ts.

  4. 4
    Native host artifacts

    Adapter writes MCP config + hook config + content files + memory/rules through this host's native file, package, or marketplace surface.

  5. 5
    Runtime boundary

    host launches JSON-stdio hook command

  6. 6
    User-visible surface

    Users see managed commands + skills + subagents + memory surfaces after install; runtime-only surfaces stay behind the host boundary.

  7. 7
    Coverage ceiling

    6/6 native surfaces wired. No visible host-native gap in the current coverage matrix.

Component Diagram

Static parts of the VS Code Copilot integration and which side owns each one.

Components and ownershipVS Code Copilot hosthostagent-connector packageconnectorvscode-copilot adapterjson-stdioNative artifactsartifactsRuntime bridgeruntimeUser-visible surfaceuser
  • VS Code Copilot host

    Extension surface owns the model loop, UI shell, config discovery, and native lifecycle for this integration.

  • agent-connector package

    Normalizes connector declarations into MCP, hook, memory, content, and action payloads before delegating to a host adapter.

  • vscode-copilot adapter

    Implements the json-stdio translation layer in src/adapters/vscode-copilot/index.ts.

  • Native artifacts

    Adapter writes MCP config + hook config + content files + memory/rules through this host's native file, package, or marketplace surface.

  • Runtime bridge

    host launches JSON-stdio hook command

  • User-visible surface

    Users see managed commands + skills + subagents + memory surfaces after install; runtime-only surfaces stay behind the host boundary.

Runtime Sequence Flow

Message order from install to runtime for the Extension surface.

User / projectagent-connectorvscode-copilot adapterVS Code CopilotAgent runtimeCoverage matrix1. Choose host adapter2. Resolve connector declaration3. Render host-native shape4. Host loads artifacts5. Run through host boundary6. Expose remaining ceiling
  1. 1 · User / project
    Choose host adapter

    Install or update starts against VS Code Copilot; the selected surface is Extension.

  2. 2 · agent-connector
    Resolve connector declaration

    The package reads connector metadata and routes it to the vscode-copilot adapter instead of exposing a generic host contract.

  3. 3 · vscode-copilot adapter
    Render host-native shape

    Adapter writes MCP config + hook config + content files + memory/rules through this host's native file, package, or marketplace surface.

  4. 4 · VS Code Copilot
    Host loads artifacts

    host launches JSON-stdio hook command

  5. 5 · Agent runtime
    Run through host boundary

    Users see managed commands + skills + subagents + memory surfaces after install; runtime-only surfaces stay behind the host boundary.

  6. 6 · Coverage matrix
    Expose remaining ceiling

    6/6 native surfaces wired. No visible host-native gap in the current coverage matrix.

Architecture Archive

The same five study axes are rendered for every host: runtime shape, hooks, MCP, memory, and host-only affordances.

Host-specific shape

VS Code Copilot is an editor-extension host: the UI and activation live inside VS Code, while agent-connector targets the local Copilot-compatible MCP, hooks, skills, commands, subagents, and memory surfaces.

  • Form factor: Extension.
  • Native surfaces: MCP server, Hooks, Commands, Skills, Subagents, Memory.
  • Wired surfaces: MCP server, Hooks, Commands, Skills, Subagents, Memory.
  • Visible gaps: none.

Hooks

Hooks enter through a host-launched command that exchanges event JSON over stdio.

MCP

The adapter writes this host's native MCP registration dialect, including its root key, scope, transport fields, and environment syntax.

Memory

Managed memory text is written into the rules or memory file this host actually reads, with ownership markers for reversible uninstall.

Marketplace and affordances

Current install is a direct native-file write path; any package artifact is manual unless a driver is added.

  • Runtime handlers: none.
  • User-visible affordances: Users see managed commands + skills + subagents + memory surfaces after install; runtime-only surfaces stay behind the host boundary..

Special Feature Inventory

Host-specific capabilities separated from the generic surface matrix: lifecycle hooks, MCP registration, memory/rules, marketplace delivery, and UI or content affordances owned by the host.

Lifecycle hooks

Wired

Hooks enter through a host-launched command that exchanges event JSON over stdio.

MCP registration

Wired

The adapter writes this host's native MCP registration dialect, including its root key, scope, transport fields, and environment syntax.

Memory and rules

Wired

Managed memory text is written into the rules or memory file this host actually reads, with ownership markers for reversible uninstall.

Marketplace delivery

Direct files

Current install is a direct native-file write path; any package artifact is manual unless a driver is added.

Host-only affordances

3/3 wired

Wired host affordances: Commands, Skills, Subagents. Host-native gaps: none. Not confirmed: Statusline handler, Action affordances.

Source Review Notes

Latest source pass for host-specific architecture details. This is separate from generated adapter coverage and local drift guards.

Checked 2026-07-06Open review source
microsoft/vscode-copilot-release repository
  • The public tracker is archived and deprecated, which makes the row a product/extension evidence surface rather than an implementation source.
  • The repository scope is VS Code Copilot Chat and completions UX feedback, so this host remains an IDE extension row rather than a CLI row.
  • Because the public tracker points feedback elsewhere, architecture claims should stay tied to documented extension behavior and local adapter metadata.

Evidence Map

Each host page ties public source evidence to the local adapter and drift guards that keep the rendered archive aligned with code.

Product source

Official product homepage or public tracker used when no open product repository is confirmed.

external
Open source

Local adapter implementation

Defines the install/uninstall behavior, native config rendering, capability flags, and any runtime parse/format bridge for this host.

local
src/adapters/vscode-copilot/index.ts

Platform metadata and host-native matrix

Records the form factor, public source target, ranking source, native host surfaces, and current agent-connector coverage cells.

local
site/src/platform-data.ts

Architecture drift guard

Asserts that every registered host has a page, diagram, host-specific brief, source link, form-factor band, and adapter-aligned surface data.

local
tests/docs/platform-drift.test.ts

Runtime Shape

Hooks are dispatched through a host-launched command. The adapter parses host JSON, calls the connector handler, and formats the reply back to the host contract.

MCP registration
Wired through this adapter
Hook bridge
Wired

Connector Surfaces

Static content

MCP server, Hooks, Commands, Skills, Subagents, Memory

Runtime handlers

No runtime handler surfaces wired

Surface Matrix

Wired means agent-connector installs it now. Host native marks support we know about but have not wired yet.

SurfaceStatus
MCP server
Static content
agent-connector installs this surface today.
Wired
Hooks
Static content
agent-connector installs this surface today.
Wired
Commands
Static content
agent-connector installs this surface today.
Wired
Skills
Static content
agent-connector installs this surface today.
Wired
Subagents
Static content
agent-connector installs this surface today.
Wired
Memory
Static content
agent-connector installs this surface today.
Wired
Statusline handler
Runtime handler
No confirmed host-native surface.
N/A
Action affordances
Runtime handler
No confirmed host-native surface.
N/A