Repository navigation
ACP Exploration #787
cryppadotta
started this conversation in
General
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
via my agent:
ACP and Paperclip Exploration
Date: 2026-03-13
Executive Summary
Short answer: yes, probably at the adapter layer; no, probably not as Paperclip's main external protocol.
ACP looks useful for Paperclip when the problem is:
ACP does not look like the right abstraction for:
My recommendation is:
What ACP Is
ACP is an open protocol for communication between code editors/IDEs and coding agents, not a general company-orchestration protocol. The docs explicitly position it as standardizing communication between editors and coding agents across local and remote scenarios. It is JSON-RPC based, session-oriented, and capability-driven.
In practice ACP gives you:
session/newandsession/loadsession/updateeventsThe current protocol strongly prefers
stdiotransport today. Streamable HTTP is still draft/in progress, and custom transports are allowed.That means ACP is best understood as:
It is not a built-in model for:
What
acpxIsacpxis a headless CLI client for ACP sessions. Its pitch is that orchestrators can talk to coding agents over a structured protocol instead of scraping PTY output. That is directionally attractive for Paperclip.However:
acpxis currently marked alphaacpxas a backend/plugin layer, with built-in harness aliases likeclaude,codex,opencode,gemini, andpiThe other important detail is permissions: OpenClaw's ACP docs are explicit that ACP sessions are non-interactive and there is no TTY for permission prompts. If writes/execs need approval and the backend is configured to fail in non-interactive mode, sessions can abort. That matters a lot for Paperclip because Paperclip heartbeat runs are also non-interactive.
What Paperclip Is Today
Per the repo docs, Paperclip is a control plane, not an execution plane:
The current adapter system is already fairly mature:
packages/adapters/*sessionParamsRelevant current adapters include:
claude_local,codex_local,gemini_local,opencode_local,pi_localprocessandhttpopenclaw_gatewayThat matters because ACP is not filling a blank space. It would be joining an existing adapter architecture.
Fit Analysis
1. Should Paperclip use ACP for adapters?
Yes, potentially.
This is the cleanest place ACP fits.
Paperclip adapter runs already need the same core primitives ACP provides:
There is a straightforward mapping:
runtime.sessionParamssessionId+ selected config statesession/new.params.cwdsession/updateeventsACP also lines up with several places where Paperclip already has adapter-specific logic:
So if a target runtime already speaks ACP, Paperclip should prefer an ACP-backed adapter over inventing another bespoke adapter protocol.
2. Should ACP replace existing local adapters?
Not broadly, not now.
For current Paperclip adapters, the native integrations still have real value:
ACP is most attractive when it removes bespoke integration work. It is less attractive when it adds another abstraction layer on top of adapters that are already working well.
So the likely rule is:
3. Should Paperclip expose itself via ACP?
Probably no.
This is the wrong abstraction boundary for Paperclip right now.
Paperclip's core value is governance and orchestration:
ACP does not model those things. It models a client talking to a coding agent in a session.
If Paperclip exposed itself via ACP, one of two things would happen:
Either way, it is a poor primary API choice for the control plane.
4. Should Paperclip expose agents via ACP?
Only in a narrow, future-facing sense, and not first.
A possible future idea would be letting external ACP clients attach to a Paperclip-managed coding session. But that is a different product from Paperclip's current heartbeat/task-driven model, and it pushes the product toward chat/session-first behavior that the current docs explicitly avoid.
So this should be treated as:
OpenClaw-Specific Answer
Paperclip already has a strong OpenClaw integration shape:
openclaw_gateway.That is important because OpenClaw's ACP support appears to be an OpenClaw backend/runtime choice, not evidence that every OpenClaw integrator should switch to ACP directly.
In other words:
acpxinternallyThis is probably the right decoupling.
Paperclip should not rush to replace Gateway with ACP unless there is a specific problem Gateway cannot solve. Right now Gateway already gives Paperclip what it needs:
If OpenClaw gets meaningfully better because it uses ACP under the hood, Paperclip benefits indirectly without needing to absorb ACP complexity itself.
Recommended Path
Recommendation A: Do not expose Paperclip as ACP
Keep Paperclip's external/control-plane contract as its own REST + agent-auth model.
Reason:
Recommendation B: Add an experimental ACP adapter
Build one new adapter, explicitly experimental, for ACP-compatible runtimes.
I would frame it as one of these:
acp_stdioacp_localacpx_localMy preference is:
acpx_localif the goal is fast validationacp_stdiousing an ACP SDK directly if the goal is a stable first-class integrationReason:
acpxis the fastest path to test valueacpxbeing alpha makes it a bad foundation if we want long-term stabilityRecommendation C: Keep OpenClaw Gateway
Do not replace
openclaw_gatewaywith ACP.At most, add a note in OpenClaw-related docs that:
Where ACP Could Fit in the Codebase
If we add ACP support, the clean place is a new adapter package:
packages/adapters/acpx-local/or
packages/adapters/acp-stdio/It would follow the existing adapter package structure:
src/index.tssrc/server/index.tssrc/server/execute.tssrc/server/test.tssrc/ui/index.tssrc/ui/build-config.tssrc/ui/parse-stdout.tssrc/cli/index.tssrc/cli/format-event.tsServer-side responsibilities
cwdsession/updateand tool-call events into Paperclip logs/transcriptruntime.sessionParamsUI responsibilities
CLI responsibilities
Proposed Paperclip-to-ACP Mapping
If implemented, this is the mapping I would use:
Session state
sessionIdinruntime.sessionParamscwdWorkspace
cwdPrompting
Auth
PAPERCLIP_API_KEY/ bearer authPermissions
Paperclip approvals are governance objects.
ACP permissions are runtime tool-execution controls.
Those are related, but they are not the same thing.
Risks
Product risks
Technical risks
acpxis alphastdiois the only clearly stable baselineIntegration risks
Decision
My recommendation is:
acpxas an experiment, not a foundational dependency, unless its stability and ecosystem support improve materially.Practical Answer to "Should Paperclip be using ACP?"
The answer I would give externally is:
Sources
External:
Repo context:
doc/GOAL.mddoc/PRODUCT.mddoc/SPEC-implementation.mddoc/DEVELOPING.mddoc/DATABASE.mddocs/adapters/overview.mddocs/adapters/creating-an-adapter.mddocs/guides/agent-developer/heartbeat-protocol.mdpackages/adapter-utils/src/types.tsserver/src/adapters/registry.tsserver/src/services/heartbeat.tspackages/adapters/openclaw-gateway/README.mdpackages/adapters/openclaw-gateway/src/server/execute.tspackages/adapters/codex-local/src/server/execute.tspackages/adapters/claude-local/src/server/execute.tsAll reactions