Design at a glance
A short prompt flow looks like this:- You start a prompt with
/eispatch(or it is auto-intercepted). - The host hook or plugin blocks the agent and opens the composer.
- You review capabilities, optionally break the prompt into tasks, edit the final text, and click Approve.
- The compiler produces a marked, structured prompt.
- The approved prompt is dispatched to the agent.
Shared host-independent core
Everything incore/ is meant to work with every supported host.
Thin host adapters
Each adapter lives underadapters/<host>/ and contains only what that host needs: hooks, plugin manifests, MCP server wrappers, and discovery helpers.
Dispatch differs by host:
- Antigravity: native same-session dispatch via
app.sendMessage(). - Codex and Claude Code: clipboard fallback. The Local Composer copies the approved prompt and you paste it back into the agent.
- OpenCode (experimental): tries
client.session.prompt(), then the OpenCode HTTP session API, then clipboard fallback. Verified with the adapter harness; native end-to-end verification is pending.
Single shared UI
ui/composer.html is one file used by every host path. Antigravity renders it inside an aux_pane and inline as an MCP App; the Local Composer serves it directly for the other hosts. The same pan, zoom, drag, capability drawer, and final-prompt drawer behavior apply everywhere.
Demo and scripts
demo/verify-e2e.mjs: end-to-end verification harness.demo/server.mjs: preview server for the composer (npm run preview).scripts/install-*.mjs: per-host installers that support--checkand--uninstall.
Repository layout
Design principles
- Host independence: keep
core/free of host-specific protocols or UI frameworks. - Local discovery: discovery inspects local config, and capability metadata passes through pattern-based redaction of URLs and common credential formats.
- Clear labels: capabilities are labeled advisory unless the node is flagged
enforceable. - Zero dependencies: the entire runtime is plain Node.js ESM.
- Deterministic blocking: hooks behave the same way every time, with no external round-trips.