+# Enable the memory toolset for the CLI platform. Clean "Blank Slate" Hermes
+# installs ship with memory in agent.disabled_toolsets and a
+# platform_toolsets.cli that excludes it — with that gate closed, Hermes
+# initializes the provider but withholds the retinue_memory_* tools and the
+# system-prompt block from the model, so the install looks green while the
+# agent can never call the tools (found 2026-08-30 on a fresh install).
+# `hermes tools enable` both adds the toolset to platform_toolsets.cli and
+# removes it from agent.disabled_toolsets.
+if [[ -n "$HERMES_CLI" ]]; then
+ echo "Enabling the memory toolset for cli (via $HERMES_CLI)..."
+ if "$HERMES_CLI" tools enable --platform cli memory >"$DIAG_DIR/tools-enable.log" 2>&1; then
+ echo " memory toolset enabled for cli."
+ else
+ echo " Warning: could not enable the memory toolset automatically."
+ echo " --- hermes tools enable output:"
+ show_log_tail "$DIAG_DIR/tools-enable.log"
+ echo " Run it manually:"
+ echo " $HERMES_CLI tools enable --platform cli memory"
+ fi
+ echo " Note: other platforms (telegram, discord, ...) each need their own:"
+ echo " $HERMES_CLI tools enable --platform <name> memory"
+fi
+