adaptation-parity

adaptation-parity is a skill for Claude Code, Codex from benchflow-ai/agents. It costs 58 tokens per session (911 once invoked), scanned A, original, Apache-2.0.

A workflow for connecting an AI agent to BenchFlow, an evaluation system, through its agent communication protocol, then checking that it behaves the same inside tests and when run on its own.

In plain words
What is it for?
Use it when adding an agent to the repository or checking one already there: implement the required protocol server and registration, map its streamed events, and verify evaluation-versus-standalone behavior.
Why use it?
It reduces the risk that an agent passes evaluations but behaves differently in real use because the two environments invoke it differently.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/benchflow-ai/agents/adaptation-parity
Any agent
npx skills add benchflow-ai/agents --skill adaptation-parity
Clone the repo
git clone --depth 1 https://github.com/benchflow-ai/agents

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adaptation-parity

README.md
[![agentmods](https://agentmods.dev/badge/skills/benchflow-ai/agents/adaptation-parity.svg)](https://agentmods.dev/skills/benchflow-ai/agents/adaptation-parity)
Your own site
<a href="https://agentmods.dev/skills/benchflow-ai/agents/adaptation-parity"><img src="https://agentmods.dev/badge/skills/benchflow-ai/agents/adaptation-parity.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 911 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.00911
Opus 5 $0.00029 $0.00456
Sonnet 5 $0.00012 $0.00182
Haiku 4.5 $0.00006 $0.00091

Measured 5d ago against content hash 95c7be829572, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

adaptation-parity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/acp_capture.mjs, scripts/acp_smoke.mjs, scripts/mock_upstream.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/adaptation-parity/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Adaptation + Parity

This repo's thesis: the agent you ship is the agent you benchmark. This skill makes that real in two steps — adapt an agent to BenchFlow, then verify parity (it behaves the same inside the eval harness as standalone).

1. Adapt (agent → BenchFlow ACP)

An agent becomes a BenchFlow agent by speaking ACP over stdio and registering via the public register_agent extension point. Pattern (see ai-sdk/acp, ai-sdk/harness-pi for worked examples):

  • server.mjs — a pure-JS ACP-over-stdio server. Newline-delimited JSON-RPC; stdout = protocol only (logs → stderr). Handle initialize, session/new, session/set_model, session/prompt (run the agent loop, stream session/update events, return {stopReason, usage}), session/cancel. Map the agent's stream → ACP: text→agent_message_chunk, reasoning→agent_thought_chunk, tool call→tool_call (name+args in title), tool result→tool_call_update. Route the model at OPENAI_BASE_URL (the gateway).
  • register.pyregister_agent(name, install_cmd, launch_cmd, protocol="acp", api_protocol="openai-completions", env_mapping={BENCHFLOW_PROVIDER_*→agent vars}, acp_model_format="bare", requires_env=[]). install_cmd bootstraps node, base64-deploys server.mjs, and npm-installs deps in the sandbox.

For prod parity, the same server.mjs/loop must be the production runtime — no eval-only reimplementation. That's the whole point.

Scaffold a new adapter: python scripts/scaffold_ai_sdk_agent.py <name> (prints a ready-to-edit package skeleton mirroring ai-sdk/acp).

2. Verify parity (inside == outside)

Behavioral parity = given the same model responses, the agent sends the same request and takes the same actions whether driven inside BenchFlow or standalone. Verify at two levels:

(a) Wire parity — drive the agent's ACP server against a capturing mock upstream, twice: standalone, and through BenchFlow's gateway. Diff the upstream requests.

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 71 lines · 58 tokens per session scan A 95c7be829572

Subscribe to this mod's changes

adaptation-parity is a skill published in the GitHub repository benchflow-ai/agents (10 stars, last pushed today), licensed Apache-2.0. It adds 58 tokens to every session and 911 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

qa-testing

Verify your work by actually operating the app or website you changed, instead of assuming it works. Strongly recommended whenever you build, modify, or debug a web app, website, or desktop GUI app. Drive real browsers with the agent-browser CLI and native desktop apps with the cua-driver CLI. These are installed on…

openinterpreter/openinterpreter · 77 tokens

peer-review

Structured manuscript/grant review with checklist-based evaluation. Use when writing formal peer reviews with specific criteria methodology assessment, statistical validity, reporting standards compliance (CONSORT/STROBE), and constructive feedback. Best for actual review writing, manuscript revision. For evaluating…

xintaofei/codeg · 71 tokens

scientific-critical-thinking

Evaluate scientific claims and evidence quality. Use for assessing experimental design validity, identifying biases and confounders, applying evidence grading frameworks (GRADE, Cochrane Risk of Bias), or teaching critical analysis. Best for understanding evidence quality, identifying flaws. For formal peer review…

xintaofei/codeg · 63 tokens

scientific-schematics

Create publication-quality scientific diagrams using Nano Banana 2 AI with smart iterative refinement. Uses Gemini 3.1 Pro Preview for quality review. Only regenerates if quality is below threshold for your document type. Specialized in neural network architectures, system diagrams, flowcharts, biological pathways…

xintaofei/codeg · 68 tokens

hypothesis-generation

Structured hypothesis formulation from observations. Use when you have experimental observations or data and need to formulate testable hypotheses with predictions, propose mechanisms, and design experiments to test them. Follows scientific method framework. For open-ended ideation use scientific-brainstorming; for…

xintaofei/codeg · 69 tokens

paper-lookup

Search 10 academic literature APIs for papers, preprints, citations, and open-access full text, and return results with reproducible provenance. Covers PubMed, PMC (full text), bioRxiv, medRxiv, arXiv, OpenAlex, Crossref, Semantic Scholar, CORE, Unpaywall. Use when searching for papers, citations, DOI/PMID/arXiv…

xintaofei/codeg · 146 tokens