Skip to content

Automate @anthropic-ai/claude-agent-sdk version bumps so new Claude models reach the picker without a stale pin #4902

Open

Description

@technicalpickles

The work

Add an automated dependency-update mechanism (Renovate or Dependabot config, or a scheduled CI job) that keeps @anthropic-ai/claude-agent-sdk current against newly published npm versions, and opens a PR when a new one lands. Scope it to plugins/provider-claude-code/package.json#L49, since buildClaudeCodeModels() and the discovery probe derive the entire model picker from whatever this SDK's bundled CLI build reports — there's no other catalog to maintain since #4084.

At minimum this could be a renovate.json/.github/dependabot.yml entry scoped to this one package, or a scheduled workflow that runs pnpm update @anthropic-ai/claude-agent-sdk --filter bb-plugin-provider-claude-code and opens a PR when the lockfile changes.

Why now

Confirmed today (2026-10-05, base commit 5d31d8c32) that the pin was stuck at 0.3.245 on main while npm has published up through 0.3.289 — 44 versions behind. That gap is exactly why claude-opus-5-5, claude-sonnet-5-5, and claude-fable-5-1 don't show up in the bb model picker: none of those ids exist anywhere in 0.3.245's bundled code, confirmed by diffing sdk.mjs/core-*.mjs between the two published npm tarballs.

This is the same root cause #4082 and #2825 both reported — closed via #4084, which deleted the static curated catalog and switched the picker to pure SDK-probe discovery. But #4082's own suggestion ("a renovate-style automated bump … since its releases track the Claude Code CLI version and carry the model list") was never implemented, and there's no renovate/dependabot config anywhere in this repo today. So the exact failure mode recurred with no tracking issue covering the actual gap.

Locally bumped the pin to ^0.3.289 (scoped via pnpm install --filter bb-plugin-provider-claude-code, not a repo-wide update) and confirmed: the three model ids now resolve, tsc --noEmit is clean, and the full bb-plugin-provider-claude-code test suite passes (371 tests). That's a one-off fix, not a process — it'll drift again on the next model launch without this.

Acceptance criteria

  • A new @anthropic-ai/claude-agent-sdk npm release results in an automated PR (Renovate/Dependabot), or a scheduled check that flags CI/opens an issue when the installed version falls more than N releases behind — without a user noticing a missing model first.
  • The mechanism's existence is documented somewhere discoverable (e.g. a note near the dependency, or this repo's dependency-update docs) so a future "model X is missing from the picker" report checks it before re-diagnosing the same root cause.
  • No product behavior change otherwise — this is process/tooling only.

Related: #4082, #2825, #4370.

AGENT GENERATED

Activity

  1. added theissue type on Oct 5, 2026
  2. added
    providers
    provider-claude-code
    on Oct 5, 2026
  3. bb-slop-cop commented on Oct 5, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied missing classification: Type: Task · Priority: Medium · Effort: Low. Added labels: providers, provider-claude-code. No existing values were changed; the final Type was re-read and verified.

    This is contained dependency-maintenance work. Trusted origin/main already has .github/dependabot.yml, but it covers GitHub Actions only, not the Claude provider SDK.

    No reproduction report or pull request: the verified Type is Task, so this rule skips bug-report and fix steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    provider-claude-codeproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions