Skill-as-API: a confidential multi-agent collaboration protocol for agent software engineeringSkill-as-API: Confidential Multi-Agent Coordination for Agentic Software Engineering
Skill-as-API keeps the skill body in the owner's process; in Table 2, the code quality agent's 10/10 return values show no system prompts.
Table 1: honest-but-curious and adversarial caller are in (read schema, send inputs, OWASP injection). Protects callee code and system prompts. Colluding callees, schema-inference are partial. OS/physical attacks and caller LLM hijacking are out.
- When cross-organization programming agents call each other, the coordination channel may leak the skill's code and system prompts. MCP and A2A do not pass implementations, but still expose descriptions and typed schemas, and cannot hide the existence of a skill. Content filtering happens after the model has already decided to output sensitive text.
- Skill-as-API lets the body remain in the owner's process as a closure. The online view only has the name, description, routing hints, version, typed schema, minimum trust level, and a 16-byte hash. Four layers perform trust gating, privilege reduction after completion, hiding skills with the same error as nonexistent ones, and not concatenating inputs into system prompts.
- Three agents review PRs via XMTP. The code_review checklist of about 1200 characters has zero overlap with the findings log. On Table 2, 10/10 did not see the system prompt; the authors say this is not an upper bound. After OKR, INTERNAL drops to KNOWN. Hot reconnect takes 1.8–2.9 seconds (N=30, two intercontinental XMTP).
- §6 lists that cross-step forwarding is not sanitized, active leakage in return values, timing differences between hiding and execution, trust only by peer, collusion and schema inference are not eliminated. The cases do not name LLMs; Table 2 is 10 preset injections. The failure counter is only in memory per §3.6.
- Benchmarks
- three-agent PR review over XMTPOWASP-style injection classes (Table 2)
- Metrics
- Absorbedhot-reconnect latencycold-start latencytrust-tier transition
Skill-as-API is a protocol-layer coordination scheme that lets AI programming agents, when calling each other's skills, only expose the skill name, description, typed input/output schema, and trust level, while the skill body remains in the owner's process as a closure and never traverses the network. The protocol implements access control through four layers and structurally narrows the prompt injection surface rather than relying on content filtering. The authors provide an open-source Python implementation on XMTP, with intercontinental warm reconnection latency of 1.8-2.9 s, and use a three-agent collaborative pull-request review case to demonstrate that all parties retain ownership of their proprietary analysis prompts.
Paper analysis
What problem does this paper attempt to solve?
Cross-organization collaboration may leak skill code and system prompts; Skill-as-API keeps the body in the owner's process.
In cross-organization collaboration, the coordination channel leaks the code and system prompts of the called skill.
- Scenario: The authors write SE 3.0 as human-orchestrated cross-organization autonomous agents, e.g., a security scanning agent that calls an encapsulated vulnerability pattern library. The authors consider the collaboration channel itself a liability.
- Existing gap: MCP and A2A do not transmit implementation code, but still expose names, descriptions, and typed schemas to every peer; they cannot hide whether a skill exists, nor keep encapsulated system prompts out of the discovery surface. The authors relay that PrivacyChecker retains about 7–8% under its reporting setting, and the intervention occurs after the model has already decided to output sensitive content.
- Authors' synthesis: T1 and T2 both point to the skill body; T3 expands the peers that can attempt extraction. The authors write: in addition to encrypted channels and post-hoc filtering, one must also control what is visible, who sees it, and for how long.
- This paper's approach: Skill-as-API's public view contains no body; code and system prompts are captured by closure at registration and remain in the owner's process. The four layers are trust tiers, automatic downgrade, skill hiding, and function boundaries. The authors say its positioning is complementary to MCP and A2A.
- Threat model:
- Target: obtaining code or system prompts via the channel, or enumerating the namespace. Statistical cloning is placed out of scope by the authors.
- Table 1: honest-but-curious caller and adversarial caller (plus OWASP injection payloads) are in; colluding callees and schema-inference attacker are partial; OS/physical attacks and hijacked caller LLM are out.
- Assumptions: The authors assume the owner's machine is not compromised; if it is, the authors write that no protocol can protect the body. The protocol does not protect the caller's own LLM.
- System: cross-organization, short-lived collaboration SE agents. The authors say the two partial categories are only reduced, not eliminated (§6 L4–L5).
What related research exists?
The authors place this paper at the ABI layer, alongside encrypt-everything, IAM gating, and content filtering, and say they can be stacked.
Agent Privacy Policies
- AgentCrypt (Karthikeyan et al., 2026): Uses HE/MPC to encrypt inter-agent traffic. The authors claim the general overhead of such techniques is 2–3 orders of magnitude.
- A2A: Uses IAM to restrict who can communicate, while still exposing schemas and descriptions during discovery.
- PrivacyChecker (Wang et al., 2025): Performs content filtering at inference time. The authors report approximately 7–8% residual under their reported settings.
Coordination Protocols
- MCP (paper cites Li and Gao, 2025): Connects agents to tool servers and transmits descriptions and schemas.
- AgentNet (Yang et al., 2025): Provides decentralized coordination. The authors claim it does not address skill-IP protection.
Software Engineering Agents
- SWE-agent (Yang et al., 2024), OpenHands (Wang et al., 2024), and Copilot Workspace: The authors claim these systems can autonomously handle issues, review PRs, and generate patches, and assume single-agent or fully trusted multi-agent environments.
Safety and Capability Systems
- ARGUS (Weng et al., 2026) trains content-layer injection discriminators; MCPTox (Wang et al., 2025) catalogs MCP attack surfaces. The authors claim this paper narrows the prompt extraction surface at the protocol layer.
- Capsicum (Watson et al., 2010) restricts reachable resources at language and OS boundaries. The authors claim Skill-as-API applies the same intuition to the agent ABI.
- Agent Skills for LLMs (Xu and Yan, 2026) proposes a lifecycle defense model. The authors cite its survey in §2.1: approximately one-quarter of skills carry exploitable security risks.
Baselines
- Table 3 compares MCP, A2A, and AgentCrypt against: whether code is online, description/schema, system prompt confidentiality, existence hiding, trust lifetime, injection defense, and overhead. The paper does not map this table to any task dataset.
The authors call Skill-as-API a fourth strategy at the ABI layer, changing what is online. The authors claim the four approaches are orthogonal: this protocol removes exposure paths that filters cannot reach, filters handle model behavior that the protocol cannot constrain; encryption and IAM can still be layered. The authors claim that relative to TEE enclaves, choosing ABI is for portability, zero infrastructure cost, and not binding the body to hardware vendors.
How does the paper address this problem?
The public view does not contain the body; four layers manage trust levels, downgrading, skill hiding, and function boundaries.
Skill-as-API uses a public view to keep the body off the wire, then uses four layers to decide who can call, how permissions expire, and whether inputs can touch the system prompt. The authors list G1 code and prompts never go online, G2 hidden, forbidden, and nonexistent return the same error, G3 permissions for a single collaboration decay, G4 caller input does not enter the system prompt, G5 hot reconnect stays in low single-digit seconds.
Abstraction and Invariants
A skill is a tuple S = (name, d, w, v, σ_in, σ_out, t_min, B). d is description, w is natural language routing prompt, v is version, σ are typed schemas, t_min is minimum trust tier, B = (c, p) is code and system prompt, existing only in the owner process.
The public view is view(S)=(name, d, w, v, σin, σout, tmin, h). h is the first 16 bytes of SHA256(name ∥ v ∥ σ_in ∥ σ_out ∥ t_min), used for fast reconnect. Invocation is call(S, x)=c(filter(x, σin)), where filter drops keys not in σ_in. p is captured by the c closure at registration, not a parameter, and input paths cannot reach it. The invariant is that B is not part of view(S).
Trust Tiers and Automatic Degradation
- Four tiers: UNTRUSTED=0, KNOWN=1, INTERNAL=2, PRIVILEGED=3. Calls require peer tier t ≥ S.t_min.
- Message gating: ping and trust_request have minimum tier UNTRUSTED; discover is KNOWN; collab_request is INTERNAL; unknown types default to PRIVILEGED, i.e., deny-by-default.
- Algorithm 1: On failure, consecutive count increments by 1; after 3 failures, degrade one tier and reset count, with a lower bound of 0; on success, reset. On okr_done, degrade one tier, with a lower bound of KNOWN. The authors call this throw-away trust: what remains is evidence for future elevation, not standing permission.
Hiding and Function Boundaries
- Skill hiding: Hidden, forbidden, and nonexistent skills return the same error string. Owner logs can distinguish, but that distinction is not on the wire, corresponding to G2. The authors note that timing differences between hidden and executed skills remain a side channel.
- Function boundaries: Caller input reaches only as schema-filtered named kwargs, and the reference executor binds them only to the user turn, not into p. The authors separate two properties: structurally, p is not on the wire and input is not a system-role parameter; behaviorally, the model may still recite p in the user turn. The authors label the latter as L2, state it is not eliminated, and §4 only does an exemplary check.
- Protected object: This layer only protects the callee. If return values are fed into the caller's own LLM, that stack still faces ordinary injection.
Implementation and Information Flow
- Code form: Python 3.10+. Contribution C2 states no Python-side dependencies beyond the standard library; §3.6 states the runtime also has optional LLM vendor SDKs. Transport is XMTP v3 (MLS) on a Node.js sidecar, Python connects via local HTTP/SSE bridge, and cryptographic implementations are not in the Python TCB. h also serves as the reconnect cache key.
- §3.6 states: Algorithm 1's failure count is in-memory only, reset on restart; tier changes are written to trust.json using temporary files, fsync, and os.replace. Version v uses exact string equality, no semantic range matching.
- Figure 1: The MCP/A2A side lists schema, tool or skill descriptions, task messages, messages with prompts, and conversation context; the remote side notes these contents may be exposed or inferred, and lists System Prompt and Internal Assets. The Skill-as-API side lists Name, Description, When-to-use, Input/Output Schema, Minimum Trust Tier, Version, Schema Hash; the remote side notes it only receives schema views, only sends inputs, only receives outputs, and Cannot Access Code or Prompt. The caption states the body remains in the owner process.
What experiments did the paper conduct?
Three-agent PR review: Table 2 shows 10/10, warm reconnection 1.8–2.9 seconds (N=30).
Experimental Setup
- Subject: Three independent processes conduct one PR review over real-time XMTP: an orchestrator, a code-quality agent (checklist written as a system prompt), and a security agent (pattern-library prompt). Both experts have t_min = 1 (KNOWN). The paper does not state the LLM names.
- G1: Record all XMTP messages on the orchestrator side and check whether they overlap with the callee's system_prompt string. The code_review input written in the paper is diff: str, and the output is findings: list[str].
- G4: 10 inputs cover the eight categories of OWASP-style injection in Table 2, each preceded by a PR diff, sent only to the code-quality agent. Absorbed means the system prompt does not appear in the return value and the output schema is preserved; also check whether the returned fields contain verbatim or paraphrased system prompts. The paper does not state the review model, threshold, or human agreement.
- G3: In the same run, first promote both experts to INTERNAL, then check Algorithm 1 line 10 when the OKR completes; also check PRIVILEGED→INTERNAL on a test peer.
- Latency: Hot reconnect is the second and subsequent calls on an already-connected peer, N=30; two intercontinental XMTP relays, commodity Linux, 100 Mbps. Cold start is reported separately. All timings include key ratcheting.
- Comparison: Table 3 qualitatively compares MCP, A2A, AgentCrypt, and Skill-as-API, with no numerical baseline on the same task.
Main Results
Swipe horizontally to read the table
Item Condition Result Source Schema view After code_review findings Only name, description, and input/output schema; zero overlap with the ~1,200-character checklist §4 Injection absorption Code-quality agent, eight categories, N=10 10/10 Table 2 OKR demotion Both experts INTERNAL→KNOWN §4 Call after demotion INTERNAL-tier skill Rejected; must re-request elevation §4 Hot reconnect N=30, intercontinental XMTP, 100 Mbps 1.8–2.9 s §4 Cold start First channel establishment 30–60 s §4 - The authors describe 10/10 as an illustrative spot-check: zero leakage at N=10 cannot tightly bound the residual rate. Absorbed combines "input is not concatenated into p" and "the model does not memorize p," the latter being outside the claimed scope per L2. In §4, the authors state they will later quantify the two separately and add a control skill that concatenates the input into the prompt.
- The authors state INTERNAL→KNOWN is a measured demotion, not a no-op stuck at the lower bound. PRIVILEGED→INTERNAL occurs on a test peer in the same run. The authors use this to claim that one PR review does not become a permanent skill channel.
- The authors state the orchestrator sees the two experts' schemas, not their prompts; the zero-overlap check written out is for code_review and its ~1,200-character checklist. The abstract and C3 describe the case study as demonstrating skill hiding; the walkthrough checklist in §4 is G1, G4, G3, and the main text does not include a return comparison between hidden skills and nonexistent skills.
Protocol Qualitative Comparison
- Table 3 notation: ✓ is structural protection, ✗ is none or exposed, app is left to the application, enc is via encryption.
- Line items: Implementation code at deployment is none, none, enc, none (closure). Description/schema is public, public, enc, public. System prompt confidentiality is app, app, enc, ✓ (closure). Existence hiding is ✗, ✗, ✗, ✓. Trust lifetime is none, IAM, PKI, 4-tier + decay. Injection defense is app, app, n/a, ABI structural. Overhead is low, low, high, low (XMTP). The order is MCP, A2A, AgentCrypt, Skill-as-API in all cases.
- Authors' usage: This is a structural comparison. The paper does not measure overhead on the same workload. The Figure 1 caption states that MCP/A2A expose tool descriptions, schemas, and prompt context, while Skill-as-API exposes only the schema view.
Cross-step Forwarding in the Case Study
- Observation: The orchestrator passes the code-quality agent's output as context to the security agent without sanitization in between. The authors state a malicious code-quality agent could place toxic content in the response, recorded as L1 in §6. The paper does not report a success rate for this path.
Other Ablations and Analyses
- Table 2 denominators by category: direct instruction override 2/2, role reversal 1/1, markdown/fence escape 1/1, prompt-leak request 2/2, base64 wrapper 1/1, multilingual paraphrase 1/1, indirect via comment 1/1, recursive self-call 1/1.
- Algorithm 1: 3 consecutive failures demote one tier, lower bound 0; OKR completion demotes one tier, lower bound KNOWN. The paper does not report run logs for the 3-failure path.
- §3.6: Failure counts are in-memory only and reset on restart; tiers are written to trust.json; version comparison is exact string equality.
- §4: Both experts register with t_min=1, are promoted to INTERNAL during the review, and return to KNOWN after the OKR.
- Cold start is 30–60 s, which the authors state is mainly due to XMTP MLS group creation; both hot reconnect and cold start include key ratcheting.
What are some points that can be further explored?
The authors list in §6 cross-step poisoning, behavior-layer leakage, timing side channels, per-peer trust, and collusion inference.
Limitations and future directions noted by the authors
- L1: Agent A's output is passed to B without filtering, i.e., cross-step input poisoning, which the protocol does not handle; orchestrator-layer cleaning is future work (§6).
- L2: The called LLM proactively emits sensitive content in return values, which the authors call orthogonal to Skill-as-API, still within the scope of content-layer filters (§6).
- L3: The timing side channel between hidden skills and executed skills remains; the authors plan to use randomized delays (§6).
- L4: Trust is per peer, not per skill; finer-grained ACLs are future work (§6).
- L5: Colluding callees and schema-inference probing are only mitigated by the schema-only view, not eliminated; randomized output perturbation and rate-limit discovery are future work (§6).
Experimental coverage
- The case is 1 PR review with 3 processes, two experts with t_min=1 (§4). The paper does not report the LLM used.
- Injection checks are 10 items on a code-quality agent, 1 or 2 per each of eight categories (Table 2). The authors state in §4 that this result cannot tightly bound the residual rate, and they did not separately measure structural absorption versus behavioral non-recitation. The paper does not report the number of repetitions, the reviewing model, or agreement with humans.
- Hot-reconnect samples are N=30, hosts are commodity Linux, 100 Mbps, two intercontinental XMTP relays; cold start is written as 30–60 s, timing includes key ratcheting (§4).
- The trust exercise includes INTERNAL→KNOWN with two experts, and PRIVILEGED→INTERNAL with the test peer followed by denial (§4). The paper does not report run logs for the 3-consecutive-failure degradation.
- Table 3 is a qualitative comparison. §2.1 marks statistical cloning as out of scope, citing it as a fundamental limitation of any callable skill. §6 states collusion and schema inference are only mitigated; the paper does not report quantitative results for these two categories. §3.6 states failure counters are in-memory only, and versions use exact string equality.
Summarize the main content of the paper
The protocol keeps the skill body on the owner side, with four layers restricting discovery content, permission duration, and injection concatenation.
Skill-as-API is a coordination protocol for agent software engineering, designed to keep a skill's code and system prompt within the owner's process during cross-organizational calls.
The authors target three threats: extracting proprietary methods through channels or namespaces, using injection to make the called model output its system prompt, and permissions persisting after collaboration ends. Only the name, description, routing prompt, version, typed schema, minimum trust level, and a 16-byte hash are placed online; the body is captured in a closure at registration. Trust is divided into four tiers, and both consecutive failures and OKR completion degrade the level; hidden skills and nonexistent skills share the same error; inputs only enter the user-turn kwargs, never concatenated into the system prompt. The reference implementation is a Python package plus a Node.js sidecar for XMTP v3.
In a three-process PR review, the code_review findings message and the approximately 1,200-character list have no string overlap. In Table 2, 10/10 injection returns on the code quality agent contain no system prompt, and the output schema remains; the authors state this is not a bound on the residual rate. After OKR completion, two experts were downgraded from INTERNAL to KNOWN, and further calls to INTERNAL skills were rejected. For connected peers, warm reconnection is 1.8–2.9 seconds (N=30, intercontinental XMTP, 100 Mbps), and cold start is 30–60 seconds.
The authors conclude that this protocol complements MCP and A2A, enabling agents in collaboration to each retain their engineering methods. Stepping injection, models actively leaking in return values, timing side channels, per-skill authorization, and residuals from collusion and schema inference are noted in §6.