Skip to main content

Module hooks

Module hooks 

Source
Expand description

Daemon hook verification and installation.

This module provides self-healing hook management for AI coding agents. The daemon can call verify_and_install_claude_code_hook at startup to ensure the RCH hook is installed in Claude Code’s settings.

Enums§

HookResult
Result of hook verification/installation.

Functions§

installed_rch_hook_command
Read the installed rch PreToolUse hook command from the user’s Claude Code settings.json, if present.
is_claude_code_installed
Checks if Claude Code appears to be installed.
rch_pretooluse_hook_command
Extract the rch PreToolUse hook command from parsed Claude Code settings.
verify_and_install_claude_code_hook
Verifies and installs the RCH hook in Claude Code settings.