Tuesday at 04:12 AM5 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 AM5 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 AM5 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 AM5 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 AM5 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 AM5 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 PM4 days 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.
Thursday at 08:40 PM2 days I added Multi-Sensors in my fridges and freezers and first created exactly what I wanted for the kitchen fridge, then asked eisy-ai to duplicate them for the other three. But some can't be done because it's now allowed to make a program reference a variable? It also refuses to duplicate the one, and claims it has a bug.MS Kitchen Fridge Battery - [ID 134][Parent 128] If 'Multi Sensors / MS Kitchen Fridge' Battery Level is not '$s.MS.Battery.KitchenFridge'% Then $s.MS.Battery.KitchenFridge = 'Multi Sensors / MS Kitchen Fridge' Battery Level % $s.MS.Battery.KitchenFridge Init To 'Multi Sensors / MS Kitchen Fridge' Battery Level %This is my request followed by eisy-ai responses.Duplicate the "MS Kitchen Fridge*" programs for the "MS Kitchen Freezer", "MS Garage Fridge", and "MS Garage Freezer" sensorsI'll pull the logic of the six "MS Kitchen Fridge" routines first, so I can see what each one references before duplicating it.The six routines reference the Kitchen Fridge sensor's wake, battery, and temperature devices, plus shared variables. The freezer and garage sensors already have their own variables (battery, high-temp flags). Next I'll pull the device specs for the three target sensors and the Kitchen Fridge sensor, so the copies use the right property names.I have the logic and device specs. I'll create the wake-up, configure, battery, and temperature routines for the three sensors first. The "Dead" routines depend on the new wake-up routine IDs, so they come after.Three wake-up routines saved (IDs 138–140). The other calls failed on two DSL details: the Configure routines need numeric values for the on/off parameter rather than labels, and the comparisons against variables need the variable on the left side. I'll retry with those corrections, and create the "Dead" routines now that the wake-up IDs exist.I created 9 of the 18 routines. The other 9 are blocked by a limit in the routine language, and I need your call on them.Created (in the same folders as the Kitchen Fridge originals):SensorWakeupDeadConfigureMS Kitchen FreezerMS Kitchen Freezer WakeupMS Kitchen Freezer DeadMS Kitchen Freezer ConfigureMS Garage FridgeMS Garage Fridge WakeupMS Garage Fridge DeadMS Garage Fridge ConfigureMS Garage FreezerMS Garage Freezer WakeupMS Garage Freezer DeadMS Garage Freezer ConfigureEach one uses its own sensor's wake-up device, and the Dead routines point at their own Wakeup routine.Not created: Battery, Temperature High, and Temperature Okay (9 routines). The routine language can't compare a device's live reading against a variable. The originals do exactly that:Battery: each compares the sensor's battery level with a stored variable and updates the variable when they differ.Temperature: each compares the sensor's temperature with a warning-threshold variable (Fridge threshold for the Garage Fridge; Freezer threshold for the Kitchen and Garage Freezers).Options:Temperature: hard-code the current thresholds (the variables are 50 for the fridge and 36 for the freezer). This works, but the routines won't follow later changes to those variables.Battery: I can't reproduce the change-detection. A schedule-based update (for example, hourly) would work but behaves differently from the original.Skip these nine and keep only the 9 created routines.Also, the original Kitchen Fridge Battery routine resets its variable to its initial value right after setting it, which looks like a bug. I didn't copy that step into any new routine. The originals are unchanged.Which option do you want for the temperature and battery routines?
Friday at 06:13 AM2 days Author @Jimbo.Automates ,Are you using Claude? If so, was it at any point telling you that it was compacting the history? Can you send me the output of:/session-statsI think you have reached the context window of the model you are using. If Claude, change the unified model to sonnet-5-5.With kind regards,Michel
Create an account or sign in to comment