Skip to content

Decision Core Defines Plugins Provide

Matthew Layton edited this page Nov 11, 2026 · 4 revisions

Decision: core defines, plugins provide

Epic #647, 2026-09. States the boundary the plugin system is built on, and — as importantly — where that boundary stops. The rulings it gathers were made across #574 (decoders), #592 (container engines) and #647; this page is where they are stated once.

⚠️ Amended 2026-10-06 by the ruling that core is UI only (2026-10-04), acted on in #804: source control and forges, which this page once listed as staying in core, are now plugins. See Core is UI only below.

⚠️ Amended 2026-11 by #907: package management is a plugin too. See Package management below.

The decision

Core defines capabilities and speaks protocols. Plugins provide protocol implementations.

Core owns the surface a user sees, the seam behind it, and the protocol client that talks across that seam. A plugin supplies the thing on the far side. It never brings a surface of its own: if Studio has no 3D-model editor, there is nothing to plug a 3D-model editor into, and the list of contribution points grows when Studio grows a capability — not when a plugin wants one.

A plugin is data, never code. Its manifest says how to obtain a payload, how to verify it, and how to start it; it never describes behaviour, and nothing is executed at install time — no install scripts, no package manager, no build from source. That is the whole trust model, and it only holds because there is a wire protocol on the other side of every contributable seam.

This is the line VS Code does not draw: an extension there is JavaScript executed inside the host, calling host APIs directly. That is "code as the contribution", and it is deliberately refused here.

What a plugin actually is

A plugin's payload is code — pyright is a quarter of a million lines of it. What matters is where it runs:

Layer What it is Whose code runs in Studio's process
Manifest Declarative: obtain, verify, start None
Payload A separate program on the far end of a pipe None
Protocol client (core) Turns wire messages into UI Core's

So a plugin is not code Studio runs. It is a program Studio launches and talks to, and the manifest is the launch instructions. Everything the payload can do is bounded by a protocol whose whole vocabulary core already defines.

The test for a proposed contribution point

  1. Does Studio already own a surface for it? No → not pluggable; there is nothing to plug into.
  2. Is there a seam behind it that more than one implementation could fill? No → the surface is the capability, and it stays core (markdown rendering, the code editor, the terminal).
  3. Is there a protocol behind that seam — a separate process spoken to over a wire? No → it stays core until one exists. Inventing one is not a plugin-system task.

Where that lands today

Ten contribution points, and core ships no implementation of any of them:

Point Surface Protocol
Language servers The editor LSP
Debug adapters The debug panel DAP
Decoders The binary editor A line-delimited JSON protocol
Container engines The Containers tab The container-engine protocol, which Studio defines
Agent harnesses The agent surfaces The agent protocol, which Studio defines
Version control The source-control panels The version-control protocol, which Studio defines
Code hosting Pull requests, issues and workflow runs The hosting protocol, which Studio defines
Database engines The Database Explorer The database-engine protocol, which Studio defines
Package managers The Packages panel The package-manager protocol, which Studio defines
Test adapters The Tests panel The test-adapter protocol, which Studio defines

Not a contribution point yet: project systems, the seven in-process providers behind the Solution Explorer. Under the 2026-10 ruling below, that is debt to move behind a protocol, not a boundary, the same as was said of forges, source control and package managers until #804 and #907 moved them.

Agent harnesses were on that list, and are not any more

⚠️ This page said the opposite in September 2026, and the reversal is the interesting part.

Agent harnesses — the CLI-backed runtimes behind Claude and Codex — were assessed against the test above and failed question 3. There are child processes, but core does not speak to them: the vendor SDK runs inside Studio's own process and owns the wire. The Claude SDK is in-process and drives its own bundled CLI; the Codex SDK spawns codex exec --experimental-json and parses the stream itself. Three harnesses, three private vocabularies, none standardised. On that reading the conclusion was that harnesses stay core until somebody publishes a protocol.

The ruling (#653, 2026-09-09) is that Studio defines the protocol rather than waiting for one. The reasoning that closed the question had smuggled in an assumption: that question 3 asks whether a protocol exists, when what it asks is whether one is possible without inventing behaviour. A harness is a program that takes a turn and streams events — that is protocol-shaped whether or not a standard body has said so, and an adapter wrapping a vendor SDK is the same relationship rust-analyzer has to LSP.

So the rule stands with one word sharpened. "Inventing a protocol is not a plugin-system task" remains true for a seam whose behaviour cannot be described — an in-process interface with behavioural methods. It is not a reason to refuse a seam that is already a conversation, merely because someone else's library is currently having it.

Core is UI only (2026-10)

⚠️ This page used to say forges and source control stay core "until a concrete second implementation exists". That is reversed.

The ruling (2026-10-04) is no functionality besides UI in core. Anything that is, or should be, behind a seam is a plugin — git included, and every forge. It supersedes the reading above that made the protocol test the boundary: the test still tells you how a seam becomes pluggable (a protocol on the far side of a pipe), but it is no longer a reason for a capability to stay in core. A seam with only one implementation today is still a seam.

#804 acted on it, the same way #653 did for agent harnesses — Studio defines the protocol rather than waiting for one:

  • Version control — a version-control protocol and the versionControl point; core runs no git. The Git plugin serves it, and its program is a Settings choice (installed, or a custom path), like the Claude provider's.
  • Code hosting — a hosting protocol and the hosting point; core names no host. The GitHub plugin serves github.com, signing in with the GitHub CLI's login or a token Studio keeps — a choice per host in Settings ▸ Source Control. The token stays in core's encrypted store and is handed only to the plugin serving its host.
  • Capabilities — each plugin advertises what it supports, and a repository can narrow that further; the UI shows only what the installed plugin and the repository allow. With neither plugin installed, the source-control surfaces say so and offer the install rather than appearing broken.

The acceptance test is the one the AI providers set: open a fresh profile and nothing is offered; install Git and GitHub from the Plugin Manager, and only what they advertise becomes configurable and usable.

Still open: where the line sits for the platform services the UI itself needs — windows, the file system, IPC, the plugin host, settings, secrets, the permission broker (#809).

Package management (2026-11)

#907 acted on the same ruling for the Packages panel. About 3,200 lines of npm and NuGet reading had lived in core, including .npmrc and nuget.config credential parsing and the registry HTTP calls. Now there is a package-manager protocol and the packageManagers point, and core reads no manifest of its own. See Package managers for plugin authors and Packages for users.

  • Several at once. Unlike version control, this is not a choice of one. Every plugin whose marker a folder holds applies, so a repository with an npm package and a .NET solution shows both.
  • Writes are in the protocol, and a plugin never performs one. Install, update, remove and restore answer with a command (program, arguments, folder). Studio checks it and runs it in a visible terminal. This is not the "no package manager at install time" this page rules out: that rule is about installing a plugin. This is the user's own tool, run on their say-so, where they can see it.
  • Credentials match code hosting. The tool's own configuration is read by the plugin, and a token saved in Studio is handed over mid-request, only to the plugin it was saved for and only for that registry.
  • Trust. A package manager reads only a folder the user trusts, because a project's configuration names the registry and what is sent to it. A folder that isn't a repository is trusted from the Packages panel.

The acceptance test is the AI providers' again. On a fresh profile the Packages panel shows nothing. Install npm or NuGet (or PyPI, Cargo, Go modules, Maven, vcpkg, Conan) and it fills in.

The Tests panel followed the same shape in #802: a test-adapter protocol and the testAdapters point, keyed by markers, several at once, and a run answered with a command Studio runs in a visible terminal.

What stays in core, and why

Some first-party components are described in code rather than as data. That list is deliberately short, and each entry is there because resolving it is a computation rather than a description:

Component The computation
gopls Built from source with the user's own Go toolchain.
Roslyn Derives its solution/open start-up traffic from the workspace.
typescript-language-server Points at the bundled compiler only when the workspace has none of its own; doing it unconditionally would make the editor disagree with the project's own tsc.
jdtls Globs a version-stamped launcher jar out of its payload and computes a per-workspace data directory.
kotlin-language-server Needs JAVA_HOME set from the runtime Studio detected.

The last two point at the general rule: a manifest may declare a prerequisite, it may not teach Studio to detect one. That is why requires is a closed list of runtimes. Detection is code.

This list is not expected to get much shorter. It is where description stops and execution begins.

What this bought

The user-facing goal — carry only the features you use — was already most of the way there before this epic, because everything installs on demand. A fresh installation ships no language server, no debugger, no decoder and no container engine — and, since #804, no version control and no forge and, since #907 and #802, no package manager and no test framework. What #647 added is consistency: the delivery model is now the same for every implementation, and the exceptions are written down rather than implied.

Related

  • Plugins — the manifest, provisioning, the curated catalogue, and how to verify it.
  • Container engines — the fourth point, and the epic that proved an unkeyed slot.
  • Runtime seams — the seams core owns.

Clone this wiki locally