r/PiCodingAgent • • 12d ago

Discussion What do you set as the context limit?

I currently have it set as 150k and I’m using both Pi Blackhole with Observational Memory Enabled as well as the Context Mode extension.

Just wondering if I should lower further to 100k and what’s the norm around here.

4 Upvotes

15 comments sorted by

8

u/-Django 12d ago

I keep the default context length DeepSeek flash 4.1 has (1 million) but usually switch to a new session around 250k for cost and performance reasons 

1

u/LordMoridin84 11d ago

200k.

150k is fine but lower would be a mistake.

1

u/PerfectReflection155 11d ago

Cool. Yeah I was thinking 200k is ideal. It’s just I’ve been using way too many tokens these days so I was trying to optimise to the maximum possible to reduce token usage. It’s actually the whole reason I moved to pi . It’s working as well. My open code go plan has lasted longer. I haven’t noticed any adverse effects from lower context limits actually.

3

u/Lurksome-Lurker 11d ago

131072, Because you might as well embrace compaction. Admittedly, it sometimes feels like I am leading the main character from Memento on a quest

1

u/MonadicKierkegaard 11d ago

I’m stealing this. Lol

2

u/StardockEngineer 11d ago

Whatever the model's setup offers.

1

u/omppulse 11d ago

Don't really set a fixed number anymore, I'm on omp and just have it compact at 60% of whatever the model's window is (compaction.thresholdPercent: 60). It tries a remote summary first and falls back to snapcompact or a handoff into a fresh session if that doesn't work, so honestly I've mostly stopped thinking about it lol

1

u/alexwwang 11d ago

256K is sweet to me.

0

u/pilibitti 12d ago

I use the model max, typically 256k.

0

u/Slight-Living-8098 12d ago

The default max of the model. Every extension I've used to extend it pretty much sucks, and when you use rope in your model's host like llama.cpp it gets flakey.

0

u/RelationshipLong9092 12d ago

272k is the threshold for ~ double pricing for codex models, so thats what i use.

I use blackhole.