#!/bin/bash # Qwen AI Consultation Hook # Trigger: user-prompt # Consults Qwen AI for additional perspectives QWEN_MODE="${QWEN_CONSULT_MODE:-delegate}" QWEN_MODEL="${QWEN_MODEL:-qwen-coder-plus}" # Only run in delegate or always mode if [ "$QWEN_MODE" != "delegate" ] && [ "$QWEN_MODE" != "always" ]; then exit 0 fi # Check if qwen CLI is available if ! command -v qwen &> /dev/null; then exit 0 fi # Run consultation (would be called by the skill, not here directly) # This is a placeholder for the hook mechanism exit 0