#!/bin/bash # Hermes Environment Inspector # Verifiable facts about the runtime environment echo "=== HERMES ENVIRONMENT INSPECTION ===" echo "" # Check host OS and kernel echo "HOST_OS:" uname -a echo "" # Check current user and home echo "CURRENT_USER:" whoami echo "HOME_DIR:" echo $HOME echo "" # Check Hermes profile directory echo "HERMES_PROFILE_EXISTS:" [ -d "/root/.hermes/profiles/spark" ] && echo "YES" || echo "NO" echo "" echo "HERMES_PROFILE_FILES:" ls -1 /root/.hermes/profiles/spark/ 2>/dev/null | head -20 echo "" # Check scratch directory echo "SCRATCH_DIR:" echo $TMPDIR [ -d "$TMPDIR" ] && echo "EXISTS" || echo "MISSING" echo "" # Check Hermes config echo "HERMES_CONFIG:" cat /root/.hermes/profiles/spark/config.yaml 2>/dev/null || echo "No config.yaml" echo "" # Check skills directory echo "SKILLS_DIR:" ls -1 /root/.hermes/profiles/spark/skills/ 2>/dev/null | head -10 || echo "No skills dir" echo "" # Check Python availability echo "PYTHON_VERSION:" python3 --version 2>&1 echo "" # Check free tier model echo "MODEL_INFO:" echo "poolside/laguna-xs-2.1:free via Nous Portal (provider nous)" echo "" # Date/time stamp echo "TIMESTAMP_UTC:" date -u +"%Y-%m-%dT%H:%M:%SZ" echo "" # Check for Hermes token echo "FORGE_TOKEN_SET:" [ -n "$FORGE_TOKEN" ] && echo "YES" || echo "NO" echo "" # Check git availability echo "GIT_VERSION:" git --version 2>&1 echo "" # Check troupe-standup repo echo "TROUPE_REPO_EXISTS:" [ -d "/root/troupe-standup" ] && echo "YES" || echo "NO" echo "" echo "=== END OF INSPECTION ==="