r/PiCodingAgent • u/porkyminch • Sep 17 '26
Resource al-jaffee - simple cache-preserving fold-in compaction for pi agents
I've been working on a longer-term project and I have a lot of little side tangents and investigations as I work that I don't want the full context to get polluted by. I wrote a little pi plugin that lets agents create markers, then work on a task with their full context. When they're done, they can fold-in their full context to a summary, compacting the work in place.
It's less manual than forking the session and a little less to keep track of than subagents. I thought it was worth sharing. MIT license, 1k lines of code. Cost was maybe a dime worth of GLM 5.3 Flash.


View all comments
Show parent comment
1
u/porkyminch Sep 17 '26
Emulators, haven’t tried. Probably too complicated to be worth it. Romhacking, sure seems like it. The game I’m translating, Feng Kuang Da Fu Weng, is a fairly obscure Taiwanese unlicensed GBC game from a little known company called Vast Fame. It’s taken a fair amount of prodding, but it’s consistently making progress. It’s not gonna one shot it, though.
Palm OS games, on the other hand, I have had it one shot translations for. I suspect anything more modern will give it an easier time. I’ve been toying with the idea of having it do Richman IV (another game from Taiwan) because I figure it’d have an easier time with it, but I’m trying to stay focused.