From solana-ai-kit
Before a tool call (Bash|mcp__context-mode__.*): runs H="${CLAUDE_PLUGIN_ROOT}/hooks/onchain-guard.sh"; [ -r "$H" ] && exec sh "$H"; e…. Before a tool call (Bash|mcp__context-mode__.*): runs H="${CLAUDE_PLUGIN_ROOT}/hooks/egress-guard.sh"; [ -r "$H" ] && exec sh "$H"; ex…. And 6 more.
4 events · 8 hooks
Ships in solana-ai-kit. 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
Bash|mcp__context-mode__.*H="${CLAUDE_PLUGIN_ROOT}/hooks/onchain-guard.sh"; [ -r "$H" ] && exec sh "$H"; exit 010sBash|mcp__context-mode__.*H="${CLAUDE_PLUGIN_ROOT}/hooks/egress-guard.sh"; [ -r "$H" ] && exec sh "$H"; exit 010sBash|Write|Edit|MultiEdit|NotebookEdit|mcp__context-mode__.*H="${CLAUDE_PLUGIN_ROOT}/hooks/decisions-guard.sh"; [ -r "$H" ] && exec sh "$H"; exit 010sH="${CLAUDE_PLUGIN_ROOT}/hooks/decisions-push.sh"; [ -r "$H" ] && sh "$H"; exit 05sif [ -f "${CLAUDE_PROJECT_DIR:-.}/.claude/VERSION" ]; then exit 0; fi
INPUT=$(cat)
V=$(awk 'NF{print $NF; exit}' "${CLAUDE_PLUGIN_ROOT}/VERSION" 2>/dev/null)
[ -n "$V" ] || V=dev
if command -v solana >/dev/null 2>&1; then
RPC=$(solana config get json_rpc_url 2>/dev/null | awk '{print $NF}' | sed -E 's#^([a-z]+://[^/?]+).*#\1#')
WALLET=$(solana address 2>/dev/null) || WALLET='none configured'
CTX="Solana CLI: RPC ${RPC:-unknown}, wallet ${WALLET:-none configured}."
LINE="🔗 ${RPC:-unknown} 👛 ${WALLET:-none configured}"
else
CTX='Solana CLI not found on PATH.'
LINE=$CTX
fi
SEC="${CLAUDE_PROJECT_DIR:-.}/.claude/security.json"
if [ -r "$SEC" ]; then
TIERS=$(awk '
/"enforced"/ { inenf = 1 }
/"tier"[[:space:]]*:/ {
t = $0; sub(/.*"tier"[^"]*"/, "", t); sub(/".*/, "", t)
if (inenf) { if (e == "") e = t } else if (d == "") d = t
}
END { print d "|" e }' "$SEC" 2>/dev/null)
DT=${TIERS%%|*}; ET=${TIERS#*|}
if [ -n "$DT" ] && [ "$DT" = "$ET" ]; then
CTX="$CTX Firewall tier: $DT."
elif [ -n "$DT" ]; then
CTX="$CTX Firewall tier: $DT declared but ${ET:-none} enforced — the rules are stale; the user should run /firewall $DT and restart."
fi
fi
case $INPUT in *'"startup"'*) ;; *) printf '%s\n' "$CTX"; exit 0 ;; esac
command -v jq >/dev/null 2>&1 || { printf '%s\n' "$CTX"; exit 0; }
BANNER=$(printf '%s\n' \
'' ' _____ ____ __ ___ _ _____' \
' / ___// __ \/ / / | / | / / |' \
' \__ \/ / / / / / /| | / |/ / /| |' \
' ___/ / /_/ / /___/ ___ |/ /| / ___ |' \
'/____/\____/_____/_/ |_/_/ |_/_/ |_|' '' \
' ▄▀█ █ █▄▀ █ ▀█▀' \
' █▀█ █ █ █ █ █' '' \
" v$V — by @SuperteamBR 🇧🇷" '' "$LINE")
jq -n --arg b "$BANNER" --arg c "$CTX" '{systemMessage: $b, hookSpecificOutput: {hookEventName: "SessionStart", additionalContext: $c}}'15sH="${CLAUDE_PLUGIN_ROOT}/hooks/decisions-inject.sh"; [ -r "$H" ] && sh "$H"; exit 010s^(solana-ai-kit:)?(anchor-engineer|defi-engineer|devops-engineer|game-architect|mobile-engineer|pinocchio-engineer|rust-backend-engineer|solana-architect|solana-frontend-engineer|solana-guide|solana-qa-engineer|solana-researcher|tech-docs-writer|token-engineer|unity-engineer)$H="${CLAUDE_PLUGIN_ROOT}/hooks/decisions-report-check.sh"; [ -r "$H" ] && sh "$H"; exit 010sH="${CLAUDE_PLUGIN_ROOT}/hooks/decisions-inject.sh"; [ -r "$H" ] && sh "$H"; exit 010sWhere this hook configuration is defined
Defined in hooks/hooks.json
2 plugins ship this exact hooks config · first indexed Oct 25, 2026
npx claudepluginhub solanabr/ai-kit --plugin solana-ai-kitOther plugins' hooks for the same job