[STUDY] Concurrent tool execution — read-only parallel batching #166

Open
opened 2026-03-31 16:59:44 +00:00 by Timmy · 0 comments
Owner

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.

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.
Timmy added this to the Claude Code Study milestone 2026-03-31 16:59:44 +00:00
Timmy added the study label 2026-03-31 16:59:44 +00:00
Timmy self-assigned this 2026-03-31 16:59:44 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/timmy-home#166