Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[WIP] feat: add ACP support - #679

Draft
stay-foolish-forever wants to merge 1 commit into
alibaba:mainfrom
stay-foolish-forever:docs/acp-support-roadmap
Draft

[WIP] feat: add ACP support#679
stay-foolish-forever wants to merge 1 commit into
alibaba:mainfrom
stay-foolish-forever:docs/acp-support-roadmap

Conversation

@stay-foolish-forever

@stay-foolish-forever stay-foolish-forever commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Description

Add Agent Client Protocol (ACP) support to the H2 2026 roadmap.

This draft PR serves as a planning placeholder while the implementation approach is evaluated. The current direction is to expose OpenCodeReview as a specialized review agent for Paseo and other ACP-compatible clients through a decoupled ACP server adapter.

This PR does not implement ACP support yet.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactoring (no functional changes)
  • Documentation update
  • CI / Build / Tooling

How Has This Been Tested?

Documentation-only change; verified with git diff --check.

  • make test passes locally
  • Manual testing (describe below)

Checklist

  • My code follows the project's coding style (go fmt, go vet)
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the documentation accordingly (if applicable)
  • I have signed the CLA

Related Issues

Tracks #674.

@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

OpenCodeReview: No supported files changed.

@stay-foolish-forever stay-foolish-forever changed the title docs(roadmap): add ACP support [WIP] feat: add ACP support Aug 2, 2026
DreamZhongJu added a commit to DreamZhongJu/open-code-review that referenced this pull request Aug 27, 2026
Implements the "ACP server adapter" direction from PR alibaba#679 / Issue alibaba#674 as
a prototype, keeping protocol integration fully decoupled from internal/
as required by the roadmap item.

- cmd/ocr-acp/acp: JSON-RPC 2.0 dispatcher over ndjson stdio with ACP v1
  subset: initialize (numeric/string version negotiation, explicit empty
  authMethods), authenticate no-auth reply, session/new with cwd resolution
  plus available_commands_update (/review, /scan), streamed prompt turns,
  session/cancel mapping to a cancelled stop reason.
- cmd/ocr-acp/wrapper: binary discovery or deterministic mock backend,
  argv assembly for review/scan (--format json --audience agent),
  tolerant jsonOutput decoding, strict stdout/stderr separation, bounded
  stderr tail diagnostics, 5s heartbeats, timeout + cancellation via
  process-group kill on POSIX and direct kill on Windows.
- Tests cover handshake variants, unknown methods and slash commands, the
  full mock prompt flow (finding chunks -> end_turn), mid-run cancellation,
  argv rules, tolerant decoding, and pure helper functions.

No production code outside cmd/ocr-acp is touched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant