Skip to main content
EISPATCH is built as a portable prompt-interception layer. The goal is to keep host-specific code small and isolated, so the same visual composer, recommender, compiler, and library work across every supported agent.

Design at a glance

A short prompt flow looks like this:
  1. You start a prompt with /eispatch (or it is auto-intercepted).
  2. The host hook or plugin blocks the agent and opens the composer.
  3. You review capabilities, optionally break the prompt into tasks, edit the final text, and click Approve.
  4. The compiler produces a marked, structured prompt.
  5. The approved prompt is dispatched to the agent.

Shared host-independent core

Everything in core/ is meant to work with every supported host.

Thin host adapters

Each adapter lives under adapters/<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.
EISPATCH is a composition layer, not a centralized execution controller. After dispatch, the host agent decides how the prompt runs and which tools it uses.

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 --check and --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.