Menu

Cursor is now available in the AI SDK harness layer - Vercel
📰

Cursor is now available in the AI SDK harness layer - Vercel

Vercel News·Felix Arntz·5 days ago
#iRCQ1qYq
#vercel#cursor#harness#harnessagent#agents
Reading 0:00
15s threshold

The AI SDK harness layer now supports Cursor through the official @ai-sdk/harness-cursor adapter. The harness layer lets your application run different coding agents through the same HarnessAgent interface, so you can switch agents without changing your application code.

Pass cursor to HarnessAgent:

import { HarnessAgent } from '@ai-sdk/harness/agent';

import { cursor } from '@ai-sdk/harness-cursor';

const agent = new HarnessAgent({

harness: cursor,

});

Create a HarnessAgent that runs Cursor.

Under the hood, the adapter uses @ai-sdk/harness-acp to connect Cursor to HarnessAgent through the Agent Client Protocol (ACP).

Supported harnesses now include, in addition to Cursor, Claude Code, Cline, Codex, Deep Agents, Grok Build, OpenCode, and Pi, with more coming soon.

Read the Cursor harness documentation to get started.