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

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

2

u/ElCedre Oct 24 '26

Yes that s what am actually doing cause i don t like billi... i have a planning session then a new build then back to plannig to verify and prepare test or direct debug and prepare test and then new session test... that s why am looking to just try to clean builder session. My sessions are never more 200k... and it s finally not a lot with all tought and mistakes. But thanks for your answer am ok with you billion is bullshit.

0

u/[deleted] Oct 24 '26

[deleted] — view deleted comment

1

u/ElCedre Oct 24 '26

I understand but am looking for something easy to apply myself, i will read more and if no human explain me i will ask to ai... thanks