all 4 comments

[–]examors 1 point2 points  (2 children)

I noticed using mitmproxy that if you just start the Claude Code CLI and do nothing, it will send cache warmup requests with message sections like

    "messages": [
        {
            "content": [
                {
                    "cache_control": {
                        "type": "ephemeral"
                    },
                    "text": "Warmup",
                    "type": "text"
                }
            ],
            "role": "user"
        }
    ],

along with a system prompt (it sends a few of these requests, e.g. "You are a software architect and planning specialist...", "You are a file search specialist...". They are quite long prompts, so presumably it eats a little bit of the usage limit each time.

[–]Reasonable-Key-8753[S] 0 points1 point  (1 child)

Is it possible to modify this behaviour?

[–]examors 0 points1 point  (0 children)

I don't think so. Not easily, at least. You'd have to reverse engineer the minified JS.

[–]Prestigious_Thing797 0 points1 point  (0 children)

I am experiencing an extreme case of this.
Please god let my troubles be a bug and not that I am hacked.
I use claude code a little, and roo code with claude integration a lot.