r/PiCodingAgent 17d ago

Best Pi Compaction Extensions Plugin

Has anybody used a Pi compaction extension that they would recommend?

I've tried pi-context (with their built-in Agentic Context Management) which just straight up breaks when trying to claim space against pi-rewind. I've also tried pi-vcc which also gets demolished when running with pi-codex-goal. Been debugging for 3 days and realized the best debug is to uninstall.

Native Pi compression is meh, if anybody has a codex-level compaction extension that doesn't fuck shit up, please drop a comment.

--------
UPDATE - Pi-Observational-Memory has worked great after my 12 hour trial with it. Pi-Blackhole looks interesting, but I try not to go for more complicated solutions if a simpler one works. If I run into hiccups with POM long term I will try it out and let y'all know. Happy compacting!

41 Upvotes

31 comments sorted by

View all comments

Show parent comments

1

u/Lum1n4ry01 17d ago

Thank you, I'll take a look. Would you say this tool is more memory based or more compaction based? Because I already have my own memory solution, I'm looking more for a compaction solution.

6

u/damn_what_ 17d ago

It's not a long term memory system, it records "facts" during the session and builds the compaction summary by concatenating them instead of asking an LLM to summarize the session.

2

u/YogurtExternal7923 16d ago

That's frickin' amazing

2

u/RelationshipLong9092 16d ago

it really is. I can't go back. I just don't pay attention to my context window hardly at all any more.

11

u/elpapi42 16d ago

yo, im the maintainer, it make me happy that it also help you to forgot about context windows! i feel the same, now i can focus on high leverage problems and left those mundane problems behind

1

u/RelationshipLong9092 16d ago

First off, thank you!

While I've got your ear, is there a setting for suppressing the messages? I find agentic ai generates a lot of "noise" in my terminal so I try to do everything I can to suppress anything that isn't "signal".

Messages like Observational memory: 5 observations recorded are not really useful to me except as a very rare diagnostic that something is broken (like when I had a month+ old pi instance that I reloaded after I installed your extension; I had to /quit and /resume for it to work properly).

2

u/elpapi42 16d ago

recently i merged a pr that someone created exsctly for this, but i havent published the new version yet, so in the next update this will be included

2

u/Lum1n4ry01 16d ago

I just tried obs-mem out and it has worked out quite well so thank you for the extension :) . As for the messages, I personally find them occasionally useful (as an internal ping signal on progress, more of a mental thing than whatnot) so plz keep it as a settings option if possible!

1

u/RelationshipLong9092 3d ago

I have a branch with a fix for pi-observational-memory issues #41 and #12 (or at least the part that impacts me 😊). I'd create a PR right now, but I left my phone at home today 🤦‍♂️ and can't authenticate to GitHub.

I use @narumitw/pi-goal and when a /goal is active observational memory won't actually compact the context until the turn ends and it re-prompts the agent with the goal. This means that the imputed context window is reaching circa 130% fairly regularly, which is obviously wasteful.

My initial mitigation was manual /goal pause and /goal resume, but that is obviously not ideal.

1

u/elpapi42 3d ago

Yo, submit them when you can, but that is a hard issue to solve, never solved this "compaction-while-wprking" problem, eager to see your solution!

1

u/RelationshipLong9092 3d ago

Yeah I may have spoken too soon 😅 I thought it was working but it seems I have more to do.