
Deep Agents and OpenCode are now available in the AI SDK Harness
Quick Answer
Vercel AI has introduced Deep Agents and OpenCode adapters in the AI SDK Harness, enabling seamless switching between coding-agent runtimes without altering application code.
Quick Take
These additions enhance the LangChain runtime with built-in tools and multi-turn session capabilities, supporting various model configurations.
Key Points
- Deep Agents and OpenCode run within the Vercel Sandbox environment.
- The AI SDK Harness adapts LangChain's runtime with built-in file and shell tools.
- Supports model selection, provider options, and reasoning variants.
- The full list of harnesses now includes Claude Code, Codex, and more.
- Documentation is available for both Deep Agents and OpenCode to get started.
📖 Reader Mode
~1 min readThe AI SDK Harness lets you run established coding-agent runtimes through one unified interface, so you can switch runtimes without changing your application code. Today we're adding two new adapters, Deep Agents and OpenCode, both running inside a Vercel Sandbox.
Link to headingDeep Agents
@ai-sdk/harness-deepagents adapts LangChain's deepagents runtime, with built-in file and shell tools, skills, host tools, multi-turn sessions, attach and resume, and built-in tool approvals.
import { HarnessAgent } from '@ai-sdk/harness/agent';
import { deepAgents } from '@ai-sdk/harness-deepagents';
const agent = new HarnessAgent({
harness: deepAgents,
});
Basic example for using Deep Agents with HarnessAgent
Read the Deep Agents harness documentation to get started.
Link to headingOpenCode
@ai-sdk/harness-opencode boots a real OpenCode server inside the sandbox via @opencode-ai/sdk and streams its session events through the harness. It exposes OpenCode's built-in tools, supports both built-in and host tool approvals, and lets you pick the model, provider, and reasoning variant.
import { HarnessAgent } from '@ai-sdk/harness/agent';
import { openCode } from '@ai-sdk/harness-opencode';
const agent = new HarnessAgent({
harness: openCode,
});
Basic example for using OpenCode with HarnessAgent
Read the OpenCode harness documentation to get started.
The full supported list of harnesses is now: Claude Code, Codex, Deep Agents, OpenCode, Pi, with more coming soon.
— Originally published at vercel.com
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Vercel AI
See more →
The Agent Stack
The Agent Stack by Vercel AI provides essential building blocks for creating production-grade agents, enabling seamless integration across multiple AI models and secure operations. It features components like AI Gateway for model routing, Workflow SDK for durable execution, and Vercel Connect for scoped access, streamlining agent development and deployment across various platforms.

