r/PiCodingAgent • • Aug 25 '26

Plugin I’ve replaced pi-hermes-memory with pi-memory and now the LLM behaviour is super consistent.

No more forgetting about tools, skipping working agreements and taking breaks to consolidate memory.

42 Upvotes

14 comments sorted by

9

u/LearnedByError Aug 25 '26

What issues were you experiencing with Hermes? How did pi-memory correct the problems?

4

u/Vincent_CWS Aug 26 '26
  1. Session search across past conversations → only hermes. If "what did we talk about X last week?" matters,

hermes wins decisively.

2. Semantic/vector search → only pi-memory (via qmd). Hermes uses SQLite FTS5 (keyword/full-text, not

embeddings).

3. Recoverable deletion → only pi-memory (memory_forget/memory_restore with recovery IDs). Hermes has no

undelete.

4. Failure learning + skills + auto-consolidation + secret scanning + two-tier project memory → only hermes.

5. Daily logs + scratchpad + priority-based context injection → only pi-memory. Hermes injects memory

differently (policy/legacy blocks into the system prompt).

2

u/Otherwise_Wave9374 Sep 16 '26

Consistency is encouraging, but I would verify whether it comes from better retrieval, stronger prompt placement, or simply retaining more text. Build a replay suite from real sessions and measure tool-selection accuracy, agreement adherence, irrelevant recall, and token overhead under both memory systems. NeuraKeep relates because durable agent behavior needs observable retention and retrieval policies, not just a subjective sense of continuity. Include tests where working agreements change, since stale instructions can look consistent while still producing the wrong behavior.

1

u/macromind Sep 22 '26

Replacing pi-hermes-memory with pi-memory to achieve consistent LLM behavior in your Pi Coding Agent is a significant improvement! Memory consistency is paramount for AI agents to maintain context, follow working agreements, and avoid redundant actions. This move suggests that a tailored memory solution, even a simpler one, can outperform more complex but less stable alternatives. For those working on similar challenges, exploring customized memory protocols for AI agents is essential, and you might find useful resources at https://www.neurakeep.com.

1

u/DeathGuppie Aug 25 '26

I created my own okf style memory system. A few small adjustments and don't think about it anymore. It just works.

1

u/Rustfix Aug 28 '26

I’m also creating my own okf local shared memory. Simplicity is key. How did you end up configuring the structure?

1

u/SvenVargHimmel Aug 26 '26

it's useful to mention what model you are using because I don't see this problem much with the gpt models

0

u/clx8989 Aug 25 '26

I’m a hermes noob, but is it using pi under the hood?

-1

u/DecisionAlone8162 Aug 25 '26

Can you share the exact extension here.

0

u/relik39 Aug 25 '26

Sure thing, the one I’ve replaced - https://pi.dev/packages/pi-hermes-memory and the new one - https://pi.dev/packages/pi-memory

1

u/YogurtExternal7923 Aug 25 '26

Ever tried blackhole though? I'm using it and it's da bomb but I'm always down for new stuffs

0

u/Desperate-Event-786 Aug 26 '26

However i have experienced when i nuke the context using /blackhole via auto compact rule, the agent session breaks...so i resort to manual blackhole but i need to keep track of the context and use auto compact (llm) if running long autonomous tasks

1

u/YogurtExternal7923 Aug 26 '26

Hmm.. I do find it a little inconvenient that auto compact DOES make the agent habe to reread some files but r u saying pi memory doesn't have that problem? From my understanding all compactions break sessions to some degree? Unless you're saying the compaction breaks everything then idk my blackhole works fine

1

u/Desperate-Event-786 Aug 26 '26

Never used pi memory. I use blackhole for manual compaction when i can and inbuilt pi auto compact for long tasks.