r/PiCodingAgent • • Sep 27 '26

Question OMP and Opus 5.5 Usage

Why is it that Opus 5.5 usage starts out great in OMP, and then for one reason or another starts draining usage like crazy? Am I hitting some sort of caching issues? Do I need to compact at 400k? Or what?

I am pretty sure the cache is being kept warm for an hour, but I don't know for sure how this stuff works. It's compacting at 850k. If i've left it for awhile and context is >35% I will use /handoff and that seems to help.

7 Upvotes

15 comments sorted by

View all comments

1

u/pilibitti Sep 27 '26

since each turn sends the entire history, each message in a conversation costs more than the previous one.

cache read says $0.1 per million tokens. if you have 500k tokens in history, each turn reads the entire history from cache, that means each turn costs ~$0.05 just for reading from the cache. When you approach 1 million history each turn's just cache read cost approaches $0.1. You add to that the output cost.

most people assume they pay the cache / history cost once. Like if the history grows to 1 million tokens, it will in total cost $0.1 but that is not the case. you pay for that at each turn. each message you send, each tool call by itself incurs that cache read cost calculated from the entire history.

3

u/Equivalent_Idea8839 Sep 28 '26

claude cache ttl is very short too, i think 5m

2

u/hancengiz Sep 28 '26

Subs 1hr. api 5min

1

u/pilibitti Sep 28 '26

then it is ridiculous pricing no? I don't use anthropic models but their pricing page says 5min cache write is $5 per 1 million tokens. so if you have 500k context, leave for 5 mins then send a new message it automatically is an additional $2.5?