Skip to content

Minimal Claude Agent SDK support#212

Merged
prassanna-ravishankar merged 24 commits intomainfrom
feat/claude-agents-sdk
Nov 25, 2025
Merged

Minimal Claude Agent SDK support#212
prassanna-ravishankar merged 24 commits intomainfrom
feat/claude-agents-sdk

Conversation

@jasonyang101
Copy link
Contributor

No description provided.

- Session resume: Maintain conversation context across turns via session_id
- Tool streaming: Stream ToolRequestContent/ToolResponseContent to UI
- Handle UserMessage as tool results (when permission_mode=acceptEdits)
- Subagent support: Task tool with nested tracing spans
- Add AgentDefinition imports and example subagents (code-reviewer, file-organizer)
- Update documentation with subagent examples
- Fix ContextInterceptor to support run_claude_agent_activity
@socket-security
Copy link

socket-security bot commented Nov 20, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedagentex-sdk@​0.6.5 ⏵ 0.6.787 -13100100100100
Addedanthropic@​0.74.097100100100100
Addeddocstring-parser@​0.17.0100100100100100
Addedclaude-agent-sdk@​0.1.8100100100100100

View full report

Copy link
Contributor

@danielmillerp danielmillerp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job getting this together, my only feedback here is that we don't have a way of creating activities as tools since you have wrapped the whole agent loop as an activity. This is important because it enables us to do human in the loop and have idempotent tools. Maybe we can talk to Temporal team for a V1 version?

@prassanna-ravishankar
Copy link
Member

Great job getting this together, my only feedback here is that we don't have a way of creating activities as tools since you have wrapped the whole agent loop as an activity. This is important because it enables us to do human in the loop and have idempotent tools. Maybe we can talk to Temporal team for a V1 version?

Regarding this, basically claude agent sdk doesn't offer too much control on what goes on within an agent call (thats offloaded to the agent). Basically the approach here has been to run the loop within an activity. But the loop itself just runs for one turn (maybe a multi-step turn). And then returns back with a session id.

And when we make the next call "we resume" the session with the id and based on the user prompt. This allows us to do human in the loop.

@prassanna-ravishankar prassanna-ravishankar changed the title Feat/claude agents sdk Minimal Claude Agent SDK suppoort Nov 25, 2025
@prassanna-ravishankar prassanna-ravishankar changed the title Minimal Claude Agent SDK suppoort Minimal Claude Agent SDK support Nov 25, 2025
@prassanna-ravishankar prassanna-ravishankar merged commit a484c0a into main Nov 25, 2025
23 checks passed
@prassanna-ravishankar prassanna-ravishankar deleted the feat/claude-agents-sdk branch November 25, 2025 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants