Claude Code hooks integrating with PoC memory
Find a file
ProofOfConcept 199ce0ecdc hook: log gate decision and agent spawn outcomes
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>
2026-04-16 18:38:50 -04:00
src hook: log gate decision and agent spawn outcomes 2026-04-16 18:38:50 -04:00
Cargo.lock hook: log gate decision and agent spawn outcomes 2026-04-16 18:38:50 -04:00
Cargo.toml initial commit 2026-04-09 19:57:50 -04:00