The mod shop
hangar Mod shop phase (P4.6)
An extension is a modification approved for one airframe at a time. It is a directory with a manifest and some assets. Those assets can be a theme, a set of language-server presets, an agent preset, a grammar, snippets, or a keymap layer. Installing it puts files on disk. Turning it on is a separate, per-profile decision.
flowchart LR
index["signed index<br/>index.json + signature"] --> store["content-addressed store<br/>extensions/publisher.id/version/"]
path["a directory<br/>acpilot ext add --from"] --> store
store --> verify["verified<br/>SHA-256, manifest"]
verify --> activate["activated in a profile<br/>extensions.toml"]
activate --> loaders["themed? preset? grammar?<br/>the existing registries"]
That split is the whole design. Two profiles can share one downloaded theme
without sharing one client’s agent presets. profile diff can still explain
where a value came from.
Two tiers, and only one of them is here
Section titled “Two tiers, and only one of them is here”| Tier | What it can contain | Ships |
|---|---|---|
| Declarative | Theme tokens, LSP and agent presets, tree-sitter grammars with queries, snippets, keymap layers | v0.1 |
| Code | Transcript parsers, tokenizers, anything needing a runtime | proposed, not v0.1 |
The line is drawn at “does this need to do something while you type”. A theme
is data. A preset is data. A grammar is a compiled .wasm parser driven by the
same tree-sitter runtime the editor already embeds. That is narrower than a
plugin API, but not the same as inert. The registry page says so out
loud.
Code extensions would mean a WASM runtime, an ABI, a capability model, and a memory budget. That is a project, not a checkbox. The mod-shop phase (P4.6) therefore ships the tier that answers most requests and leaves the other one honest on the roadmap.
What an extension may not do
Section titled “What an extension may not do”- Grant itself permissions. A preset that names a terminal tool still meets the broker. A command it introduces is trust-pinned on first run, exactly like a hand-written one.
- Run at install time. Installing unpacks a directory and hashes it.
- Reach the network. Tier 1 has no runtime to reach it with.
- Shadow a built-in. Ids are
publisher.id. A collision is an error, not an override. A theme that silently replacednight-flightwould make every screenshot in this manual a lie.
Not a plugin system
Section titled “Not a plugin system”Plugins run inside the product. They need a host API, a versioning policy, and a
way to break every release. Extensions here contribute data to existing
registries: the same lsp.toml, agents.toml, and theme tokens the product
already reads. When the registry needs a new kind of contribution, it gets a new
type. The extension format does not grow an API.
Four we intend to build
Section titled “Four we intend to build”The tier above is not a paper question. Three of these need it, and they are what the runtime has to answer for. All four are agent-visible. A panel a person can drive and an agent cannot is a feature that only works when someone is watching.
| Extension | What it does |
|---|---|
acpilot.api-workbench |
Imports an OpenAPI document, starting with Acpilot’s own, and turns an operation into a request. It handles parameters, schema-shaped bodies, environments with keyring secrets, auth, response diffing, and a tool an agent can call instead of handing it your token. Every send goes through the daemon, so the daemon audits it and checks it against policy like any other tool call. |
acpilot.regex-lab |
Writes a pattern against a test corpus. It shows named groups and spans, a replacement preview, four engine flavors (Rust, PCRE2, JavaScript, RE2), and the parse tree. It saves the pattern as a small regression suite. The engine is wasm. Nothing else in the editor changes. |
acpilot.db-workbench |
Browses and edits a database. It shows the schema, completion, EXPLAIN, paged results, generated UPDATE … WHERE <primary key> previews, and migrations. It lists migrations but never applies one on open. The agent sees the schema, never the DSN. It proposes SQL and runs it through the broker, where the broker refuses a DELETE with no WHERE by name. |
acpilot.frontends |
Hands out the frontends the daemon already has: its embedded web bundle at http://host:port/app, and the released CLI/TUI/GUI artifacts from a directory the operator names. The operator versions and checksums them, gates them with a token, and turns them off by default. A daemon that serves executables is a supply-chain surface. The point is a remote or air-gapped host with no build toolchain. The client matches the daemon’s API by construction. |
Three wait on D18, the capability set for code extensions. They are what settles
it: net.http for the API workbench, compute for the regex lab, and
net.socket for the database. If that tier slips past v0.1, they ship as
first-party panels instead. The value does not depend on a third party being able
to install them. Frontend delivery needs no runtime at all. It needs the web
build (web phase, task P11-6) and the release artifacts (release phase, task
P12-1). That is why we could ship it first.
What makes them a studio rather than four windows is the last piece. Every action
is a brokered tool named <extension>.<action>. Its target is in the permission
subject, and one audit row records each call (D26, the studio phase’s task P14-5).
That is what lets one prompt import a spec, call the endpoint it describes, and
assert the row it wrote. Three different extensions, one approval trail.
On the shelf
Section titled “On the shelf”The component-system packs and the blog extension are not in the table above. They need something the product does not have yet: a sandboxed panel that renders a component. Planned extensions lists each one, what it contributes, and which phase it waits on. That includes why one core panel unblocks seven packs and the blog only partly.
What exists today
Section titled “What exists today”The contract is this page and its neighbours, the OpenAPI types, the ADR, and the
loader. crates/acpilot-extensions parses and checks manifests. It refuses
paths that leave the extension directory, and it resolves theme inheritance and
collisions. The four built-ins in extensions/ are two themes, ten
language-server presets, and four agent presets. The binary embeds them and loads
them through that same code. The things we already ship therefore test the
schema before we trust anyone else’s file.
Installing is a checksummed, atomic store. A version whose bytes change is
Blocked and invisible to every loader. Activation is a per-profile list with
three layers of precedence. acpilot ext why names the winner and everything it
overrode. The marketplace is a curated list of repositories in
this repository, changed by pull request. The signed index and download URLs are
task P4.6-4.
Vibecoded, on purpose. While I am a software developer, I lack the time to hand-code all my ideas, and as a result this project is vibecoded withFreebuff.