I just run emacs on the remote server (inside tmux), emacs works great on the terminal, in fact, I don't use GUI emacs. code, orgmode, magit are just text.
If I'm writing a lot of code or doing a refactor needing more thought, I'll do it locally, to be sure.