A console, a registry, and plugins
← All posts

A console, a registry, and plugins


In March and April, CAPA was still mostly a CLI. In the second week of May, that changed three times with a React console (1.6, May 9), registries (1.7, May 14), and plugins (1.8, May 16). They shipped as three features. In hindsight, however, they address one problem. Nearly all of the code given to an agent was written by another party, and until May the file did not make that explicit.

The problem

Skills were the simple case. A skill is markdown, and the February post was about not copying that markdown into every repo. However, searching a catalog (rather than naming an owner/repo that is already known) requires a component that fetches and parses that catalog, and that component is a program. Plugins are a harder case. A plugin can ship MCP servers, hooks, and sub-agents, i.e. code that executes on the local machine and communicates with the user’s accounts.

Thus, the goal for May was not to install more. Rather, it was to know what runs after each install, and to inspect it before it runs.

The console writes the file. The file is still the truth.

capa install and capa start serve a local UI at http://127.0.0.1:5912. It exists because some tasks are poorly suited to a terminal (e.g. entering a dozen secrets, checking which of the 30 tools of a server are exposed, or scrolling a catalog). It is not a second source of configuration.

The figure below shows the project view for a small demo, with tool exposure set to search (more on that in September) and the skills that CAPA installed.

The CAPA project view, skills open, tool exposure set to search

There is one setting that the console does not persist. Each server card has an on/off toggle, which exists only in the running server, and capa install re-enables every declared server. The rule is that any setting that should survive a reinstall has to be in capabilities.yaml. The console therefore writes it there, and after a change to servers or exposure, capa install has to be rerun so the clients receive it. The file in git is what a teammate receives. The console is simply a way to edit it without writing YAML by hand.

A registry adapter is a program, so it is staged

CAPA ships with three registries, namely skills.sh, the Claude plugin catalog, and the Cursor marketplace. They can be searched from the CLI or the console.

Skills.sh, Claude Plugins, and the Cursor Marketplace in the CAPA registries page

capa registry list
capa registry search skills-sh "git"
capa add skills-sh:vercel-labs/skills/find-skills

capa add owner/repo@skill-name remains available when the source is already known. The registry is for the case where it is not.

This is the most important part. A registry is an adapter, that is, a single TypeScript file with a manifest, a search, and a view. It runs inside the CAPA server process without any sandbox around it. Therefore, adding a registry means adding code that runs with the permissions of the user on every search. CAPA does not hide this. capa registry add fetches the adapter, prints its SHA-256 and a preview of the source, and then stops. No code executes until the user confirms, or until capa registry approve <slug> runs after the source has been read. Every later load re-checks the file against the recorded hash.

The three defaults are handled differently. Their adapters are bundled in the binary and pinned. CAPA never downloads them (neither on first start nor on refresh), and a copy on disk that does not match the pin is refused. A Claude marketplace is the only kind of registry with no adapter at all. It is a JSON catalog, so pointing at one runs no code.

We prefer to explain this once here, rather than have someone discover it by reading the --yes flag in a CI log.

A plugin unpacks into the file. It does not become a folder.

A plugin is a remote package of skills (and often MCP servers, hooks, rules, and sub-agents) from one repository. With 1.8, that install path became sufficiently mature to recommend to a teammate.

plugins:
  - id: office-kit
    type: github
    def:
      repo: Minitour/office-kit

The design choice concerns what CAPA does with the manifest. It does not place an opaque plugin directory into the config of each client. Instead, it unpacks the pieces into the same model as everything else in the file. Thus, a hook from a plugin goes through the same install step as a declared hook, and a sub-agent from a plugin receives the same provider targeting. In the console, plugin-owned rows appear locked, so a casual edit does not fork the package of another author.

Two consequences follow, and both are deliberate. First, unpacking is not exposing, so installing a plugin does not enable every tool it contains. The tools have to be named explicitly under tools, and its skills are activated with type: plugin. Second, if the server id of a plugin collides with an existing one, it is remapped (servers: { slack-server: { as: slack } }) rather than one of them being lost.

OfficeKit is not an Infragate product. I wrote it to produce branded documents, decks, and video. It is also the plugin we use when an agent needs to leave a file behind, which is the topic of the next post.

What May was for

The CLI was sufficient to configure an agent. However, it was a poor place to browse a catalog, click a server, or inspect what a plugin had unpacked. The console now fills that role. Yet the main outcome we wanted from the month was a readable file that lists all the code that runs and the source of each piece, with the guarantee that no part of it ran before we reviewed it.


1.6, 1.7, and 1.8 shipped between May 9 and May 16. The console screenshots are from 2.2.4. The adapter contract (for writing a new adapter) is in the registry docs.