Skip to content

Parallel tool execution supportΒ #438

@semi-prophecy

Description

@semi-prophecy

Using the claude py sdk via ClaudeSDKClient, I noticed the following:

  • Claude can request multiple tool uses in a single message (client.receive_messages() --> emits multiple ToolUseBlock's)
  • However, the tools are executed synchronously, one after the other only upon completion of the prior -- I have logged this with both internal tools like bash, and mcp tools.

Is this the expected behavior, and if so, are there any plans to support parallel tool execution? This would be beneficial for long running tool executions that are independent of one another, cutting down latency quite a bit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions