Engineering notes · Command plane design · 12 min read · 2026-10-17
Designing one command plane for dozens of tools
A unified command plane design is mostly a decision about what you refuse to build. Ten tools with three surfaces each — a menu item, a CLI verb, an agent-callable action — is thirty things to keep in sync, and the thirtieth is always the one that drifts. Collapse the surfaces into one dispatch layer and the count goes back to ten. This note is the reasoning behind the plane TrayTool already runs: how commands get named, resolved, checked, and logged when the caller might be a person typing, a menu click, or later an AI agent — and what that centralization costs, because it is not free.
On this page
- The short version
- Why one plane beats one integration per tool
- Three dispatch decisions that decide everything later
- What the plane must guarantee before it scales
- One declaration, two kinds of caller
- What central dispatch costs
- Where the current build actually stands
- Questions people ask
- Honest limits and non-goals
The short version
A command plane is the layer that turns a pile of tools into one addressable surface. It answers four questions for every action: what is the command called, who may run it, what did it touch, and what happened. Those four questions are the whole design. Namespacing keeps names from colliding as the tool count grows; a declared manifest keeps the host from running code to find out what the code does; per-command permissions keep a safe query from dragging a dangerous export with it; and one audit path keeps every caller accountable in the same place.
TrayTool's own plane is not a future concept. Measured in the repository on 2026-09-07, the host ships 71 commands across 15 domains behind a three-tier risk gate and an audit pipeline, with the calling convention tt <domain> <command> [options]. What is not live is the part most articles would imply: the MCP server that lets an external agent call those commands is Phase P2 and has not shipped. The plane exists; the agent bridge does not.
Why one plane beats one integration per tool
The obvious alternative is to let each tool expose itself: a tray icon opens a window, the window has buttons, the buttons call into that tool's code. Fine for three tools, expensive at thirty, because every new caller multiplies the work. Give each tool a menu, a command line, and an agent-callable action and you have not added one feature, you have added three integration points, each with its own naming, its own permission story, and its own logging. The surfaces drift: the menu offers an option the CLI never learned, and the CLI accepts an argument the agent cannot discover.
A single plane replaces that multiplication with addition. A tool declares its commands once; the plane projects them onto whatever surface the caller uses, so adding a surface becomes a plane problem rather than a per-tool problem. That is the only reason a plane is worth its overhead, and the overhead is real: the benefit kicks in past a certain tool count, not before.
| Approach | Surfaces you maintain | Where it breaks |
|---|---|---|
| Per-tool integration | One per tool per surface; cost grows as tools × surfaces | Naming and permissions diverge first; logging is per-tool if it exists at all |
| Launcher that only opens apps | One list, no command awareness | Nothing inside a tool is addressable, so nothing inside it can be automated |
| One command plane | One dispatch layer; cost grows as tools + one | Central chokepoint and naming discipline become the new problems (see below) |
The middle row is the trap. A tray launcher with a tidy list of shortcuts is not consolidation: a shortcut is not a command, so there is nothing for a gate to check and nothing for a log to record, because the launcher never knew what ran. Making capabilities addressable is what turns a pile of icons into a surface that can be secured.
Three dispatch decisions that decide everything later
Implement a dispatcher and you make three choices in the first afternoon that you will live with for the life of the product. Getting them wrong is not a bug; it is a migration you cannot do, because the names are already in scripts and logs.
Namespaces, not a flat verb list
Flat verb lists are pleasant until the second tool wants convert. The host's convention is tt <domain> <command> [options]: the domain groups related capabilities, the command names one of them. Collisions then happen between domains rather than between dozens of verbs, and any log line or script tells a reader roughly what was touched without opening documentation.
Stable command ids, human labels on top
A label like "Merge PDFs now" is good copy and a terrible identifier. Ids survive relabelling and translation, so the dispatch key is the name and the pretty string is something the UI layers on. The same split applies one level up: a plugin's id is what its updates, audit entries, and trust tier hang off, which is why the manifest key outlives the display name.
Dispatch on declarations, never on discovery
The tempting shortcut is to launch a tool and ask what it can do. For a host that runs third-party code, that ordering is backwards: if the host learns a capability by running it, the capability has already run. So commands, their inputs, and their permission needs are declared in the plugin manifest and read before anything executes. The four declared groups — identity, commands, inputs, permissions — exist so that resolution, prompting, and policy checks compare against data instead of intercepting a running program. The manifest design note works a full example; the point here is narrower. A dispatcher that can answer "what is this and what will it touch" without running it is why the rest of the plane enforces rather than hopes.
What the plane must guarantee before it scales
Once one layer stands between every caller and every capability, that layer inherits obligations. Three of them are non-negotiable, and each is cheap to design in early and expensive to add later.
One path, no side door
Every invocation follows the same route: resolve the name, risk-check it, write the audit record, then execute or deny with a stated reason. The value is not the sequence, it is that there is only one. If a menu click, a typed command, and a future agent call all cross the same gate and land in the same log, an automated caller cannot be handed a shortcut the human path would have refused. The moment a surface gets its own fast path, the gate is decorative.
Permissions scoped to the command, not the package
Package-level scope is the easy default, and it quietly licenses everything a plugin ships. Per-command scope is what makes prompts honest: a read-only lookup declares nothing and runs without a prompt, while an export in the same plugin declares file write and asks. Approving the first does not approve the second, and a command that attempts something it did not declare is stopped at the gate rather than excused after the fact. The tiers follow consequence rather than file type — reading is quiet, writing asks, launching a process needs a deliberate switch.
The trust tier is enforced structurally, not socially
Unsigned plugins are denied high-risk permissions by construction here, not warned about. That word carries weight: an unsigned caller cannot reach the dangerous tier by asking nicely in a prompt, because the check compares requested scope against the plugin's trust tier before execution and refuses on the mismatch. Every refusal is also recorded, so "it was denied" is a fact you can look up rather than a story the UI tells.
A fourth obligation, containment, belongs to a note of its own. Third-party code runs out of process under OS-level isolation, and the measured cost of that boundary is not published yet.
One declaration, two kinds of caller
The same declaration has to serve a human scanning a menu and a machine planning a call. That constraint is useful, because it forces the metadata to be real rather than decorative.
Inputs are the agent interface, not a validation chore
Declaring an argument's name, type, and whether it is required looks like routine schema work for the UI. It is also the contract an agent needs to call the command without guessing: a command whose inputs are undeclared cannot safely be offered to an agent, because the agent would have to invent the arguments, which is how a harmless query becomes a destructive call with the wrong path. Ordinary validation and agent-readiness are the same work here, done once, and that is what lets a plane grow into an agent surface instead of being retrofitted for one.
Build the gate before the caller
TrayTool's sequencing — gate and audit first, agent bridge second — is the least glamorous decision here and the most defensible. Security retrofitted onto a surface automated callers already use is a rewrite with live traffic on it. Build the plane first and the MCP server, when it ships, plugs into a gate, a trust check, and a log that have been running against human callers. The walkthrough of the plane as it exists today is on the command plane basics page.
What central dispatch costs
A plane everything passes through is a plane that can block everything. The honest version of this design lists the bills.
A chokepoint is a single point of failure
One dispatcher is one place where a bad manifest, a slow command, or a bug reaches every tool instead of one. That is the price of having one place to enforce policy, and it argues for keeping the dispatcher small: resolution, policy comparison, logging, handoff. Logic that belongs to a tool stays in the tool, and the namespace needs an owner who can say no to a new domain.
Versioning commands is harder than versioning plugins
Plugins carry versions; commands in a shared namespace cannot quietly change meaning, because a caller that worked yesterday may break today with no release note in its own code. The safe posture is additive: new commands appear, existing ones keep their contract, and anything that must change shape gets a new name, with the old one aliased or retired loudly. Some callers are scripts that will never be updated, so command versioning has to be the conservative kind.
Where the current build actually stands
Architecture notes are worth little if they blur what exists. Measured in the repository on 2026-09-07: a 234,980-line C# WPF host shipping 71 commands across 15 domains, a live three-tier risk gate, and an audit pipeline. Six built-in plugins ship with the installer, and exactly one of them, OWMap Atlas, contributes business commands today (14). Third-party plugins number zero, because runtime loading of external packages is P1 and the marketplace is P2. The contract here is the P0 item being frozen first, deliberately, so authors are not asked to build against a moving target.
| Piece | State today | Honest note |
|---|---|---|
| Command plane and CLI | Live: 71 commands, 15 domains | Human path only; the calling convention is tt <domain> <command> |
| Three-tier risk gate + audit log | Live | Every invocation crosses the same gate and is recorded |
| Plugin commands from third parties | None: 0 packages | Six built-ins ship; OWMap Atlas is the only module with business commands (14) |
| Agent-callable plane (MCP server) | Not shipped: Phase P2 | Until it ships, no AI agent can call the desktop through TrayTool |
Read that table as the boundary of this note: everything about naming, scoping, and dispatch describes a plane that runs and a contract being frozen, not a finished third-party ecosystem or an agent that can already drive your machine.
Questions people ask
Is a command plane the same as a command palette?
No, though they share a keyboard habit. A palette is a search box that helps a human find an action in one app. A plane is an addressing and enforcement layer: it resolves names that callers can invoke without a UI, checks permissions per command, and logs what ran. You can put a palette on top of a plane; a palette on its own has no opinion about who is allowed to call what.
Can an AI agent call these commands yet?
Not today. The plane, the gate, and the audit log run against human callers; the MCP server that would let an external agent discover and invoke commands is Phase P2 and has not shipped. The design consequence is that the plane gets hardened before anything automated depends on it. What MCP itself is, and how host, client, and server relate, is explained plainly on the MCP on Windows field guide.
Does every tool have to be rewritten to fit the plane?
Plugins that target the contract, yes: a declared manifest plus command implementations is what makes a tool addressable. Ordinary Windows software, no. The plane deliberately does not wrap arbitrary .exe files, so adding a capability means declaring it.
Honest limits and non-goals
- This is a design note, not a shipped SDK reference. The manifest contract is the P0 item being frozen; field names and packaging details can move before the P1 tooling lands, so treat the shape as settled and the spelling as provisional.
- No third-party ecosystem exists yet. Zero external plugin packages install in the current build. Everything here about third-party commands describes the contract they will be written against, not a catalog you can browse today.
- The user-facing plane has its own page and its own terms. How to invoke a command, step by step, lives on the command plane basics page; this note stays on architecture trade-offs so the two are not competing for one query.
Where to go next
- How commands are invoked, in plain language: the command plane basics guide.
- What a tool declares before it runs: designing the plugin manifest, and why one host launches many tools in the Steam model note.
- What sits inside the gate and what a signature proves: the three safety gates and plugin signing and the trust ladder.
- Building on the contract: the publish guide and the developer portal.
- The full series: engineering notes index.
Open the plane that already runs
Download TrayTool for Windows 10/11 and use the resident host: 71 commands across 15 domains, one risk gate, one audit log — the same plane third-party manifests will extend.
Last updated 2026-10-17. Product state (71 host commands across 15 domains, six built-in plugins, 14 plugin commands in one module, zero third-party packages, contract freeze P0, tooling P1, marketplace P2, MCP server P2 not shipped) reflects the audited measured baseline of 2026-09-07; the namespacing and command-versioning practices described are design positions, not a frozen published standard.