git rerere?
86 karma · joined October 9, 2014
https://docs.astral.sh/uv/guides/scripts/#declaring-script-d...
That plus this: https://news.ycombinator.com/item?id=42855258
Makes it pretty seamless for one-off scripts.
Edit: and even there, I believe you can long-press to get the same effect.
It works quite well for me.
Edit: verbatim not verbose