Building Agent Host Adapters¶
Use this checklist when packaging Agent-Marketer for Codex, Claude Code, or another agent host. Begin with the host's official extension/configuration documentation and verify it against the target version. This guide describes the project's architecture; it is not a claim that a native package for every host already exists.
Adapter contract¶
An adapter may provide:
- Host-specific installation and update instructions.
- A minimal manifest or configuration that starts the shared MCP server or invokes the CLI.
- Host-specific repository instructions that point to canonical skills and safety rules.
- Native commands, hooks, or UI only when required by a demonstrated host workflow.
It must not duplicate MarketingRuntime business logic, bypass approvals, store secrets in tracked files, or claim unsupported provider access.
Packaging decision gate¶
Before building a native plugin, verify all of the following:
- The target host supports a stable extension mechanism and the project can test it.
- Users need host-native discovery, commands, hooks, or lifecycle management that a documented MCP/CLI setup does not provide.
- The package can delegate domain operations to the shared runtime.
- Maintainers can support compatibility, releases, security fixes, and removal instructions.
- The expected onboarding improvement outweighs packaging, review, and support overhead.
If these are not met, ship an integration guide and reusable config example instead.
Release checklist¶
- Define supported host and version range, install/update/remove steps, required permissions, and data flow.
- Pin or constrain the runtime version and explain compatibility policy.
- Include a small smoke workflow using synthetic/local data.
- Verify tool discovery, error display, timeout behavior, and stdout/stderr handling for MCP.
- Document how users inspect the adapter configuration and revoke provider credentials.
- Test host configuration examples in a clean environment where feasible.
- Publish release notes and a rollback/removal path.
- Do not collect telemetry or send user data unless it is clearly disclosed and separately authorized.
Keep distribution maintainable¶
Keep canonical skills in .agents/skills/. Generate or link host-specific instruction files where supported rather than maintaining divergent copies. If a host requires a packaged copy, record its source, version, generation method, and synchronization check. Treat installed adapter manifests as executable configuration and review commands/permissions like code.
See Coding Agent Integration Strategy and Adding Integrations.