Agent Context Protocol ACP Skill
Installation
SKILL.md
Agent Context Protocol (ACP)
ACP is a standard JSON-RPC based protocol that enables seamless communication between code editors (clients) and AI coding agents (servers). It operates over standard input/output (stdio), allowing the agent to run as a subprocess of the editor.
Core Concepts
- JSON-RPC Transport: Communication uses JSON-RPC 2.0 messages (requests, responses, notifications) delimited by newlines.
- Sessions: Stateful conversation contexts.
- Context: Rich context is passed to the agent, including:
- User messages
- File contents (resources)
- Editor selections
- Terminal output
- Tools & Delegation: Agents can execute tools and delegate tasks to specialized sub-agents. The client handles tool execution requests and displays progress.
Implementation in PDFScribe
PDFScribe implements ACP to power its research capabilities using the local opencode binary.