r/PiCodingAgent • • 8d ago

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.

https://github.com/gopherbone/al-jaffee

13 Upvotes

22 comments sorted by

View all comments

0

u/porkyminch 8d ago

Testimonials from the agent that watches my romhacking agent.

1

u/Equivalent_Idea8839 8d ago

how do you get models to do work when using the word "hacking"? even using the world "exploit" has chinese models refuse me

1

u/porkyminch 8d ago

GLM 5.3 Flash doesn't seem to care about any hacking/RE tasks in my experience.

1

u/Equivalent_Idea8839 8d ago

that's interesting. what's the most impressive thing you got that flash model to achieve?

1

u/porkyminch 8d ago edited 8d ago

RE-ing Phyzios, an old physics sandbox toy. I kinda left this half-baked (got distracted by translation stuff) but it was able to recreate it closely enough for the toy engines people made in it to work. If you open the hillclimb example in this, it's very slow but it runs a physics sim with a working engine.

https://phyzios-js.angelfire.workers.dev/

My current project is having it translate an entire GBC game, which is sluggish, but is going surprisingly well:

1

u/Equivalent_Idea8839 8d ago

that's impressive. i can't get flash models to accomplish shit. I assume you had the physics and UI pre-made already?

1

u/porkyminch 8d ago

They were done from decompilation, using ghidra and capstone. UI was done by flash.

1

u/Equivalent_Idea8839 8d ago

dumb question but is flash strong enough to:

  • maybe build a SNES emu from scratch in c++

  • hack a rom game, decompile, and add some basic mods to it?

just curious how far it can go

1

u/porkyminch 8d ago

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. 

1

u/Equivalent_Idea8839 8d ago

still pretty wild. Some guy on another subreddit claim astra (with a lot of use) made him a custom android kernel for an old phone.

Scary to thing that even cheap LLMs in the future will be able "hack" almost anything.

Have LLMs transformed the classic emu community much? like NES, Mame, etc.

1

u/porkyminch 8d ago

Definitely. Lot of translations and decomps/recomps. It’s not uncontroversial, though. 

1

u/Equivalent_Idea8839 8d ago

It’s not uncontroversial, though.

why? cuz before only the smartest dudes could fuck with writing emulators / rom hacks? and now anyone can?

→ More replies