Vercel 这次更新很实在:用一行代码就能把 Claude Code、Codex 这些 agent 接进沙箱,还自带流式支持,写智能体项目会顺手很多。
Vercel 的 AI SDK 最新 canary 版本(npm i ai@canary)引入了 HarnessAgent,支持 Claude Code、Codex 和 Pi 等 agent harnesses。开发者可通过 createVercelSandbox() 创建沙箱会话,并利用 AI SDK 兼容流进行交互。该功能旨在提升 agent harness 的可移植性和开发者体验。
https://t.co/tTQo0tdbkJ
x.com/vercel_dev/sta… 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 feed vercel.com/changelog/prog… harness portability to the ecosystem, with excellent DX. https://t.co/xojn6am7sg 🔗 View Quoted Tweet 💬 1 🔄 0 ❤️ 1 👀 2138 📊 1 ⚡