It's possible to use ssh in pipes, but its a little tricky and inefficient:
$ ssh host du \| tee /tmp/foo | grep -f x | ssh host sort
Piping in an lsh "shell-mode"
Let's imagine a shell mode for running local and remote processes.
Assume that square brackets [] denote remote process grouping on some
host, similar to parenthesis () used to group local processes.