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.
Problem
@rivet-dev/agent-os-claude@0.1.1bundles a CLI based on@anthropic-ai/claude-agent-sdk@0.2.87, but dynamically loadsquery()from whatever version the host has installed. Sincequery()and the CLI binary must be the same version to communicate, installing any SDK version newer than 0.2.87 causesACP session/new failed: Internal error.This means users cannot upgrade
@anthropic-ai/claude-agent-sdkat all — even for patch releases — without breaking the agent session.What we want
Users should be able to upgrade
@anthropic-ai/claude-agent-sdkon the host side — to pick up non-breaking improvements likestartup()(0.2.89) — without requiring a newagent-os-clauderelease.The simplest fix would be to bundle
query()alongside the CLI at a fixed version insideagent-os-claude, so the adapter is fully self-contained and independent of whatever SDK version the host installs.