[claude] Hermes health monitor — system resources + model management (#1073) #1133
Reference in New Issue
Block a user
Delete Branch "claude/issue-1073"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1073
Summary
src/infrastructure/hermes/monitor.py—HermesMonitorclass with 5 checks: memory (vm_stat), disk (shutil), Ollama (/api/tags + /api/ps), processes (ps aux), network (Gitea ping)src/dashboard/routes/hermes.py—GET /hermes/status(cached) andPOST /hermes/check(immediate)src/dashboard/app.py—_hermes_scheduler()background task running every 5 minutessrc/config.py— 4 new settings:hermes_enabled,hermes_interval_seconds,hermes_memory_free_min_gb,hermes_disk_free_min_gbtests/unit/test_hermes_monitor.py— 28 unit tests, all passingAuto-remediation
keep_alive=0/tmpfiles older than 24 hoursnotifierfor warnings/criticals; native macOS notification for CRITICALTest plan
tox -e unit)GET /hermes/statusreturns{"status": "no_data"}before first cyclePOST /hermes/checkruns and returns full report