Skip to content llms.txt

async_execution

Whether hooks can run asynchronously without blocking the agent’s execution loop. Fire-and-forget semantics.

Type: bool Content type: hooks

ProviderSupportedMechanism
claude-codehook_async_execution: async: true on command handlers runs hook in background without blocking; decisions ignored; systemMessage delivered on next turn; asyncRewake: true also wakes Claude on exit code 2
codexhook_execution_mode: Codex supports async hook execution mode for fire-and-forget background hook runs
factory-droidMatching hooks for the same event execute concurrently (in parallel); deduplication consolidates identical commands automatically
ampAmp hooks run synchronously; no async execution documented
clineCline hooks run synchronously before/after tool events; no async execution documented
copilot-cliCopilot CLI hooks run synchronously; no async execution documented
crushHooks are synchronous; each fires before the tool executes and must complete within the configured timeout.
cursorHooks run synchronously; no async/background flag documented.
gemini-cliGemini CLI hooks run synchronously; no async execution documented
kiroKiro hooks run synchronously; no async execution documented
opencodenot documented
piPi extension handlers are awaited synchronously in registration order; no fire-and-forget async execution documented
roo-codenot documented
windsurfWindsurf hooks run synchronously; post_cascade_response and post_cascade_response_with_transcript fire asynchronously after the response but hooks themselves do not execute fire-and-forget
zednot documented