r/PiCodingAgent • • 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?

3 Upvotes

4 comments sorted by

View all comments

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 .