Async Concurrency Management

•
5
•

Optimizes tool performance through parallel execution, robust cancellation handling, and real-time result streaming.

This skill implements advanced asynchronous patterns for Claude Code, enabling parallel execution of read-only tools to significantly reduce latency. It provides a robust framework for handling task cancellation via AbortControllers, optimizing performance with Promise.all initialization, and delivering responsive user feedback through partial result streaming. It is specifically designed for developers building high-performance CLI tools or agents that need to manage complex I/O operations without blocking the execution thread.

Key Features

01Robust AbortController propagation for immediate task cancellation
025 GitHub stars
03Dynamic concurrency safety checks based on tool input and state
04Intelligent memoization of frequently called status commands
05Parallelized initialization patterns to minimize startup latency
06Real-time progress streaming for long-running operations

Use Cases

01Parallelizing multiple read-only operations like file searches and git status checks
02Providing live terminal feedback for tools processing large datasets or streams
03Implementing interruptible bash commands that stop immediately on user request