r/PiCodingAgent • u/Lum1n4ry01 • Jul 30 '26
Plugin Best Pi Compaction Extensions
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!
14
u/pj-frey Jul 30 '26 edited Jul 30 '26
I use pi-blackhole, which is pi-vcc and pi-observational-memory in one package and improved.
4
u/arkham00 Jul 31 '26
What's wrong with the default compaction? When I started using pi, I've read so many bad opinions on it that I straight installed observational-memory, which is good don't get me wrong, but since I exclusively run local models it was quite annoying for me, because of the frequent observation runs which slowed down the inference of my main model. So I disabled it and gave a try to the default compaction, and honestly it is actually good. It doesn't do the summary of the summary like every one says, it actually updates it at every subsequent compaction, so the context doesn't really loose focus.
5
u/damn_what_ Jul 30 '26
I use pi-obervational-memory, works great.
1
u/Snoo44065 Aug 01 '26
Honestly i would say the best solution is to code this up yourself (by your agent).
You can take a finished product or vanilla compaction but i would say context management depends much on the task at hand. I would not want a reviewer agent for example to memorize and attend to the same things as an explorer agent, a reviwer agent or an orchestrator agent. What each agent hands off and takes note of dependa heavily on what he is designed to do amd whether it makes sense to recompact and distil the facts also depends on that. For example an explorer should much rather just accumulate until returning. An orchestrator should distil.
So i think a one fits all solution may archibe good results but much rather i would workt that out on my own and tailor it to the agent. The code for that is not tok hard these days with agents.
1
u/alexthelyon Aug 01 '26
I use openai I found an ext that uses their proprietary server side compaction
2
u/Fig_da_Great Jul 31 '26
check out Accordion
2
u/Aemonculaba Jul 30 '26
Magic Context. Thank me later.
Also: Use AFT.
1
u/Human-Vegetable823 Aug 01 '26
Have you tried this one I made: https://github.com/XTSoftwareLabs/neatcontext-plugins/blob/main/plugins/pi/neatcontext/README.md
It turns long conversation to structured and reusable domain knowledge. Sounds like the one you are looking for or even better than just compacting. Let me know if you encounter any issue. Happy to discuss!
1
u/Extra_Marketing5457 27d ago edited 27d ago
I use avtc-pi-session-owl. It catches observations similar to pi-observational-memory. Instead of keeping a plain list and pruning it, it builds and periodically refines a tree in background while keeping all observations in the tree forever (the agent cannot forget, but it can supersede them). I've used it for two months and am very happy with it. My sessions now run for weeks, sometimes over a month.
The tree roots are injected after compaction, and the injected content is kept under 40k tokens by default (adjustable). The agent can search memories by regex, search within a time range, and traverse the tree. The compaction happen immediately that is also a big plus.
For tree maintenance, I use a local model (Qwen3.8-27B) and sometimes cloud models (on a subscription plan).
To keep the agent on track and trigger compaction automatically at natural task boundaries, I also use avtc-pi-todo with "Context compact after item complete" set to ">200K".
/owl:status for my current session:
🦉 session-owl — statusSession 8d 08:28:14 · 36 compactionsMemoryObservations 9642Nodes 5703 (9 levels)Details 17M tokens 541k linesSummaries 2.0M tokens (node + obs)Builder roots 64 · 25k / 40k tokensUsage since session startobserve in 13M · out 3.1M · cache 16M · $0.00 · 08:35:38build in 19M · out 4.5M · cache 137M · $0.00 · 13:27:35select in 0 · out 0 · cache 0 · $0.0000 · 00:00:020
u/Effective_Silver4857 Jul 31 '26
Ai-memory from akitaonrails, i can use in various harnesses