Skip to content

ACP

WIP

ACP support is still in development. The features under Coming soon are not available yet.

Use ACP to work with Octomate's enabled agents. Your client connects to one Octomate agent and chooses a model from the available options. Changing that choice keeps the same session and thread history.

Connect

Add ACP to your existing tentacles: map in config/tentacles.yaml, then restart Octomate:

tentacles:
  acp:
    type: acp

Declare the ACP API once per deployment, under any unused registry key. Omitting it or setting enabled: false leaves the API unavailable. This channel exposes the enabled agents; it does not run an external harness itself.

  1. Enable and authenticate the agent tentacles you want to use, such as Claude, Codex, or Inkling. ACP uses their existing runtimes and model catalogs; no separate provider adapter is needed.
  2. In Trunkline's Account panel, issue a key with the acp scope. Save the token when it is shown. See Accounts and tokens.
  3. Connect using the WebSocket contract, initialize, and create a session. Use WSS for a remote server. The client must support this custom transport and its bearer header; stdio-only clients need a transport bridge.
  4. Choose an advertised model, then send a prompt. Answer permission requests in your client, or cancel the prompt. Questions require a client that supports form elicitation.

Each prompt runs through the reflex graph. A session accepts one prompt at a time. Keeping it connected does not keep the thread busy.

Connect a harness

An installed harness that speaks ACP can also run as an Octomate agent. Install and authenticate it as the server's user, then add a separate tentacle:

tentacles:
  acp:
    type: acp
  harness:
    type: acp_agent
    provider:
      command: /opt/bin/my-agent
      args: [--acp]
  trunkline:
    type: trunkline
    agents: [harness]

Replace the executable and arguments with your harness's ACP command. Each harness has its own registry key; several can coexist. Choose it in Trunkline, another configured channel, or the public ACP model selector. An acp_agent entry requires a provider and does not enable the public API; keep the separate acp entry when clients should connect to Octomate through ACP.

Octomate discovers the harness's advertised models and reasoning levels at startup. Choose an effort supported by the selected model in Trunkline, or leave it on Auto to preserve the harness's own setting. A harness without a model selector is available with its default model. Startup may leave an empty session in the harness's own history. No prompt is sent and no Octomate conversation is created for discovery.

Prompts run in the usual managed server workspace. Subsequent prompts load the same provider session, so the harness must support session loading to continue a conversation. Streaming, approvals, cancellation, and recorded history use the same Octomate flow as the other agents. Permission modes remain at the harness's defaults.

By default, the harness receives Octomate's MCP with the calling user's identity. This requires HTTP MCP support. Set gateway: false on this tentacle to omit Octomate tools when the harness cannot accept them.

Some harnesses require an ACP authentication method even after local login. Configure that method and any required environment overrides in the provider settings. Interactive login is not relayed.

Choose a habitat for the harness

Set the acp_agent tentacle's habitat to a configured habitat name. Octomate's ACP integration with a workspace habitat such as SRT relies on the provider delegating its file operations and terminal commands to the client. Octomate runs those delegated operations inside the habitat; the provider itself stays on the host.

ACP compatibility alone does not guarantee this delegation. A provider may use its own tools instead, bypassing the workspace habitat. ACP does not let Octomate verify that every operation is delegated, so Octomate logs a warning at startup and respects your selection. Confirm the provider's client-side filesystem and terminal support before relying on SRT for isolation.

If the provider does not support this, choose a native habitat to use its own execution and sandbox controls, or a hosted habitat such as sbx to run the provider and its tools inside the sandbox. Native execution does not add habitat isolation. See configuration for where to declare habitats and tentacles.

Session settings

The model selector contains choices from the enabled agent tentacles. Its default uses the first available agent's own default. Permission choices belong to the selected agent and change when you choose a different agent.

You can change the model during a prompt. The current prompt, including its approval or question continuations, finishes with its original choice; the next prompt uses the new choice. Each agent retains its own conversation within the session's thread. Switching agents does not copy another agent's private model history.

Where work happens

File operations and terminal commands run on the Octomate server. A directory in a declared project selects that project's managed checkout. An unregistered directory selects an empty chat workspace, discarded when the prompt ends. Project work follows the normal workspace lifecycle. Symbolic-link aliases work when selecting or filtering a project.

Octomate's tools are available when enabled for the selected agent, using your account's permissions and linked MCP accounts.

MCP servers supplied by the client are rejected when creating or reopening a session. Client file operations and terminals are not supported.

History and reopening

A session is an Octomate thread. Its conversations, runs, and messages belong to the agents that execute them. The first prompt makes the thread visible in your Trunkline history. Live activity is published through the nerve; no hooks are needed.

Disconnecting cancels active work and retains history. Connect again as the same Octomate user to list and reopen your sessions, including empty sessions. Load replays the thread's messages; resume continues without replay. Replaying does not create duplicate messages or runs. Only one connection can attach a session at a time.

Reopening keeps the selected model and the thread's project. Create a new session to choose a different project. Sessions from the earlier provider-specific API retain their recorded history but cannot be resumed through this endpoint.

Current limits

API-key revocation and expiry are checked when connecting. Media prompts are not advertised. History replay presents the thread ledger; detailed tool and thinking history remains in Octomate's conversations.

Coming soon

  • File operations and terminal commands in the connected client's environment.
  • MCP servers supplied by the client.