r/PiCodingAgent • u/ElCedre • Oct 24 '26
Question Question of compactionš¤
Hi
I use qwen next with ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF
Iq3_s with strata in q8_0 with ctx 128k with pi and billion context. I do not like it. I do not understand everything (at all) in compaction but for example: if I export in json a pi coding session and I simply and properly remove all the phases (code + test) in error by keeping only the code correction after test; since these local models are often wrong even if they correct after error tests it should gain a lot of context? No? If someone can tell me what i forget or don't know?
1
u/Adventurous-Bat-3174 Oct 26 '26
Yes, but keep why each failed approach was rejected. āTried X; failed because Y; current fix is Zā is smaller than replaying every edit and test. In stock Pi, /compact accepts instructions about what to preserve and keeps the original session entries stored: https://pi.dev/docs/latest/compaction . Iād try that before hand-editing JSONL. Entries have parent links, and tool results must stay with their calls: https://pi.dev/docs/latest/session-format .
2
u/Slight-Living-8098 Oct 24 '26
Billion context plugin isn't that great. I tried it for a week and removed it. It made crap worse than just going through auto compaction.
Don't run your tests in the same session. Spawn your test and code review subagents in a new session of pi with a clean context and have your main agent just read the reports and orchestrate
0
u/[deleted] Oct 24 '26
[deleted] ā view deleted comment