[STUDY] Concurrent tool execution — read-only parallel batching #166
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
src/services/tools/toolOrchestration.ts partitions tools into concurrent-safe (up to 10 parallel) and serial batches. Read-only tools (FileRead, Grep, Glob) run in parallel. This is the single biggest performance pattern to adopt.
Key functions: partitionToolCalls(), runToolsConcurrently()
Hermes target: model_tools.py handle_function_call() + asyncio.gather
Estimate: medium (needs is_concurrent_safe flag on all tools)
Maps to epic #154, pattern #1.