r/CommandCode • • Sep 11 '26

How to view cache hit rate

I want to see the cache hit rate for my sessions how to do that. I am using the cli and I am on the 1$ plan

7 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/ahmadawaiscom Sep 12 '26

Hey founder here. Thanks for sharing. Check out

https://commandcode.ai/docs/mods

You can use Mods to have complete programmable control over the lifecycle of loop or literally anything.

There are two compaction modes, auto and fast(burns more tokens). I have developed a new strategy that I call staircase compaction which can result in phenomenal continuous improvement of tokens over long running agents. Plan to share that soon.

But def build whatever. Mods allow you to modify any behavior of Command Code.

Even build a cache calculator as need be.

1

u/Pras1982 Sep 13 '26

I have already looked into mods & the current Compact Mode viz. Auto & fast. The fast will break the caching--hence cause more token burns. The auto is the default. I like the idea of Staircase compaction-- would love to see if it will work without breaking caching. A big reason for Deepseek being cheap is its cheap caching. I really appreciate you taking time to respond .

How soon can we hope to get this new compaction Mode -Staircase?

Also, Deeepseek V4.1 flash seem to have an option to set reasoning level beween 1 to 100 to control how the model thinks before answering(mentioned on Huggingfaace). How can we do that in Command Code? If not- Can you build that as well?

2

u/ahmadawaiscom Sep 13 '26

You should post both in our GitHub. We can check it out. I’ve been experimenting with a different approach too that never compacts. It’s a giant mod sitting in review. Will find some time to ship.

1

u/ahmadawaiscom Sep 13 '26

You should post both in our GitHub. We can check it out. I’ve been experimenting with a different approach too that never compacts. It’s a giant mod sitting in review. Will find some time to ship.