Skip to content

The agent that grows with you

docs(agent): _trim_process_memory's docstring matches the every-platform gc

kshitijk4poor9b5698f87d5d
diff --git a/run_agent.py b/run_agent.py
index d6c409ac0ba..9ed59accb2f 100644
--- a/run_agent.py
+++ b/run_agent.py
@@ -1006,7 +1006,7 @@ class AIAgent(
@staticmethod
def _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_memory
trim_memory(force=True, reason="agent close")