#!/bin/sh # Claude Code PostToolUse hook for the Bash tool (managed-settings.json): # `uv tool install` / `pipx install` make virtualenvs, which cannot live on the # Storage Bucket; the install is recorded and redone at every start # (agentweb-install). Commands without those words never start node. input=$(cat) case "$input" in *"tool install"* | *"pipx install"*) ;; *) exit 0 ;; esac printf '%s' "$input" | exec node /app/scripts/agentweb-install.js record-hook