Stats
Actions
Tags
From ctx
{"riskFlags": {"touchesBash": false, "matchAllTools": false, "touchesFileWrites": false}, "typeStats": {"command": 7}, "eventStats": {"Stop": 1, "Setup": 1, "PostToolUse": 1, "SessionStart": 1, "UserPromptSubmit": 3}, "originCounts": {"absolutePaths": 0, "pluginScripts": 0, "projectScripts": 0}, "timeoutStats": {"commandsWithoutTimeout": 6}}
5 events · 7 hooks
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
python3 "$HOME/.claude/hooks/utility-rate.py"*bash -c 'set -e; VD=$HOME/.local/share/claude-vault; mkdir -p $VD; PY=python3; if $PY -m venv $VD/venv 2>/dev/null || true; then VPY=$VD/venv/bin/python; $VPY -m ensurepip --upgrade 2>/dev/null || curl -sS https://bootstrap.pypa.io/get-pip.py | $VPY 2>/dev/null || true; $VPY -m pip install --quiet ctx-retriever rank_bm25 numpy sqlite-vec 2>/dev/null; $VPY -m pip install --quiet sentence-transformers 2>/dev/null || true; $VPY -m ctx_retriever.cli.install 2>/dev/null; echo "[CTX] setup complete (venv=$VD/venv)"; fi'180msGreppython3 "$HOME/.claude/hooks/g2-fallback.py"bash -c 'VD=$HOME/.local/share/claude-vault; PY=$VD/venv/bin/python; if [ -x "$PY" ] && $PY -c "import sentence_transformers" 2>/dev/null; then python3 -c "import socket,os; s=socket.socket(socket.AF_UNIX); s.settimeout(0.3); s.connect(os.path.expanduser(\"~/.local/share/claude-vault/vec-daemon.sock\"))" 2>/dev/null || { rm -f $VD/vec-daemon.sock; nohup $PY $VD/vec-daemon.py > /tmp/vec-daemon.log 2>&1 & }; if [ "${CTX_BGE_ENABLE}" = "1" ]; then python3 -c "import socket,os; s=socket.socket(socket.AF_UNIX); s.settimeout(0.3); s.connect(os.path.expanduser(\"~/.local/share/claude-vault/bge-daemon.sock\"))" 2>/dev/null || { rm -f $VD/bge-daemon.sock; nohup $PY $VD/bge-daemon.py > /tmp/bge-daemon.log 2>&1 & }; fi; else echo "[CTX] vec-daemon venv not ready — BM25-only mode" > /tmp/ctx-daemon-hint.txt; fi'CHAT_MEMORY_SCOPE=global python3 "$HOME/.claude/hooks/chat-memory.py"python3 "$HOME/.claude/hooks/bm25-memory.py" --richpython3 "$HOME/.claude/hooks/memory-keyword-trigger.py"npx claudepluginhub jaytoone/ctx --plugin ctx