Skip to content

agent-os-claude breaks when host installs a newer @anthropic-ai/claude-agent-sdk #1453

@atsushi-ishibashi

Description

@atsushi-ishibashi

Problem

@rivet-dev/agent-os-claude@0.1.1 bundles a CLI based on @anthropic-ai/claude-agent-sdk@0.2.87, but dynamically loads query() from whatever version the host has installed. Since query() and the CLI binary must be the same version to communicate, installing any SDK version newer than 0.2.87 causes ACP session/new failed: Internal error.

This means users cannot upgrade @anthropic-ai/claude-agent-sdk at all — even for patch releases — without breaking the agent session.

What we want

Users should be able to upgrade @anthropic-ai/claude-agent-sdk on the host side — to pick up non-breaking improvements like startup() (0.2.89) — without requiring a new agent-os-claude release.

The simplest fix would be to bundle query() alongside the CLI at a fixed version inside agent-os-claude, so the adapter is fully self-contained and independent of whatever SDK version the host installs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions