Some missing pieces in SDK compared to claude-agen...
# proj-sdk
c
Some missing pieces in SDK compared to claude-agent-sdk now: • https://docs.claude.com/en/api/agent-sdk/sessions - fork sessions (i think it is possible to do, but probably an overkill • https://docs.claude.com/en/api/agent-sdk/subagents - @strong-ice-84145 i think we have an idea how to implement this (sub agent definition will be similar to plan agent), but we also need an example of how to expose this sub-agent as a tool to main agent to reach feature parity with claude agent sdk
👀 1
w
how do claude subagents work?
do they run sync? async?
how is their output shown to the user? can the user send them messages?
seems like they may have cribbed from us a bit 😄
seems like it's: • run synchronous • has own context window • output shown to user • user can probably interrupt?
nod 1
this is maybe a CLI feature rather than an SDK feature
maybe not though
maybe it's a tool in the tools package
c
I think it is exactly the agent delegation stuff we've discussed a while ago..
it is very similar to what simon is implementing for plan agent, with the exception that we didn't yet add the /plan tool to parent agent
👍 1
e
I prototyped a Claude subagent that can call the OpenHands CLI to send a prompt. Once we have a headless way to “delegate to OH Cloud”, we can release a subagent that makes it easy for Claude Code users to send jobs to OH instead
w
ooh neat