Skip to content

fix: tighten memory and session recall guidance#1329

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-2f2b4807
Mar 14, 2026
Merged

fix: tighten memory and session recall guidance#1329
teknium1 merged 1 commit into
mainfrom
hermes/hermes-2f2b4807

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

  • replace the diary-style memory guidance in agent/prompt_builder.py with durable-facts guidance
  • update the memory tool schema to explicitly forbid task/session state logging and redirect that material to session_search
  • clarify in both the system prompt and session-search schema that the agent should check recent current-session turns before doing cross-session recall
  • add regression tests for the updated prompt/schema guidance

Why

The previous like a diary framing was nudging models to save transient task state into persistent memory, which then reappears in later sessions as if it were still current. This change narrows memory to durable facts and keeps completed-work/task-state recall in searchable transcripts instead.

Testing

  • source /home/teknium/.hermes/hermes-agent/.venv/bin/activate && python -m pytest tests/agent/test_prompt_builder.py tests/tools/test_memory_tool.py tests/tools/test_session_search.py tests/test_run_agent.py -n0 -q
  • source /home/teknium/.hermes/hermes-agent/.venv/bin/activate && python -m pytest tests/ -n0 -q

Remove diary-style memory framing from the system prompt and memory tool
schema, explicitly steer task/session logs to session_search, and clarify
that session_search is for cross-session recall after checking the current
conversation first. Add regression tests for the updated guidance text.
@teknium1 teknium1 force-pushed the hermes/hermes-2f2b4807 branch from e97dbbc to 5319bb6 Compare March 14, 2026 18:36
@teknium1 teknium1 merged commit 1114841 into main Mar 14, 2026
1 check passed
@teknium1 teknium1 deleted the hermes/hermes-2f2b4807 branch March 14, 2026 18:39
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…2f2b4807

fix: tighten memory and session recall guidance
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…2f2b4807

fix: tighten memory and session recall guidance
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
…2f2b4807

fix: tighten memory and session recall guidance
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
…2f2b4807

fix: tighten memory and session recall guidance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant