Skip to content

The agent that grows with you

fix(config): recognize memory nudge interval

MindDragonLabs5c03fbedc6ea
diff --git a/cli-config.yaml.example b/cli-config.yaml.example
index 87aad0ae94a..472b7b98c34 100644
--- a/cli-config.yaml.example
+++ b/cli-config.yaml.example
@@ -833,11 +833,6 @@ memory:
# every N user turns. Set to 0 to disable. Only active when memory is enabled.
nudge_interval: 10 # Nudge every 10 user turns (0 = disabled)
- # Memory flush: give the agent one turn to save memories before context is
- # lost (compression, /new, /reset, exit). Set to 0 to disable.
- # For exit/reset, only fires if the session had at least this many user turns.
- flush_min_turns: 6 # Min user turns to trigger flush on exit/reset (0 = disabled)
-
# =============================================================================
# Session Reset Policy (Messaging Platforms)
# =============================================================================
diff --git a/hermes_cli/config_defaults.py b/hermes_cli/config_defaults.py
index cccb4b638f8..bd99919cd2d 100644
--- a/hermes_cli/config_defaults.py
+++ b/hermes_cli/config_defaults.py
@@ -1865,6 +1865,10 @@ DEFAULT_CONFIG = {
"write_approval": False,
"memory_char_limit": 2200, # ~800 tokens at 2.75 chars/token
"user_char_limit": 1375, # ~500 tokens at 2.75 chars/token
+ # Periodic built-in memory review. External providers with automatic
+ # turn/session extraction can set this to 0 and keep the small local
+ # store reserved for explicit high-frequency operational facts.
+ "nudge_interval": 10,
# External memory provider plugin (empty = built-in only).
# Set to a provider name to activate: "openviking", "mem0",
# "hindsight", "holographic", "retaindb", "byterover".
diff --git a/tests/hermes_cli/test_set_config_value.py b/tests/hermes_cli/test_set_config_value.py
index e764890d3c3..cd62cda456c 100644
--- a/tests/hermes_cli/test_set_config_value.py
+++ b/tests/hermes_cli/test_set_config_value.py
@@ -111,6 +111,13 @@ class TestConfigYamlRouting:
assert "not a recognized config key" not in capsys.readouterr().out
assert "script_timeout_seconds: 600" in _read_config(_isolated_hermes_home)
+ def test_memory_nudge_interval_is_recognized(self, _isolated_hermes_home, capsys):
+ """The documented background-memory review interval is runtime config."""
+ set_config_value("memory.nudge_interval", "0")
+
+ assert "not a recognized config key" not in capsys.readouterr().out
+ assert "nudge_interval: 0" in _read_config(_isolated_hermes_home)
+
def test_terminal_docker_cwd_mount_flag_goes_to_config_and_env(self, _isolated_hermes_home):
set_config_value("terminal.docker_mount_cwd_to_workspace", "true")
config = _read_config(_isolated_hermes_home)