Updated Edit
On this page
Hook execution for claudewheel.
#claudewheel.hooks
#claudewheel.hooks
Run user-defined hook scripts at pre-launch and other lifecycle stages.
#run_hooks
python
def run_hooks(stage: str, selections: dict[str, str | None]) -> boolRun hook scripts for a given stage. Returns True if all pass.
Scans ~/.claudewheel/hooks/ for executable files whose names start with the stage prefix (e.g. "pre-launch"). Passes current selections as CL_PROFILE, CL_GITHUB, etc. environment variables.
Returns False if any hook exits nonzero (its stderr is printed).