Hands down the best video I’ve ever seen made with AI.
I’m not just saying that because it’s an ad, this is genuinely incredible.
“Yes you are, Billy!”
🤣😂🤣
Every 20 messages, he automatically saves the conversation to a JSON file, then summarizes it into a long-term memory file — so he remembers things across restarts. When he hits the save point, he auto-restarts cleanly so the new memory is loaded fresh without losing context.
# 1. Every 20 Messages → Save to JSON
The bot code tracks a message counter. When it hits 20, it writes the raw conversation to a JSON file:
```python
if message_count % 20 == 0:
save_conversation_to_json(conversation_history)
```
The JSON file stores each message as a structured object — role (user/assistant) + content.
***
## 2. Summarize → Long-Term Memory File
Immediately after saving, Hermes calls himself to summarize the JSON into a compact memory file:
```python
summary = summarize_conversation(conversation_history)
save_to_memory_file(summary) # writes to hermes_memory.txt
```
This is what gets injected into his system prompt on every future restart — so he "knows" what happened before.
***
## 3. Auto-Restart to Load Fresh Memory
After saving + summarizing, the bot restarts itself cleanly:
```bash
hermes gateway restart
```
Or from inside the Python script:
```python
os.execv(sys.executable, ['python'] + sys.argv)
```
This kills the old instance, launches a fresh one, and the new instance reads `hermes_memory.txt` at startup — so memory is live immediately without any manual steps.
***
The result: every 20 messages, the whole cycle runs automatically — save → summarize → restart → remember.
.....helpful info that I just learned FYI for anyone
Every 20 messages, he automatically saves the conversation to a JSON file, then summarizes it into a long-term memory file — so he remembers things across restarts. When he hits the save point, he auto-restarts cleanly so the new memory is loaded fresh without losing context.
# 1. Every 20 Messages → Save to JSON
The bot code tracks a message counter. When it hits 20, it writes the raw conversation to a JSON file:
```python
if message_count % 20 == 0:
save_conversation_to_json(conversation_history)
```
The JSON file stores each message as a structured object — role (user/assistant) + content.
***
## 2. Summarize → Long-Term Memory File
Immediately after saving, Hermes calls himself to summarize the JSON into a compact memory file:
```python
summary = summarize_conversation(conversation_history)
save_to_memory_file(summary) # writes to hermes_memory.txt
```
This is what gets injected into his system prompt on every future restart — so he "knows" what happened before.
***
## 3. Auto-Restart to Load Fresh Memory
After saving + summarizing, the bot restarts itself cleanly:
```bash
hermes gateway restart
```
Or from inside the Python script:
```python
os.execv(sys.executable, ['python'] + sys.argv)
```
This kills the old instance, launches a fresh one, and the new instance reads `hermes_memory.txt` at startup — so memory is live immediately without any manual steps.
***
The result: every 20 messages, the whole cycle runs automatically — save → summarize → restart → remember.
.....helpful info that I just learned FYI for anyone
@WallStreetApes Walmart steak is absolutely disgusting. Had it delivered once...and i threw it out. Looked off
Thats the 1 place I'll never get meat from again
this is a brilliant game to play with your kids (highly recommend trying it out)
I wish my parents had played something like this with me, so please save it or make a note
it’s called Unfortunately, Fortunately.
the rules are simple: I say something starting with "unfortunately," and they have to respond with something that starts with "fortunately"
> so I'll say: unfortunately we're stuck in traffic
> and my son will go: fortunately that means we get more time together
> I'll say: unfortunately it's time to do your homework
> he’ll say: fortunately that means I don't have to think about it for the rest of the evening
> I'll say: unfortunately we're running late so we've got to leg it
> he’ll say: fortunately that makes us fit and strong
you can play it with anyone… your kids, your partner, your mates. You can even play it on your own
& the reason I love it so much is that it quietly trains your brain to look for the upside in things. and somehow, there always is one
Founder of lululemon on what he'd tell every 25 year old:
"I'd tell them that every person in the world is an individual with a different genetic makeup and a different upbringing and the way that you're thinking is so radically different than every other person in the world and incomparable that if you have an idea and you want to move forward with it, don't worry so much about the competition because nobody will be able to replicate you and the way you think about it."
@iFightForKids Absolute liability for the publics safety for woman to be cops. She took the job from a man twice as strong and fast
Well done Alex. #1 protector of children in the world
@Darcymason Haha no way 😆 I guess it's meant to be
I read v4 clicking is so loud and to stick with 3. And v4 has some scroll feature but likely wont notice it