Expand description
Agent hook detection and installation.
Public API:
detect_agent— detect which (if any) AI agent is installedinstall_hooks— write OpenLatch HTTP hook entries into the agent’s configremove_hooks— remove all OpenLatch-owned hook entries
§Module structure
claude_code— path detection and hook entry building for Claude Codejsonc— JSONC-preserving string surgery onsettings.json
Functions§
- build_
hook_ entry - Build a Claude Code HTTP hook entry for the given event type.
- detect
- Detect whether Claude Code is installed.
- settings_
json_ path - Return the path to
settings.jsoninside the Claude Code config directory.