The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(local_runtime): compact module docstrings (rules kept, prose trimmed)
Tekniumc8d401c79a5e
diff --git a/hermes_cli/local_runtime/bootstrap.py b/hermes_cli/local_runtime/bootstrap.pyindex 9226342179b..105dcd29b25 100644--- a/hermes_cli/local_runtime/bootstrap.py+++ b/hermes_cli/local_runtime/bootstrap.py@@ -1,10 +1,8 @@"""Bootstrap for the managed runtime: config -> installed binaries -> running supervised server.One public call, ``ensure_local_runtime(config)``, safe at any session start: disabled or-already-running -> no-op; enabled -> install binaries if missing (idempotent), spawn supervisor.--Kept import-light: callers gate on config before importing this module so sessions with-local_runtime disabled never pay the import.+already-running -> no-op; enabled -> serve the installed build under a supervisor. Kept+import-light: callers gate on config before importing so disabled sessions never pay the import."""from __future__ import annotationsdiff --git a/hermes_cli/local_runtime/catalog.py b/hermes_cli/local_runtime/catalog.pyindex 3313c7a3a26..b13373fd6a5 100644--- a/hermes_cli/local_runtime/catalog.py+++ b/hermes_cli/local_runtime/catalog.py@@ -1,9 +1,7 @@"""Curated starter catalog for the managed local runtime.-Small and honest: every entry carries the estimator inputs (measured on real GGUFs) so the picker-can price a model BEFORE the user downloads gigabytes. Once a file is on disk, profile_from_gguf()-is the authority; the catalog numbers only drive the download decision.-+Every entry carries the estimator inputs (measured on real GGUFs) so the picker can price a model+BEFORE the user downloads gigabytes; once a file is on disk, profile_from_gguf() is the authority.Builds proven end-to-end on real hardware are marked validated; day-0 entries ship without the flag— ensure_model_ready's touch generation still gates every first load at runtime."""diff --git a/hermes_cli/local_runtime/hardware.py b/hermes_cli/local_runtime/hardware.pyindex ae1c62f05c5..9dc51bc9af2 100644--- a/hermes_cli/local_runtime/hardware.py+++ b/hermes_cli/local_runtime/hardware.py@@ -2,10 +2,8 @@Budget-source rule: discrete cards may trust the device query (measured honest within rounding);unified-memory devices must budget from OS free physical memory minus headroom — their device-queries have been observed off by 3x in both directions.--Every probe here must work under a stripped PATH — gateway and service sessions don't inherit the-interactive environment.+queries have been observed off by 3x in both directions. Every probe here must work under a+stripped PATH — gateway and service sessions don't inherit the interactive environment."""from __future__ import annotationsdiff --git a/hermes_cli/local_runtime/load_progress.py b/hermes_cli/local_runtime/load_progress.pyindex e2c436f1d27..211215abbcc 100644--- a/hermes_cli/local_runtime/load_progress.py+++ b/hermes_cli/local_runtime/load_progress.py@@ -1,10 +1,9 @@"""Live model-load progress from the managed llama-server router.-llama-server's children emit per-tensor load progress ({stages, current, value}, throttled upstream-to ~200ms) which the router relays ONLY over its /models/sse stream — GET /models carries just the-coarse status string. The watcher starts on first call, reconnects with backoff (the router bounces-on model download/eject), and never raises into callers — no router, no state file, or no SSE-support (older engines) all read as "nothing loading".+Children emit per-tensor progress ({stages, current, value}) which the router relays ONLY over its+/models/sse stream — GET /models carries just the coarse status. The watcher starts on first call,+reconnects with backoff (the router bounces on download/eject), and never raises into callers: no+router, no state file, or no SSE support (older engines) all read as "nothing loading"."""from __future__ import annotationsdiff --git a/hermes_cli/local_runtime/supervisor.py b/hermes_cli/local_runtime/supervisor.pyindex b3bb1962724..e7fb7882357 100644--- a/hermes_cli/local_runtime/supervisor.py+++ b/hermes_cli/local_runtime/supervisor.py@@ -1,12 +1,10 @@"""Supervision of one llama-server in router mode.The router process is ours (restart with backoff on crash); router children are its problem — child-failures surface via GET /models exit_code, never auto-retried here.--Readiness rules (each learned the hard way on real hardware): health-200 is NOT readiness; every-readiness claim requires a touch generation (temp-0, expected token, generous budget,-reasoning_content scanned). Always dial 127.0.0.1 — resolving localhost adds ~2s per request on-Windows via IPv6 fallback.+failures surface via GET /models exit_code, never auto-retried here. Learned on real hardware:+health-200 is NOT readiness — every readiness claim requires a touch generation (temp-0, expected+token, generous budget, reasoning_content scanned); always dial 127.0.0.1 — resolving localhost adds+~2s per request on Windows via IPv6 fallback."""from __future__ import annotations