# Handoff Adapters
<!--
ref: @protocol/handoff-adapters
tags: [pipeline, adapters, handoff, seams, tooling]
triggers: [it ignored half my input, pasted the whole plan, design to code, output violates an upstream decision, reformatting again for the same tool]
trigger_prompt: Use whenever an artifact crosses a tool boundary and the downstream result underuses or contradicts the upstream work — or after the second manual reformat for the same tool pair.
complements: [@protocol/spec, @protocol/protocol-audit, @protocol/delta-spec]
version: 3
updated_at: 2026-07-14T23:23:59.019Z
-->

An adapter — target profile, selection, restatement, plus a one-paragraph intent header — is the named transform you build the second time you hand-reformat an artifact for the same tool pair, instead of pasting everything downstream.

## The failure this prevents

A plan, spec, or design accumulates rich context in one tool's native form. The operator pastes the whole thing into the next tool (a design tool, a code agent, a doc generator) and gets mediocre output — not because the downstream tool is weak, but because it's parsing signal out of a shape optimized for a different consumer. The pattern shows up anywhere two tools meet: plan → design tool, design → code agent, protocol draft → knowledge-base entry, research → outreach draft.

## The adapter contract

An adapter is a named, repeatable transform with three parts:

1. **Target profile** — what the downstream tool rewards: input format, length limits, vocabulary, what it ignores, what makes it hallucinate. Written down once, per tool, from observed behavior (not the tool's marketing).
2. **Selection** — which upstream facts survive the handoff. An adapter mostly *deletes*: the downstream tool needs the decisions, constraints, and acceptance criteria — not the reasoning that produced them.
3. **Restatement** — surviving facts recast in the target shape: structured spec for a code agent, component tree + design tokens for a design tool, field-by-field payload for an API, one-question-at-a-time script for a human conversation.

## Design → code: the canonical example

Never hand a code agent prose or screenshots of a design. Hand it a **machine-readable bundle**: the component tree as a spec, the design tokens actually used (colors, spacing, type — as values, not names of pictures), layout hierarchy, and asset references. The receiving agent then builds against the real component library instead of reinterpreting pixels. The same discipline applies in reverse (code → design review: hand the design tool rendered states and the token diff, not source files).

## Adapters and intent

An adapter deletes reasoning but must **preserve intent**: the why travels as a one-paragraph header on the adapted artifact ("this exists to…; do not sacrifice X for Y"). Selection without an intent header produces technically-correct-but-wrong downstream output — see the intent-carrying requirement in `@protocol/spec`.

## When to build one

Build a named adapter after the **second** time you reformat by hand for the same tool pair (one-off = just do it; recurring = adapter). Store adapters with the pipeline they serve — as a protocol section, a template, or a small script — and treat a downstream tool's format change as an adapter update, not a new hand-massage.

## Smells

- "I pasted everything in and it ignored half of it" — no selection step
- Downstream output is plausible but violates an upstream decision — intent header missing
- The same reformatting appears in three session transcripts — unnamed adapter

---

*Related: `@content/web/huggingface/2026-11-29-boundary-aware-policy-learning-robot-manipulation` · `@knowledge/protocols/agent-to-human-handoff-context-preload` · `@protocol/memento` · `@content/youtube/sean-kochel/5-engineer-only-claude-skills-every-vibe-coder-needs` · `@content/youtube/sean-kochel/7-ways-to-cut-your-claude-code-token-usage-in-half`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*