Yeah I know about tweakcc, even had some custom prompts committed to my dotfiles repository for a while. For some reason it wasn't working for me, don't remember why.
At first I used this shell script here:
https://gist.github.com/roman01la/483d1db15043018096ac3babf5...
Someone posted it on HN on the Opus degradation thread:
https://news.ycombinator.com/item?id=47660925
I just kept using it to fix the prompts for a long time. Eventually I asked Claude to port it to Python to make it easier to maintain. Now every month or so Claude dissects the Claude Code binary and integrates the script with the newest version.
https://github.com/matheusmoreira/.files/blob/master/%7E/.lo...