-
Notifications
You must be signed in to change notification settings - Fork 2
feat: parallel scanner execution in squad conversations #706
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Context
Claude Code's StreamingToolExecutor runs read-only tools in parallel. Our squad conversations run agents sequentially — even when multiple scanners have independent work.
Proposed Changes
In workflow.ts, detect when multiple scanners are in the same phase. Spawn them in parallel worktrees, collect results, merge into transcript before lead review.
Files to change
- src/lib/workflow.ts — parallel scanner dispatch
- src/lib/conversation.ts — merge parallel turn results
Expected impact
Squad with 3 scanners completes scan phase in 1x instead of 3x (~4 min saved per cycle).
Risks
- Git conflicts if scanners modify same files. Mitigation: scanners are read-only (depends on feat: role-based tool sets for agent execution #701).
- Transcript ordering non-deterministic. Mitigation: sort by agent name.
- Worktree creation overhead. Mitigation: reuse existing worktrees.
Dependencies
- feat: role-based tool sets for agent execution #701 (role-based tool sets) — scanners need read-only tools for safe parallel execution
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request