tools / system.py

Diagnostics, weather, location, Tor / Internet connectivity.

Tool: system_utility

ActionHandlerBehaviour
check_healthtool_check_health (line 208-404)Platform / CPU / memory / disk via psutil; Docker version via subprocess; Internet ping (Cloudflare 1.1.1.1); Tor anonymity check; agent internals (LLM client, memory, graph, sandbox, biological-watchdog status).
check_weathertool_get_weather (line 12-160)Open-Meteo first (geolocation + forecast), wttr.in fallback. Looks up location in profile_memory. 3 retries with Tor identity refresh.
check_locationtool_check_location (line 186-196)Searches profile for location/city/address keys.

All HTTP calls honour the configured Tor SOCKS proxy when TOR_PROXY is set.