Hermes Agent's messaging platform sessions will not last indefinitely, and the official default has an automatic reset policy. The default value given in the Messaging document is: do a daily reset at 4 a.m. every day, or trigger an idle reset after 1440 minutes of idleness, whichever arrives first.
How to change
Instead of changing the environment variables of a certain platform, write reset_by_platform in ~/.hermes/gateway.json. For example, Telegram can be reset for 4 hours without speaking, and Discord can be reset for 1 hour, both of which can be equipped separately.
{ "reset_by_platform": { "telegram": { "mode": "idle", "idle_minutes": 240 } }
}When to shorten it
When the group chat is noisy, there are many messages, and the context is easy to drift, it is more stable to shorten it. If you ask a lot of questions in a day, you can keep it longer.
In a word: Hermes remembers context, but not infinitely; The real reset is the reset policy in gateway.json.
Why sometimes you feel like it "suddenly doesn't remember"
In addition to manual /reset and /new, the most common is when the reset policy is triggered. Especially after group chats or long periods of silence, Hermes looks like a "fragment", and many times the idle reset takes effect normally, not the database is lost.
Official open source address: https://github.com/NousResearch/hermes-agent; Official document entry: https://hermes-agent.nousresearch.com/.