Repository navigation
Replies: 1 comment
|
hey im mitch first its a real pleasure to be online with guys and gals with your capabilities so thankyou . im experiancing difficultities making my we site public its . minongsentinel.github.io |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The Observation
While auditing the
claude-codeCLI request bodies (v2.1.126), I identified two patterns leading to significant token waste:cache_controlheaders or with missingttlfields, defaulting to 5-minute expires. This triggers a 1.25x cache-write surcharge on subsequent turns.<system-reminder>scaffolding, effectively "salting" the cache to ensure a miss.The Fix: Pino
I’ve built Pino, a ~500-line, zero-dependency Node.js reverse proxy. It surgically re-anchors shuffled context to
Msg 0, injects missing cache control headers, and trims historical scaffolding while preserving the model's reasoning integrity.Real-world numbers (Opus, 2-turn session):
Request
I’d love to get this into the
awesome-claude-codelist as a resource for engineers who are currently watching their API credits evaporate.I’m also curious if anyone else has observed similar "shuffle" patterns in their logs?
All reactions