there is literally a --system-prompt flag for claude code. In my mitmproxy experiments using that flag appended to the existing system prompt rather than replacing it. So I had to create a little helper to strip the system prompt sent over the wire and add my own.
here is a collection of public system prompts from claude code: https://github.com/Piebald-AI/claude-code-system-prompts