▪▪▪ ▪▪▪

On Great Plugin Systems

by Robert Jefe Lindstaedt August 21, 2026
Essential Reads

An agent depends on its harness, and a harness depends on its plugin system. So how cleanly a plugin can be unloaded affects how good an agent is.


An agent is a model plus a harness: the code that owns its tools, permissions, session state, memory and subagents. The same weights in a different harness are a different product.

A harness is a plugin system. Tools are added and removed, capabilities get added mid-session, and a self-improving harness edits its own components while serving requests. That is dynamic composition. Most plugin systems handle it badly and work around it by restarting the process.

A Programming Paradigm for Spatiotemporal Composability (Shi, Zhang and Cui, Peking University and DeepSeek-AI) formalises it in eighty-eight pages.

The paper treats composition in two dimensions. Temporal: removing a component completely reverses every modification it made. Spatial: components declare and resolve dependencies on each other in a checkable way. Statically, both are solved by scoping and import resolution. Dynamically, both are unsolved. The authors lift effects into revertible effects: every context transformation carries an inverse that the runtime tracks. They lift coeffects into reactive coeffects: when the context changes, components are notified against what they declared.

Among VSCode’s top 100 extensions, the paper counts 87 that contain executable code and cannot be removed without restarting the whole extension host. 7 declare a dependency on a non-built-in extension. Of the deactivate hook, the paper says it separates effect disposal from effect creation, which “violates locality of concern and makes complete cleanup difficult to verify.”

That describes every uninstall path I have written, and more accurately than I would have.

The implementation is Cordis. Koishi has run on it for four years, with more than 4000 community plugins. Cordis’s documentation now lives under the DeepSeek Harness, so the composition layer this paper formalises is part of a shipping agent harness.

We have built plugin systems. In each of them, unloading was best effort: a dispose callback, an attempt at unregistering listeners, a line in the docs saying to restart to fully disable a plugin. I treated that as pragmatism, because I had not spent long enough on the problem to see its structure.

Next, we want to compare the implementations (VSCode, OSGi, Eclipse, OTP hot code loading, Emacs, browser extensions, Cordis) against fixed questions. Can a component be removed without restarting its host? Are effects tracked, or is cleanup a convention? Is the dependency contract checked? The paper’s two dimensions, temporal and spatial, are the basis for the comparison. We will ask the same questions of our own harness.

Read sections 1.1 and 1.2, five pages in total.