Skill v1.0.2
Trusted Publisher100/100fix(google): keep a realtime functionResponse.response an object (#20697)
version: "1.0.2" name: update-harness-dependencies description: Update the primary SDK dependencies of harness packages. Use when asked to update the harness SDKs or harness adapter dependencies. metadata: internal: true
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 asdependenciesare 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:
# ACPpnpm --filter harness-acp update @agentclientprotocol/sdk @modelcontextprotocol/sdk --latest --lockfile-only# Claude Codepnpm --filter harness-claude-code update @anthropic-ai/claude-agent-sdk @modelcontextprotocol/sdk --latest --lockfile-only# Clinepnpm --filter harness-cline update @cline/agents --latest --lockfile-only# Codexpnpm --filter harness-codex update @openai/codex --latest --lockfile-only# Deep Agentspnpm --filter harness-deepagents update @langchain/core @langchain/langgraph deepagents langchain langsmith --latest --lockfile-only# GitHub Copilotpnpm --filter harness-github-copilot update @github/copilot --latest --lockfile-only# Grok Buildpnpm --filter harness-grok-build update @xai-official/grok --latest --lockfile-only# OpenCodepnpm --filter harness-opencode update @opencode-ai/sdk --latest --lockfile-only# Pipnpm --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:
# ACPpnpm --dir packages/harness-acp/src/v1/bridge update @agentclientprotocol/sdk @modelcontextprotocol/sdk --latest --ignore-workspace --config.minimumReleaseAge=4320# Claude Codepnpm --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# Codexpnpm --dir packages/harness-codex/src/bridge update @openai/codex --latest --ignore-workspace --config.minimumReleaseAge=4320# Deep Agentspnpm --dir packages/harness-deepagents/src/bridge update @langchain/anthropic @langchain/core @langchain/langgraph deepagents langchain langsmith --latest --ignore-workspace --config.minimumReleaseAge=4320# GitHub Copilotpnpm --dir packages/harness-github-copilot/src/bridge update @github/copilot --latest --ignore-workspace --config.minimumReleaseAge=4320# Grok Buildpnpm --dir packages/harness-grok-build/src/bridge update @agentclientprotocol/sdk @modelcontextprotocol/sdk @xai-official/grok --latest --ignore-workspace --config.minimumReleaseAge=4320# OpenCodepnpm --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.yamlpackages/harness-github-copilot/src/bridge/pnpm-workspace.yamlpackages/harness-grok-build/src/bridge/pnpm-workspace.yamlpackages/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-cursorpackages/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.