How can AI coding agents author DropTerm plugins — should the runtime be exposed over MCP, and what artifacts should the repo ship for them?
Question: How can DropTerm make it easy for AI coding agents (Claude Code, OpenCode, Cursor, Copilot, …) to author DropTerm plugins? Should it adopt MCP (an MCP server exposing the runtime), and what data/artifacts/AI-engineering affordances should it offer?
Date: 2026-12-01
TL;DR: An authoring agent needs exactly what the 2026-11-26 creator-UX
record prescribed — a machine-checkable contract, a validator it can run, an
example corpus, and docs shaped for machines — and nothing an MCP server
serves: every authoring feedback loop DropTerm can offer is already
file-shaped (the artifact is two files in a watched directory) or offline
(the manifest parse is "Pure data and validation — no gpui, no mlua",
plugins_manifest.rs:1-9), so an agent with ordinary file tools plus a
dropterm plugin validate verb authors reliably with zero new protocol
surface; the vendor docs agree, describing agents that "attempt to execute
relevant programmatic checks" named in instruction files
(agents.md, fetched 2026-12-01) and instruction files
that "don't guarantee compliance" — only the validator does
(VS Code custom instructions,
fetched 2026-12-01). Verdict (proposal, consolidating the two 2026-11-26
records under this question): the AI-authoring affordances are, in cost
order — a JSON Schema for the now-grown plugin.json vocabulary, the
dropterm plugin validate CLI verb, an examples gallery, machine-doc
indexing (llms.txt + the fact that the docs already are in-repo
markdown), and an authoring skill or AGENTS.md section that names the
validator; an MCP server exposing the runtime is rejected for authoring
(it remains the terminal-exposure question the MCP record owns, gated on a
reply-capable IPC seam and a grants ruling), and the read-logs gap — an
agent's one unreachable feedback channel today, the journald-only log — is
the one affordance the prior records did not name.
Findings
1. What an agent authors is a fully closed, fully documented contract — every key and verb has one page
- The artifact: a plugin is a directory
plugins/<slug>/holdingplugin.luaplus an optionalplugin.json; the directory name is the plugin's id (lowercase slug, ≤64 chars), "the persistent key everywhere the plugin is named" (plugins.md:3-21). A loose.luafile is skipped with one log line; a script with no manifest still loads and the log "names the manifest it could have declared" (plugins.md:23-29). - The manifest vocabulary is closed, one struct pinning every key
(
ScannedPlugin,plugins_manifest.rs:231-266):name(display only),commands[]{id, description}(slug, description required, plugins.md:72-81),settings[]{key, label, type, default}over exactly six types —boolean,string,number,enum,array,object— (plugins.md:157-177),activation[](on_startup,on_startup_finished; each declared command implicitly deriveson_command:<id>, plugins.md:275-293;plugins_manifest.rs:182-188),menu[]{label, command, when: selection|word}(plugins.md:83-111),profiles[]{id, name, command, cwd?, env?, color-scheme?, font-size?, scrollback-lines?}(plugins.md:181-214),bands[]{id, edge: top|bottom|free}(bands.md:9-30;plugins_manifest.rs:268-286),panels[]{id, title, on_summon: reveal|float}(plugins.md:341-389;plugins_manifest.rs:298-306),permissions[](one slug today,clipboard-watch,plugins_manifest.rs:195-223),styles[](flat style-engine rules,plugins_manifest.rs:239-241). "Keys are kebab-case, the vocabulary closed. A key outside the vocabulary costs one log line and is ignored; malformed JSON skips the plugin with one line" (plugins.md:65-70); unknown keys flatten into a logged map (plugins_manifest.rs:513,:636). - The script API is one module (
require('dropterm')), its surface set in one block (lua_host.rs:2904-2919):on,emit,styles,status_segment(retired — a call now logs "takes no seat; a status chip is a panel view",lua_host.rs:2282),tab_title,tab_chips,command,send_text,dialog,panel_view,output,state,progress,tabs(a table:new,select,close,rename,move,pin,lua_host.rs:3148-3151),clipboard, andpanels(open,float,dock, plugins.md:938-946). Handler dispatch carries the plugin's settings on ctx (plugins.md:391-406). - The shapes are closed too: typed answers (styled spans, rows, chips,
fields) with per-kind keysets whose every fault "costs one log line and
degrades, never a raise" (plugins.md:466-535, :745-828;
bands.md:53-65); dialogs in three kinds with per-kind
keysets and a four-key
slot-eventpayload "pinned by test on both sides" (plugins.md:526-536, :537-668). - The docs an author reads are the repo's own markdown: plugins.md (the
reference), bands.md, panel-containers.md, script-commands.md,
keybindings.md (script rows under
script/<name>, keybindings.md:58), command-palette.md (Script commands and Plugin panels rows, command-palette.md:14-15, :32), and the D-Bus page, which is written as the integrator contract: "Everything an integrator needs to drive or query DropTerm from another program … without reading Rust … pinned to the served surface by a wire test" (dbus.md:3, stability promise :79-83).
2. The authoring feedback loop is one log line and the live app — and the log is the one channel an agent cannot easily read
- Every observable step logs into the
dropterm: plugins:namespace (plugins.md:438-440;plugins_manifest.rs:5-9: "the scan returns the lines' bodies (the caller prefixes the namespace) so tests pin the exact text"). Hot reload is native: "Editing anything inplugins/hot-reloads: the interpreter is recreated whole" (lua_host.rs:49-56), under soft 100 ms / hard 1 s instruction bounds (lua_host.rs:93-110). - Where an authoring agent can read those lines is the gap: an installed
release logs to the systemd user journal — the walk evidence command is
journalctl --user -b 0 | grep -E 'dropterm:|\[DropTerm\]'"when DropTerm was started from the shortcut, or the terminal it was started from" (testing.md:317) — andjust devcaptures output undertarget/dropterm-dev.log(development.md:178). There is nodropterm plugin logsverb, no log file the agent can tail by a stable path, and no offline checker of any kind. - Re-verified at HEAD
2e371370(2026-12-01): the CLI is still the ten verbstoggle,show,hide,new-tab,close-tab,select-tab,rename-tab,duplicate-tab,switch-profile-tab,quit— no plugin verb, no validate, no doctor (cli.rs:36-128; grep overcli.rsand cli.md finds neither word). The repo carries no JSON Schema, nollms.txt, no examples/plugin gallery (filesystem sweep, 2026-12-01). The rootAGENTS.mdis the DropTerm development agent pack — it says nothing about authoring plugins. - What changed since the prior record's snapshot (HEAD
a83fb8f, 2026-11-26): the manifest and script API grew a whole tier —menu,profiles,bands,panels,permissions, thetabs/clipboard/progress/state/outputmodules,panels.{open,float,dock}, panel fields, and the input/pick dialog kinds are all live in the docs and code now. Any schema or validator must cover the grown vocabulary, and the examples gallery has ten-plus surfaces to cover, not the six the prior record counted.
3. AGENTS.md is the converged cross-agent instruction file, and the vendor docs say agents run the commands those files name
- The convention's own page: "Think of AGENTS.md as a README for agents", "used by over 60k open-source projects", "No [required fields] … the agent simply parses the text you provide", nested files where "the closest AGENTS.md to the edited file wins", and — the load-bearing sentence for a validator: "Will the agent run testing commands found in AGENTS.md automatically? Yes—if you list them. The agent will attempt to execute relevant programmatic checks and fix failures before finishing the task" (agents.md, fetched 2026-12-01; the adopter list includes Codex, Cursor, GitHub Copilot's coding agent, VS Code, Zed, Warp, opencode, Gemini CLI, Jules, Aider, goose, Devin, Junie; the format is stewarded by the Agentic AI Foundation under the Linux Foundation).
- Claude Code reads
AGENTS.mdnatively (defaultclaude-md-or-agents-md, v2.1.277+), and its docs draw the enforcement line plainly: "Claude treats CLAUDE.md files and auto memory as context. They aren't enforced configuration. To block an action regardless of what Claude decides, use a PreToolUse hook", with writing guidance that instructions be "concrete enough to verify" and files "target under 200 lines"; larger scoped guidance belongs in path-scoped.claude/rules/or skills (Claude Code memory, fetched 2026-12-01). - opencode reads
AGENTS.mdas its primary instruction file (global + nested discovery,CLAUDE.mdfallback, aninstructionsconfig array accepting globs and URLs, live reload of edits) (opencode rules, fetched 2026-12-01). - Cursor: Project Rules (
.cursor/rules/*.mdcwithdescription/globs/alwaysApplyfrontmatter, four activation types) with AGENTS.md documented as "a simple alternative"; its best-practices list is a spec for the docs an agent needs: "Provide concrete examples", "Reference files instead of copying their contents", "Copying entire style guides: Use a linter instead", "Duplicating what's already in your codebase: Point to canonical examples" (Cursor rules, fetched 2026-12-01). - VS Code maps instruction files per harness — Copilot reads
.github/copilot-instructions.mdorAGENTS.md, Codex readsAGENTS.md, Claude readsCLAUDE.md; "AGENTS.md is a cross-agent format, not a Codex-only file" — and states the same compliance line: "Instructions guide the model. They don't guarantee compliance or replace tests, code review, or security controls" (VS Code custom instructions, fetched 2026-12-01, page dated 11/25/2026).
4. Machine-readable docs surfaces are now table stakes among the surveyed peers
- Every VS Code docs page fetched this session carries "Copy as Markdown"
/ "View as Markdown" affordances (per-page markdown at a
.mdsuffix), observed verbatim on the custom-instructions and agent-plugin-reference pages, 2026-12-01. - Warp's
llms.txtgoes past the convention: abridged (llms-small.txt) and complete (llms-full.txt) sets, per-section.txtfiles, an OpenAPI spec in Optional — and an agent-facing docs query API: "Ask these docs a question with a GET request. No authentication. GET https://docs.warp.dev/retrieve/?q=… returns ranked relevant passages from the current docs, each with its source_url" (docs.warp.dev/llms.txt, fetched 2026-12-01). - Zed's extension docs index "lives in
llms.txt" and Raycast servesllms-full.txtplus a?ask=page-query interface — pinned with sources in plugin-authoring-and-creator-ux findings 6 and 14 (fetched 2026-11-26); the llms.txt format itself (H1, blockquote summary, annotated H2 link sections) is pinned there from llmstxt.org. - For DropTerm the docs are already markdown files in the repo, so an
in-repo agent reads them with file tools; the value of
llms.txtand per-page.mdroutes is for agents consuming a hosted site — which the docs-improvement record still lists as unbuilt ("an unreachable Pages site", documentation-improvement row, 2026-10-23).
5. What an MCP server provides an agent — and why it buys an authoring workflow nothing
- The primitives: "Servers provide functionality through three building
blocks" — Tools ("Functions that your LLM can actively call … Tools
can write to databases, call external APIs, modify files"; model-
controlled), Resources ("Passive data sources that provide read-only
access"; application-controlled), Prompts (user-controlled
templates). "Tools are schema-defined interfaces that LLMs can invoke.
MCP uses JSON Schema for validation", and "Tools may require user
consent prior to execution"
(MCP server concepts,
fetched 2026-12-01). Protocol state is per-request ("Every request
carries the protocol version and client capabilities in
_meta", same page), matching the stable 2026-07-28 revision pinned with sources in agent-protocols-mcp-acp-skills finding 1 (fetched 2026-11-26). - The cost side is pinned by the same record: the official Rust SDK is
rmcp(3.11.0 at the record's fetch, Apache-2.0, tokio-based, hard deps already in DropTerm's lock), and DropTerm's own thread rule — "no tokio channel crosses the bridge" (lua_host.rs:5-11) — is the gate its client role spikes against; the server role is gated on a reply-capable IPC seam, because the existing D-Bus contract is "fire-and-forget … the call always repliesOk… AnOkreply means the running instance's server accepted the call, never that the verb was applied" (dbus.md:45) — "it structurally cannot offer replies" (architecture.md, quoted in the MCP record's "What DropTerm has today"). - The authoring-specific verdict falls out of finding 1 and 2: an
authoring agent already holds file tools (read/write the plugin dir —
which the watcher hot-reloads for free), and every check it needs is
offline-runnable against a module whose parse is "Pure data and
validation — no gpui, no mlua" (
plugins_manifest.rs:1-9). An MCP server wrapping install/validate/reload/read-logs would add a protocol surface, a consent surface ("Tools represent arbitrary code execution and must be treated with appropriate caution" — the spec's own security framing, quoted in the MCP record finding 2), and a live-instance IPC seam to expose verbs an agent can already run as one CLI call. The runtime-exposure MCP server remains worth wanting for driving the terminal (the MCP record's role (b), gated on the IPC seam and a grants ruling) — it is just not an authoring affordance.
6. Vendor-documented plugin-generation flows converge on the same four artifacts — reference, examples, validator, honest handoff
- Claude Code's
plugin-creatorskill: define the outcome and "a representative input and observable expected result … use it for the smoke test"; read a bundled manifest reference "before choosing components"; scaffold; "Check what the environment can verify"; optionallyzcode plugins validate"when a working CLI exists"; "Report unavailable runtime or credential-dependent checks explicitly"; hand off with "exact paste-this-directory install steps". Itsskill-creator: "Examples beat rules", descriptions are the trigger, progressive disclosure — pinned verbatim in plugin-authoring-and-creator-ux finding 13 (local skill docs, fetched 2026-11-26). - VS Code now ships an Agent Plugin Authoring Reference as a first-
class docs page: the Agent Plugins 1.0 manifest with a required
$schemafield pointing athttps://agent-plugins.org/schemas/1.0.0/plugin.schema.json, portableskills/+mcp.jsonlayout, reverse-domain client namespaces,/pluginmanagement commands, local dev registration viachat.pluginLocations, and a test-and-distribute checklist whose second step is "run a representative task to verify the skills, agents, hooks, and tools" (VS Code agent plugin reference, fetched 2026-12-01, page dated 11/25/2026). - The recurring shape — schema-first contract, few-shot examples, a
validator in the loop, a smoke test, honest status — is exactly what
Claude Code and Codex bundle as skills (
skill-creator/plugin-creator), and it is what an authoring agent needs from a host: the host does not ship an agent; it ships the artifacts the agent consumes.
7. Fit to DropTerm: each candidate affordance, what it requires, and where the sources say it pays off
- Cheap (file/CLI work, no blockers — the creator-UX record's substance,
re-grounded at the grown vocabulary):
- JSON Schema for
plugin.json— the vocabulary is closed and the parse pure (plugins_manifest.rs:1-9); a draft-2020-12 schema plus a test pinning schema keys to the struct. Pays off per VS Code's own Agent Plugins format making$schemarequired (finding 6), and per every editor/agent gaining a machine-checkable contract. dropterm plugin validate <dir>— a clap subcommand reusing the core parse offline; the no-boot first-launch exit pattern already exists (cli.rs:230-232,first_launch_exits_zero). This is the Claude Codeclaude plugin validate --strictprecedent (creator-UX record finding 10) and the artifact that makes AGENTS.md's "list a command and the agent runs it" promise real (finding 3).- Examples gallery — one plugin per surface (command, menu row,
settings, profile offer, band chips, panel view + field, output
channel, dialog kinds, event hooks, tabs); triples as
newtemplates, docs examples, and the few-shot corpus ("Examples beat rules"). - Machine-doc indexing — an
llms.txtover the existing docs (and per-page markdown, which in-repo agents already have); cheap because the docs are repo files pinned byjust docs-check. - An authoring AGENTS.md section or skill — the skill shape wins on
context hygiene: skills load on demand (progressive disclosure,
agentskills.io pinned in the MCP record finding 10; Claude's own
guidance keeps instruction files small), and the repo already runs a
skills pack at
.agents/skills/(the cross-tool path Codex, Gemini CLI, and opencode all read — MCP record finding 11). Content: the manifest vocabulary pointer, the docs pages, the examples, and thedropterm plugin validateinvocation — no validator, no skill (the MCP record's own sequencing: "the skill ships once a validator exists").
- JSON Schema for
- Moderate (new seam or verb, spike or design first):
- A log-read affordance (
dropterm plugin logs, or a ring buffer the CLI can dump) — today an authoring agent's only error channel on an installed build isjournalctl --user(testing.md:317); a stable machine-readable error sink is the one authoring feedback channel the prior records did not name. Needs a design decision (journald query vs. in-process ring buffer) before it is a work item. - Headless run-and-inspect harness (
dropterm plugin run <dir>feeding a synthetic event, printing slot answers) — spike: whetherLuaHost's dedicated-thread/mpsc design can drain into a recorder without the UI thread (creator-UX record's Feasibility section).
- A log-read affordance (
- Costly / rejected for authoring:
- An MCP server exposing the runtime (install/validate/reload/logs or terminal verbs) — rejected as an authoring affordance on finding 5's grounds: nothing it serves is unreachable without it, it adds protocol + consent + IPC surface, and the reply seam it needs is the very gate the MCP record already set for the terminal-exposure role. That role stays owned by agent-protocols-mcp-acp-skills (Proposed, gated on the reply-capable IPC seam and an owner grants ruling) — this record adds only that authoring is not a reason to build it.
- An LSP for the Lua API — no peer ships one; rejected in the creator-UX record, stands.
- In-app wizard/code editor — rejected in the creator-UX record (zero peer precedent for a code-writing builder; the wizard is at most a launcher on the schema/validator layer), stands.
What DropTerm has today
Verified at HEAD 2e371370 (branch dropterm4), 2026-12-01:
- The artifact contract:
plugins/<slug>/{plugin.lua, plugin.json}, the manifest vocabulary of ten keys (name,commands,settings,activation,menu,profiles,bands,panels,permissions,styles) pinned byScannedPlugin(plugins_manifest.rs:231-266), unknown keys warn-and-ignored (:513), the scan's log bodies test-pinned (:5-9). - The runtime: Lua 5.4 on one dedicated host thread, std-mpsc both
ways, no tokio across the bridge (
lua_host.rs:3-11); soft 100 ms / hard 1 s bounds (:93-110); whole-interpreter hot reload on any edit (:49-56); therequire('dropterm')module of sixteen names (:2904-2919) plus thetabsverb table (:3148-3151); the trust model "no sandbox … the way you treat a shell rc file" (plugins.md:31-38). - The process seams: ten CLI verbs over a fire-and-forget D-Bus
contract that is documented, wire-test-pinned, and promised additive
(
cli.rs:36-128; dbus.md:35-47, :79-83);--is-visibleas the one query. - The authoring surface, entirely: the seven docs pages of finding 1,
the
dropterm: plugins:log namespace read viajournalctl --user(testing.md:317) or the dev log (development.md:178), and the live app. No schema, no validator, no scaffold, no examples gallery, nollms.txt, no plugin-authoring section in the rootAGENTS.md(all re-verified by sweep, 2026-12-01). The manifest parse is pure core — the offline validator seam, already in-tree.
Recommendation
Consolidated verdict — the AI-authoring layer is files plus one CLI verb,
not a protocol: ship the schema → validate → examples → machine-docs
ladder from the creator-UX record (its costs re-verified against the grown
vocabulary), deliver it to agents through an on-demand authoring skill at
.agents/skills/ (or a path-scoped AGENTS.md/rules section) whose body
names the validator — per agents.md, agents run commands instruction files
name — and add one affordance both prior records missed: a stable
machine-readable error sink (design first: journald query vs. ring buffer
behind a dropterm plugin logs verb). An MCP server is rejected as an
authoring vehicle; the runtime-exposure server stays the MCP record's
gated proposal. Sequencing per the two prior records: schema, then
validate, then examples, then docs/skill; the skill ships once the
validator exists; the log sink and the headless harness are separately
spikable. Rejected for authoring, with grounds: an MCP server (finding 5),
an LSP, and an in-app builder (creator-UX record, findings 12 and 6).
Sources
Fetched 2026-12-01 unless noted. Local sources cite HEAD 2e371370
(branch dropterm4) with file:line references inline; sibling records
cite HEAD a83fb8f (branch ced), 2026-11-26.
- agents.md — the AGENTS.md convention: "README for agents", 60k+ projects, no required fields, nested files, closest-wins, agents run testing commands listed in the file, adopter roster, Linux Foundation stewardship.
- Claude Code — memory — CLAUDE.md scopes and load order, native AGENTS.md reading (v2.1.277+,
claude-md-or-agents-mddefault), "context … aren't enforced configuration" / hooks line, "concrete enough to verify", 200-line guidance,.claude/rules/path scoping. - opencode — rules — AGENTS.md as primary format, global/nested discovery, CLAUDE.md fallback,
instructionsarray (globs, URLs), live-update behavior. - Cursor — rules —
.cursor/rules/*.mdcfrontmatter and four activation types, AGENTS.md as the simple alternative, nested support, best practices (examples, reference files, "use a linter instead"). - VS Code — custom instructions (page dated 11/25/2026) — per-harness instruction-file table (Copilot/Codex read AGENTS.md), "cross-agent format" line, "don't guarantee compliance",
applyToscoping, verify-then-commit workflow. - VS Code — Agent Plugin Authoring Reference (page dated 11/25/2026) — Agent Plugins 1.0 manifest with required
$schema,skills/+mcp.jsonportable core, reverse-domain namespaces,/plugincommands,chat.pluginLocations, the representative-task test checklist. - MCP — server concepts — tools/resources/prompts definitions and control party, JSON Schema tool validation, consent framing, per-request
_metastatelessness. - Warp — llms.txt — llms-small/llms-full/per-section doc sets, the unauthenticated
GET /retrieve/?q=docs query API, OpenAPI spec in Optional. - plugin-authoring-and-creator-ux (2026-11-26) — the four-leg authoring survey (VS Code generator, Raycast, Zed, WezTerm, …),
claude plugin validate --strict, llms.txt adoption, the plugin-creator/skill-creator flows, the rejected LSP/builder/marketplace verdicts, feasibility ordering. - agent-protocols-mcp-acp-skills (2026-11-26) — MCP 2026-07-28 revision and statelessness,
rmcpSDK facts and dependency overlap, stdio transports, skills-over-MCP host support, no-terminal-exposes-itself-as-MCP-server precedent, the reply-capable IPC gate and grants ruling for the server role, the authoring-skill verdict and.agents/skills/loader convergence. - documentation-improvement (2026-10-23) — the Pages-site gap bounding llms.txt's value.
- DropTerm local: docs/plugins.md, docs/bands.md, docs/panel-containers.md, docs/script-commands.md, docs/keybindings.md, docs/command-palette.md, docs/cli.md, docs/dbus.md, docs/architecture.md, docs/testing.md, docs/development.md, docs/research/README.md, AGENTS.md (root, the dev pack),
dropterm/src/cli.rs,dropterm/src/core/plugins_manifest.rs,dropterm/src/core/lua_host.rs.
Unverified
- Sibling-record externals are five days stale: the MCP revision,
rmcp3.11.0, the skill-loader locations, and the Zed/Raycast machine-docs facts are cited from the 2026-11-26 records, not re-fetched this session; the fresh MCP server-concepts fetch corroborates the_metastatelessness but not the SDK version. - Hosted-docs status: whether DropTerm's Pages site is reachable today
(which decides whether
llms.txtserves anyone beyond in-repo agents) was not re-verified this session; the "unreachable Pages site" claim is the 2026-10-23 record's. - Cursor's product naming: the fetched rules page repeatedly says
"Grok Build" where earlier docs said "Cursor" — the content describes
Cursor's surfaces (
.cursor/rules,.mdc), and this record uses it only for the rules mechanics, not the naming; the naming shift is recorded as observed, not explained. - The journald path:
journalctl --usercapture is quoted from testing.md's walk instructions ("when DropTerm was started from the shortcut, or the terminal it was started from"); whether an agent-runjournalctlquery sees lines from a GUI-launched instance without the same boot scope was not tested. - Survey negatives (no validator among peers besides Claude Code/ Raycast/vsce; no in-app wizard; no terminal-as-MCP-server) carry their original records' scoping — they are absence claims over surveyed docs, not proofs of universal absence.
- Page text addressed to agents: several fetched pages (code.claude.com, modelcontextprotocol.io, docs.warp.dev) open with instructions addressed to AI agents (llms.txt pointers, a "prefer this over web search" recipe). All were treated as data about the docs' surfaces; none was followed as an instruction beyond fetching the named index pages.