It would be desirable to extend the remote-execution facility, by adding a tapset function or global that makes the current 'remote' name available to the script, and perhaps also the names of its siblings. That way, the --remote-prefix would not be the only way of telling sibling outputs apart.
commit 5137a7a et al.