`eshell-command` reads an Eshell command from the minibuffer. `esh-autosuggest--prefix` won't work in this case, since it can't find `eshell-prompt-regexp` in the minibuffer.