Skip to main content

hook_binary_override

Function hook_binary_override 

Source
pub fn hook_binary_override() -> Option<String>
Expand description

Verbatim hook-binary override (#708), or None when unset/blank.

Users who sync agent settings (~/.claude/settings.json, …) across machines with different usernames set LEAN_CTX_HOOK_BINARY (env, wins) or hook_binary (config.toml) to an env-based form like $HOME/.local/bin/lean-ctx. Hook hosts execute commands through a shell, which expands the variable at run time. The value is emitted verbatim by every hook writer and accepted verbatim by doctor’s staleness check — scoped to hook/agent artifacts only, never to launchd/systemd units (which do not expand shell variables).