Agent Skillsvercel/ai › update-harness-dependencies

update-harness-dependencies

GitHub

用于更新 harness 包(如 ACP、Claude Code 等)的 SDK 依赖至最新版本,遵循 pnpm-workspace.yaml 的最小发布年龄要求,确保依赖同步与稳定性。

skills/update-harness-dependencies/SKILL.md vercel/ai

Trigger Scenarios

用户要求更新 harness SDK 或适配器依赖 需要保持第三方 SDK 为最新稳定版本

Install

npx skills add vercel/ai --skill update-harness-dependencies -g -y
More Options

Use without installing

npx skills use vercel/ai@update-harness-dependencies

指定 Agent (Claude Code)

npx skills add vercel/ai --skill update-harness-dependencies -a claude-code -g -y

安装 repo 全部 skill

npx skills add vercel/ai --all -g -y

预览 repo 内 skill

npx skills add vercel/ai --list

SKILL.md

Frontmatter
{
    "name": "update-harness-dependencies",
    "metadata": {
        "internal": true
    },
    "description": "Update the primary SDK dependencies of harness packages. Use when asked to update the harness SDKs or harness adapter dependencies."
}

Update the harness packages

The harness adapters are all the packages/harness-* packages. They each rely on one or more third-party packages for the respective harness's primary SDK. It is crucial to keep those dependencies up to date.

Below you find the instructions on how to update those packages to their latest versions, while adhering to the minimum release age defined in pnpm-workspace.yaml.

Update the harness dependency packages

Run the following commands to update each harness's primary SDK packages.

  • For bridge harnesses (e.g. Claude Code), this will update the packages in devDependencies, while the actual package versions used as dependencies are only relevant to the harness's bridge itself.
  • For non-bridge harnesses (e.g. Pi), this will update the packages in dependencies.

Run these commands exactly as below:

# ACP
pnpm --filter harness-acp update @agentclientprotocol/sdk @modelcontextprotocol/sdk --latest --lockfile-only
# Claude Code
pnpm --filter harness-claude-code update @anthropic-ai/claude-agent-sdk @modelcontextprotocol/sdk --latest --lockfile-only
# Cline
pnpm --filter harness-cline update @cline/agents --latest --lockfile-only
# Codex
pnpm --filter harness-codex update @openai/codex-sdk --latest --lockfile-only
# Deep Agents
pnpm --filter harness-deepagents update @langchain/core @langchain/langgraph deepagents langchain langsmith --latest --lockfile-only
# Grok Build
pnpm --filter harness-grok-build update @xai-official/grok --latest --lockfile-only
# OpenCode
pnpm --filter harness-opencode update @opencode-ai/sdk --latest --lockfile-only
# Pi
pnpm --filter harness-pi update @earendil-works/pi-coding-agent --latest --lockfile-only

For the bridge dependencies of bridge harnesses, you must additionally run the following commands. It is important to specify the config.minimumReleaseAge flag in accordance with what pnpm-workspace.yaml defines, because for these commands the --ignore-workspace flag is needed.

Run these commands exactly as below:

# ACP
pnpm --dir packages/harness-acp/src/v1/bridge update @agentclientprotocol/sdk @modelcontextprotocol/sdk --latest --ignore-workspace --config.minimumReleaseAge=4320
# Claude Code
pnpm --dir packages/harness-claude-code/src/bridge update @anthropic-ai/claude-agent-sdk @anthropic-ai/claude-code @modelcontextprotocol/sdk --latest --ignore-workspace --config.minimumReleaseAge=4320
# Codex
pnpm --dir packages/harness-codex/src/bridge update @openai/codex-sdk --latest --ignore-workspace --config.minimumReleaseAge=4320
# Deep Agents
pnpm --dir packages/harness-deepagents/src/bridge update @langchain/anthropic @langchain/core @langchain/langgraph deepagents langchain langsmith --latest --ignore-workspace --config.minimumReleaseAge=4320
# Grok Build
pnpm --dir packages/harness-grok-build/src/bridge update @agentclientprotocol/sdk @modelcontextprotocol/sdk @xai-official/grok --latest --ignore-workspace --config.minimumReleaseAge=4320
# OpenCode
pnpm --dir packages/harness-opencode/src/bridge update @opencode-ai/sdk opencode-ai --latest --ignore-workspace --config.minimumReleaseAge=4320

For bridge CLI packages that require install scripts, also update the exact version in the bridge's pnpm-workspace.yaml allowBuilds entry to match the new version in its package.json:

  • packages/harness-claude-code/src/bridge/pnpm-workspace.yaml
  • packages/harness-grok-build/src/bridge/pnpm-workspace.yaml
  • packages/harness-opencode/src/bridge/pnpm-workspace.yaml

The following harness adapters use an unversioned installer script instead of an NPM package for their SDK / CLI and therefore can be ignored:

  • packages/harness-cursor
  • packages/harness-fx

Example dependencies

Check the package.json files in examples/harness-e2e-next and examples/harness-e2e-tui for any of the above SDKs they depend on. Those dependencies need to be updated to match the exact version used in the packages as well.

Verification

Run the verification script to ensure all relevant dependency versions are aligned:

./tools/verify-harness-adapter-deps.mjs

If this script shows errors, you must address them, then rerun the verification script until it passes.

Version History

  • 1d9b13b Current 2026-08-29 05:28

    新增 fx harness 适配器的实现,支持 ACP 协议及工具映射;更新其他 harness 的基础适配器 SDK 至最新版本,并强化回归测试与依赖更新工作流。

  • c0595b4 2026-08-20 17:57

Same Skill Collection

skills/add-function-examples/SKILL.md
skills/add-harness-package/SKILL.md
skills/add-provider-package/SKILL.md
skills/adr-skill/SKILL.md
skills/develop-ai-functions-example/SKILL.md
skills/list-npm-package-content/SKILL.md
skills/major-version-mode/SKILL.md
skills/migrate-ai-sdk-v6-to-v7/SKILL.md
skills/update-provider-models/SKILL.md
skills/capture-api-response-test-fixture/SKILL.md
skills/use-ai-sdk/SKILL.md
examples/ai-e2e-next/data/island-rescue/SKILL.md
examples/ai-functions/data/island-rescue/SKILL.md

Metadata

Files
0
Version
1d9b13b
Hash
5975d577
Indexed
2026-08-20 17:57

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 06:27
浙ICP备14020137号-1 $Carte des visiteurs$