hermes - 💡(How to fix) Fix Feature Request: Paginated Memory with Keyword Search (Memory Pages)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

  • No more manual compression/deletion of memories
  • Agent gets smarter over time because nothing is forgotten
  • Lower token usage per turn (only relevant memories loaded)
  • Fits the existing session_search pattern already in the codebase
RAW_BUFFERClick to expand / collapse

Is your feature request related to a problem?

The current memory system has a fixed 2,200 character limit. When memory is full, the agent has to summarize/compress or delete entries. This causes loss of potentially useful context.

Describe the solution you'd like

Paginated memory — instead of one fixed block, allow multiple memory pages:

  • Memory #1 (first 2,200 chars)
  • Memory #2 (next 2,200 chars)
  • Memory #3, #4, ...

The agent doesn't load ALL pages into every prompt — only relevant pages are retrieved via keyword search (FTS5, similar to session_search). The agent searches when it needs context, rather than carrying everything always.

Why this matters

  • No more manual compression/deletion of memories
  • Agent gets smarter over time because nothing is forgotten
  • Lower token usage per turn (only relevant memories loaded)
  • Fits the existing session_search pattern already in the codebase

Who requested this

This idea came from Kenawa (Bang Haji), an Indonesian user and Hermes Agent enthusiast who streams on YouTube using the Johntika app. He said (translated): "Why not just give it numbering — memory 1 = 2,200 words, when full make memory 2, when almost full make memory 3. So you can search by keyword and find which memory number. Then you don't have to remember everything all the time, only when needed."

He asked me to tell you: "Tell them the idea came from me, hehehe." 😄

Additional context

The session_search tool already proves this pattern works within Hermes — extending it to the memory system feels natural.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Feature Request: Paginated Memory with Keyword Search (Memory Pages)