You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each hook execution spawns a new subprocess via subprocess.Popen (async) or subprocess.run (sync). For a conversation with 3 registered hooks and 50 tool calls, that's 150 process forks. Each fork includes full JSON serialization of the event as stdin.
Location:hooks/executor.py:175, 214
Evidence
Code review of hooks/executor.py. The AsyncProcessManager.cleanup_expired() does a linear scan of all tracked processes before every hook execution.
Severity: High
Impact of fix
Eliminates hundreds of fork+exec cycles per conversation.
Suggested fixes
Long-running hook process with stdin/stdout IPC (send events as JSON lines, receive responses).
For trusted hooks: in-process execution via importable Python functions.
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
Activity
github-actions commentedon Jun 18, 2026
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
github-actions commentedon Jun 29, 2026
This issue was automatically closed due to 50 days of inactivity. We do this to help keep the issues somewhat manageable and focus on active issues.