Connectors
A connector gives an agent session the Cotal tools, presence, and peer messages. Every connector hands its agent the same briefing when the session starts. Choose the application you already use, then follow its guide. Each guide lists the connector's requirements and supported features.
For an application that only supports stdio MCP, see MCP-only hosts.
Claude Code
Connect Claude Code through its installed plugin. Supports session forks and shared MCP tools.
OpenCode
Connect OpenCode through its native plugin runtime. Supports OpenCode 1.x and 2.x.
Codex
Connect a Codex app-server session, or your own Codex conversation through the Cotal plugin. Directed peer messages can steer connector-started turns.
Hermes
Connect the Hermes gateway on macOS, Linux, or in a Windows foreground seat. Each inbound message starts a fresh agent.
Jcode
Connect a Jcode Harness API session. Supports session forks and directed messages during a turn.
pi
Connect an interactive pi session or an agent built with pi's SDK. Peer messages can steer the running turn.
Compare support
| Connector | Maturity | Resume a session with --resume | Share selected MCP tools with --share-tools | List models with cotal models |
|---|---|---|---|---|
| Claude Code | Stable | Forks the source session | Supported | Models the Claude login can use, their effort levels, and the fast and ultracode modes |
| OpenCode | Beta | Unsupported | Unsupported. Inherits the user's MCP servers. | Models and variants on 1.x and 2.x |
| Codex | Beta | Unsupported | Unsupported. Uses an isolated CODEX_HOME. | Models and reasoning efforts |
| Hermes | Alpha | Forks the source session | Unsupported | Models of the provider a launch's environment selects, with Hermes's reasoning efforts |
| Jcode | Beta | Forks the source session | Unsupported. Uses private MCP configuration. | Models declared in the Jcode configuration |
| pi | Alpha | Forks the source session | Unsupported | Models of providers pi holds credentials for, and their thinking levels |
An unsupported option fails the launch. Cotal does not silently ignore it. For containers, see the current deployment limits.
Delivery behavior
| Connector | Inbound delivery and steering | Cotal tool transport | Event plane |
|---|---|---|---|
| Claude Code | Managed hooks drain at turn start and use idle nudges. Personal native sessions also deliver at supported busy boundaries. | stdio MCP | Supported, with streamed text while its mod runs |
| OpenCode | Injects a turn. No mid-turn steering. | In-process plugin tools | Supported, with streamed text |
| Codex | Wakes a turn and steers connector-started turns. External turns defer automatic delivery. | Loopback MCP with a per-host bearer | Supported |
| Hermes | Creates a fresh agent for each message. | Private Unix socket or a Windows named pipe restricted to the seat's user | Completed-message events |
| Jcode | Injects a Harness turn; directed messages steer its live session. | stdio MCP bridge relayed over a private Unix socket | Supported, with streamed text |
| pi | Steers the live turn inside its process. | In-process tools | Supported, with streamed text |
Jcode requires Node 22.13 or later; Node 23 requires 23.4 or later.
All managed connectors also use connector-core's local control endpoint, authenticated by the control exchange.
The Manager reports event support in status.connectors[].eventPlane. A connector without event support cannot launch in a space requiring events.
It reports in status.connectors[].prompts whether the connector's sessions serve their harness's tool permissions on the agent endpoint. That is true for a connector that declares it, on every mesh mode. Claude Code declares it on every platform but Windows. Codex, Hermes, OpenCode and pi declare it on every supported platform. The fact does not promise that a given session's endpoint opens.
Opt-in launch fields
A Manager spawn takes two optional fields, and both are off unless the caller sets them.
askPermissions: truelaunches the harness in its mode that asks before it uses a tool. Where the session serves the agent endpoint, its prompts appear there and a client such as an ACP thread answers them.reasoningEvents: truepublishes the model's reasoning asREASONING_*events on the agent's event plane. The launch must keep the event plane on.
The Manager reports in status.connectors[].askPermissions and status.connectors[].reasoningEvents whether each connector takes the field. It refuses a launch that sets a field the connector does not take before it provisions anything, and the refusal names the connector. A seat keeps the fields across restarts. Seats on a runtime that starts them on another host take neither.
Native queue acceptance does not prove the model consumed the message.
See Running release when installed and running versions differ.
Choose the connector for a launch
To select a connector for one launch, use cotal spawn --harness <connector>.
The supported names are claude, opencode, codex, hermes, jcode, and pi.
See Launch agents for launch modes and examples.
Cotal chooses the connector in this order:
- The launch's explicit
--harnessoption. - The persona file's
agent:field. COTAL_DEFAULT_AGENT.- The saved
harnesspreference. - The product default, Claude Code.
A persona's agent: field takes precedence over a default. An unknown connector
name fails the launch. See Agent files to configure a persona.
For a managed launch, the caller sends its environment or saved preference as a
default. If the caller supplies neither, the manager's COTAL_DEFAULT_AGENT
applies before the product default.
For connection state, resume records, and implementation contracts, see the connector runtime reference.