Skip to content

[Feature] Add OpenCode as a first-class paca-acp-bridge provider #590

Closed

Description

@sorin-sds

Summary

Add OpenCode as a first-class provider in paca-acp-bridge (apps/acp-bridge). OpenCode provides an ACP server via opencode acp, so it can likely already be run through the generic custom provider route today — but exposing it as a documented first-class provider would make the integration discoverable and reproducible.

Problem

Teams want to keep Paca as the project/task/control plane while using OpenCode as the local coding harness. The current provider registry (apps/acp-bridge/internal/provider) has built-ins (claude-code, codex, gemini-cli, goose) plus custom. With custom, every user must know and hand-configure the exact launch command, and the provider gets no setup documentation, compatibility expectations, or UI/onboarding support. Compared with a generic custom-command configuration, a first-class provider would improve:

  • discoverability
  • setup simplicity
  • compatibility expectations
  • UI/onboarding
  • supportability
  • reproducibility across developer machines

Proposed Direction

  • Register opencode as a first-class provider id / config value in paca-acp-bridge.
  • Default launch command based on opencode acp (the same pattern as the existing goose entry, whose default command is goose acp).
  • Normal environment/config passthrough consistent with the other ACP providers (the bridge injects no tool/MCP config — the local ACP CLI owns its own setup).
  • Setup documentation for the provider, including the documented Paca MCP integration (Paca MCP connection + skills install) and how it interacts with OpenCode's own MCP/configuration facilities.
  • Linux and Windows launch examples if practical.

Scope

  • Product behavior
  • Repository structure
  • Architecture
  • Developer experience
  • Documentation
  • Other

Additional Context

To be clear: OpenCode is not lacking ACP support — opencode acp already speaks the Agent Client Protocol. The request is specifically for first-class Paca ACP-bridge integration around OpenCode's existing ACP server. If current repository terminology or config naming differs from the wording above, adapt to the actual paca-acp-bridge terminology.


AI disclosure: This issue was prepared with assistance from AI tools. The reporter reviewed the content; the technical observations and reproduction results are based on tests actually performed against the reported Paca environment.

Activity

  1. pullfrog commented on Oct 16, 2026

    @pullfrog
    Contributor
  2. self-assigned this
    on Oct 20, 2026
  3. pikann commented on Oct 20, 2026

    @pikann
    Contributor

    Thank you so much for the suggestion! I'll look into implementing this soon.

  4. added
    enhancement
    on Oct 20, 2026
  5. sorin-sds commented on Oct 21, 2026

    @sorin-sds
    Author

    Follow-up from a real Windows/OpenCode ACP pilot: the integration now works end-to-end through Paca's custom ACP provider.

    Environment:

    • Windows 11
    • Paca 0.19.0
    • paca-acp-bridge 0.19.0
    • OpenCode CLI 1.18.27
    • OpenCode ACP via opencode acp
    • local OpenAI-compatible Qwen endpoint
    • Paca MCP 0.19.0

    Validated end-to-end:

    Paca
    → paca-acp-bridge
    → custom ACP command
    → OpenCode ACP
    → isolated OpenCode profile/workspace
    → model
    → Paca MCP

    The pilot passed:

    • bridge connect/disconnect
    • read-only remote task
    • controlled file write
    • Paca MCP tool call from the remote OpenCode session
    • disconnect/reconnect with conversation/workspace continuity
    • isolation from the normal OpenCode Desktop profile

    Two interoperability findings may be useful for first-class OpenCode support:

    1. /paca prompt prefix

    Paca prefixes remote-agent prompts with /paca.

    OpenCode treats that as a slash command, so the first remote turn did not reach the model until I added a passthrough command to the isolated OpenCode config:

    "command": {
      "paca": {
        "template": "$ARGUMENTS"
      }
    }

    A first-class OpenCode provider should probably handle or document this automatically.

    2. Windows MCP launch from OpenCode Desktop

    This is not an ACP-bridge failure, but it is relevant to the documented Paca MCP integration.

    In OpenCode Desktop on Windows, configuring Paca MCP as:

    npx -y @paca-ai/[email protected]
    

    did not start the MCP server. The Desktop sidecar is Electron/Node and direct spawning of the Windows npx .cmd shim failed silently.

    Using:

    cmd /c npx -y @paca-ai/[email protected]
    

    fixed it. After a real Desktop restart, Paca MCP spawned correctly, its tools appeared in the session, and the model selected paca_list_projects automatically with no extra hint.

    The OpenCode CLI/ACP runtime did not have this problem; direct npx worked there.

    Additional operational note

    For our deployment we intentionally keep Remote Agents manual/on-demand rather than auto-started. Paca knows whether an ACP agent is connected, but the current Paca MCP tool surface does not appear to expose a read-only agent connection-status tool.

    A tool such as paca_get_agent_status / paca_list_agents exposing at least:

    • agent id
    • handle
    • display name
    • provider
    • connected

    would let orchestrating agents safely detect an offline executor and ask the human operator to start it, instead of silently falling back to another machine.

    Overall, the custom-provider route is now proven usable for OpenCode on Windows. The remaining items above are mainly discoverability/interop/polish issues rather than blockers.

    AI disclosure: this comment was prepared with AI assistance; the reproduction results and observations above come from the actual pilot environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions