Thank you for this - it dissolved an assumption I had about vscode ssh - that it was similar to Tramp
I'm also really appreciating the base64 exec hack. All my years in Python I never thought of or came across it until now. I'll totally be using it for some things :).
[0] https://github.com/gabrielcnr/python-ls [1] https://pypi.org/project/snoop/
Edit: I love that other people are thinking about this around now