hermes - 💡(How to fix) Fix Memory & profile injected identically every turn — propose diff-only on subsequent turns [1 pull requests]

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…

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Problem: Memory and user profile are injected every turn as a frozen snapshot — same ~1,300 tokens, every turn, no way to reduce.

Fix: First turn gets the full snapshot. Subsequent turns inject nothing if unchanged, or only the diff (added/removed/changed entries) if memory was written mid-session. The cost drops from ~1,300 tokens/turn to ~0 for the typical turn where nothing changed.

Currently at: agent/system_prompt.py:304-313 (volatile tier, rebuilt every turn). Config has only binary on/off — no frequency control.

Related: #553 (diff-based injection proposal), #35575 (prefix caching reorder).

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 Memory & profile injected identically every turn — propose diff-only on subsequent turns [1 pull requests]