superlocalmemory icon indicating copy to clipboard operation
superlocalmemory copied to clipboard

Title: Hermes plugin `capture_turns: true` doesn't capture ordinary conversation — is this expected?

Open unfall103-debug opened this issue 1 month ago • 2 comments

Title: Hermes plugin capture_turns: true doesn't capture ordinary conversation — expected behavior or plugin bug?

Environment

  • SuperLocalMemory: 4.2.5
  • Hermes SLM plugin: 4.2.5 (installed from https://github.com/qualixar/superlocalmemory.git#hermes-plugin)
  • Hermes Gateway: user systemd service, root LXC
  • Connection mode: remote — SLM on 192.168.50.144, MCP over HTTPS on port 8766 at /mcp/hermes
  • ~/.hermes/config.yaml:
    plugins:
      entries:
        superlocalmemory:
          enabled: true
          mcp_allowlist: [superlocalmemory]
          settings:
            connection: remote
            capture_turns: true
    
  • MCP verified working: tools/list over the authenticated HTTPS endpoint returns 41 tools including observe, remember, recall, log_tool_event.

What I expected

Per the plugin README:

Full user/assistant turn capture is off by default; enable it only by setting plugins.entries.superlocalmemory.settings.capture_turns: true in your Hermes configuration.

I read "capture_turns: true" as "capture completed user/assistant turns into SLM", so ordinary conversation would end up in memory.

What I observed

After enabling capture_turns: true, restarting the gateway, and holding several turns, nothing new appears in memories / atomic_facts.

Server-side logs show the plugin is calling the tool:

15:21:05 remote tools/call ... agent=hermes tool=observe decision=allow
15:21:07 remote tools/call ... agent=hermes tool=settle_session_outcomes decision=allow

But calling observe directly with a normal turn returns:

{"captured": false, "reason": "no patterns matched", "category": "none", "confidence": 0.0}

Root cause I found

superlocalmemory/hooks/auto_capture.py — AutoCapture.evaluate() only matches English decision / bug / preference regexes:

_DECISION_PATTERNS = [
    r"(?i)\b(decided|chose|picked|selected|went with|using|switched to)\b",
    ...
]
_BUG_PATTERNS = [
    r"(?i)\b(fixed|resolved|solved|root cause|bug|issue|error)\b",
    ...
]
_PREFERENCE_PATTERNS = [
    r"(?i)\b(prefer|always use|never use|I like|I hate|don't like)\b",
    ...
]

Content shorter than 20 characters is rejected outright ("content too short").

So an ordinary turn like User: 你好\nAssistant: ... — or any English chat that isn't about a decision / bug / preference — never matches. observe returns captured: false, and the turn is dropped silently. Nothing lands in ingestion_operations, atomic_facts, or memories.

My question

Is capture_turns: true supposed to capture all completed turns, or only what observe classifies as decision / bug / preference?

  • If all turns: the plugin's post_llm_call calls observe, which is a keyword-filtered path. Full turn capture looks impossible by design. Should the plugin call remember instead?
  • If only decision / bug / preference: then capture_turns: true and the README ("Full user/assistant turn capture") are misleading about scope — I'd like to understand the intended behavior.

Not sure if this is misconfiguration on my side, a documentation gap, or an unintended behavior. Happy to test a patch or provide more logs.

unfall103-debug avatar Oct 14 '26 12:10 unfall103-debug

Thanks for the detailed report and the server-side log. It showed us exactly where things went wrong, and this is fixed in 4.2.6.

What was wrong: with capture_turns: true, the plugin sent each turn to SLM's auto-capture path (observe). That path keeps only short English sentences that look like a decision, a bug or a preference, so ordinary conversation was dropped. The README promised full turn capture, and the plugin did not deliver it.

What 4.2.6 does: every completed turn is saved with remember, in any language, as User: … / Assistant: …, with secrets and email addresses redacted first. A retried turn is saved only once. It works in your remote connection mode too, with a longer timeout for the network hop.

To update:

  1. On the SLM computer (192.168.50.144): pip install -U superlocalmemory==4.2.6 (npm [email protected] follows today), then slm restart.
  2. On the Hermes host, reinstall the plugin: hermes plugins install 'https://github.com/qualixar/superlocalmemory.git#hermes-plugin', then restart the gateway.
  3. Keep mcp_allowlist: [superlocalmemory] as you have it.

After a few turns, slm list on the SLM computer should show them tagged hermes,conversation-turn.

One related fix in the same release: without that mcp_allowlist line, Hermes silently refused every SLM call from the plugin. Now /slm status and slm doctor warn about it, and slm upgrade-hosts --host hermes --apply adds the line for local installs.

Please let me know if turns still don't appear after updating, and I'll dig in.

varun369 avatar Oct 14 '26 19:10 varun369

Closing: this was fixed in 4.2.6, where capture_turns: true saves every completed turn with remember. Please reopen if you still see ordinary turns dropped on a current version.

varun369 avatar Oct 28 '26 06:10 varun369