Tuesday at 04:12 AM2 days @Michel Kohanim I still have the one with the api key in a different slot if I start it will it read a different session set that we can check?
Tuesday at 04:17 AM2 days Author @tazman ,Yes, sessions are based on the logged in identity. I don't think your shim is logged in.With kind regards,Michel
Tuesday at 04:26 AM2 days @Michel Kohanim so it is not connecting to nucore properly?/session-statsSession stats (claude-haiku-5-5)Context for the next request: ~83,906 tokens -- calibrated to the last request History: ~1,123 of its 60,000-token budget (2%) Reply reserve (max_tokens): 20,000PartTokensSharesystem section 1 (DEVICE DATABASE, ROUTINES DATABASE)35,41742%system section 2 (ROUTINES DATABASE)4,8216%system section 3 (DEVICE DATABASE, ROUTINES DATABASE, TIME & LOCATION, USER PREFERENCES)1,1711%tools (40)41,11349%history: compacted summary00%history: conversation text6031%history: tool calls and results7821%Last request: 83,906 in (35,605 cached read, 48,297 cache write, 4 uncached; 42% hit), 243 outSession totals: 3 requests, 251,349 input (47% read from cache), 132,185 written 1h / 0 written 5m, 526 outputWhen (UTC)RequestInCached readWrittenOut21:11:47round83,553083,54925221:11:48round83,89083,5493393121:43:00round83,90635,60548,297243
Tuesday at 04:32 AM2 days Author @tazman ,It's connecting to nucore properly BUT, just like MCP, nucore is no longer in charge of cache/prompt management. It's your shim doing everything. Just looking at the results, you're paying about 20x ($2/mil vs. $0.10/mil) more on non-cached tokens on sonnet 5-5. On haiku it's about 10x ($0.10/mil vs. $0.01).With kind regards,Michel
Tuesday at 05:06 AM2 days @Michel Kohanim thank you the Ai found the problem you will probably understand it better than me"The fix: the shim was mixing a changing bit (live device state) into the same text it uses to decide "is this the same conversation?" — so every single turn looked brand-new to Claude's caching, even though 99% of the prompt hadn't changed. I split that changing part out so only the truly stable content (device/tool list) gets hashed for session identity, while the live state still rides along in the actual message. Real numbers confirm it: cache reads went from 0% to 38-53% across your test session, and climbing (24%→47%→52%+ per request) as the session warms up."/session-statsSession stats (claude-sonnet-5-5)Context for the next request: ~91,104 tokens of 1,000,000 (9%) -- estimated History: ~47,032 of its 100,000-token budget (47%) Reply reserve (max_tokens): 64,000PartTokensSharesystem section 121,45624%tools (33)22,63025%history: compacted summary00%history: conversation text4,1055%history: tool calls and results42,91347%Last request: 219,870 in (53,770 cached read, 56,164 cache write, 109,936 uncached; 24% hit), 1,680 outSession totals: 8 requests, 935,843 input (38% read from cache), 109,934 written 1h / 0 written 5m, 4,591 output, ~$1.49When (UTC)RequestInCached readWrittenOut04:56:11round104,14251,37669413604:56:15round104,41852,07013829704:56:19round105,26252,20842236204:56:24round107,54252,6301,14034604:56:44round219,87053,77056,1641,680
Tuesday at 05:10 AM2 days Author @tazman , good catch but it's not sufficient because the device database/routines change. Again the shim is now deciding where to put thing, and not nucore. So, every change we make, you will need to update the shim. Please do not get me wrong: I think it's great advantage to be able to use your subscription. But, it does come with some cons. It's just that you need to weigh the pros/cons of each approach.With kind regards,Michel
Tuesday at 10:41 PM1 day On 11/18/2026 at 4:01 PM, Michel Kohanim said:Hello everyone,Initial analysis of the new version showed 70% improvement in token/context usage. Added a little more housekeeping, and removes things that made processing more difficult (max_turns), and in one case we got 96% cache hit developing a plugin for Rheem Econet!So, if you have not done so yet, please upgrade to the latest to save on tokens/costs.With kind regards,MichelI started a new plugin today, creating a new session. Today's work included a description of the plugin, eisy-ai research, & creation of initial draft. Afterwards, I ran /session-stats:Session stats (claude-sonnet-5-5)Context for the next request: ~85,387 tokens of 1,000,000 (9%) -- calibrated to the last request History: ~32,420 of its 100,000-token budget (32%) Reply reserve (max_tokens): 64,000 PartTokensSharesystem section 123,95728%tools (33)25,26830%history: compacted summary4,5935%history: conversation text4,6385%history: tool calls and results26,93132% Last request: 85,387 in (84,079 cached read, 1,304 cache write, 4 uncached; 98% hit), 3,273 outSession totals: 35 requests, 4,396,512 input (94% read from cache), 247,066 written 1h / 0 written 5m, 84,185 output, ~$2.67 Compactions: 1 recorded; latest (fork) ~146,417 -> ~4,125 tokens When (UTC)RequestInCached readWrittenOut21:45:54round77,58974,9522,6351,03521:53:54round78,48077,58788999121:54:03round81,30478,4762,8261,05721:54:20round84,08181,3022,7772,05322:06:11round85,38784,0791,3043,273I then checked Claude's Dashboard and found the Cache read rate was 99.2%. I thought that was very good!Cost so far is $2.27. Next I need to debug a few issues and improve the layout and readability, along with adding some documentation.
Create an account or sign in to comment