Skip to content

Serve ACP clients with ox acp #150

Open

Description

@hakula139

Goal

Editors and delegating agents use the Agent Client Protocol to drive coding agents. ox acp maps ACP sessions, prompts, and permission requests to the engine protocol, letting other tools use oxide-code without a bespoke server protocol.

Acceptance criteria

  • ox acp speaks ACP over stdio and maps prompts, cancellation, session loading, and streamed updates to the engine's ops and events.
  • Explicit permission rules and auto / manual mode decisions use the shared engine flow in Use a cheap model classifier to decide ambiguous calls in auto mode #131. Calls requiring user approval are forwarded to the client's permission request. If the client cannot answer, the call remains unexecuted with an approval-required result.
  • ACP question and approval prompts use the shared deadline and cancellation lifecycle from Configure timeouts for questions and permission approvals #832.
  • Tests drive a client fixture through a prompt with a tool call, a permission round trip, and cancellation.
  • The guide explains how to connect an ACP client.

Notes

This replaces the earlier idea of an MCP server mode. It builds on the Op / Event protocol from #143, which has landed.

Decisions:

  • Depend on the agent-client-protocol crate 3.x, whose 3.4.0 release is current.
  • Give each ACP session its own engine, working in the directory the client passes to session/new.

Activity

  1. self-assigned this
    on Oct 15, 2026
  2. added
    enhancement
    area: engine
    on Oct 15, 2026
  3. added this to the v0.1.0 milestone on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: engineenhancement

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions