The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(agent): _trim_process_memory's docstring matches the every-platform gc
kshitijk4poor9b5698f87d5d
diff --git a/run_agent.py b/run_agent.pyindex d6c409ac0ba..9ed59accb2f 100644--- a/run_agent.py+++ b/run_agent.py@@ -1006,7 +1006,7 @@ class AIAgent(@staticmethoddef _trim_process_memory() -> None:- """Return freed heap pages to the OS on glibc; safe no-op elsewhere."""+ """Collect cycles, then return freed heap pages to the OS (the page release is glibc-only)."""from hermes_cli.mem_trim import trim_memorytrim_memory(force=True, reason="agent close")