microsoft / microsoft/Agent365-nodejs
Claude SDK: Monitor for chat history API availability
@gwharris7 is already working on this.
Since Jun 11, 2026.
- Dominant language
- TypeScript
- Stars
- 24
- Forks
- 12
- Avg merge
- 2h 59m
- Merged PRs (30d)
- 1
Description
Summary
The Claude Agent SDK (@anthropic-ai/claude-agent-sdk) does not currently expose programmatic access to conversation history, unlike OpenAI's OpenAIConversationsSession.getItems(). This blocks implementing a Claude-specific sendChatHistoryAsync method equivalent to PR #157.
Current State (January 2026)
- Workspace SDK version: ^0.1.30
- unstable_v2 APIs added in: v0.1.54
- History retrieval API: Not available
The SDK's experimental unstable_v2_* session APIs provide:
session.send(message)- Send a messagesession.stream()- Stream responsessession.close()- Close session
Missing: session.getHistory() or equivalent to retrieve past messages.
Workaround
Developers can use the generic sendChatHistory from @microsoft/agents-a365-tooling by manually constructing ChatHistoryMessage[].
See: packages/agents-a365-tooling-extensions-claude/docs/design.md
Revisit Criteria
Re-evaluate when:
- Claude SDK adds
session.getHistory()orsession.getMessages() - unstable_v2 APIs stabilize (lose unstable_ prefix)
- SDK version is upgraded in this workspace
- Anthropic documentation shows new history capabilities
References
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.