Twitter/X

Author (posted 2026-06-15) notes agent performance can depend on the harness…

Brief

Vercel's AI SDK adds portable agent harnesses (Claude Code, Codex, Pi) to decouple agents from specific providers while preserving performance advantages tied to certain harnesses. Released in canary (npm i ai@canary), the SDK offers sandboxed sessions and compatible streams; example: new HarnessAgent({ harness: claudeCode, sandbox: createVercelSandbox() }).

Why it matters

Author (posted 2026-06-15) notes agent performance can depend on the harness (e.g., OpenAI models excel in Codex) but stresses the need for provider independence.

Key details

  • Vercel's AI SDK now supports agent harnesses for Claude Code, Codex, and Pi, with sandboxed sessions and AI SDK-compatible streams.
  • Canary release install command: npm i ai@canary; example usage: new HarnessAgent({ harness: claudeCode, sandbox: createVercelSandbox() }).
Source evidence

Agent performance can be somewhat coupled to the harness (e.g. OpenAI models perform very well in Codex).

But you still want provider independence. And now that's easy again:

Agent harnesses extend the AI SDK adapter concept to Claude, Codex, etc:

Vercel Developers (@vercel_dev)

AI SDK now supports agent harnesses like Claude Code, Codex, and Pi with sandboxed sessions and AI SDK-compatible streams:

𝚌𝚘𝚗𝚜𝚝 𝚊𝚐𝚎𝚗𝚝 = 𝚗𝚎𝚠 𝙷𝚊𝚛𝚗𝚎𝚜𝚜𝙰𝚐𝚎𝚗𝚝({
𝚑𝚊𝚛𝚗𝚎𝚜𝚜: 𝚌𝚕𝚊𝚞𝚍𝚎𝙲𝚘𝚍𝚎,
𝚜𝚊𝚗𝚍𝚋𝚘𝚡: 𝚌𝚛𝚎𝚊𝚝𝚎𝚅𝚎𝚛𝚌𝚎𝚕𝚂𝚊𝚗𝚍𝚋𝚘𝚡(),
});

Available in canary: 𝚗𝚙𝚖 𝚒 𝚊𝚒@𝚌𝚊𝚗𝚊𝚛𝚢. We welcome your feedback as we bring agent harness portability to the ecosystem, with excellent DX.
vercel.com/changelog/program…

— https://nitter.net/vercel_dev/status/2065509970775519569#m