Developer finds AI agent grandchild processes can survive timeouts
11/30/2026
A developer found that grandchild processes can linger after Claude Code times out, and adjusted the script to clean up the process group.
Background
The author runs Claude Code's claude -p as a subprocess so an AI agent can work through GitHub Issues one by one, capping each run at 40 minutes.