Claude Code SDK Hanging Bug — AI skill for Claude Code
Demonstrates parallel execution hanging bug in Claude Code SDK that blocks multi-agent AI systems.
How to install Claude Code SDK Hanging Bug
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ericbuess/claude-code-sdk-hanging-bug and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code SDK Hanging Bug does
Demonstrates parallel execution hanging bug in Claude Code SDK that blocks multi-agent AI systems.
Alternatives in AI
- Hexstrike AI — HexStrike AI MCP Agents is an advanced MCP server that lets AI agents (Claude, GPT, Copilot, etc.) autonomousl 8.2k ★
- Business Model — Generate Business Model Canvas with all 9 building blocks 7.8k ★
- Open Multi Agent — TypeScript multi-agent orchestration engine — one runTeam() call from goal to result 5.8k ★
README
Claude CLI Hanging Bug - Blocks Multi-Agent AI
Claude CLI hangs when running multiple instances in parallel. This prevents building multi-agent AI systems.
See The Bug (1 minute)
# Clone and test:
git clone https://github.com/ericbuess/claude-code-sdk-hanging-bug
cd claude-code-sdk-hanging-bug
./test-hanging.sh
You'll see:
- ❌ Parallel execution hung (the critical bug!)
- ✅ Single operations work fine
See The Fix Working
# Run the fix demo:
./wrapper-fix/test-working.sh
All operations now work! ✅
The Problem
When you try to run multiple Claude agents:
claude -p "Agent 1" & claude -p "Agent 2" & # This hangs!
The Solution
We use `dd` for I/O operations to bypass the shell mechanisms causing the hang. See `wrapper-fix/claude-wrapper.sh` for implementation.
Why This Matters
Without fixing this, we cannot build:
- Parallel AI agents
- Multi-agent teams
- Self-organizing systems
Example use case:
# What we want to build:
claude -p "Research agent: Find best practices" &
claude -p "Code agent: Implement solution" &
claude -p "Test agent: Validate the code" &
# All agents work together = powerful AI team
**This one bug blocks the entire future of multi-agent AI.**
Technical Note
The issue appears to be file descriptor inheritance when spawning parallel processes. This behavior is undocumented and particularly affects Claude when it tries to spawn other Claude instances (recursive multi-agent systems).
**Important**: While some operations work when humans run them, they often fail when Claude attempts the same operations, making automated multi-agent systems unreliable.
Request for Anthropic
Please fix parallel process spawning in Claude CLI to enable multi-agent AI systems. The wrapper demonstrates that proper process isolation solves the issue.
Related Skills
Golutra
Multi-agent AI orchestration platform for automation, workflows, and developer tools. Golutra transforms Codex
Agent Team Orchestrator
Multi-Agent Collaboration Orchestration System based on LangGraph - Automatically decomposes complex tasks and
Hardstop Command
Hardstop is a pre-execution safety layer that blocks dangerous shell commands using pattern matching + LLM ana
Reflex
Pre-execution risk gate for AI coding agents (Claude Code, Codex, opencode, pi, Hermes). Blocks or asks on ris
Multi Agent RAG Template
This template demonstrates how to create a collaborative team of AI agents that work together to process, anal
Gald3r Core
Signed, single-binary CLI coding-agent platform: file-first task/bug tracking, multi-provider agent runtime, a
Related Agents
Agentica Agent
You are a specialized agent for building Python agents using the Agentica SDK. You implement agentic functions
Parallel Task Executor
Autonomous execution of independent development tasks in parallel. Handles complete workflow from issue creati
Standard Worker High
Default execution tier — most feature work, bug fixes, and moderate multi-file refactors that follow establish