Principles
- Keep
core/host-independent so the composer, compiler, and recommender work for every agent. - Keep adapters thin under
adapters/<host>/. Each adapter owns its hook or plugin, discovery adapter, and MCP server if needed. - Remain zero-dependency Node ESM and require Node 20 or later.
- Privacy first: never expose server URLs, tokens, or secrets in the UI or tooltips.
- Label capabilities honestly: advisory guidance versus host-enforced tool scope.
Development setup
- Fork the repository on GitHub.
- Clone your fork locally:
- Ensure Node.js 20 or later is installed:
Workflow
1
Create a branch
2
Make changes
Edit the relevant files in
core/, adapters/<host>/, or scripts/.3
Test end to end
4
Check the UI
http://127.0.0.1:4177 to review the composer.5
Open a pull request
Push your branch and open a pull request against the main repository.
Adding a new host adapter
If you want to add support for a new coding agent, follow the structure used by existing adapters:- Create the adapter directory at
adapters/<host>/. - Write a discovery adapter (
discovery-adapter.mjs) that reads the host’s local config and returns metadata for MCP servers, skills, plugins, and subagents. - Write a hook or plugin that intercepts prompts matching the trigger regex
^(?:\/\/(?:e|d)ispatch|(?:e|d)ispatch:)\s*(.+)$(case-insensitive). On trigger:- Spawn
core/launch-local-composer.mjswith--host <host>,--prompt,--workspace, and--ready-file. - Wait up to 2.5 seconds for the ready file containing
{ url, port, pid }. - Block the prompt and return a
composerUrlso the user can open the composer.
- Spawn
- Add a SKILL.md at
skills/eispatch/SKILL.mdthat documents the host’s integration behavior. - Add an MCP server if needed (
mcp-server.mjs) to expose tools such asdispatch_compose,dispatch_discover, anddispatch_compile. - Write an installer script at
scripts/install-<host>.mjsthat:- Copies or writes host-specific files and config entries
- Supports
--checkto verify the installation - Supports
--uninstallto remove only EISPATCH-owned entries - Supports
--target <dir>if the host supports alternate home directories
PR checklist
-
node demo/verify-e2e.mjspasses -
npm run previewrenders the composer correctly - New code follows the host-independent
core/and thin adapter separation - No new dependencies are added
- Privacy rules are respected (no secrets exposed in UI or tooltips)
- Capability labels are honest (advisory versus enforced)
- Documentation is updated if user-facing behavior changed