mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-11 13:41:53 +00:00
Instead of an external watcher chasing 5-10 concurrent session pids, every TUI samples ITSELF at 1Hz (rss/heap/external + windowing mounted/peak-mounted counters) into ~/.hermes/logs/memwatch/, gated by HERMES_TUI_MEMLOG (defaults to the HERMES_TUI_DIAGNOSTICS master switch) — one shell-rc export covers every session a dev ever starts. Unref'd timer, every failure path silently disables, 14-day retention. bench/memwatch-report.mjs aggregates the fleet: per-session baseline/peak/last, steady-state MB/h slope, peak mounted rows, and SLOPE/PEAK/MOUNTED anomaly flags. Verified live: two fake-gateway smoke sessions logged and aggregated (102MB base, mounted ≤60). |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| fonts | ||
| hooks | ||
| i18n | ||
| lib | ||
| store | ||
| themes | ||
| types | ||
| global.d.ts | ||
| hermes.test.ts | ||
| hermes.ts | ||
| main.tsx | ||
| styles.css | ||
| vite-env.d.ts | ||