#!/usr/bin/env sh
# Backward-compatible name. The real binary is context-gauge (Claude + Grok).
DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
if [ -x "$DIR/context-gauge" ]; then
  exec "$DIR/context-gauge" "$@"
fi
if [ -f "$DIR/context_gauge.py" ]; then
  exec python3 "$DIR/context_gauge.py" "$@"
fi
if command -v context-gauge >/dev/null 2>&1; then
  exec context-gauge "$@"
fi
echo "context-gauge not found next to claude-context-gauge shim" >&2
exit 0
