Tagged articles
2 articles
Page 1 of 1
James' Growth Diary
James' Growth Diary
Apr 28, 2026 · Artificial Intelligence

StreamingToolExecutor: Full Breakdown of Claude Code’s Four‑Layer Parallel Tool Execution Mechanism

The article dissects Claude Code’s StreamingToolExecutor, revealing how a four‑state machine, two simple concurrency rules, and a three‑layer AbortController hierarchy enable true parallel tool execution, reduce latency, preserve result order, and handle failures with nuanced abort semantics.

AI agentsAbortControllerClaude Code
0 likes · 18 min read
StreamingToolExecutor: Full Breakdown of Claude Code’s Four‑Layer Parallel Tool Execution Mechanism
ZhiKe AI
ZhiKe AI
Apr 19, 2026 · Artificial Intelligence

Claude Code Agent Architecture: 4‑Layer Breakdown & 3 Key Designs from while(true) to Autonomous Decision‑Making

The article dissects Claude Code Agent's four‑layer architecture—interaction, orchestration, execution, and infrastructure—explaining how the perpetual while(true) queryLoop drives LLM streaming, how StreamingToolExecutor enables safe concurrent tool execution, and how the autoCompact four‑stage compression with a circuit‑breaker safeguards context length.

Claude Code AgentContext CompressionLLM tool integration
0 likes · 19 min read
Claude Code Agent Architecture: 4‑Layer Breakdown & 3 Key Designs from while(true) to Autonomous Decision‑Making