Program Claude Code, Codex, Pi and other agent harnesses with AI SDK
AI SDK 7 introduces HarnessAgent, a single API for running established agent harnesses, including Claude Code, Codex, and Pi. Write the agent once and use the best harness available. Harnesses manage components including skills, sandboxes, sessions, permission flows, compaction, runtime configuration, and sub-agents. The AI SDK normalizes access to these capabilities through a unified harness abstraction. Initial harness adapters for this experimental release include Claude Code, Codex, and Pi, with more coming soon.
Fetched June 13, 2026



