Claude Code hooks integrating with PoC memory
- Rust 100%
The old hook was silent about why it did or didn't launch an agent — when nothing fired, it was impossible to tell whether the event was gated out, a pending chunk was served, or spawn_agent silently returned None. Logs now cover each of those cases: hook_event=... surface_hooks=[...] gated_in=true/false serving pending chunk (N bytes); skipping agent cycles surface-observe: spawned pid 501605 (log: ...) surface-observe: spawn_agent returned None surface-observe: skipped — pid 501605 in phase "surface" Rename surface_phase_busy to surface_phase_blocker and have it return the pid + phase that's blocking, so stale-pid scenarios are diagnosable from the log instead of needing a live ps walk. Co-Authored-By: Proof of Concept <poc@bcachefs.org> |
||
|---|---|---|
| src | ||
| Cargo.lock | ||
| Cargo.toml | ||