Stability and compatibility
Check the SDK versions used by the examples and plan upgrades.
What the examples verify
Ghost provides React views, optional SDK adapters, and normalizers for native data. Several server frameworks can use the same protocol and React client. Keep native features such as branches and checkpoints on the SDK when they need more than a shared chat command.
The examples compile against the packaged Ghost UI and the versions below. Tests exercise SDK clients and streams with local fixtures. Check your own server, credentials, and network settings separately.
Checked versions
| Integration | Checked packages | Route |
|---|---|---|
| Vercel | ai@7.0.138, @ai-sdk/react@4.0.141 | Hook adapter |
| TanStack | @tanstack/ai@1.4.0, ai-client@1.1.0, ai-react@1.0.2 | Hook adapter |
| LangChain / LangGraph | @langchain/react@1.2.9, core@1.3.2, langgraph-sdk@1.12.9 | Hook or native snapshot |
| AG-UI | @ag-ui/client@1.0.5 | Native client/store |
| Eve | eve@1.0.0-rc.0 | Hook adapter; release candidate |
| Google ADK | @google/adk@2.4.0 | Event projection |
| A2A | @a2a-js/sdk@1.3.0 | v1 messages/tasks |
| OpenCode | @opencode-ai/sdk@1.19.5 | v2 session snapshot |
| Claude Managed Agents | @anthropic-ai/sdk@1.3.0 | Beta session events |
| OpenAI Agents | @openai/agents@0.21.0, agents-extensions@0.21.0 | Official UI-message bridge |
| Mastra | @mastra/ai-sdk@1.11.2, @mastra/core@1.79.0 | v7 UI-message bridge |
| Cloudflare | agents@0.32.0, @cloudflare/ai-chat@0.12.2 | Native chat hook |
| OpenRouter | @openrouter/ai-sdk-provider@3.1.0, @openrouter/agent@0.11.0 | Provider or Agent items |
| Legacy / full-state streams | assistant-stream@0.3.55 | Maintained decoder/accumulator |
| Pydantic AI / Agno / CrewAI | Maintainer-documented AG-UI or UI-message server interfaces | Checked frontend protocol path; Python deployments remain application-owned |
Install the listed packages for your recipe, plus the Ghost view dependencies. The optional SDKs are separate installs.
Upgrade an SDK
Keep the last working lockfile. Upgrade one integration at a time, and compile it with the adapter. Test streaming updates, cancellation, failed sends, and any approvals or attachments your product uses. Check the SDK’s migration guide for server and protocol changes.
- TanStack v1. Upgrade the server and client together, then switch to bound interrupts. See Upgrade from TanStack 0.x.
- Vercel AI SDK. The hook recipe checks v7. Check upstream compatibility for v5 and v6. Use the legacy decoder for v4 streams.
- A2A. The examples target v1. Use the SDK’s separate compatibility API for v0.3.
- Eve and Claude Managed Agents. The examples use a release candidate and a beta API, respectively. Check their release notes before upgrading.
Use native SDK features
Use native SDK APIs for new capabilities before adding a Ghost abstraction. Project known content and retain an explicit unknown/data representation for the rest. Add a Ghost command only when its identity, lifecycle and failure meaning can be stated without losing native behavior. See adapters and threads.