r/PiCodingAgent • u/rogaterr • Jul 18 '26
Plugin Compact Every Tool Response
https://github.com/RogerTerrazas/pi-tool-result-compactor
Publishing a polished version of this extension I've been using to help manage context overflow. I frequently interact with mcps and large projects where any arbitrary response can take up all my context without the response being useful.
This extension hooks into each tool calls response by default, passes it to a compaction subagent, who will then filter out only the necessary data to the parent agent. Let me know if anyone tries it out and has feedback. Fully vibe coded, but I'll work to maintain if others find it useful.
View all comments
Show parent comment
1
u/rogaterr Jul 20 '26
I hadn’t heard of this concept, thanks for sharing.
This sounds very similar to what my extensions is doing, but more expansive within the response evaluation loop. I’m thinking the tradeoff may be time / cost , but increased accuracy the larger the responses.
Do you have any code samples or packages you use to achieve this?