Module hooks

Module hooks 

Source
Expand description

Claude Code hook integration for spawn sessions

Installs and manages hooks that automatically:

  • Mark tasks as done when Claude Code finishes (Stop hook)
  • Track which task an agent is working on via environment variables

Functions§

agent_env_setup
Generate environment setup for a spawned agent Returns the env var that should be set for the agent
hooks_installed
Check if SCUD hooks are installed in the project’s Claude settings
install_hooks
Install SCUD hooks into the project’s Claude settings
uninstall_hooks
Uninstall SCUD hooks from the project’s Claude settings