Husky Hook Integration
Non-blocking Git hook coexistence with Husky without slowing down developer commits.
Qodewk integrates seamlessly with Husky to record commit telemetry automatically without adding any noticeable latency to developer workflows.
Automatic Hook Installation
The simplest way to integrate Qodewk with Husky is running the hook installer:
qodewk hook installQodewk detects .husky/ and injects boundary-marked blocks into your hooks:
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# --- BEGIN QODEWK HOOK ---
if command -v qodewk >/dev/null 2>&1; then
(qodewk record-event --hook post-commit &) >/dev/null 2>&1
fi
# --- END QODEWK HOOK ---Performance & Invariants
Sub-5ms Execution: The hook immediately spawns a background subprocess detached from stdin/stdout/stderr and exits with code 0. Your git commit finishes instantaneously.
Coexistence Safety
- Qodewk hooks never overwrite existing linter or test scripts managed by Husky.
- To safely uninstall Qodewk hooks without touching other Husky scripts, run:
qodewk hook uninstall