name: agent-client-protocol-usage
description: Use agent-client protocols to expose editor integrations with declared modes, workspace scopes, and consent boundaries.
metadata:
source: skills/07-tool-use/agent-client-protocol-usage.md
category: 07-tool-use
version: "v1"
Agent Client Protocol Usage
Description
Use agent-client protocols to expose editor integrations with declared modes, workspace scopes, and consent boundaries. The procedure is constrained by explicit inputs and acceptance criteria rather than best-effort judgment alone.
When to Use
- an agent integrates with an editor or client host and must declare its mode and scope correctly.
- Ambiguity or missing evidence would change the outcome.
- The result must be recorded with reasons and evidence for later verification.
Inputs / Outputs
| Area |
Contract |
| Inputs |
Task context, candidate inputs, and explicit acceptance criteria for agent client protocol usage work. |
| Outputs |
A decision or artifact with recorded reasons, rejected alternatives, and verification evidence. |
| Safety |
Failures must fail closed and be reported with evidence rather than retried silently. |
Procedure
- Define the goal, the constraints, and the boundary of what this procedure may change.
- Inventory the available inputs and flag gaps or ambiguities that block progress.
- Execute the agent client protocol usage steps in a bounded, checkpointed way.
- Compare the actual outcome against the expected outcome and record deviations.
- On failure, apply the declared fallback path, and never widen permissions to recover.
- Emit a structured result with evidence and provenance for downstream consumers.
Runnable Example
def negotiate(requested, supported):
mode = next((m for m in requested if m in supported), None)
if mode is None:
raise ValueError("no supported mode in request")
return mode
assert negotiate(["plan", "act"], ["ask", "act"]) == "act"
try:
negotiate(["yolo"], ["ask", "act"])
raise AssertionError("should have raised")
except ValueError:
print("negotiation held")
Failure Modes
- Defaulting to autonomous mode without consent.
- Declaring read-only mode while writing files.
- Ignoring the workspace root boundary the client set.
- No mode downgrade when the host revokes consent.
- Skipping the protocol version handshake.
Boundary
This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result.
Evidence
Agent-client editor protocols like ACP saw public releases and adoption in 2026 tooling; this is a dated public signal, not an adoption metric.
Related
- a2a-tool.md
- function-calling.md
- mcp-tool.md
1---2name: agent-client-protocol-usage-23description: Use agent-client protocols to expose editor integrations with declared modes, workspace scopes, and consent boundaries.4---5---6name: agent-client-protocol-usage7description: Use agent-client protocols to expose editor integrations with declared modes, workspace scopes, and consent boundaries.8metadata:9 source: skills/07-tool-use/agent-client-protocol-usage.md10 category: 07-tool-use11 version: "v1"12---1314# Agent Client Protocol Usage1516## Description17Use agent-client protocols to expose editor integrations with declared modes, workspace scopes, and consent boundaries. The procedure is constrained by explicit inputs and acceptance criteria rather than best-effort judgment alone.1819## When to Use20- an agent integrates with an editor or client host and must declare its mode and scope correctly.21- Ambiguity or missing evidence would change the outcome.22- The result must be recorded with reasons and evidence for later verification.2324## Inputs / Outputs25| Area | Contract |26|---|---|27| Inputs | Task context, candidate inputs, and explicit acceptance criteria for agent client protocol usage work. |28| Outputs | A decision or artifact with recorded reasons, rejected alternatives, and verification evidence. |29| Safety | Failures must fail closed and be reported with evidence rather than retried silently. |3031## Procedure321. Define the goal, the constraints, and the boundary of what this procedure may change.332. Inventory the available inputs and flag gaps or ambiguities that block progress.343. Execute the agent client protocol usage steps in a bounded, checkpointed way.354. Compare the actual outcome against the expected outcome and record deviations.365. On failure, apply the declared fallback path, and never widen permissions to recover.376. Emit a structured result with evidence and provenance for downstream consumers.3839## Runnable Example40```python41def negotiate(requested, supported):42 mode = next((m for m in requested if m in supported), None)43 if mode is None:44 raise ValueError("no supported mode in request")45 return mode4647assert negotiate(["plan", "act"], ["ask", "act"]) == "act"48try:49 negotiate(["yolo"], ["ask", "act"])50 raise AssertionError("should have raised")51except ValueError:52 print("negotiation held")53```5455## Failure Modes56- Defaulting to autonomous mode without consent.57- Declaring read-only mode while writing files.58- Ignoring the workspace root boundary the client set.59- No mode downgrade when the host revokes consent.60- Skipping the protocol version handshake.6162## Boundary63This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result.6465## Evidence66Agent-client editor protocols like ACP saw public releases and adoption in 2026 tooling; this is a dated public signal, not an adoption metric.6768## Related69- a2a-tool.md70- function-calling.md71- mcp-tool.md