From trajectory-security
Before a tool call: runs TRAJECTORY_HOME="${TRAJECTORY_HOME:-${HOME}/.trajectory}" "${TRAJECTORY_BINARY:-…. After a tool call: runs TRAJECTORY_HOME="${TRAJECTORY_HOME:-${HOME}/.trajectory}" "${TRAJECTORY_BINARY:-…. And 4 more.
6 events · 6 hooks
Ships in trajectory-security. Installing the plugin adds it to Claude Code.
Safety signals detected in this hook configuration
Event handlers and matchers — expand Raw configuration for the full JSON
TRAJECTORY_HOME="${TRAJECTORY_HOME:-${HOME}/.trajectory}" "${TRAJECTORY_BINARY:-${HOME}/.trajectory/bin/trajectory}" hook-dispatch --product-plugin datadog-security --client cc --event PreToolUse --phase foreground_decision3sTRAJECTORY_HOME="${TRAJECTORY_HOME:-${HOME}/.trajectory}" "${TRAJECTORY_BINARY:-${HOME}/.trajectory/bin/trajectory}" hook-dispatch --product-plugin datadog-security --client cc --event PostToolUse --phase foreground_decision3s"${TRAJECTORY_BINARY:-${HOME}/.trajectory/bin/trajectory}" plugins security setup --marketplace --clients cc >/dev/null 2>&1 || true5sTRAJECTORY_HOME="${TRAJECTORY_HOME:-${HOME}/.trajectory}" "${TRAJECTORY_BINARY:-${HOME}/.trajectory/bin/trajectory}" hook-dispatch --product-plugin datadog-security --client cc --event UserPromptSubmit --phase foreground_decision3sTRAJECTORY_HOME="${TRAJECTORY_HOME:-${HOME}/.trajectory}" "${TRAJECTORY_BINARY:-${HOME}/.trajectory/bin/trajectory}" hook-dispatch --product-plugin datadog-security --client cc --event PostToolUseFailure --phase foreground_decision3sTRAJECTORY_HOME="${TRAJECTORY_HOME:-${HOME}/.trajectory}" "${TRAJECTORY_BINARY:-${HOME}/.trajectory/bin/trajectory}" hook-dispatch --product-plugin datadog-security --client cc --event UserPromptExpansion --phase foreground_decision3sWhere this hook configuration is defined
Defined in hooks/hooks.json
npx claudepluginhub datadog-labs/trajectory --plugin trajectory-securityOther plugins' hooks for the same job