infra/scripts/workstation/claude-hooks
Viktor Barzin 2169e0de5f
All checks were successful
ci/woodpecker/push/default Pipeline was successful
workstation: harden memory hooks — prune dead plugin refs + homelab-CLI-only store
wire-memory-hooks.py now PRUNES any settings.json hook still pointing at the
retired claude-memory plugin (plugins/claude-memory/hooks/) before the additive
pass. install_memory() rm -rf's that dir, so those entries are dangling — and a
missing UserPromptSubmit hook exits 2, a BLOCKING error that erases the prompt
and froze emo's sessions (2026-06-22). The plugin shares basenames with the
homelab hooks, so the old additive-only logic saw the dead plugin path as
"already present" and skipped installing the real ~/.claude/hooks/ copy; pruning
first fixes that. Verified against emo's exact original config: yields the
correct 4-hook set, drops the dead PermissionRequest entry, idempotent on rerun.

auto-learn.py now stores via the `homelab memory` CLI only — dropped the direct
HTTP path and the local-SQLite fallback (memory is homelab-CLI-only per Viktor;
never local files). No-ops silently when no API key is in env (e.g. ancamilea).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 09:24:42 +00:00
..
auto-learn.py workstation: harden memory hooks — prune dead plugin refs + homelab-CLI-only store 2026-06-22 09:24:42 +00:00
homelab-memory-recall.py workstation: provision homelab-memory hooks for all users (retire claude-memory MCP) 2026-06-21 17:42:42 +00:00
post-compact-recovery.sh workstation: provision homelab-memory hooks for all users (retire claude-memory MCP) 2026-06-21 17:42:42 +00:00
pre-compact-backup.sh workstation: provision homelab-memory hooks for all users (retire claude-memory MCP) 2026-06-21 17:42:42 +00:00
wire-memory-hooks.py workstation: harden memory hooks — prune dead plugin refs + homelab-CLI-only store 2026-06-22 09:24:42 +00:00