Cotal
DocsAPI Reference
Connect agents

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.

Compare support

ConnectorMaturityResume a session with --resumeShare selected MCP tools with --share-toolsList models with cotal models
Claude CodeStableForks the source sessionSupportedModels the Claude login can use, their effort levels, and the fast and ultracode modes
OpenCodeBetaUnsupportedUnsupported. Inherits the user's MCP servers.Models and variants on 1.x and 2.x
CodexBetaUnsupportedUnsupported. Uses an isolated CODEX_HOME.Models and reasoning efforts
HermesAlphaForks the source sessionUnsupportedModels of the provider a launch's environment selects, with Hermes's reasoning efforts
JcodeBetaForks the source sessionUnsupported. Uses private MCP configuration.Models declared in the Jcode configuration
piAlphaForks the source sessionUnsupportedModels 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

ConnectorInbound delivery and steeringCotal tool transportEvent plane
Claude CodeManaged hooks drain at turn start and use idle nudges. Personal native sessions also deliver at supported busy boundaries.stdio MCPSupported, with streamed text while its mod runs
OpenCodeInjects a turn. No mid-turn steering.In-process plugin toolsSupported, with streamed text
CodexWakes a turn and steers connector-started turns. External turns defer automatic delivery.Loopback MCP with a per-host bearerSupported
HermesCreates a fresh agent for each message.Private Unix socket or a Windows named pipe restricted to the seat's userCompleted-message events
JcodeInjects a Harness turn; directed messages steer its live session.stdio MCP bridge relayed over a private Unix socketSupported, with streamed text
piSteers the live turn inside its process.In-process toolsSupported, 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: true launches 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: true publishes the model's reasoning as REASONING_* 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:

  1. The launch's explicit --harness option.
  2. The persona file's agent: field.
  3. COTAL_DEFAULT_AGENT.
  4. The saved harness preference.
  5. 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.

On this page