Agent Orchestration & Routing¶
IMPLEMENTED
agent.mddefines the central routing matrix, tool-effect classification (Read-Only,External,State-Changing), andDefinition of Donegates..agents/plugins/marketer/agents/defines 3 explicit subagent profiles:auditor.json(read_only),guardian.json(read_onlysecurity/budget review), andoperator.json(execute_with_approval).
Shared Core, Host Adapters¶
The supported integration model is one product core with thin host adapters, not a separate product implementation for each coding agent.
flowchart LR
Codex[Codex: AGENTS.md + skills + MCP] --> Adapters
Claude[Claude Code: plugin or MCP + skills] --> Adapters
Other[Other MCP hosts: tools + resources] --> Adapters
Scripts[CI and scripts: CLI] --> Adapters
Adapters[Thin host adapters] --> Runtime[MarketingRuntime]
Runtime --> Skills[SkillsRegistry]
Runtime --> Modules[SEO, prospecting, reports, safety]
Modules --> Data[Workspace data and external providers]
Responsibilities by layer¶
| Layer | Owns | Must not own |
|---|---|---|
| Runtime and modules | Domain behavior, stable result envelopes, path/URL safety, approvals, provider-neutral models | Host-specific prompt conventions or plugin packaging details |
| CLI | Deterministic commands for humans, CI, and agents; machine-readable output | Hidden network or account mutations |
| MCP adapter | Tool schemas, concise tool descriptions, resources, transport lifecycle | Duplicated marketing logic or credentials embedded in source |
| Host package | Host discovery, instruction-file format, install/update guidance, UX-specific commands | A forked copy of the runtime or weakened safety defaults |
| Skills | Progressive task guidance, decision criteria, evidence and output standards | Unsupported claims about tool/API capabilities |
Choosing an interface¶
- Use skills to teach an agent how to plan and execute a repeatable marketing workflow. Skills should point to deterministic tools for operations they can perform.
- Use MCP when the host needs discoverable typed tools and resources. Keep calls focused, bounded, and explicit about read/write effects.
- Use the CLI for repeatable local workflows, CI, debugging, and hosts without MCP support. Prefer JSON output for automation.
- Use HTTP/OpenAPI when a separate application or service needs a stable network API. Bind locally by default and require authentication before exposing beyond loopback.
- Add a native host plugin only when that host needs capabilities the shared MCP/CLI/skills surfaces cannot provide, or when a first-class marketplace materially improves installation and updates.
Host compatibility contract¶
Every adapter should document supported host versions, installation and removal, required permissions, environment variables, exposed tools, output schemas, and known limitations. A host adapter should call the same runtime operations and pass the same safety checks as CLI and MCP. Optional host features must degrade cleanly when unavailable.
Keep tool contracts stable where possible. When changing a tool name or schema, document migration and preserve a compatibility window for existing clients. Never silently broaden a read-only operation into a write operation.
Contribution boundaries¶
- New workflow: add or improve a skill and link it to existing runtime capabilities.
- New deterministic capability: add a runtime module/API, tests with synthetic data, then expose it through the necessary adapters.
- New external platform: first document its official API/support boundary and authentication model; implement a provider adapter only against a documented, authorized interface.
- New host: add a thin packaging/configuration layer and host-specific guide; do not fork runtime business logic.
See Adding an Integration, Codex Integration, and OpenAI Ads.