Files

48 lines
1.7 KiB
Bash
Executable File

#!/bin/bash
# Hermes Agent Diagnostic - Snapshot of environment state
# Verifiable artifact: produces consistent output for testing
echo "=== Hermes Agent Diagnostic Report ==="
echo "Timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)"
echo ""
echo "=== Core Environment ==="
echo "User: $(whoami)"
echo "Home: $HOME"
echo "PWD: $(pwd)"
echo ""
echo "=== Hermes Profile (spark) ==="
if [ -d "/root/.hermes/profiles/spark" ]; then
echo "Profile directory exists: YES"
[ -f "/root/.hermes/profiles/spark/config.yaml" ] && echo "config.yaml: $(basename /root/.hermes/profiles/spark/config.yaml exists)"
[ -d "/root/.hermes/profiles/spark/cache" ] && echo "cache/: $(ls -A /root/.hermes/profiles/spark/cache 2>/dev/null | wc -l) items"
else
echo "Profile directory exists: NO"
fi
echo ""
echo "=== Skills Directory ==="
[ -d "/root/.hermes/skills" ] && echo "Skills found: $(ls /root/.hermes/skills 2>/dev/null | wc -l) skills" || echo "No central skills dir"
echo ""
echo "=== Available Tools ==="
echo "terminal, write_file, read_file, search_files, patch, execute_code"
echo ""
echo "=== Memory Usage ==="
echo "MEMORY chars: $(wc -c < /root/.hermes/memories/spark 2>/dev/null || echo 0)"
echo ""
echo "=== Scratch Directory ==="
[ -d "/root/.hermes/profiles/spark/cache/scratch" ] && echo "scratch/: $(ls -A /root/.hermes/profiles/spark/cache/scratch 2>/dev/null | wc -l) items" || echo "No scratch dir"
echo ""
echo "=== Model Configuration ==="
echo "Expected: poolside/laguna-xs-2.1:free via Nous Portal"
echo ""
echo "=== VERIFICATION CHECKPOINT ==="
echo "Diagnostic completed successfully at $(date +%s)"
echo "EXPECTED_OUTPUT_SIGNATURE: hermes-diagnostic-complete-$$"
tail -1